fix(inspectionWork): 负数值归零处理
@@ -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(
@@ -605,6 +605,9 @@
) {
sampleQuantity = sampleQuantity - this.form[key];
}
+ if (this.form[key] < 0) {
+ this.form[key] = 0;
+ }
});
this.form.sampleNoQualificationRate =