Browse Source

reactor:甄别,延期,终止流程优化;

zhangchong 4 months ago
parent
commit
fb94d7ac66
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/business/terminate/components/Terminate-edit.vue

+ 4 - 1
src/views/business/terminate/components/Terminate-edit.vue

@@ -122,12 +122,14 @@ const state = reactive<any>({
 	loading: false, // 提交按钮loading
 	workflowId: null, // 流程id
 	orderDetail: {}, // 工单详情
+	id: null,
 });
 // 打开弹窗
 const openDialog = async (val: any) => {
 	state.dialogVisible = true;
 	state.loading = true;
 	state.workflowId = val.workflowId;
+	state.id = val.id;
 	try {
 		// 如果有流程ID说明已经开启过流程需要获取办理流程的参数
 		const [workflowTerminateResponse] = await Promise.all([terminateNextFlowParams(val.workflowId)]); //终止审批参数
@@ -258,8 +260,9 @@ const onSubmit = (formEl: FormInstance | undefined) => {
 				content: state.terminateForm.content,
 				files: handleFilesTerminate.value,
 				workflowId: state.workflowId,
+				id: state.id,
 			},
-			workflow: {
+			nextWorkflow: {
 				nextStepCode: state.terminateForm.nextStepCode,
 				nextStepName: state.terminateForm.nextStepName,
 				backToCountersignEnd: state.terminateForm.backToCountersignEnd,