From de600815e15124be106782e086929686d1c6b421 Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Wed, 23 Aug 2023 21:23:30 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicdata/basicdataGoodsAllocation.js | 2 +- src/api/basicdata/basicdataGoodsShelfView.ts | 12 +- .../goodsShelf/basicdataGoodsShelf.vue | 53 +++---- .../goodsShelf/basicdataGoodsShelfView.vue | 5 +- .../warehouse/tray/basicdataTrayedt.vue | 139 +----------------- 5 files changed, 46 insertions(+), 165 deletions(-) diff --git a/src/api/basicdata/basicdataGoodsAllocation.js b/src/api/basicdata/basicdataGoodsAllocation.js index de7ce74a..7d8157ef 100644 --- a/src/api/basicdata/basicdataGoodsAllocation.js +++ b/src/api/basicdata/basicdataGoodsAllocation.js @@ -51,7 +51,7 @@ export const add = (row) => { export const update = (row) => { return request({ - url: '/api/logpm-basicdata/goodsAllocation/update', + url: '/api/logpm-warehouse/goodsAllocation/update', method: 'post', data: row }) diff --git a/src/api/basicdata/basicdataGoodsShelfView.ts b/src/api/basicdata/basicdataGoodsShelfView.ts index 0ab62554..4a6ca74e 100644 --- a/src/api/basicdata/basicdataGoodsShelfView.ts +++ b/src/api/basicdata/basicdataGoodsShelfView.ts @@ -28,17 +28,17 @@ export function getstoreCargo(params): Promise>{ return request({ - url: '/api/logpm-basicdata/goodsAllocation/update', + url: '/api/logpm-warehouse/warehouseGoodsAllocation/update', method: 'post', data }) } -/** +/** * 货位统计数据 */ export function Alloclocationsnub(): Promise>{ @@ -47,7 +47,7 @@ export function Alloclocationsnub(): Promise>{ @@ -57,7 +57,7 @@ export function geturl(name,params): Promise>{ @@ -66,4 +66,4 @@ export function posturl(name,data): Promise - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + 搜 索 清 空 @@ -618,9 +618,10 @@ export default { this.goodsShelfStatusData = res.data.data; }); getGoodsAreaNodeList().then(res=>{ + const data = this.formatCascaderData(res.data.data); + console.log("data>>>>>>>>>>>>>>",data); + this.optioner = data - const data = res.data.data - this.optioner = this.formatCascaderData(data); console.log(">>>>>>>>>>>>>>>>optioner",this.optioner); }) @@ -636,7 +637,7 @@ export default { for (var i = 0; i < data.length; i++) { if (null==data[i].children ||data[i].children.length < 1) { // children若为空数组,则将children设为undefined - delete data[i].children; + delete data[i].leaf; } else { // children若不为空数组,则继续 递归调用 本方法 this.formatCascaderData(data[i].children) diff --git a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue index b68bb287..c0e71898 100644 --- a/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue +++ b/src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue @@ -1,3 +1,6 @@ + + +