@@ -16,7 +16,7 @@ import { | |||||
import { defaultPagingController } from "../SearchResults/SearchResults"; | import { defaultPagingController } from "../SearchResults/SearchResults"; | ||||
import { arrayToDateString, arrayToDayjs, decimalFormatter } from "@/app/utils/formatUtil"; | import { arrayToDateString, arrayToDayjs, decimalFormatter } from "@/app/utils/formatUtil"; | ||||
import dayjs from "dayjs"; | import dayjs from "dayjs"; | ||||
import { orderBy, uniqBy } from "lodash"; | |||||
import { orderBy, uniqBy, upperFirst } from "lodash"; | |||||
import { Button, Stack } from "@mui/material"; | import { Button, Stack } from "@mui/material"; | ||||
import isToday from 'dayjs/plugin/isToday'; | import isToday from 'dayjs/plugin/isToday'; | ||||
import useUploadContext from "../UploadProvider/useUploadContext"; | import useUploadContext from "../UploadProvider/useUploadContext"; | ||||
@@ -145,7 +145,7 @@ const DSOverview: React.FC<Props> = ({ type, defaultInputs }) => { | |||||
name: "type", | name: "type", | ||||
label: t("Type"), | label: t("Type"), | ||||
renderCell: (params) => { | renderCell: (params) => { | ||||
return t(params.type); | |||||
return upperFirst(t(params.type)); | |||||
}, | }, | ||||
}, | }, | ||||
// { | // { | ||||
@@ -170,7 +170,7 @@ const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit, type, onReleaseClick | |||||
}, | }, | ||||
{ | { | ||||
field: "uomName", | field: "uomName", | ||||
label: t("UoM Name"), | |||||
label: t("UoM"), | |||||
type: "read-only", | type: "read-only", | ||||
style: { | style: { | ||||
textAlign: "left", | textAlign: "left", | ||||
@@ -304,7 +304,7 @@ const ViewByBomDetails: React.FC<Props> = ({ | |||||
}, | }, | ||||
{ | { | ||||
field: "uomName", | field: "uomName", | ||||
label: t("UoM Name"), | |||||
label: t("UoM"), | |||||
type: "read-only", | type: "read-only", | ||||
style: { | style: { | ||||
textAlign: "left", | textAlign: "left", | ||||
@@ -369,7 +369,7 @@ const ViewByBomDetails: React.FC<Props> = ({ | |||||
}, | }, | ||||
{ | { | ||||
field: "uomName", | field: "uomName", | ||||
label: t("UoM Name"), | |||||
label: t("UoM"), | |||||
type: "read-only", | type: "read-only", | ||||
style: { | style: { | ||||
textAlign: "left", | textAlign: "left", | ||||
@@ -186,7 +186,7 @@ const ViewByFGDetails: React.FC<Props> = ({ | |||||
}, | }, | ||||
{ | { | ||||
field: "uomName", | field: "uomName", | ||||
label: t("UoM Name"), | |||||
label: t("UoM"), | |||||
type: "read-only", | type: "read-only", | ||||
style: { | style: { | ||||
textAlign: "left", | textAlign: "left", | ||||
@@ -283,7 +283,7 @@ const ViewByFGDetails: React.FC<Props> = ({ | |||||
}, | }, | ||||
{ | { | ||||
field: "uomName", | field: "uomName", | ||||
label: t("UoM Name"), | |||||
label: t("UoM"), | |||||
type: "read-only", | type: "read-only", | ||||
style: { | style: { | ||||
textAlign: "left", | textAlign: "left", | ||||
@@ -135,7 +135,7 @@ function BomMaterialTable({ bomMaterial }: Props) { | |||||
}, | }, | ||||
{ | { | ||||
field: "uomName", | field: "uomName", | ||||
headerName: t("UoM Name"), | |||||
headerName: t("UoM"), | |||||
flex: 0.5, | flex: 0.5, | ||||
align: "left", | align: "left", | ||||
headerAlign: "left", | headerAlign: "left", | ||||
@@ -71,7 +71,10 @@ | |||||
"Exclude Date":"排除日期", | "Exclude Date":"排除日期", | ||||
"Finished Goods Name":"成品名稱", | "Finished Goods Name":"成品名稱", | ||||
"create": "新增", | "create": "新增", | ||||
"hr": "小時", | |||||
"hrs": "小時", | |||||
"min": "分鐘", | |||||
"mins": "分鐘", | |||||
"Job Order": "工單", | "Job Order": "工單", | ||||
"Production": "生產流程" | "Production": "生產流程" | ||||
} | } |
@@ -1,5 +1,6 @@ | |||||
{ "Demand Forecast": "需求預測", | { "Demand Forecast": "需求預測", | ||||
"Total Demand Qty": "總需求量", | "Total Demand Qty": "總需求量", | ||||
"Total Job Orders": "總工單量", | |||||
"Demand Qty (Day1)": "需求數量(第 1 天)", | "Demand Qty (Day1)": "需求數量(第 1 天)", | ||||
"Demand Qty (Day2)": "需求數量(第 2 天)", | "Demand Qty (Day2)": "需求數量(第 2 天)", | ||||
"Demand Qty (Day3)": "需求數量(第 3 天)", | "Demand Qty (Day3)": "需求數量(第 3 天)", | ||||
@@ -80,8 +81,13 @@ | |||||
"Job Date": "工單日期", | "Job Date": "工單日期", | ||||
"Job Qty": "工單數量", | "Job Qty": "工單數量", | ||||
"mat": "物料", | "mat": "物料", | ||||
"UoM": "單位", | |||||
"Type": "類型", | |||||
"Test Detailed Schedule": "測試細排", | |||||
"Test Rough Schedule": "測試粗排", | |||||
"detailed": "細排", | |||||
"Detailed": "細排", | |||||
"Product Count(s)": "產品數量", | "Product Count(s)": "產品數量", | ||||
"Schedule Period To": "排程期間至", | |||||
"Overall": "總計", | "Overall": "總計", | ||||
"Back": "返回" | "Back": "返回" | ||||
} | } |