From d6ed5a0ae32787fa24a933045c53b4640c02ee59 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 2 Apr 2025 11:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=97=A7=E4=BB=B6=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E6=9F=A5=E8=AF=A2=E3=80=81=E6=97=A7=E4=BB=B6=E5=87=BA?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storage/oldPartsInAndOutStorage/index.vue | 660 ++++++++---------- .../views/storage/oldPartsInvertory/index.vue | 22 +- 2 files changed, 305 insertions(+), 377 deletions(-) diff --git a/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue b/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue index f8e8f792c0..6a0f20bc84 100644 --- a/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue +++ b/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue @@ -1,7 +1,7 @@ diff --git a/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue b/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue index 679a21d80d..f8a4e60e7b 100644 --- a/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue +++ b/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue @@ -24,13 +24,13 @@ - + - + @@ -338,9 +338,12 @@ export default { }, warehouseNameSelect(val) { const choose = this.warehouseList.filter((item) => item.sid === val) - this.queryParams.params.warehouseName = choose[0].warehouseName - this.queryParams.params.warehouseSid = choose[0].sid - this.getWarehouseAreaList(choose[0].sid) + if (choose !== null && choose.length > 0) { + this.queryParams.params.warehouseName = choose[0].warehouseName + this.getWarehouseAreaList(choose[0].sid) + } else { + this.queryParams.params.warehouseName = '' + } }, getWarehouseAreaList(sid) { req.getWarehouseareas({ ckSid: sid }).then((res) => { @@ -351,9 +354,12 @@ export default { }, warehouseAreaNameSelect(val) { const choose = this.warehouseAreaList.filter((item) => item.sid === val) - this.queryParams.params.warehouseRackCode = choose[0].areaCode - this.queryParams.params.warehouseRackSid = choose[0].sid - this.getWareHouseCodeList(choose[0].sid) + if (choose !== null && choose.length > 0) { + this.queryParams.params.warehouseAreaName = choose[0].areaName + this.getWareHouseCodeList(choose[0].sid) + } else { + this.queryParams.params.warehouseAreaName = '' + } }, getWareHouseCodeList(sid) { req.getAllRackByKQSid({ kqSid: sid }).then((res) => {