From 4f374cdff91924b2be2ad2a295383b8e01b9ce31 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Wed, 27 May 2026 16:18:09 +0800 Subject: [PATCH] stock take batch save fix --- src/app/api/stockTake/actions.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/api/stockTake/actions.ts b/src/app/api/stockTake/actions.ts index 6192e73..f674efe 100644 --- a/src/app/api/stockTake/actions.ts +++ b/src/app/api/stockTake/actions.ts @@ -85,6 +85,7 @@ export const getInventoryLotDetailsBySection = async ( pageSize?: number, stockTakeRoundId?: number | null ) => { + /* console.log('🌐 [API] getInventoryLotDetailsBySection called with:', { stockTakeSection, stockTakeId, @@ -92,7 +93,7 @@ export const getInventoryLotDetailsBySection = async ( pageNum, pageSize }); - + */ const encodedSection = encodeURIComponent(stockTakeSection); let url = `${BASE_API_URL}/stockTakeRecord/inventoryLotDetailsBySection?stockTakeSection=${encodedSection}&pageNum=${pageNum}&pageSize=${pageSize}`; if (stockTakeId != null && stockTakeId > 0) { @@ -102,7 +103,7 @@ export const getInventoryLotDetailsBySection = async ( url += `&stockTakeRoundId=${stockTakeRoundId}`; } - console.log(' [API] Full URL:', url); + //console.log(' [API] Full URL:', url); const response = await serverFetchJson>( url, @@ -499,7 +500,8 @@ export interface BatchSaveApproverStockTakeAllRequest { export interface BatchSaveApproverStockTakeByIdsRequest { stockTakeId: number; approverId: number; - recordIds: number[]; + recordIds?: number[]; + records?: SaveApproverStockTakeRecordRequest[]; } export const saveApproverStockTakeRecord = async ( request: SaveApproverStockTakeRecordRequest,