| @@ -161,6 +161,10 @@ const ItemsSearch: React.FC<Props> = ({ items }) => { | |||||
| name: "type", | name: "type", | ||||
| label: t("Type"), | label: t("Type"), | ||||
| sx: { width: 120 }, | sx: { width: 120 }, | ||||
| renderCell: (item) => { | |||||
| const typeKey = item.type?.toString().toLowerCase(); | |||||
| return <span>{t(typeKey) || item.type}</span>; | |||||
| }, | |||||
| }, | }, | ||||
| { | { | ||||
| name: "status", | name: "status", | ||||
| @@ -41,6 +41,11 @@ | |||||
| "Special Type": "Special Type", | "Special Type": "Special Type", | ||||
| "Status": "Status", | "Status": "Status", | ||||
| "Type": "Type", | "Type": "Type", | ||||
| "fg": "FG", | |||||
| "wip": "WIP", | |||||
| "mat": "MAT", | |||||
| "cmb": "CMB", | |||||
| "nm": "NM", | |||||
| "code": "code", | "code": "code", | ||||
| "countryOfOrigin": "countryOfOrigin", | "countryOfOrigin": "countryOfOrigin", | ||||
| "description": "description", | "description": "description", | ||||
| @@ -41,6 +41,11 @@ | |||||
| "isEgg": "雞蛋", | "isEgg": "雞蛋", | ||||
| "isFee": "費用", | "isFee": "費用", | ||||
| "isBag": "袋子", | "isBag": "袋子", | ||||
| "fg": "成品", | |||||
| "wip": "半成品", | |||||
| "mat": "材料", | |||||
| "cmb": "合併", | |||||
| "nm": "非物料", | |||||
| "Back": "返回", | "Back": "返回", | ||||
| "Status": "狀態", | "Status": "狀態", | ||||
| "Complete": "完成", | "Complete": "完成", | ||||
| @@ -75,7 +75,7 @@ | |||||
| "nav.settings.importExcel": "Excel 匯入", | "nav.settings.importExcel": "Excel 匯入", | ||||
| "nav.settings.importTesting": "匯入測試", | "nav.settings.importTesting": "匯入測試", | ||||
| "nav.settings.items": "物品", | "nav.settings.items": "物品", | ||||
| "nav.settings.masterDataIssues": "數據問題", | |||||
| "nav.settings.masterDataIssues": "BOM / 物料單位問題", | |||||
| "nav.settings.priceInquiry": "價格查詢", | "nav.settings.priceInquiry": "價格查詢", | ||||
| "nav.settings.printer": "列印機", | "nav.settings.printer": "列印機", | ||||
| "nav.settings.qcCategory": "QC 品檢模板", | "nav.settings.qcCategory": "QC 品檢模板", | ||||