yuanmingze 4 mēneši atpakaļ
vecāks
revīzija
82b5c12bef
2 mainītis faili ar 11 papildinājumiem un 3 dzēšanām
  1. BIN
      dist.7z
  2. 11 3
      src/views/serviceManagement/servicesToBeReviewed/index.vue

BIN
dist.7z


+ 11 - 3
src/views/serviceManagement/servicesToBeReviewed/index.vue

@@ -381,7 +381,6 @@ export default {
         nodeId = 1;
     }
 
-
     const lastYear = dayjs().subtract(1, 'year').format('YYYY');
 
     this.searchFrom.year = lastYear;
@@ -525,7 +524,16 @@ export default {
         this.$refs.taskDetailRef.getInfo(row.taskId);
       });
     },
-    handleClose() {
+    async handleClose() {
+      const taskIds = this.pretreatmentInfo.available.map((item) => item.taskId);
+      if (this.pretreatmentInfo?.token?.token) {
+        const obj = {
+          taskIds: taskIds,
+          token: this.pretreatmentInfo.token.token,
+          nodeId: this.checkNodeId
+        };
+        await pretreatmentClearApi(obj);
+      }
       this.reviewDialog = false;
       this.taskForm = {
         checkResult: '',
@@ -668,7 +676,7 @@ export default {
           this.loading = false;
         } catch (err) {
           this.loading = false;
-          q
+          q;
         }
       }