yuanmingze 4 ヶ月 前
コミット
0c71fbb551

+ 12 - 2
src/pages-sub-service-mangement/servicesToBeReviewed/index.vue

@@ -437,7 +437,16 @@ const lockedBtn = async () => {
   }
 }
 
-const handleClose = () => {
+const handleClose = async () => {
+  const taskIds = pretreatmentInfo.value.available.map((item) => item.taskId)
+  if (pretreatmentInfo.value?.token?.token) {
+    const obj = {
+      taskIds,
+      token: pretreatmentInfo.value?.token?.token,
+      nodeId: checkNodeId.value
+    }
+    await pretreatmentClearApi(obj)
+  }
   reviewFormRef.value.close()
   init()
 }
@@ -464,7 +473,8 @@ const checkBtn = async () => {
         title: '审核成功',
         icon: 'none'
       })
-      handleClose()
+      reviewFormRef.value.close()
+      init()
     }
   } catch (err) {
     console.log('err', err)