whj 2 years ago
parent
commit
74cb277cfa
2 changed files with 21 additions and 2 deletions
  1. 1 1
      src/utils/dict.js
  2. 20 1
      src/views/purchase/purchase-order-page/modules/BaseForm.vue

+ 1 - 1
src/utils/dict.js

@@ -323,7 +323,7 @@ DictCache.TYPE = {
   PARAMETER_TYPE: 'PARAMETER_TYPE',
   REPAIR_HOLIDAY: 'REPAIR_HOLIDAY', // 节假日列表
   // 筹建
-
+  LONG_YAN_PURCHASE_ORDER_PLAN_TYPE: 'LONG_YAN_PURCHASE_ORDER_PLAN_TYPE',
   PREPARATION_PARENT: 'PREPARATION_PARENT',
   // 隐患管理
   PROFESSOR_TYPE: 'PROFESSOR_TYPE',

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

@@ -36,7 +36,7 @@
               :labelCol="BaseTool.Constant.labelCol"
               :wrapperCol="BaseTool.Constant.wrapperCol"
             >
-              <a-select v-decorator="['type', { rules: [{required: true, message: '任务等级不能为空'}]}]" placeholder="请选择">
+              <a-select v-decorator="['type', { rules: [{required: true, message: '采购计划类型不能为空'}]}]" placeholder="请选择">
                 <a-select-option
                   v-for="(label,value) in typeMap"
                   :key="value"
@@ -46,6 +46,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="['cptcode', { rules: [{required: true, message: '采购类型不能为空'}]}]" placeholder="请选择">
+                <a-select-option
+                  v-for="(label,value) in cptcodeMap"
+                  :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="厂区"
@@ -229,6 +245,7 @@ export default {
       params: {},
       directorMap: [],
       infoNum: 0,
+      cptcodeMap: {},
       confirmLoading: false
     }
   },
@@ -236,6 +253,7 @@ export default {
   created () {
     this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
     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.setTree(1)
   },
   methods: {
@@ -257,6 +275,7 @@ export default {
           'oldOrNew',
           'projectId',
           'positionNo',
+          'cptcode',
           'remark'
         ])))
       })