From 99400f68e2291628aae3d93b1a901a41ff80c570 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Wed, 24 Sep 2025 19:48:17 +0800 Subject: [PATCH] update --- .../FinishedGoodSearch/FinishedGoodSearch.tsx | 72 +++++++++++-------- .../GoodPickExecutiondetail.tsx | 27 +++++-- .../LotConfirmationModal.tsx | 4 +- src/i18n/zh/do.json | 4 +- src/i18n/zh/pickOrder.json | 17 ++++- 5 files changed, 82 insertions(+), 42 deletions(-) diff --git a/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx b/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx index f20f418..0d9087e 100644 --- a/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx +++ b/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx @@ -279,38 +279,50 @@ const PickOrderSearch: React.FC = ({ pickOrders }) => { overflow: 'auto' // Single scrollbar for the whole page }}> {/* Header section */} - - - - - - {t("Finished Good Order")} - - - - - - - + + + + + + + {t("Finished Good Order")} + + - + + + {/* First 4 buttons aligned left */} + + + + + + - + + + {/* Last 2 buttons aligned right */} + + + + + + + + + {/* Tabs section - ✅ Move the click handler here */} 0) { console.log(`✅ QR Code processing completed: ${successCount} updated/created`); setQrScanSuccess(true); + setQrScanError(false); setQrScanInput(''); // Clear input after successful processing - + setIsManualScanning(false); + stopScan(); + resetScan(); // ✅ Clear success state after a delay //setTimeout(() => { @@ -778,7 +791,9 @@ const [isConfirmingLot, setIsConfirmingLot] = useState(false); qty: selectedLotForQr.stockOutLineQty || 0 }); console.log("Stock out line updated successfully!"); - + setQrScanSuccess(true); + setQrScanError(false); + // Close modal setQrModalOpen(false); setSelectedLotForQr(null); @@ -1276,7 +1291,7 @@ const handleSubmitPickQtyWithQty = useCallback(async (lot: any, submitQty: numbe - {qrScanError && ( + {qrScanError && !qrScanSuccess && ( {t("QR code does not match any item in current orders.")} @@ -1444,6 +1459,7 @@ const handleSubmitPickQtyWithQty = useCallback(async (lot: any, submitQty: numbe {/* ✅ Status Messages Display - Move here, outside the table */} + {/* {paginatedData.length > 0 && ( {paginatedData.map((lot, index) => ( @@ -1455,6 +1471,7 @@ const handleSubmitPickQtyWithQty = useCallback(async (lot: any, submitQty: numbe ))} )} +*/} = ({ {t("If you proceed, the system will:")}
    -
  • {t("Update the stock out line to use the scanned lot")}
  • -
  • {t("Put the original suggested lot on hold")}
  • -
  • {t("Update inventory lot line for the new lot")}
  • +
  • {t("Update your suggested lot to the this scanned lot")}
diff --git a/src/i18n/zh/do.json b/src/i18n/zh/do.json index 2720aab..7873dae 100644 --- a/src/i18n/zh/do.json +++ b/src/i18n/zh/do.json @@ -40,6 +40,6 @@ "Edit": "編輯", "Delete": "刪除", "Release": "放單", - "Back": "返回" - + "Back": "返回", + "Edit Delivery Order Detail": "編輯交貨單詳情" } \ No newline at end of file diff --git a/src/i18n/zh/pickOrder.json b/src/i18n/zh/pickOrder.json index ee124f9..a814f08 100644 --- a/src/i18n/zh/pickOrder.json +++ b/src/i18n/zh/pickOrder.json @@ -262,7 +262,20 @@ "Stop QR Scan":"停止QR掃描", "Scanning...":"掃描中...", "Print DN/Label":"列印送貨單/標籤", - "Store ID":"店鋪編號", - "QR code does not match any item in current orders.":"QR 碼不符合當前訂單中的任何貨品。" + "Store ID":"儲存編號", + "QR code does not match any item in current orders.":"QR 碼不符合當前訂單中的任何貨品。", + "Lot Number Mismatch":"批次號碼不符", + "The scanned item matches the expected item, but the lot number is different. Do you want to proceed with this different lot?":"掃描的貨品與預期的貨品相同,但批次號碼不同。您是否要繼續使用不同的批次?", + "Expected Lot:":"預期批次:", + "Scanned Lot:":"掃描批次:", + "Confirm":"確認", + "Update your suggested lot to the this scanned lot":"更新您的建議批次為此掃描的批次", + "Print Draft":"列印草稿", + "Print Pick Order and DN Label":"列印提料單和送貨單標貼", + "Print Pick Order":"列印提料單", + "Print DN Label":"列印送貨單標貼" + + + } \ No newline at end of file