Răsfoiți Sursa

下发不能勾选清单列表;工序字段修正

yijing 1 an în urmă
părinte
comite
8ac2f0cfca

+ 4 - 5
src/views/inspectionPlan/components/baseInfo.vue

@@ -156,8 +156,7 @@
         </el-col>
         <el-col :span="6">
           <el-form-item label="合格率:" prop="qualificationRate">
-            <el-input v-model="form.qualificationRate"
-              :disabled="btnType == 'detail' || btnType == 'issued'" />
+            <el-input v-model="form.qualificationRate" :disabled="btnType == 'detail' || btnType == 'issued'" />
           </el-form-item>
         </el-col>
         <el-col :span="6">
@@ -421,7 +420,7 @@ export default {
 
       this.form.planSourceCode = val.receiveNo;
       console.log(this.form.planSourceCode, 'this.form.planSourceCode')
-      
+
       this.form.supplierMark = val.supplierMark;
       this.form.productName = val.productName;
       this.form.productCode = val.productCode;
@@ -436,8 +435,8 @@ export default {
       this.form.totalWeight = val.totalWeight;
       this.form.sampleNumber = val.sampleNumber;
       this.form.inspectionStandards = val.inspectionStandards;
-      this.form.produceTaskName = val.produceTaskName;
-      this.form.produceTaskId = val.produceTaskId;
+      this.form.produceTaskName = val.taskName;
+      this.form.produceTaskId = val.taskId;
       this.form.productId = val.productId;
       let receiveNo = val.receiveNo;
       let categoryCode = val.productCode;

+ 2 - 2
src/views/inspectionPlan/components/edit.vue

@@ -244,7 +244,7 @@ export default {
 
     checkSelectable(row, index) {
       // 只有当质检方式为抽检(qualityMode=2)时才可选
-      return this.baseForm.qualityMode === 2;
+      return this.btnType != 'issued' || this.baseForm.qualityMode === 2;
     },
     async open(type, row) {
       this.activeName = '1';
@@ -500,7 +500,7 @@ export default {
         // console.log(this.sampleList, 'sampleList勾选列表')
         // this.samplePagination.currentPage = 1;
         // this.samplePagination.total = selection.length;
-        // this.baseForm.sampleNumber = selection.length;
+        this.baseForm.sampleNumber = selection.length;
       }
     },