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) => {