|
@@ -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'
|
|
|
])))
|
|
|
})
|