|
@@ -85,7 +85,7 @@
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
>
|
|
>
|
|
- <a-select v-decorator="['cestPlanMethod', {rules: [{required: true, message: '计划方法不能为空'}]}]">
|
|
|
|
|
|
+ <a-select v-decorator="['cestPlanMethod', {initialValue:'R', rules: [{required: true, message: '计划方法不能为空'}]}]">
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="(label,value) in planMap"
|
|
v-for="(label,value) in planMap"
|
|
:key="value"
|
|
:key="value"
|
|
@@ -101,7 +101,7 @@
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
>
|
|
>
|
|
- <a-select v-decorator="['cestSrpolicy', {rules: [{required: true, message: '供需政策不能为空'}]}]">
|
|
|
|
|
|
+ <a-select v-decorator="['cestSrpolicy', {initialValue:'PE', rules: [{required: true, message: '供需政策不能为空'}]}]">
|
|
<a-select-option
|
|
<a-select-option
|
|
v-for="(label,value) in policyMap"
|
|
v-for="(label,value) in policyMap"
|
|
:key="value"
|
|
:key="value"
|
|
@@ -127,22 +127,6 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</row-item>
|
|
</row-item>
|
|
- <row-item >
|
|
|
|
- <a-form-item
|
|
|
|
- label="需求跟踪方式"
|
|
|
|
- :labelCol="BaseTool.Constant.labelCol"
|
|
|
|
- :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
|
- >
|
|
|
|
- <a-select v-decorator="['cestIrequireTrackStyle', {rules: [{required: true, message: '需求跟踪方式不能为空'}]}]" placeholder="请选择">
|
|
|
|
- <a-select-option
|
|
|
|
- v-for="(label,value) in soMap"
|
|
|
|
- :key="value"
|
|
|
|
- :label="label"
|
|
|
|
- :value="parseInt(value)">{{ label }}
|
|
|
|
- </a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </row-item>
|
|
|
|
<row-item>
|
|
<row-item>
|
|
<a-form-item
|
|
<a-form-item
|
|
label="备注"
|
|
label="备注"
|
|
@@ -179,8 +163,7 @@ export default {
|
|
deptMap: {},
|
|
deptMap: {},
|
|
unitMap: {},
|
|
unitMap: {},
|
|
policyMap: {},
|
|
policyMap: {},
|
|
- planMap: {},
|
|
|
|
- soMap: {}
|
|
|
|
|
|
+ planMap: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
@@ -188,13 +171,19 @@ export default {
|
|
this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SPARE_ADD_UNIT)
|
|
this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SPARE_ADD_UNIT)
|
|
this.policyMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CSR_POLICY)
|
|
this.policyMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CSR_POLICY)
|
|
this.planMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PLAN_METHOD)
|
|
this.planMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PLAN_METHOD)
|
|
- this.soMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SO_TYPE)
|
|
|
|
getInventoryTree().then(res => {
|
|
getInventoryTree().then(res => {
|
|
// 循环获取样式
|
|
// 循环获取样式
|
|
- this.treeData = res.data
|
|
|
|
|
|
+ this.treeData = this.dealData(res.data)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ dealData (param) {
|
|
|
|
+ return param.map(item => ({
|
|
|
|
+ ...item,
|
|
|
|
+ disabled: !!item.children,
|
|
|
|
+ children: item.children ? this.dealData(item.children) : []
|
|
|
|
+ }))
|
|
|
|
+ },
|
|
base (record) {
|
|
base (record) {
|
|
this.visible = true
|
|
this.visible = true
|
|
// 如果是空标识添加
|
|
// 如果是空标识添加
|