| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-select |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择领用部门" |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | /> |
| | | <!-- <a-select |
| | | :placeholder="'请选择领用部门'" |
| | | :disabled="disableSubmit" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | /> |
| | | />--> |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | |
| | | data() { |
| | | return { |
| | | disabled:false, |
| | | treeData:[], |
| | | departs: [], |
| | | columns: [ |
| | | { |
| | |
| | | }, |
| | | url: { |
| | | add: "/spare/sparePartOutbound/add", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | edit: "/spare/sparePartOutbound/edit", |
| | | }, |
| | |
| | | }, |
| | | |
| | | created() { |
| | | this.getSysDeparts(); |
| | | }, |
| | | methods: { |
| | | getSysDeparts() { |
| | |
| | | that.form.resetFields(); |
| | | that.model = Object.assign({}, record); |
| | | that.visible = true; |
| | | that.initOptions() |
| | | that.warehouseId = record.warehouseId |
| | | if (record.sparePartOutboundDetailList != undefined) { |
| | | const temp = [...record.sparePartOutboundDetailList]; |
| | |
| | | this.codeDisable = false; |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |