Explorar o código

首件两检新增类型

695593266@qq.com hai 6 meses
pai
achega
028def2350
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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;
         this.loading = true;
 
 
         try {
         try {
-          const isSourceTask = this.type === 1;
+          const isSourceTask = this.type == 1;
 
 
           const params = {
           const params = {
             workOrderId: this.workOrder?.id,
             workOrderId: this.workOrder?.id,
@@ -214,7 +214,8 @@
               : this.produceTaskInfo?.id,
               : this.produceTaskInfo?.id,
             produceTaskInstanceId: isSourceTask
             produceTaskInstanceId: isSourceTask
               ? this.produceTaskInfo?.id
               ? this.produceTaskInfo?.id
-              : this.workOrder?.taskId
+              : this.workOrder?.taskId,
+            type: isSourceTask ? 2 : 1
           };
           };
 
 
           const { list = [] } = await getQualityInspectionList(params);
           const { list = [] } = await getQualityInspectionList(params);