yusheng пре 7 месеци
родитељ
комит
323307dc4c

+ 3 - 1
src/views/inspectionWork/components/baseInfo.vue

@@ -537,7 +537,7 @@
       // *** 计算合格数 不合格数
       quantityCalculation(e, noSetSampleList) {
         console.log(this.form, '执行没有');
-        // return
+
         // return
         let qualifiedNumber = this.form.qualifiedNumber - 0;
         let noQualifiedNumber = this.form.noQualifiedNumber - 0;
@@ -549,6 +549,8 @@
           this.$message.warning('合格数与不合格数不能大于总数量');
           return;
         }
+        console.log(this.form[e],'this.form[e]')
+        return
 
         this.form[val] = this.form.total - this.form[e];
 

+ 6 - 4
src/views/inspectionWork/edit.vue

@@ -1439,13 +1439,15 @@
           item.qualityStatus = 1;
         });
         if (index != null) {
+          
           this.$set(this.sampleList, index, list[0]);
           // this.$set(this.sampleList, index, list[0]);
-          if (this.form.qualityMode == 1 && this.form.isUnpack == 2) {
-            this.activeName = '2';
+          // if (this.form.qualityMode == 1 && this.form.isUnpack == 2) {
+          //   this.activeName = '2';
+          //   this.countQualityResults();
+          //   return;
+          // }
             this.countQualityResults();
-            return;
-          }
         } else {
           this.$set(this, 'sampleList', list);