From 28dcc1f48064ee85a8fe610f9ce5df373b3749a9 Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Fri, 19 Sep 2025 10:18:51 +0800 Subject: [PATCH] update --- .../FinishedGoodSearch/FinishedGoodSearch.tsx | 4 +-- .../GoodPickExecutiondetail.tsx | 29 +++++++++++++++++-- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx b/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx index 3c065f5..1376646 100644 --- a/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx +++ b/src/components/FinishedGoodSearch/FinishedGoodSearch.tsx @@ -297,14 +297,14 @@ const PickOrderSearch: React.FC = ({ pickOrders }) => { onClick={() => handleAssignByStore("2/F")} disabled={isAssigning} > - {isAssigning ? t("Assigning pick order...") : t("Assign & Release 2/F")} + {isAssigning ? t("Assigning pick order...") : t("Pick Execution 2/F")} diff --git a/src/components/FinishedGoodSearch/GoodPickExecutiondetail.tsx b/src/components/FinishedGoodSearch/GoodPickExecutiondetail.tsx index 4f41f70..36b24c5 100644 --- a/src/components/FinishedGoodSearch/GoodPickExecutiondetail.tsx +++ b/src/components/FinishedGoodSearch/GoodPickExecutiondetail.tsx @@ -934,7 +934,7 @@ const PickExecution: React.FC = ({ filterArgs }) => { return ( - + {/* Search Box */} {/* @@ -966,7 +966,30 @@ const PickExecution: React.FC = ({ filterArgs }) => { */} - + + {/* DO Header */} + {fgPickOrdersLoading ? ( + + + + ) : ( + fgPickOrders.length > 0 && ( + + + + {t("Shop Name")}: {fgPickOrders[0].shopName || '-'} + + + {t("Delivery Date")}: {(fgPickOrders[0].deliveryDate || '-').split('T')[0]} + + + {t("Departure Time")}: {fgPickOrders[0].DepartureTime || '-'} + + + + ) + )} + {/* Combined Lot Table */} @@ -1052,7 +1075,7 @@ const PickExecution: React.FC = ({ filterArgs }) => { {/* ✅ QR Scan Button if not scanned, otherwise show TextField + Issue button */} - {!lot.stockOutLineId ? ( + {lot.stockOutLineStatus?.toLowerCase() === 'pending' ? (