CANCERYS\kw093 il y a 2 mois
Parent
révision
f58ca8144f
6 fichiers modifiés avec 25 ajouts et 8 suppressions
  1. +1
    -1
      src/components/RoughScheduleDetail/ViewByBomDetails.tsx
  2. +2
    -2
      src/components/SearchResults/EditableSearchResults.tsx
  3. +7
    -4
      src/components/SearchResults/TempInputGridForMockUp.tsx
  4. +4
    -0
      src/i18n/zh/home.json
  5. +8
    -1
      src/i18n/zh/project.json
  6. +3
    -0
      src/i18n/zh/schedule.json

+ 1
- 1
src/components/RoughScheduleDetail/ViewByBomDetails.tsx Voir le fichier

@@ -509,7 +509,7 @@ const ViewByBomDetails: React.FC<Props> = ({ apiRef, isEdit }) => {
}
},
],
[t]
[]
);

return (


+ 2
- 2
src/components/SearchResults/EditableSearchResults.tsx Voir le fichier

@@ -159,7 +159,7 @@ function EditableSearchResults<T extends ResultWithId>({
onClick={() => setOpen(!open)}
>
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
<Typography>View BoM</Typography>
<Typography>{t("View BoM")}</Typography>
</IconButton>
}
</>
@@ -184,7 +184,7 @@ function EditableSearchResults<T extends ResultWithId>({
onClick={() => setOpen(!open)}
>
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
<Typography>View BoM</Typography>
<Typography>{t("View BoM")}</Typography>
</IconButton>
}
</>


+ 7
- 4
src/components/SearchResults/TempInputGridForMockUp.tsx Voir le fichier

@@ -74,7 +74,7 @@ class ProcessRowUpdateError extends Error {
}

function TempInputGridForMockUp({ stockInLine }: Props) {
const { t } = useTranslation("home");
const { t } = useTranslation("schedule");
const apiRef = useGridApiRef();
const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({});
const getRowId = useCallback<GridRowIdGetter<StockInLineRow>>(
@@ -169,19 +169,22 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
() => [
{
field: "code",
headerName: t("Code"),
flex: 1,
},
{
field: "name",
headerName: t("Name"),
flex: 1,
},
{
field: "type",
headerName: t("type"),
flex: 1,
},
{
field: "inStockQty",
headerName: "Available Qty",
headerName: t("Available Qty"),
flex: 0.5,
type: "number",
editable: true,
@@ -194,7 +197,7 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
},
{
field: "purchaseQty",
headerName: "Demand Qty",
headerName: t("Demand Qty"),
flex: 0.5,
editable: true,
align: "right",
@@ -205,7 +208,7 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
},
{
field: "status",
headerName: "status",
headerName: t("status"),
flex: 0.5,
editable: true,
align: "center",


+ 4
- 0
src/i18n/zh/home.json Voir le fichier

@@ -0,0 +1,4 @@
{
"Demand Qty": "需求數量"
}

+ 8
- 1
src/i18n/zh/project.json Voir le fichier

@@ -4,5 +4,12 @@
"Release": "發佈",
"Actions": "動作",
"Product": "產品",
"Details": "詳情"
"Details": "詳情",
"View BoM": "查看 BoM"





}

+ 3
- 0
src/i18n/zh/schedule.json Voir le fichier

@@ -16,8 +16,11 @@
"Search": "搜尋",
"Reset": "重置",
"name": "名稱",
"Name": "名稱",
"type": "類型",
"code": "編號",
"Code": "編號",
"CODE": "編號",
"Product Count": "產品數量",
"Scheduled At": "排程時間",
"Demand Forecast Period": "需求預測期間",


Chargement…
Annuler
Enregistrer