yusheng 1 semana atrás
pai
commit
430b9cb74f
1 arquivos alterados com 8 adições e 12 exclusões
  1. 8 12
      src/views/inspectionWork/edit.vue

+ 8 - 12
src/views/inspectionWork/edit.vue

@@ -595,7 +595,7 @@
                 Number(this.form.lossNumber || 0) >
               this.form.sampleQualifiedNumber
             ) {
-              this.form.retainedSampleUnqualified =
+              this.form.retainedSampleQuantity =
                 this.form.sampleQualifiedNumber - this.form.lossNumber;
             }
           }
@@ -605,17 +605,12 @@
             sampleQuantity = sampleQuantity - this.form[key];
           }
         });
-        console.log(
-          this.form.sampleNoQualificationRate,
-          'this.form.sampleNoQualificationRate'
-        );
 
         this.form.sampleNoQualificationRate =
-          (
-            (this.from.sampleNoQualifiedNumber / this.form.sampleQuantity) *
-            100
-          ).toFixed(2) + '%';
-
+          ((this.form.sampleNoQualifiedNumber / this.form.sampleQuantity) * 100).toFixed(
+            2
+          ) + '%';
+          
         this.form.sampleQualificationRate =
           (
             (this.form.sampleQualifiedNumber / this.form.sampleQuantity) *
@@ -1068,6 +1063,7 @@
         //   data.remainingSampleCount - data.sampleQuantity;
         this.form.taskMonadInfo = data;
         this.form.hours = data.hours;
+        this.getSampleQuantity()
         console.log(this.schemeList, 'this.schemeList');
       },
       // 切换检验方式为全检后生成样品
@@ -1304,8 +1300,8 @@
             this.form[key] =
               this.form[key] || this.getSampleQuantityYp(key) || 0;
           });
-        } else {
-          this.getSampleQuantity();
+        }else{
+          this.getSampleQuantity()
         }
         // this.getSampleQuantityYp()
       },