From 2f7419207bfc5d5429acea70036930eb26bceaab Mon Sep 17 00:00:00 2001 From: Harry Groves Date: Wed, 30 Sep 2026 15:11:11 +0800 Subject: [PATCH] Remove hardcoded placeholders and codes --- src/app/(main)/laserPrint/page.tsx | 4 +- src/app/(main)/m18Syn/page.tsx | 4 +- src/app/(main)/ps/page.tsx | 6 +- .../report/AsyncItemCodeAutocomplete.tsx | 2 +- src/app/(main)/report/ItemQcReportFilters.tsx | 2 +- src/app/(main)/report/page.tsx | 4 +- src/app/(main)/report/reportCategories.ts | 2 +- src/app/(main)/testing/page.tsx | 11 +- src/app/api/bagPrint/actions.ts | 6 +- src/components/BagPrint/BagPrintSearch.tsx | 48 +- .../DeliveryOrderFloorSettings.tsx | 4 +- .../DetailScheduleDetail/ViewByFGDetails.tsx | 1894 +---------- .../DetailedScheduleDetail/TempRecords.tsx | 1890 +---------- .../LaserPrint/LaserPrintSearch.tsx | 36 +- src/components/PoDetail/PutAwayForm.tsx | 4 +- .../detailsGrid/poWorkbenchDetailsGridMock.ts | 63 +- .../ProductionProcessDetail.tsx | 4 +- .../RoughScheduleDetail/TempRecords.tsx | 2922 +---------------- src/config/reportConfig.ts | 106 +- src/i18n/en/deliveryOrderFloor.json | 12 +- src/i18n/en/m18Sync.json | 4 +- src/i18n/en/report.json | 40 +- src/i18n/zh/deliveryOrderFloor.json | 12 +- src/i18n/zh/laserPrint.json | 2 +- src/i18n/zh/m18Sync.json | 4 +- src/i18n/zh/navigation.json | 4 +- src/i18n/zh/report.json | 40 +- 27 files changed, 255 insertions(+), 6875 deletions(-) diff --git a/src/app/(main)/laserPrint/page.tsx b/src/app/(main)/laserPrint/page.tsx index aa01a1d7..38ad70fb 100644 --- a/src/app/(main)/laserPrint/page.tsx +++ b/src/app/(main)/laserPrint/page.tsx @@ -4,7 +4,7 @@ import LaserPrintSearch from "@/components/LaserPrint/LaserPrintSearch"; import { Stack, Typography } from "@mui/material"; export const metadata: Metadata = { - title: "檸檬機(激光機)", + title: "激光機", }; export default async function LaserPrintPage() { @@ -12,7 +12,7 @@ export default async function LaserPrintPage() { - 檸檬機(激光機) + 激光機 diff --git a/src/app/(main)/m18Syn/page.tsx b/src/app/(main)/m18Syn/page.tsx index 8a84520d..c0b68266 100644 --- a/src/app/(main)/m18Syn/page.tsx +++ b/src/app/(main)/m18Syn/page.tsx @@ -318,7 +318,7 @@ export default function M18SynPage() { label="PO Code" value={m18PoCode} onChange={(e) => setM18PoCode(e.target.value)} - placeholder="e.g. PFP002PO26030341" + placeholder="e.g. DEMO-PO-001" sx={{ minWidth: 320 }} /> {canSeeOnPackAdmin && ( )} @@ -903,8 +911,8 @@ const BagPrintSearch: React.FC = () => { {jo.itemCode || "—"} - {juiceExpiryOk ? : null} - {lemonOk ? : null} + {juiceExpiryOk ? : null} + {lemonOk ? : null} @@ -1086,17 +1094,17 @@ const BagPrintSearch: React.FC = () => { > - 汁水機({expiryCodes.length}) + OnPack QR({expiryCodes.length}) - 「下載 OnPack 汁水機(含到期日)」只用此清單。名稱印在 Product 行,過長可改短後按儲存。 + 「下載 OnPack QR(含到期日)」只用此清單。名稱印在 Product 行,過長可改短後按儲存。 點欄位標題可排序;冷藏/-18/列印第一次點擊會把「未設」排到最前。 setExpiryCodeInput(e.target.value)} onKeyDown={(e) => { @@ -1216,7 +1224,7 @@ const BagPrintSearch: React.FC = () => { onChange={(e) => setNameDrafts((prev) => ({ ...prev, [row.itemCode]: e.target.value })) } - placeholder={row.defaultPrintName || "例如 豬肉水(1包X2千克)"} + placeholder={row.defaultPrintName || "例如 鄉村麵包"} inputProps={{ maxLength: 255 }} fullWidth /> @@ -1292,7 +1300,7 @@ const BagPrintSearch: React.FC = () => { )} - 檸檬機到期日 ZIP 品號稍後加入。 + 激光機到期日 ZIP 品號稍後加入。 diff --git a/src/components/DeliveryOrderFloorSettings/DeliveryOrderFloorSettings.tsx b/src/components/DeliveryOrderFloorSettings/DeliveryOrderFloorSettings.tsx index 2ffb8f94..0d06fe13 100644 --- a/src/components/DeliveryOrderFloorSettings/DeliveryOrderFloorSettings.tsx +++ b/src/components/DeliveryOrderFloorSettings/DeliveryOrderFloorSettings.tsx @@ -358,8 +358,8 @@ const DeliveryOrderFloorSettings: React.FC = () => { onChange={onFloorSelectChange} disabled={dialogSaving || comboLoading} > - 2F - 4F + 2/F + 4/F