@@ -435,6 +435,11 @@ const [qcItems, setQcItems] = useState(dummyQCData) | |||||
// } | // } | ||||
try { | try { | ||||
setIsPrinting(() => true) | setIsPrinting(() => true) | ||||
if ((formProps.watch("putAwayLines") ?? []).filter((line) => /[^0-9]/.test(String(line.printQty))).length > 0) { //TODO Improve | |||||
alert("列印數量不正確!"); | |||||
return; | |||||
} | |||||
const data: PrintQrCodeForSilRequest = { | const data: PrintQrCodeForSilRequest = { | ||||
stockInLineId: itemDetail.id, | stockInLineId: itemDetail.id, | ||||
printerId: selectedPrinter.id, | printerId: selectedPrinter.id, | ||||
@@ -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": "已選擇貨品" | |||||
} | |||||
"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": "倉庫" | |||||
} |
@@ -139,6 +139,8 @@ | |||||
"Printing": "列印中", | "Printing": "列印中", | ||||
"rejectQty": "拒絕數量", | "rejectQty": "拒絕數量", | ||||
"QC decision is required": "請決定品檢結果", | "QC decision is required": "請決定品檢結果", | ||||
"Select All": "選擇全部採購單", | |||||
"View Selected": "查看已選擇採購單", | |||||
"No Option": "沒有選項", | "No Option": "沒有選項", | ||||
"receivedTotal": "已來貨總數" | "receivedTotal": "已來貨總數" | ||||
} | } |