| | |
| | | </div> |
| | | <a-tabs defaultActiveKey='1'> |
| | | <a-tab-pane tab='领用申请明细单' key='1'> |
| | | <spare-part-receive-deatil-list :mainId='sparesScrapDetailMainId' /> |
| | | <div |
| | | class='table-operator' |
| | | style='margin:-20px'> |
| | | <spare-part-receive-deatil-list :mainId='sparesScrapDetailMainId' /> |
| | | </div> |
| | | |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <spare-part-receive-modal ref='modalForm' @ok='modalFormOk' /> |
| | |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="'请选择领用部门'" |
| | | :options="this.departs" |
| | | :disabled="disableSubmit" |
| | | 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-item> |
| | |
| | | data() { |
| | | return { |
| | | departId:[], |
| | | treeData:[], |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | url: { |
| | | add: '/spare/sparePartCancellingStocks/add', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | edit: '/spare/sparePartCancellingStocks/edit' |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.getSysDeparts() |
| | | }, |
| | | |
| | | methods: { |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | | if (res.success) { |
| | |
| | | that.form.resetFields() |
| | | that.model = Object.assign({}, record) |
| | | that.visible = true |
| | | that.initOptions() |
| | | that.warehouseId = record.warehouseId |
| | | if (record.sparePartCancellingStocksDetailList != undefined) { |
| | | const temp = [...record.sparePartCancellingStocksDetailList] |
| | |
| | | :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; |
| | |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | <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="'请选择采购部门'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | /> |
| | | />--> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | treeData:[], |
| | | departs: [], |
| | | columns: [ |
| | | { |
| | |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | add: '/spare/sparePartPurchaseStorage/add', |
| | | edit: '/spare/sparePartPurchaseStorage/edit', |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | getSuppliers: '/spare/sparePartPurchaseStorageDeatil/getSuppliers', |
| | | getWarehouseAreas: '/spare/sparePartPurchaseStorageDeatil/getWarehouseAreas', |
| | | getWarehouseLocations: '/spare/sparePartPurchaseStorageDeatil/getWarehouseLocations', |
| | |
| | | }) |
| | | }, |
| | | |
| | | created() { |
| | | this.getSysDeparts(); |
| | | }, |
| | | created() {}, |
| | | methods: { |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | |
| | | that.form.resetFields() |
| | | that.model = Object.assign({}, record) |
| | | that.visible = true |
| | | that.initOptions(); |
| | | if (record.sparePartPurchaseStorageDeatilList != undefined) { |
| | | const temp = [...record.sparePartPurchaseStorageDeatilList] |
| | | that.dataSource = temp |
| | |
| | | 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 |
| | |
| | | </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 |
| | |
| | | v-model='model.departId' |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | />--> |
| | | <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> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | treeData:[], |
| | | departs:[], |
| | | bordered:true, |
| | | labelCol: { |
| | |
| | | add: '/spare/sparePartScrap/add', |
| | | edit: '/spare/sparePartScrap/edit', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | queryById: '/spare/sparePartScrap/queryById', |
| | | sparesScrapDetail: { |
| | | list: '/spare/sparePartScrap/querySparesScrapDetailByMainId' |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.getSysDeparts() |
| | | this.initOptions() |
| | | }, |
| | | methods: { |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | | if (res.success) { |
| | |
| | | v-model='model.departId' |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | />--> |
| | | <a-select |
| | | <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-select |
| | | :placeholder="'请选择申请部门'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | v-model='model.departId' |
| | | /> |
| | | />--> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | treeData:[], |
| | | bordered:true, |
| | | departs: [], |
| | | labelCol: { |
| | |
| | | add: '/spare/sparePartRequirement/add', |
| | | edit: '/spare/sparePartRequirement/edit', |
| | | queryById: '/spare/sparePartRequirement/queryById', |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | sparesScrapRequirementDetail: { |
| | | list: '/spare/sparePartRequirement/querySparesScrapRequirementDetailByMainId' |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.getSysDeparts() |
| | | this.initOptions() |
| | | }, |
| | | methods: { |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | | if (res.success) { |