From 987520fa47c2552de21b77b468c4ab61c7556417 Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Tue, 29 Jul 2025 17:58:39 +0800 Subject: [PATCH] update --- src/components/RoughScheduleDetail/ViewByFGDetails.tsx | 3 +++ src/components/ScheduleTable/BomMaterialTable.tsx | 8 ++++---- src/i18n/zh/common.json | 5 +++++ src/i18n/zh/schedule.json | 5 +++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/RoughScheduleDetail/ViewByFGDetails.tsx b/src/components/RoughScheduleDetail/ViewByFGDetails.tsx index 060e4b5..2132fb9 100644 --- a/src/components/RoughScheduleDetail/ViewByFGDetails.tsx +++ b/src/components/RoughScheduleDetail/ViewByFGDetails.tsx @@ -154,6 +154,9 @@ const ViewByFGDetails: React.FC = ({ label: t("type"), type: "read-only", // editable: true, + renderCell: (row) => { + return t(row.type) + } }, { field: "availableQty", diff --git a/src/components/ScheduleTable/BomMaterialTable.tsx b/src/components/ScheduleTable/BomMaterialTable.tsx index 503480d..89e0825 100644 --- a/src/components/ScheduleTable/BomMaterialTable.tsx +++ b/src/components/ScheduleTable/BomMaterialTable.tsx @@ -112,7 +112,7 @@ function BomMaterialTable({ bomMaterial }: Props) { { field: "availableQty", headerName: t("Available Qty"), - flex: 0.5, + flex: 1, type: "number", // editable: true, align: "right", @@ -125,7 +125,7 @@ function BomMaterialTable({ bomMaterial }: Props) { { field: "demandQty", headerName: t("Demand Qty"), - flex: 0.5, + flex: 1, // editable: true, align: "right", headerAlign: "right", @@ -136,7 +136,7 @@ function BomMaterialTable({ bomMaterial }: Props) { { field: "uomName", headerName: t("UoM"), - flex: 0.5, + flex: 1, align: "left", headerAlign: "left", renderCell: (row) => { @@ -146,7 +146,7 @@ function BomMaterialTable({ bomMaterial }: Props) { { field: "status", headerName: t("status"), - flex: 0.5, + flex: 0.7, // editable: true, align: "center", headerAlign: "center", diff --git a/src/i18n/zh/common.json b/src/i18n/zh/common.json index 2955f14..1838fd1 100644 --- a/src/i18n/zh/common.json +++ b/src/i18n/zh/common.json @@ -36,6 +36,11 @@ "Product":"產品", "Material":"材料", "mat":"原料", + "consumables": "消耗品", + "non-consumables": "非消耗品", + "fg": "成品", + "sfg": "半成品", + "item": "物品", "FG":"成品", "FG & Material Demand Forecast Detail":"成品及材料需求預測詳情", "View item In-out And inventory Ledger":"查看物料出入庫及庫存日誌", diff --git a/src/i18n/zh/schedule.json b/src/i18n/zh/schedule.json index 4626dde..d5432b2 100644 --- a/src/i18n/zh/schedule.json +++ b/src/i18n/zh/schedule.json @@ -81,6 +81,11 @@ "Job Date": "工單日期", "Job Qty": "工單數量", "mat": "物料", + "consumables": "消耗品", + "non-consumables": "非消耗品", + "fg": "成品", + "sfg": "半成品", + "item": "物品", "UoM": "單位", "Type": "類型", "Test Detailed Schedule": "測試細排",