Bläddra i källkod

reactor:吧泸州的流程独立出来;

zhangchong 5 månader sedan
förälder
incheckning
356c9b4f5f
1 ändrade filer med 6 tillägg och 12 borttagningar
  1. 6 12
      src/components/OrderDetail/index.vue

+ 6 - 12
src/components/OrderDetail/index.vue

@@ -938,6 +938,7 @@ const onRecord = () => {
 	auditRecordRef.value.openDialog(params);
 };
 // 提交流程
+const lzProcessRef = ref<RefType>();
 const processAuditRef = ref<RefType>(); // 处理流程
 const onSubmit = (val: string, annexName: string = '办理附件', classify: string = '办理附件', inputPlaceholder = '办理意见') => {
 	if (['工单办理', '工单退回'].includes(val) && state.ruleForm.isReturnUnderApproval) {
@@ -955,18 +956,11 @@ const onSubmit = (val: string, annexName: string = '办理附件', classify: str
 			classify,
 		},
 	};
-	if (['ZiGong'].includes(themeConfig.value.appScope)) {
-		if (['工单办理', '工单代办', '工单退回'].includes(val)) {
-			zgProcessRef.value.openDialog(params);
-		} else {
-			processAuditRef.value.openDialog(params);
-		}
-	} else if (['LuZhou'].includes(themeConfig.value.appScope)) {
-		if (['工单办理', '工单代办', '工单退回'].includes(val)) {
-			lzProcessRef.value.openDialog(params);
-		} else {
-			processAuditRef.value.openDialog(params);
-		}
+	const zgLzActions = ['工单办理', '工单代办', '工单退回'];
+	if (['ZiGong'].includes(themeConfig.value.appScope) && zgLzActions.includes(val)) {
+		zgProcessRef.value.openDialog(params);
+	} else if (['LuZhou'].includes(themeConfig.value.appScope) && zgLzActions.includes(val)) {
+		lzProcessRef.value.openDialog(params);
 	} else {
 		processAuditRef.value.openDialog(params);
 	}