Browse Source

reactor:工单受理调整;

zhangchong 1 year ago
parent
commit
a614a5f1fa

+ 2 - 10
src/components/ProcessAudit/index.vue

@@ -1091,11 +1091,7 @@ const onSubmit = (formEl: FormInstance | undefined) => {
 							});
 						break;
 					case '工单办理': // 工单办理流程
-            const orderHandleRequest = {
-              data: { ...state.orderDetail },
-              workflow: { ...submitObj, files: handleFiles.value },
-            };
-            orderHandle(orderHandleRequest)
+            orderHandle({ ...submitObj, files: handleFiles.value })
 							.then(() => {
 								afterSubmit('orderProcessSuccess', true);
 							})
@@ -1156,11 +1152,7 @@ const onSubmit = (formEl: FormInstance | undefined) => {
 							});
 						break;
 					default: // 默认工单办理
-            const orderHandleRequestDefault = {
-              data: { ...state.orderDetail },
-              workflow: { ...submitObj, files: handleFiles.value },
-            };
-            orderHandle(orderHandleRequestDefault)
+            orderHandle({ ...submitObj, files: handleFiles.value })
               .then(() => {
                 afterSubmit('orderProcessSuccess', true);
               })

+ 3 - 3
src/views/business/order/index.vue

@@ -72,9 +72,9 @@
 					</transition>
 					<transition name="el-zoom-in-top">
 						<el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6" v-show="!searchCol">
-							<el-form-item label="热点分类" prop="HotspotId">
+							<el-form-item label="热点分类" prop="HotspotIds">
 								<hot-spot-select
-									v-model="state.queryParams.hotspotId"
+									v-model="state.queryParams.HotspotIds"
 									class="w100"
 									:hotspotExternal="state.hotspotExternal"
 									show-checkbox
@@ -371,7 +371,7 @@ const state = reactive(<any>{
 		Content: null, // 工单内容
 		AcceptType: null, // 受理类型
 		Channel: null, // 渠道
-		HotspotId: [], // 热点
+    HotspotIds: [], // 热点
 		OrgCode: [], // 机构
 		NameOrNo: null, // 受理坐席
 		crTime: [], // 创建时间

+ 0 - 1
src/views/knowledge/index/edit.vue

@@ -281,7 +281,6 @@ const getKnowledgeList = () => {
   state.ruleForm.knowledgeType = currentNode.map((item: any) => {
     return {value:item.label,key: item.value,splice: item.data.spliceName}
   })
-  console.log('currentNode', currentNode,state.ruleForm.knowledgeType);
 };
 // 添加关键词
 const knowledgeKeywordsRef = ref<RefType>();

+ 14 - 12
src/views/todo/seats/accept/index.vue

@@ -911,18 +911,20 @@ const processAuditRef = ref<RefType>();
 const processOrder = (orderDetail: any) => {
 	buttonLoading.value = false;
 	if (orderDetail.workflowId) {
-		// 如果已经有流程id 说明已经发起过流程  直接调用工单办理
-		const params = {
-			id: orderDetail.workflowId,
-			processType: '工单办理',
-			orderDetail,
-			extra: {
-				dialogTitle: '工单办理',
-				inputPlaceholder: '办理意见',
-				annexName: '办理附件',
-			},
-		};
-		processAuditRef.value.openDialog(params);
+		// 如果已经有流程id 说明已经发起过流程 先更新工单数据  直接调用工单办理
+    orderEdit(orderDetail).then(() => {
+      const params = {
+        id: orderDetail.workflowId,
+        processType: '工单办理',
+        orderDetail,
+        extra: {
+          dialogTitle: '工单办理',
+          inputPlaceholder: '办理意见',
+          annexName: '办理附件',
+        },
+      };
+      processAuditRef.value.openDialog(params);
+    });
 	} else {
 		// 如果没有流程id 说明没有发起过流程  调用工单受理
 		const params = {