yijing 1 год назад
Родитель
Сommit
9e3813c45b

+ 1 - 1
src/views/inspectionWork/components/QualityContentTabs.vue

@@ -71,7 +71,7 @@
               <span v-if="scope.row.qualityStatus == 2">待检</span>
             </template>
           </el-table-column>
-          <el-table-column label="质检结果" prop="qualityResults" align="center" width="110" fixed="right"
+          <el-table-column label="质检结果" prop="qualityResults" align="center" width="120" fixed="right"
             :show-overflow-tooltip="true">
             <template slot-scope="scope">
               <el-select v-model="scope.row.qualityResults" placeholder="请选择" style="width: 100%;"

+ 3 - 3
src/views/inspectionWork/components/baseInfo.vue

@@ -324,9 +324,9 @@ export default {
     },
     // 获取工序数据
     async getTaskList() {
-      if (!this.form.produceRoutingId) {
-        return;
-      }
+      // if (!this.form.produceRoutingId) {
+      //   return;
+      // }
       const res = await getProduceTaskList({
         isDetail: true,
         pageNum: 1,

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

@@ -510,9 +510,15 @@ export default {
         if (item.qualitySampleTemplateList.some(child => child.qualityResults === 2)) {
           item.isValid = false;
           item.qualityResults = 2;
-        } else {
-          item.isValid = true;
-          item.qualityResults = 1;
+        }
+        else {
+          if (item.qualitySampleTemplateList.some(child => child.qualityResults === 1)) {
+            item.isValid = true;
+            item.qualityResults = 1;
+          } else {
+            item.isValid = true;
+            item.qualityResults = 3;
+          }
         }
         item.qualityStatus = 1;
       })