From a12fe2456d6302a4cbb514dae99a432494e8a6a9 Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Sun, 7 Apr 2024 17:47:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=BA=93=E5=AD=98=E7=BC=96?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/libraryManage/inventory.js | 14 ++--- .../libraryManage/inventory/inventory.vue | 54 +++++++++++-------- 2 files changed, 38 insertions(+), 30 deletions(-) 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) }) },