Răsfoiți Sursa

fix(inspectionReport): 移除不合格数冗余赋值

fix(inspectionWork): 负数值归零处理
yusheng 2 zile în urmă
părinte
comite
d3fb8852b7

+ 0 - 5
src/views/inspectionReport/components/reportTemplateWrapper.vue

@@ -439,11 +439,6 @@
             'noQualifiedNumber',
             this.currentRow.noQualifiedNumber
           );
-          this.$set(
-            this.basicInfoData,
-            'noQualifiedNumber',
-            this.currentRow.noQualifiedNumber
-          );
 
           this.$set(this.basicInfoData, 'qualityWorkerId', this.currentRow.id);
           this.$set(

+ 3 - 0
src/views/inspectionWork/edit.vue

@@ -605,6 +605,9 @@
           ) {
             sampleQuantity = sampleQuantity - this.form[key];
           }
+          if (this.form[key] < 0) {
+            this.form[key] = 0;
+          }
         });
 
         this.form.sampleNoQualificationRate =