|
@@ -146,18 +146,18 @@
|
|
|
<!-- >-->
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
|
<a-form-item
|
|
|
- label="项目:"
|
|
|
+ label="厂区"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-tree-select
|
|
|
- style="width: 100%"
|
|
|
- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
- :treeData="treeData"
|
|
|
- v-decorator="['projectId']"
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
- </a-tree-select>
|
|
|
+ <a-select v-model="tokenType" placeholder="请选择" @change="setTree">
|
|
|
+ <a-select-option
|
|
|
+ v-for="(label,value) in flagMap"
|
|
|
+ :key="value"
|
|
|
+ :label="label"
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
@@ -174,23 +174,20 @@
|
|
|
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
|
<a-form-item
|
|
|
- label="厂区"
|
|
|
+ label="项目:"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-select v-model="tokenType" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- :key="1"
|
|
|
- label="新厂"
|
|
|
- :value="1">新厂
|
|
|
- </a-select-option>
|
|
|
- <a-select-option
|
|
|
- :key="2"
|
|
|
- label="老厂"
|
|
|
- :value="2">老厂
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <a-tree-select
|
|
|
+ style="width: 100%"
|
|
|
+ :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
+ :treeData="treeData"
|
|
|
+ v-decorator="['projectId']"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ </a-tree-select>
|
|
|
</a-form-item>
|
|
|
+
|
|
|
<a-form-item
|
|
|
label="部门"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
@@ -301,6 +298,7 @@ export default {
|
|
|
sbPositionList: [],
|
|
|
feeFromMap: {},
|
|
|
lyDeptMap: {},
|
|
|
+ flagMap: {},
|
|
|
sdDeptMap: {},
|
|
|
storeId: null,
|
|
|
treeData: [],
|
|
@@ -396,6 +394,7 @@ export default {
|
|
|
this.feeFromMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.FEE_FORM_TYPE)
|
|
|
this.lyDeptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.DEPT_TYPE_LY)
|
|
|
this.sdDeptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.DEPT_TYPE_SD)
|
|
|
+ this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
|
|
|
console.log(this.lyDeptMap)
|
|
|
console.log(this.sdDeptMap)
|
|
|
this.deptYYMap = this.DictCache.getChildrenList(this.DictCache.TYPE.OUT_STORE_FORM_DEPT_CODE).map(item => {
|
|
@@ -466,8 +465,10 @@ export default {
|
|
|
})
|
|
|
this.data = record.detailList
|
|
|
},
|
|
|
- setTree (record = {}) {
|
|
|
- fetchSbTypeTree().then((res) => {
|
|
|
+ setTree () {
|
|
|
+ fetchSbTypeTree({
|
|
|
+ flag: this.tokenType
|
|
|
+ }).then((res) => {
|
|
|
this.treeData = res.data.map(item => {
|
|
|
item.selectable = item.children == null
|
|
|
return item
|