diff --git a/src/components/PickOrderSearch/WorkbenchPickExecution.tsx b/src/components/PickOrderSearch/WorkbenchPickExecution.tsx index fa9c0a4..db09547 100644 --- a/src/components/PickOrderSearch/WorkbenchPickExecution.tsx +++ b/src/components/PickOrderSearch/WorkbenchPickExecution.tsx @@ -573,6 +573,9 @@ const WorkbenchPickExecution: React.FC = ({ filterArgs }) => { const res = await workbenchScanPick({ stockOutLineId: row.stockOutLineId, lotNo: row.lotNo.trim(), + ...(Number.isFinite(Number(row.stockInLineId)) && Number(row.stockInLineId) > 0 + ? { stockInLineId: Number(row.stockInLineId) } + : {}), ...(typeof qtyValue === "number" && Number.isFinite(qtyValue) ? { qty: qtyValue } : {}), userId, }); @@ -765,7 +768,7 @@ const WorkbenchPickExecution: React.FC = ({ filterArgs }) => { ); const res = await workbenchScanPick({ stockOutLineId: workbenchLotLabelContextLot.stockOutLineId, - stockInLineId: inventoryLotLineId, + inventoryLotLineId, lotNo, ...(typeof qty === "number" && Number.isFinite(qty) ? { qty } diff --git a/src/i18n/zh/pickOrder.json b/src/i18n/zh/pickOrder.json index 1c5d458..7610a83 100644 --- a/src/i18n/zh/pickOrder.json +++ b/src/i18n/zh/pickOrder.json @@ -261,6 +261,7 @@ "Verified successfully!": "驗證成功!", "Cancel": "取消", "storing": "待品檢入倉", + "pick successful": "提料成功", "Scan": "掃描", "Scanned": "已掃描", "Loading data...": "正在載入數據...",