| | |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='领用部门' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='departId'> |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="'请选择领用部门'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | v-model='model.departId' |
| | | />--> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择领用部门" |
| | | tree-default-expand-all |
| | | v-model='model.departId' |
| | | /> |
| | | </a-form-model-item> |
| | |
| | | return { |
| | | bordered:true, |
| | | departs: [], |
| | | treeData:[], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | |
| | | add: '/spare/sparePartReceive/add', |
| | | edit: '/spare/sparePartReceive/edit', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | sparesReceiveDetail: { |
| | | list: '/spare/sparePartReceive/querySparePartReceiveDeatilByMainId' |
| | | } |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.getSysDeparts(); |
| | | this.initOptions(); |
| | | }, |
| | | methods: { |
| | | getSysDeparts() { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | selectEquipmentList() { |
| | | let ids = [] |
| | | debugger |