yusheng 6 месяцев назад
Родитель
Сommit
68f662fe6a
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/views/inspectionWork/components/inspectionProjectReport.vue

+ 6 - 0
src/views/inspectionWork/components/inspectionProjectReport.vue

@@ -695,6 +695,7 @@
         if (type == 'report') {
           let data = { ...workData, ...row };
           data.sampleQuantity = row.sampleQuantity || data.remainingSampleCount;
+          data.sampleNoQualifiedNumber = row.sampleNoQualifiedNumber || 0;
           data.sampleQualifiedNumber =
             row.sampleQualifiedNumber ||
             data.sampleQuantity - data.sampleNoQualifiedNumber ||
@@ -717,6 +718,11 @@
           }
         } else {
           this.$set(this, 'form', JSON.parse(JSON.stringify(workData)));
+          this.$set(
+            this.form,
+            'sampleNoQualifiedNumber',
+            this.form.sampleNoQualifiedNumber || 0
+          );
           this.$set(
             this.form,
             'sampleQualifiedNumber',