فهرست منبع

fix(inspectionProjectReport): 添加默认处置类型逻辑,调整输入框禁用状态

xieyong 1 هفته پیش
والد
کامیت
83d335911c
1فایلهای تغییر یافته به همراه15 افزوده شده و 9 حذف شده
  1. 15 9
      src/views/inspectionWork/components/inspectionProjectReport.vue

+ 15 - 9
src/views/inspectionWork/components/inspectionProjectReport.vue

@@ -162,7 +162,7 @@
         <el-input
           v-model="row.lossNumber"
           placeholder="请输入"
-          :disabled="type == 'detail'"
+          :disabled="type == 'detail' || qms_defaultDisposalType"
           type="number"
           @input="inputValue('lossNumber', row, $index)"
           @click.native="curretNum = row.lossNumber"
@@ -174,7 +174,7 @@
         <el-input
           v-model="row.lossNumberUnqualified"
           placeholder="请输入"
-          :disabled="type == 'detail'"
+          :disabled="type == 'detail' || qms_defaultDisposalType"
           type="number"
           @input="inputValue('lossNumberUnqualified', row, $index)"
           @click.native="curretNum = row.lossNumberUnqualified"
@@ -314,6 +314,7 @@
         rowIndex: [],
         curretNum: 0,
         qms_qualityResultContent: 1,
+        qms_defaultDisposalType: false,
         workColumns: [
           {
             minWidth: 150,
@@ -336,13 +337,13 @@
             label: '检测工单名称',
             showOverflowTooltip: true
           },
-          {
-            minWidth: 150,
-            prop: 'qualityWorkOrderCode',
-            align: 'center',
-            label: '来源单号',
-            showOverflowTooltip: true
-          },
+          // {
+          //   minWidth: 150,
+          //   prop: 'qualityWorkOrderCode',
+          //   align: 'center',
+          //   label: '来源单号',
+          //   showOverflowTooltip: true
+          // },
           {
             minWidth: 100,
             prop: 'qualityType',
@@ -769,6 +770,11 @@
     },
 
     created() {
+      parameterGetByCode({
+        code: 'default_disposal_type'
+      }).then((res) => {
+        this.qms_defaultDisposalType = res?.value == 1 ? true : false;
+      });
       this.requestDict('质检计划类型');
       this.requestDict('取样类型');
       this.requestDict('质检标准类型');