From f86a6f724ca48e0f0d4ae7901ecb8b4f81ff681e Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Fri, 29 Aug 2025 14:04:27 +0800 Subject: [PATCH] quick update --- .../PoDetail/QcStockInModalVer2.tsx | 5 +++ src/i18n/zh/inventory.json | 39 ++++++++++--------- src/i18n/zh/purchaseOrder.json | 2 + 3 files changed, 27 insertions(+), 19 deletions(-) diff --git a/src/components/PoDetail/QcStockInModalVer2.tsx b/src/components/PoDetail/QcStockInModalVer2.tsx index 502fd4f..352d6f8 100644 --- a/src/components/PoDetail/QcStockInModalVer2.tsx +++ b/src/components/PoDetail/QcStockInModalVer2.tsx @@ -435,6 +435,11 @@ const [qcItems, setQcItems] = useState(dummyQCData) // } try { setIsPrinting(() => true) + if ((formProps.watch("putAwayLines") ?? []).filter((line) => /[^0-9]/.test(String(line.printQty))).length > 0) { //TODO Improve + alert("列印數量不正確!"); + return; + } + const data: PrintQrCodeForSilRequest = { stockInLineId: itemDetail.id, printerId: selectedPrinter.id, diff --git a/src/i18n/zh/inventory.json b/src/i18n/zh/inventory.json index 14a30a8..1b8b029 100644 --- a/src/i18n/zh/inventory.json +++ b/src/i18n/zh/inventory.json @@ -1,20 +1,21 @@ { - "Inventory": "存貨", - "Code": "編號", - "Name": "名稱", - "Type": "類型", - "Status": "來貨狀態", - "Qty": "訂單數量", - "UoM": "單位", - "mat": "物料", - "fg": "成品", - "Available Qty": "可用數量", - "Sales UoM": "銷售單位", - "Stock UoM": "庫存單位", - "Available Qty Per Smallest Unit": "可用數量 (基本單位)", - "Base UoM": "基本單位", - "Lot No": "批號", - "Expiry Date": "到期日", - "No items are selected yet.": "未選擇貨品", - "Item selected": "已選擇貨品" -} \ No newline at end of file + "Inventory": "存貨", + "Code": "編號", + "Name": "名稱", + "Type": "類型", + "Status": "來貨狀態", + "Qty": "訂單數量", + "UoM": "單位", + "mat": "物料", + "fg": "成品", + "Available Qty": "可用數量", + "Sales UoM": "銷售單位", + "Stock UoM": "庫存單位", + "Available Qty Per Smallest Unit": "可用數量 (基本單位)", + "Base UoM": "基本單位", + "Lot No": "批號", + "Expiry Date": "到期日", + "No items are selected yet.": "未選擇貨品", + "Item selected": "已選擇貨品", + "Warehouse": "倉庫" +} diff --git a/src/i18n/zh/purchaseOrder.json b/src/i18n/zh/purchaseOrder.json index 80810b7..cb557f8 100644 --- a/src/i18n/zh/purchaseOrder.json +++ b/src/i18n/zh/purchaseOrder.json @@ -139,6 +139,8 @@ "Printing": "列印中", "rejectQty": "拒絕數量", "QC decision is required": "請決定品檢結果", + "Select All": "選擇全部採購單", + "View Selected": "查看已選擇採購單", "No Option": "沒有選項", "receivedTotal": "已來貨總數" }