whj 1 년 전
부모
커밋
6fe7c410f4
2개의 변경된 파일19개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      src/utils/dict.js
  2. 18 1
      src/views/purchase/purchase-order-page/modules/BaseForm.vue

+ 1 - 0
src/utils/dict.js

@@ -338,6 +338,7 @@ DictCache.TYPE = {
   DRAW_TYPE: 'DRAW_TYPE', // 领料方式
   SUPPLY_TYPE: 'SUPPLY_TYPE', // 供应类型
   YONG_YOU_DEPT: 'YONG_YOU_DEPT', // 部门
+  LONG_YAN_PURCHASE_BUSINESS_TYPE: 'LONG_YAN_PURCHASE_BUSINESS_TYPE', // 业务类型
   GROUP_TYPE: 'GROUP_TYPE' // 计量单位组类别
 }
 DictCache.CODE = {

+ 18 - 1
src/views/purchase/purchase-order-page/modules/BaseForm.vue

@@ -94,6 +94,22 @@
               </a-select>
             </a-form-item>
           </a-col>
+          <a-col :sm="20" >
+            <a-form-item
+              label="业务类型"
+              :labelCol="BaseTool.Constant.labelCol"
+              :wrapperCol="BaseTool.Constant.wrapperCol"
+            >
+              <a-select v-decorator="['cbustype', {rules: [{required: true, message: '业务类型不能为空'}]}]" placeholder="请选择">
+                <a-select-option
+                  v-for="(label,value) in cbustypeMap"
+                  :key="value"
+                  :label="label"
+                  :value="parseInt(value)">{{ label }}
+                </a-select-option>
+              </a-select>
+            </a-form-item>
+          </a-col>
           <a-col :sm="20" >
             <a-form-item
               label="项目"
@@ -263,6 +279,7 @@ export default {
       infoNum: 0,
       cptcodeMap: {},
       deptMap: {},
+      cbustypeMap: {},
       confirmLoading: false
     }
   },
@@ -272,7 +289,7 @@ export default {
     this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_TYPE)
     this.cptcodeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_ORDER_PLAN_TYPE)
     this.deptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YONG_YOU_DEPT)
-
+    this.cbustypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_BUSINESS_TYPE)
     this.setTree(1)
   },
   methods: {