diff --git a/src/api/libraryManage/inventory.js b/src/api/libraryManage/inventory.js index 586b051..9428587 100644 --- a/src/api/libraryManage/inventory.js +++ b/src/api/libraryManage/inventory.js @@ -27,11 +27,19 @@ 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}`, + url: `/wms/storage/list`, method: "get", + params:query }); } diff --git a/src/views/libraryManage/components/goods.vue b/src/views/libraryManage/components/goods.vue index a8e088f..0c3300f 100644 --- a/src/views/libraryManage/components/goods.vue +++ b/src/views/libraryManage/components/goods.vue @@ -252,6 +252,7 @@ export default { } queryGoodsAndLocation(obj) .then((res) => { + console.log(111) if (res.code === 200) { this.tableData = res.rows this.paging.total = res.total diff --git a/src/views/libraryManage/inventory/inventory.vue b/src/views/libraryManage/inventory/inventory.vue index c928d78..5241932 100644 --- a/src/views/libraryManage/inventory/inventory.vue +++ b/src/views/libraryManage/inventory/inventory.vue @@ -41,15 +41,15 @@ @@ -170,6 +170,7 @@ export default { mounted() { this.getBasicList() this.getBasicListsto() + this.listAreaByStorage() }, async created() { this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this)) @@ -190,14 +191,16 @@ export default { // 根绝库别编号获得库区 selectStoId(val) { this.enterForm.areaId = '' + if (val) { this.listAreaByStorage(val) } }, // 库区 listAreaByStorage(val) { - listAreaByStorage(val).then((res) => { + listAreaByStorage().then((res) => { this.areaIdhList = res.data + // console.log(this.areaIdhList) }) }, // 表格复选框选中 diff --git a/src/views/libraryManage/inventoryLock/apply/ProductLock.vue b/src/views/libraryManage/inventoryLock/apply/ProductLock.vue index 2819591..d49f75a 100644 --- a/src/views/libraryManage/inventoryLock/apply/ProductLock.vue +++ b/src/views/libraryManage/inventoryLock/apply/ProductLock.vue @@ -39,10 +39,6 @@ --> -
diff --git a/vue.config.js b/vue.config.js index 83c63d9..a92caae 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - // target: `http://127.0.0.1:8030`, - target: `http://192.168.0.110:8030`, + target: `http://127.0.0.1:8030`, + // target: `http://192.168.0.110:8030`, // target: `http://120.77.94.227:8030`, // target: `http://xiaowen.vaiwan.com`, changeOrigin: true,