diff --git a/src/views/workflow/leave/leaveEdit.vue b/src/views/workflow/leave/leaveEdit.vue index 8e5bf62..83e37ae 100644 --- a/src/views/workflow/leave/leaveEdit.vue +++ b/src/views/workflow/leave/leaveEdit.vue @@ -13,6 +13,11 @@ + + + + + @@ -42,17 +47,6 @@ - - - - - - @@ -116,19 +110,13 @@ const flowCodeOptions = [ label: '请假申请-排他并行会签' } ]; +// 自定义流程可不选择 直接填写flowCode 例如 'leave1' +const flowCode = ref('leave1'); -const flowCode = ref(''); - -const dialogVisible = reactive({ - visible: false, - title: '流程定义' -}); //提交组件 const submitVerifyRef = ref>(); //审批记录组件 const approvalRecordRef = ref>(); -//按钮组件 -const approvalButtonRef = ref>(); const leaveFormRef = ref(); @@ -164,11 +152,6 @@ const data = reactive>({ } }); -const handleClose = () => { - dialogVisible.visible = false; - flowCode.value = ''; - buttonLoading.value = false; -}; const { form, rules } = toRefs(data); /** 表单重置 */ @@ -224,15 +207,6 @@ const submitForm = (status: string) => { proxy.$tab.closePage(proxy.$route); proxy.$router.go(-1); } else { - if ((form.value.status === 'draft' && (flowCode.value === '' || flowCode.value === null)) || routeParams.value.type === 'add') { - flowCode.value = flowCodeOptions[0].value; - dialogVisible.visible = true; - return; - } - //说明启动过先随意穿个参数 - if (flowCode.value === '' || flowCode.value === null) { - flowCode.value = 'xx'; - } await handleStartWorkFlow(res.data); } } @@ -242,10 +216,6 @@ const submitForm = (status: string) => { } }; -const submitFlow = async () => { - handleStartWorkFlow(form.value); - dialogVisible.visible = false; -}; //提交申请 const handleStartWorkFlow = async (data: LeaveForm) => { try {