From ebd39a09d4200d1c0f43bae2f5d33b6811b099ba Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Sat, 4 Jul 2026 21:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=9C=E8=B2=A8=20search=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/do/replenishmentTypes.ts | 1 + src/components/DoSearch/DoReplenishmentTab.tsx | 14 ++++++++++---- src/i18n/en/do.json | 1 + src/i18n/zh/do.json | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/app/api/do/replenishmentTypes.ts b/src/app/api/do/replenishmentTypes.ts index a2a0222..28669db 100644 --- a/src/app/api/do/replenishmentTypes.ts +++ b/src/app/api/do/replenishmentTypes.ts @@ -29,6 +29,7 @@ export interface DoReplenishmentRecord { targetDoEstimatedArrivalDate?: string; pickOrderLineId?: number; deliveryOrderPickOrderId?: number; + relateTicketNo?: string; status: string; reason?: string; created?: string; diff --git a/src/components/DoSearch/DoReplenishmentTab.tsx b/src/components/DoSearch/DoReplenishmentTab.tsx index 123a8d7..f5ce0f7 100644 --- a/src/components/DoSearch/DoReplenishmentTab.tsx +++ b/src/components/DoSearch/DoReplenishmentTab.tsx @@ -113,6 +113,7 @@ export type ReplenishmentRecord = ReplenishmentDraftRow & { targetDoEstimatedArrivalDate?: string; pickOrderLineId?: number; actualPickQty?: number; + relateTicketNo?: string; status: ReplenishmentStatus; created: string; }; @@ -209,6 +210,7 @@ function mapApiRecord(record: DoReplenishmentRecord): ReplenishmentRecord { record.actualPickQty != null && Number.isFinite(Number(record.actualPickQty)) ? Number(record.actualPickQty) : undefined, + relateTicketNo: record.relateTicketNo, status: record.status as ReplenishmentStatus, reason: record.reason, created: record.created ?? "", @@ -515,7 +517,7 @@ const DoReplenishmentTab: React.FC = () => { try { const searchRes = await fetchDoSearch( suffix, - "", + shop, "completed", "", "", @@ -1569,9 +1571,6 @@ const DoReplenishmentTab: React.FC = () => { {formatQtyWithUom(row.replenishQty, row.shortUom)} - - {formatQtyWithUom(row.actualPickQty, row.shortUom)} - {formatReplenishmentReason(row.reason, t)} @@ -1590,6 +1589,13 @@ const DoReplenishmentTab: React.FC = () => { : "—" } /> + + + {formatQtyWithUom(row.actualPickQty, row.shortUom)} +