Browse Source

update

master
cyril.tsui 4 weeks ago
parent
commit
d35d9ba35e
7 changed files with 19 additions and 10 deletions
  1. +2
    -2
      src/components/DetailedSchedule/DetailedScheduleSearchView.tsx
  2. +1
    -1
      src/components/DetailedScheduleDetail/ViewByFGDetails.tsx
  3. +2
    -2
      src/components/RoughScheduleDetail/ViewByBomDetails.tsx
  4. +2
    -2
      src/components/RoughScheduleDetail/ViewByFGDetails.tsx
  5. +1
    -1
      src/components/ScheduleTable/BomMaterialTable.tsx
  6. +4
    -1
      src/i18n/zh/common.json
  7. +7
    -1
      src/i18n/zh/schedule.json

+ 2
- 2
src/components/DetailedSchedule/DetailedScheduleSearchView.tsx View File

@@ -16,7 +16,7 @@ import {
import { defaultPagingController } from "../SearchResults/SearchResults";
import { arrayToDateString, arrayToDayjs, decimalFormatter } from "@/app/utils/formatUtil";
import dayjs from "dayjs";
import { orderBy, uniqBy } from "lodash";
import { orderBy, uniqBy, upperFirst } from "lodash";
import { Button, Stack } from "@mui/material";
import isToday from 'dayjs/plugin/isToday';
import useUploadContext from "../UploadProvider/useUploadContext";
@@ -145,7 +145,7 @@ const DSOverview: React.FC<Props> = ({ type, defaultInputs }) => {
name: "type",
label: t("Type"),
renderCell: (params) => {
return t(params.type);
return upperFirst(t(params.type));
},
},
// {


+ 1
- 1
src/components/DetailedScheduleDetail/ViewByFGDetails.tsx View File

@@ -170,7 +170,7 @@ const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit, type, onReleaseClick
},
{
field: "uomName",
label: t("UoM Name"),
label: t("UoM"),
type: "read-only",
style: {
textAlign: "left",


+ 2
- 2
src/components/RoughScheduleDetail/ViewByBomDetails.tsx View File

@@ -304,7 +304,7 @@ const ViewByBomDetails: React.FC<Props> = ({
},
{
field: "uomName",
label: t("UoM Name"),
label: t("UoM"),
type: "read-only",
style: {
textAlign: "left",
@@ -369,7 +369,7 @@ const ViewByBomDetails: React.FC<Props> = ({
},
{
field: "uomName",
label: t("UoM Name"),
label: t("UoM"),
type: "read-only",
style: {
textAlign: "left",


+ 2
- 2
src/components/RoughScheduleDetail/ViewByFGDetails.tsx View File

@@ -186,7 +186,7 @@ const ViewByFGDetails: React.FC<Props> = ({
},
{
field: "uomName",
label: t("UoM Name"),
label: t("UoM"),
type: "read-only",
style: {
textAlign: "left",
@@ -283,7 +283,7 @@ const ViewByFGDetails: React.FC<Props> = ({
},
{
field: "uomName",
label: t("UoM Name"),
label: t("UoM"),
type: "read-only",
style: {
textAlign: "left",


+ 1
- 1
src/components/ScheduleTable/BomMaterialTable.tsx View File

@@ -135,7 +135,7 @@ function BomMaterialTable({ bomMaterial }: Props) {
},
{
field: "uomName",
headerName: t("UoM Name"),
headerName: t("UoM"),
flex: 0.5,
align: "left",
headerAlign: "left",


+ 4
- 1
src/i18n/zh/common.json View File

@@ -71,7 +71,10 @@
"Exclude Date":"排除日期",
"Finished Goods Name":"成品名稱",
"create": "新增",

"hr": "小時",
"hrs": "小時",
"min": "分鐘",
"mins": "分鐘",
"Job Order": "工單",
"Production": "生產流程"
}

+ 7
- 1
src/i18n/zh/schedule.json View File

@@ -1,5 +1,6 @@
{ "Demand Forecast": "需求預測",
"Total Demand Qty": "總需求量",
"Total Job Orders": "總工單量",
"Demand Qty (Day1)": "需求數量(第 1 天)",
"Demand Qty (Day2)": "需求數量(第 2 天)",
"Demand Qty (Day3)": "需求數量(第 3 天)",
@@ -80,8 +81,13 @@
"Job Date": "工單日期",
"Job Qty": "工單數量",
"mat": "物料",
"UoM": "單位",
"Type": "類型",
"Test Detailed Schedule": "測試細排",
"Test Rough Schedule": "測試粗排",
"detailed": "細排",
"Detailed": "細排",
"Product Count(s)": "產品數量",
"Schedule Period To": "排程期間至",
"Overall": "總計",
"Back": "返回"
}

Loading…
Cancel
Save