| @@ -17,8 +17,8 @@ const pathToLabelMap: { [path: string]: string } = { | |||||
| "/settings/rss": "Demand Forecast Setting", | "/settings/rss": "Demand Forecast Setting", | ||||
| "/scheduling/rough": "Demand Forecast", | "/scheduling/rough": "Demand Forecast", | ||||
| "/scheduling/rough/edit": "FG & Material Demand Forecast Detail", | "/scheduling/rough/edit": "FG & Material Demand Forecast Detail", | ||||
| "/scheduling/detail": "Detail Scheduling", | |||||
| "/scheduling/detail/edit": "FG Production Schedule", | |||||
| "/scheduling/detailed": "Detail Scheduling", | |||||
| "/scheduling/detailed/edit": "FG Production Schedule", | |||||
| "/inventory": "Inventory", | "/inventory": "Inventory", | ||||
| "/settings/importTesting": "Import Testing", | "/settings/importTesting": "Import Testing", | ||||
| "/do": "Delivery Order", | "/do": "Delivery Order", | ||||
| @@ -144,17 +144,17 @@ const PickOrderDetail: React.FC<Props> = ({ consoCode, qc }) => { | |||||
| }, | }, | ||||
| { | { | ||||
| field: "itemName", | field: "itemName", | ||||
| headerName: "itemId", | |||||
| headerName: t("item"), | |||||
| flex: 1, | flex: 1, | ||||
| }, | }, | ||||
| { | { | ||||
| field: "qty", | field: "qty", | ||||
| headerName: "qty", | |||||
| headerName: t("qty"), | |||||
| flex: 1, | flex: 1, | ||||
| }, | }, | ||||
| { | { | ||||
| field: "uom", | field: "uom", | ||||
| headerName: "uom", | |||||
| headerName: t("uom"), | |||||
| flex: 1, | flex: 1, | ||||
| }, | }, | ||||
| // { | // { | ||||
| @@ -164,7 +164,7 @@ const PickOrderDetail: React.FC<Props> = ({ consoCode, qc }) => { | |||||
| // }, | // }, | ||||
| { | { | ||||
| field: "warehouse", | field: "warehouse", | ||||
| headerName: "location", | |||||
| headerName: t("location"), | |||||
| flex: 1, | flex: 1, | ||||
| renderCell: (params) => { | renderCell: (params) => { | ||||
| // console.log(params.row.warehouse) | // console.log(params.row.warehouse) | ||||
| @@ -181,7 +181,7 @@ const PickOrderDetail: React.FC<Props> = ({ consoCode, qc }) => { | |||||
| }, | }, | ||||
| { | { | ||||
| field: "suggestedLotNo", | field: "suggestedLotNo", | ||||
| headerName: "suggestedLotNo", | |||||
| headerName: t("suggestedLotNo"), | |||||
| flex: 1.2, | flex: 1.2, | ||||
| renderCell: (params) => { | renderCell: (params) => { | ||||
| return params.row.suggestedLotNo; | return params.row.suggestedLotNo; | ||||
| @@ -387,12 +387,12 @@ const PickOrderDetail: React.FC<Props> = ({ consoCode, qc }) => { | |||||
| () => [ | () => [ | ||||
| { | { | ||||
| field: "itemName", | field: "itemName", | ||||
| headerName: "item name", | |||||
| headerName: t("item name"), | |||||
| flex: 1, | flex: 1, | ||||
| }, | }, | ||||
| { | { | ||||
| field: "qty", | field: "qty", | ||||
| headerName: "qty", | |||||
| headerName: t("qty"), | |||||
| editable: true, | editable: true, | ||||
| flex: 1, | flex: 1, | ||||
| type: "number", | type: "number", | ||||
| @@ -416,7 +416,7 @@ const PickOrderDetail: React.FC<Props> = ({ consoCode, qc }) => { | |||||
| }, | }, | ||||
| { | { | ||||
| field: "lotNo", | field: "lotNo", | ||||
| headerName: "lotNo", | |||||
| headerName: t("lotNo"), | |||||
| flex: 1, | flex: 1, | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -60,7 +60,7 @@ const CreateForm: React.FC<Props> = ({ items }) => { | |||||
| const { | const { | ||||
| t, | t, | ||||
| i18n: { language }, | i18n: { language }, | ||||
| } = useTranslation("purchaseOrder"); | |||||
| } = useTranslation("pickOrder"); | |||||
| const apiRef = useGridApiRef(); | const apiRef = useGridApiRef(); | ||||
| const { | const { | ||||
| formState: { errors, defaultValues, touchedFields }, | formState: { errors, defaultValues, touchedFields }, | ||||
| @@ -68,6 +68,9 @@ | |||||
| "Cancel":"取消", | "Cancel":"取消", | ||||
| "Equipment Details":"設備詳情", | "Equipment Details":"設備詳情", | ||||
| "Exclude Date":"排除日期", | "Exclude Date":"排除日期", | ||||
| "Finished Goods Name":"成品名稱" | |||||
| "Finished Goods Name":"成品名稱", | |||||
| "create": "新增", | |||||
| "Job Order": "工單", | |||||
| "Production": "生產流程" | |||||
| } | } | ||||
| @@ -16,5 +16,6 @@ | |||||
| "Product Count": "產品數量", | "Product Count": "產品數量", | ||||
| "Schedule Period": "排程期間", | "Schedule Period": "排程期間", | ||||
| "Product": "產品", | "Product": "產品", | ||||
| "Details": "詳情" | |||||
| "Details": "詳情", | |||||
| "types": "類型" | |||||
| } | } | ||||
| @@ -107,5 +107,21 @@ | |||||
| "Released By": "發佈者", | "Released By": "發佈者", | ||||
| "Target Date From": "目標日期從", | "Target Date From": "目標日期從", | ||||
| "Target Date To": "目標日期到", | "Target Date To": "目標日期到", | ||||
| "Consolidate": "合併" | |||||
| "Consolidate": "合併", | |||||
| "create": "新增", | |||||
| "detail": "詳情", | |||||
| "Pick Order Detail": "提料單詳情", | |||||
| "item": "項目", | |||||
| "reset": "重置", | |||||
| "targetDate": "目標日期", | |||||
| "remove": "移除", | |||||
| "release": "發佈", | |||||
| "location": "位置", | |||||
| "suggestedLotNo": "建議批次", | |||||
| "lotNo": "批次", | |||||
| "item name": "項目名稱", | |||||
| "approval": "審核", | |||||
| "lot change": "批次變更", | |||||
| "checkout": "出庫" | |||||
| } | } | ||||