Преглед на файлове

修改批量质检不合格处置不了到不良品

695593266@qq.com преди 8 месеца
родител
ревизия
0b11880e0f
променени са 1 файла, в които са добавени 4 реда и са изтрити 6 реда
  1. 4 6
      src/views/produce/components/jobBooking/components/oneJobQualityBomPL.vue

+ 4 - 6
src/views/produce/components/jobBooking/components/oneJobQualityBomPL.vue

@@ -271,7 +271,7 @@
                 placeholder="请选择"
                 style="width: 160px"
                 :disabled="isDetails"
-                @change="changeQuality(row.extInfo.appearance, row)"
+                @change="changeQuality(row.extInfo.appearance, row, $index)"
               >
                 <el-option
                   v-for="item in qualityList"
@@ -593,13 +593,14 @@
         this.list.splice(idx, 1);
       },
 
-      changeQuality(type, item) {
-        // console.log(type, item, '质检结果');
+      changeQuality(type, item, index) {
+        this.$set(this.item.sampleQuality[index].extInfo, 'isQualified', type);
         if (type == 1) {
           item.extInfo.notType = '';
           item.extInfo.notReason = '';
         }
         this.qualityChange();
+        this.$forceUpdate();
       },
 
       qualityChange() {
@@ -633,9 +634,6 @@
             }
           });
 
-          console.log(formedWeightCount, '合格品重量');
-          console.log(notFormedWeightCount, '不合格品重量');
-
           this.$set(this.item.workReportInfo, 'formedNum', formedNum);
           this.$set(this.item.workReportInfo, 'notFormedNum', notFormedNum);
           this.$set(