소스 검색

任务单处理中心:调整字段显示

chrislee 1 년 전
부모
커밋
8fded1d4fa
2개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 0
      src/views/modules/common/material-component.vue
  2. 1 1
      src/views/modules/production/scheduling-check.vue

+ 9 - 0
src/views/modules/common/material-component.vue

@@ -97,6 +97,15 @@
                   sourceCategory: '2'
                 })
               })
+            } else if (this.bizType === 'check') {
+              data.data.records.forEach(item => {
+                this.options.push({...item,
+                  label: item.materialName + ' - ' + item.specifications + ' - ' + item.cnt,
+                  value: item.materialId,
+                  specification: item.specifications,
+                  cntLimit: Number(item.cnt) - Number(item.lockCnt)
+                })
+              })
             } else {
               data.data.records.forEach(item => {
                 this.options.push({...item,

+ 1 - 1
src/views/modules/production/scheduling-check.vue

@@ -8,7 +8,7 @@
             <el-col :span="8">
               <el-form-item prop="materialId">
                 <label slot="label"><span style="color:red">*</span> 物品(零件)名称</label>
-                <material-component v-model="material" @materialSelected="materialSelected"/>
+                <material-component :biz-type="'check'" v-model="material" @materialSelected="materialSelected"/>
               </el-form-item>
             </el-col>
           </el-row>