瀏覽代碼

修改首件两检类型的判断

695593266@qq.com 6 月之前
父節點
當前提交
f2e6e3939f
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/views/material/BOMmanage/qualityTesting/inspectionTemplate.vue

+ 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 : '';
+          }
         }
       }
     }