Browse Source

流程审批

lwx_v7
超级管理员 2 years ago
parent
commit
a8d7042ee9
  1. 2
      src/components/DesignForm/public/form/form.vue
  2. 15
      src/components/DesignForm/tableListPage/formPageCont.vue
  3. 21
      src/components/DesignForm/tableListPage/index.vue
  4. 10
      src/types/components.d.ts

2
src/components/DesignForm/public/form/form.vue

@ -940,7 +940,7 @@ const saveEditFormInfo = (type: string, res: any) => {
*/ */
const draftSubmit = (params = {}) => { const draftSubmit = (params = {}) => {
// let apiUrl = "/systemapi/task_management/newcust_form_editdata" // let apiUrl = "/systemapi/task_management/newcust_form_editdata"
let apiUrl ="/systemapi/task_management/add_customer_form" let apiUrl ="/systemapi/task_management/editCustomerTable"
if (props.isSearch || !apiUrl || loading.value) { if (props.isSearch || !apiUrl || loading.value) {
if (!props.isSearch && !apiUrl) { if (!props.isSearch && !apiUrl) {
console.error( console.error(

15
src/components/DesignForm/tableListPage/formPageCont.vue

@ -27,6 +27,10 @@ const props = defineProps({
type:Number, type:Number,
default:1 default:1
}, },
operState:{
type:Number,
default:1
},
pageInfo:{ pageInfo:{
type:Object, type:Object,
default(){ default(){
@ -100,9 +104,18 @@ const getCustomrrFormInfo = () => {
.then((data:any) =>{ .then((data:any) =>{
if(data.code == 0){ if(data.code == 0){
if (data.data == 3 || data.data == 4){ if (data.data == 3 || data.data == 4){
// formState.formData.list.push(submitButtonEs)
if(props.operState == 2){
formState.formData.list.push(afreshSubmitButton)
}else if(props.operState == 3){
formState.formData.list.push(editFormCont)
}else if(props.operState == 4){
formState.formData.list.push(draftSubmitButton)
}else if(props.operState == 5){
formState.formData.list.push(submitButtonEs) formState.formData.list.push(submitButtonEs)
} }
} }
}
}) })
} }
@ -145,6 +158,8 @@ const drawerBeforeClose = () => {
// emits("getmytodolist") // emits("getmytodolist")
// emits("update:isshow", false); // emits("update:isshow", false);
} }
//
const sendDraftSubmit = (type: string,val?:any) => {}
</script> </script>
<template> <template>
<el-drawer <el-drawer

21
src/components/DesignForm/tableListPage/index.vue

@ -70,7 +70,7 @@ const emits = defineEmits<{
(e: 'selectionChange', row: any): void (e: 'selectionChange', row: any): void
(e: 'btnClick', btn: any, row?: any): void // (e: 'btnClick', btn: any, row?: any): void //
}>() }>()
const operState = ref<number>(1) // 1234;5:
const idList = ref<string[]>([]) const idList = ref<string[]>([])
const designStore = useDesignFormStore() const designStore = useDesignFormStore()
const route = useRoute() const route = useRoute()
@ -328,6 +328,19 @@ const lookPageInfo = (val:any) => {
const editInfo = (val:any) => { const editInfo = (val:any) => {
console.log('修改数据!',val) console.log('修改数据!',val)
operState.value = 5;
tablePageClass.value = 2;
pageInfoCont.value = val
drawerWith.value = container.value?.clientWidth
lookPageInfoIsShow.value = true;
}
/**
@ 作者: 秦东
@ 时间: 2024-04-10 15:32:55
@ 功能: 提交审批
*/
const submitApproval = (val:any) => {
operState.value = 4
tablePageClass.value = 2; tablePageClass.value = 2;
pageInfoCont.value = val pageInfoCont.value = val
drawerWith.value = container.value?.clientWidth drawerWith.value = container.value?.clientWidth
@ -472,7 +485,7 @@ const editInfo = (val:any) => {
content="提交审批" content="提交审批"
placement="top-end" placement="top-end"
> >
<el-button type="success" size="small" class="fa fa-send-o" /> <el-button type="success" size="small" class="fa fa-send-o" @click="submitApproval(scope.row)" />
</el-tooltip> </el-tooltip>
<el-tooltip <el-tooltip
@ -597,7 +610,7 @@ const editInfo = (val:any) => {
/> />
</div> </div>
</el-col> </el-col>
<el-col :span="24" style="display:black"> <el-col :span="24" style="display:none">
{{ tableDataList}} {{ tableDataList}}
</el-col> </el-col>
@ -663,7 +676,7 @@ const editInfo = (val:any) => {
</el-col> </el-col>
</el-row> </el-row>
<FormPageCont v-model:is-show="lookPageInfoIsShow" :drawer-with="drawerWith" :page-info="pageInfoCont" :table-page-class="tablePageClass" @getPageData="getPageData" /> <FormPageCont v-model:is-show="lookPageInfoIsShow" :drawer-with="drawerWith" :page-info="pageInfoCont" :table-page-class="tablePageClass" :oper-state="operState" @getPageData="getPageData" />
</div> </div>
</template> </template>
<style lang='scss' scoped> <style lang='scss' scoped>

10
src/types/components.d.ts

@ -31,7 +31,6 @@ declare module '@vue/runtime-core' {
ElCard: typeof import('element-plus/es')['ElCard'] ElCard: typeof import('element-plus/es')['ElCard']
ElCarousel: typeof import('element-plus/es')['ElCarousel'] ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCascader: typeof import('element-plus/es')['ElCascader']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
@ -71,7 +70,6 @@ declare module '@vue/runtime-core' {
ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect'] ElSelect: typeof import('element-plus/es')['ElSelect']
ElSlider: typeof import('element-plus/es')['ElSlider'] ElSlider: typeof import('element-plus/es')['ElSlider']
ElSpace: typeof import('element-plus/es')['ElSpace']
ElStep: typeof import('element-plus/es')['ElStep'] ElStep: typeof import('element-plus/es')['ElStep']
ElSteps: typeof import('element-plus/es')['ElSteps'] ElSteps: typeof import('element-plus/es')['ElSteps']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
@ -111,15 +109,7 @@ declare module '@vue/runtime-core' {
IconSelect: typeof import('./../components/IconSelect/index.vue')['default'] IconSelect: typeof import('./../components/IconSelect/index.vue')['default']
IEpCaretBottom: typeof import('~icons/ep/caret-bottom')['default'] IEpCaretBottom: typeof import('~icons/ep/caret-bottom')['default']
IEpClose: typeof import('~icons/ep/close')['default'] IEpClose: typeof import('~icons/ep/close')['default']
IEpDelete: typeof import('~icons/ep/delete')['default']
IEpEdit: typeof import('~icons/ep/edit')['default']
IEpMessageBox: typeof import('~icons/ep/message-box')['default']
IEpOperation: typeof import('~icons/ep/operation')['default']
IEpPlus: typeof import('~icons/ep/plus')['default']
IEpRefresh: typeof import('~icons/ep/refresh')['default']
IEpSearch: typeof import('~icons/ep/search')['default']
IEpSetting: typeof import('~icons/ep/setting')['default'] IEpSetting: typeof import('~icons/ep/setting')['default']
IEpUser: typeof import('~icons/ep/user')['default']
LangSelect: typeof import('./../components/LangSelect/index.vue')['default'] LangSelect: typeof import('./../components/LangSelect/index.vue')['default']
LayoutPage: typeof import('./../components/DesignForm/layoutPage/index.vue')['default'] LayoutPage: typeof import('./../components/DesignForm/layoutPage/index.vue')['default']
List: typeof import('./../components/DesignForm/public/form/components/list.vue')['default'] List: typeof import('./../components/DesignForm/public/form/components/list.vue')['default']

Loading…
Cancel
Save