From ce2ada7467bb82fa08963f78d33033d90e41cb4a Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 15 Apr 2025 17:03:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/views/storage/inventory/inventory.vue | 12 ++++++------ .../src/views/storage/inventory/inventoryRefer.vue | 12 ++++++------ .../sparePartsInventory/sparePartsInventory.vue | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/yxt-as-ui/src/views/storage/inventory/inventory.vue b/yxt-as-ui/src/views/storage/inventory/inventory.vue index 6ac680be13..b86b287d3b 100644 --- a/yxt-as-ui/src/views/storage/inventory/inventory.vue +++ b/yxt-as-ui/src/views/storage/inventory/inventory.vue @@ -303,6 +303,9 @@ export default { this.getList() }, selectWarehouseName(val) { + this.warehouseZoneList = [] + this.wareAreaList = [] + this.warehouseRackList = [] const choose = this.warehouseList.filter((item) => item.sid === val) if (choose !== null || choose.length > 0) { this.listQuery.params.warehouseName = choose[0].warehouseName @@ -313,9 +316,6 @@ export default { this.listQuery.params.wareZoneName = '' this.listQuery.params.wareAreaName = '' this.listQuery.params.warehouseRackCode = '' - this.warehouseZoneList = [] - this.wareAreaList = [] - this.warehouseRackList = [] }, getWarehouseZoneList(sid) { getAllWarehousezoneBysid({ ckSid: sid }).then((res) => { @@ -325,6 +325,8 @@ export default { }) }, selectWareZoneName(val) { + this.wareAreaList = [] + this.warehouseRackList = [] const choose = this.warehouseZoneList.filter((item) => item.sid === val) if (choose !== null && choose.length > 0) { this.listQuery.params.wareZoneName = choose[0].zoneName @@ -334,8 +336,6 @@ export default { } this.listQuery.params.wareAreaName = '' this.listQuery.params.warehouseRackCode = '' - this.wareAreaList = [] - this.warehouseRackList = [] }, getWareAreaList(sid) { getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => { @@ -345,6 +345,7 @@ export default { }) }, selectWareAreaName(val) { + this.warehouseRackList = [] const choose = this.wareAreaList.filter((item) => item.sid === val) if (choose !== null && choose.length > 0) { this.listQuery.params.wareAreaName = choose[0].areaName @@ -353,7 +354,6 @@ export default { this.listQuery.params.wareAreaName = '' } this.listQuery.params.warehouseRackCode = '' - this.warehouseRackList = [] }, getWarehouseRackList(sid) { getAllRackByKQSid({ kqSid: sid }).then((res) => { diff --git a/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue b/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue index d6ff2ed595..9623a01422 100644 --- a/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue +++ b/yxt-as-ui/src/views/storage/inventory/inventoryRefer.vue @@ -316,6 +316,9 @@ export default { this.getList() }, selectWarehouseName(val) { + this.warehouseZoneList = [] + this.wareAreaList = [] + this.warehouseRackList = [] const choose = this.warehouseList.filter((item) => item.sid === val) if (choose !== null || choose.length > 0) { this.listQuery.params.warehouseName = choose[0].warehouseName @@ -326,9 +329,6 @@ export default { this.listQuery.params.wareZoneName = '' this.listQuery.params.wareAreaName = '' this.listQuery.params.warehouseRackCode = '' - this.warehouseZoneList = [] - this.wareAreaList = [] - this.warehouseRackList = [] }, getWarehouseZoneList(sid) { getAllWarehousezoneBysid({ ckSid: sid }).then((res) => { @@ -338,6 +338,8 @@ export default { }) }, selectWareZoneName(val) { + this.wareAreaList = [] + this.warehouseRackList = [] const choose = this.warehouseZoneList.filter((item) => item.sid === val) if (choose !== null && choose.length > 0) { this.listQuery.params.wareZoneName = choose[0].zoneName @@ -347,8 +349,6 @@ export default { } this.listQuery.params.wareAreaName = '' this.listQuery.params.warehouseRackCode = '' - this.wareAreaList = [] - this.warehouseRackList = [] }, getWareAreaList(sid) { getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => { @@ -358,6 +358,7 @@ export default { }) }, selectWareAreaName(val) { + this.warehouseRackList = [] const choose = this.wareAreaList.filter((item) => item.sid === val) if (choose !== null && choose.length > 0) { this.listQuery.params.wareAreaName = choose[0].areaName @@ -366,7 +367,6 @@ export default { this.listQuery.params.wareAreaName = '' } this.listQuery.params.warehouseRackCode = '' - this.warehouseRackList = [] }, getWarehouseRackList(sid) { getAllRackByKQSid({ kqSid: sid }).then((res) => { diff --git a/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue b/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue index c65f15ff52..57fed03eb2 100644 --- a/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue +++ b/yxt-as-ui/src/views/storage/sparePartsInventory/sparePartsInventory.vue @@ -243,6 +243,9 @@ export default { this.getList() }, selectWarehouseName(val) { + this.warehouseZoneList = [] + this.wareAreaList = [] + this.warehouseRackList = [] const choose = this.warehouseList.filter((item) => item.sid === val) if (choose !== null || choose.length > 0) { this.listQuery.params.warehouseName = choose[0].warehouseName @@ -253,9 +256,6 @@ export default { this.listQuery.params.wareZoneName = '' this.listQuery.params.wareAreaName = '' this.listQuery.params.warehouseRackCode = '' - this.warehouseZoneList = [] - this.wareAreaList = [] - this.warehouseRackList = [] }, getWarehouseZoneList(sid) { getAllWarehousezoneBysid({ ckSid: sid }).then((res) => { @@ -265,6 +265,8 @@ export default { }) }, selectWareZoneName(val) { + this.wareAreaList = [] + this.warehouseRackList = [] const choose = this.warehouseZoneList.filter((item) => item.sid === val) if (choose !== null && choose.length > 0) { this.listQuery.params.wareZoneName = choose[0].zoneName @@ -274,8 +276,6 @@ export default { } this.listQuery.params.wareAreaName = '' this.listQuery.params.warehouseRackCode = '' - this.wareAreaList = [] - this.warehouseRackList = [] }, getWareAreaList(sid) { getAllWarehouseareaByZoneSid({ qySid: sid }).then((res) => { @@ -285,6 +285,7 @@ export default { }) }, selectWareAreaName(val) { + this.warehouseRackList = [] const choose = this.wareAreaList.filter((item) => item.sid === val) if (choose !== null && choose.length > 0) { this.listQuery.params.wareAreaName = choose[0].areaName @@ -293,7 +294,6 @@ export default { this.listQuery.params.wareAreaName = '' } this.listQuery.params.warehouseRackCode = '' - this.warehouseRackList = [] }, getWarehouseRackList(sid) { getAllRackByKQSid({ kqSid: sid }).then((res) => {