diff --git a/src/api/libraryManage/inventory.js b/src/api/libraryManage/inventory.js index 9428587..55acbbd 100644 --- a/src/api/libraryManage/inventory.js +++ b/src/api/libraryManage/inventory.js @@ -27,15 +27,15 @@ export function add(data) { }); } -// 库内管理-补货-根据库别查询区域 -// export function listAreaByStorage(query) { -// return request({ -// url: `/wms/stock/common/listAreaByStorage/${query}`, -// method: "get", -// }); -// } // 库内管理-补货-根据库别查询区域 export function listAreaByStorage(query) { + return request({ + url: `/wms/stock/common/listAreaByStorage/${query}`, + method: "get", + }); +} +// 库内管理-补货-根据库别查询区域 +export function storageList1(query) { return request({ url: `/wms/storage/list`, method: "get", diff --git a/src/views/libraryManage/inventory/inventory.vue b/src/views/libraryManage/inventory/inventory.vue index 5241932..f2115bf 100644 --- a/src/views/libraryManage/inventory/inventory.vue +++ b/src/views/libraryManage/inventory/inventory.vue @@ -38,23 +38,6 @@ --> - - - - - - - + + + + + + + { + this.enterForm.storageId = res.data[0].id + + this.listAreaByStorage(this.enterForm.storageId) + }) }, async created() { this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this)) @@ -191,15 +199,15 @@ export default { // 根绝库别编号获得库区 selectStoId(val) { this.enterForm.areaId = '' - - if (val) { - this.listAreaByStorage(val) + if (this.enterForm.storageId) { + this.listAreaByStorage(this.enterForm.storageId) } }, // 库区 listAreaByStorage(val) { - listAreaByStorage().then((res) => { + listAreaByStorage(this.enterForm.storageId).then((res) => { this.areaIdhList = res.data + this.enterForm.areaId = 1 // console.log(this.areaIdhList) }) },