Quellcode durchsuchen

修改首件两检类型的判断

695593266@qq.com vor 6 Monaten
Ursprung
Commit
f2e6e3939f
1 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  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.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 == '首件两检'
             (item) => item.label == '首件两检'
           )?.value;
           )?.value;
+
+          if (this.isQualityInspection) {
+            this.where.type = name ? name : '';
+          }
         }
         }
       }
       }
     }
     }