From 605462cc331082679eb6396367e9bb948577fcb5 Mon Sep 17 00:00:00 2001 From: DXC Date: Fri, 24 Apr 2026 13:40:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E9=99=A4=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E7=9B=98=E7=82=B9=E5=BC=B9=E7=AA=97500=E6=9D=A1=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=B9=B6=E4=BF=AE=E5=A4=8D=E5=AD=97=E6=AE=B5=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory-web/src/views/stock/stocktake/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory-web/src/views/stock/stocktake/index.vue b/inventory-web/src/views/stock/stocktake/index.vue index 790666e..5042447 100644 --- a/inventory-web/src/views/stock/stocktake/index.vue +++ b/inventory-web/src/views/stock/stocktake/index.vue @@ -657,7 +657,7 @@ const resumeSession = async () => { const res: any = await request({ url: '/v1/inbound/stock/draft/list', method: 'get', - params: { page: 1, limit: 500 } // ★ 限制单次加载数量,防止内存溢出 + params: { page: 1, limit: 99999 } // ★ 获取全量草稿数据 }) const drafts = res && res.items ? res.items : [] @@ -985,7 +985,7 @@ const fetchInventoryList = async (silent = false) => { method: 'get', params: { page: 1, - limit: 500, // ★ 限制单次加载数量,防止内存溢出 + limit: 99999, // ★ 获取全量草稿数据 keyword: listKeyword.value, session_id: currentSessionId.value // ★ 必须传递 session_id 隔离会话 } @@ -1017,7 +1017,7 @@ const fetchInventoryList = async (silent = false) => { material_name: item.material_name, spec_model: item.spec_model, stock_qty: item.stock_qty, // 账面数(盲盘时隐藏) - quantity: draft?.quantity || 0, // 实盘数 + quantity: draft?.quantity ?? draft?.qty_actual ?? 0, // 兼容后端字段名 diff_qty: draft ? (draft.quantity - item.stock_qty) : -item.stock_qty, // 差异 remark: draft?.remark || '', warehouse_location: item.warehouse_location