From 314293ced3ba9f7fe2cab42a658b593ec6e3f3bc Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 11 May 2026 14:10:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=88wms=EF=BC=89=EF=BC=9A=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20inventory=20=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/inventory/index/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/wms/inventory/index/index.vue b/src/views/wms/inventory/index/index.vue index e5d24355b..f70cfe56a 100644 --- a/src/views/wms/inventory/index/index.vue +++ b/src/views/wms/inventory/index/index.vue @@ -27,7 +27,7 @@ @change="handleWarehouseChange" /> - + { try { const data = await InventoryApi.getInventoryPage({ ...queryParams, - areaId: AREA_ENABLE ? queryParams.areaId : undefined, + areaId: isAreaQueryVisible.value ? queryParams.areaId : undefined, minQuantity: filterZero.value ? 1 : undefined }) list.value = data.list.map((item: InventoryVO) => ({ @@ -295,6 +295,11 @@ const handleWarehouseChange = () => { queryParams.areaId = undefined } +/** 是否展示库区搜索项 */ +const isAreaQueryVisible = computed(() => { + return AREA_ENABLE && queryParams.type !== INVENTORY_DIMENSION.WAREHOUSE +}) + /** 合并库存统计的维度单元格 */ const spanMethod = ({ column, rowIndex }: SpanMethodProps) => { const property = column.property