Jelajahi Sumber

首件两检新增类型

695593266@qq.com 6 bulan lalu
induk
melakukan
028def2350
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      src/views/produce/components/qualityInspection/index.vue

+ 3 - 2
src/views/produce/components/qualityInspection/index.vue

@@ -205,7 +205,7 @@
         this.loading = true;
 
         try {
-          const isSourceTask = this.type === 1;
+          const isSourceTask = this.type == 1;
 
           const params = {
             workOrderId: this.workOrder?.id,
@@ -214,7 +214,8 @@
               : this.produceTaskInfo?.id,
             produceTaskInstanceId: isSourceTask
               ? this.produceTaskInfo?.id
-              : this.workOrder?.taskId
+              : this.workOrder?.taskId,
+            type: isSourceTask ? 2 : 1
           };
 
           const { list = [] } = await getQualityInspectionList(params);