Просмотр исходного кода

Merge branch 'master' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-qms into test

yusheng 7 месяцев назад
Родитель
Сommit
41a9ffa2f8
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      src/views/inspectionWork/edit.vue

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

@@ -347,6 +347,7 @@
 
       //
       calculate(list) {
+      
         if (list.length == 0) {
           this.form.sampleQuantity = 0;
           this.form.sampleWeight = 0;
@@ -416,6 +417,7 @@
             this.$set(this.form, 'qualifiedNumber', this.form.total);
             this.$set(this.form, 'noQualifiedNumber', 0);
           } else {
+      
             this.$set(this.form, 'qualificationRate', '0');
             this.$set(this.form, 'noQualificationRate', '100%');
             this.$set(this.form, 'qualityResults', 2);
@@ -466,6 +468,7 @@
         if (showArrange != '1') {
           return;
         }
+
         this.$set(
           this.form,
           'qualificationRate',
@@ -1494,10 +1497,10 @@
         this.activeName = '2';
         // *** 选完批量质检调用
         // this.countQualityResults();
-        this.$refs.baseInfoRefs.quantityCalculation(
-          'noQualifiedNumber',
-          'noSetSampleList'
-        );
+        // this.$refs.baseInfoRefs.quantityCalculation(
+        //   'noQualifiedNumber',
+        //   'noSetSampleList'
+        // );
         console.log('质检没有 2');
       },
       // 批量质检