Просмотр исходного кода

修改首件两检类型的判断

695593266@qq.com 6 месяцев назад
Родитель
Сommit
f2e6e3939f

+ 8 - 1
src/views/material/BOMmanage/qualityTesting/inspectionTemplate.vue

@@ -260,9 +260,16 @@
           });
           this.typeList = list;
 
-          this.where.type = this.typeList.find(
+          // this.where.type = this.typeList.find(
+          //   (item) => item.label == '首件两检'
+          // )?.value;
+          const name = this.typeList.find(
             (item) => item.label == '首件两检'
           )?.value;
+
+          if (this.isQualityInspection) {
+            this.where.type = name ? name : '';
+          }
         }
       }
     }