diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue index 2adcb75..44426e0 100644 --- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue +++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue @@ -96,7 +96,7 @@ - + + + + + + + + + @@ -196,6 +208,7 @@ import { getWorkCenterList, getSiteAndBuByUserName } from "@/api/orderIssure/soIssueNotify.js" +import { getWarehouseList } from "@/api/wms/wms" export default { data() { @@ -219,9 +232,11 @@ export default { componentPartNo: '', partDescription: '', spec: '', - workCenterNoList: [] + workCenterNoList: [], + warehouseIdList: [] }, workCenterList: [], + warehouseList: [], pageIndex: 1, pageSize: 50, totalPage: 0, @@ -336,6 +351,17 @@ export default { columnWidth: 120, showOverflowTooltip: true }, + { + columnProp: "warehouseName", + headerAlign: "center", + align: "left", + columnLabel: "出库仓库", + columnHidden: false, + columnSortable: false, + fixed: '', + columnWidth: 120, + showOverflowTooltip: true + }, { columnProp: "componentScrap", headerAlign: "center", @@ -413,6 +439,7 @@ export default { mounted() { this.calculateTableHeight(); window.addEventListener('resize', this.calculateTableHeight); + this.loadWarehouseList(); this.$nextTick(() => { this.getSiteAndBuByUserName() this.searchTable() @@ -451,7 +478,8 @@ export default { componentPartNo: '', partDescription: '', spec: '', - workCenterNoList: [] + workCenterNoList: [], + warehouseIdList: [] } this.pageIndex = 1 this.searchTable() @@ -480,6 +508,14 @@ export default { } }) }, + // 加载仓库列表 + loadWarehouseList() { + getWarehouseList({ userName: this.$store.state.user.name }).then(({data}) => { + if (data && data.code === 0) { + this.warehouseList = data.rows || [] + } + }) + }, // 每页数 sizeChangeHandle(val) { this.pageSize = val