diff --git a/src/app/(main)/putAway/page.tsx b/src/app/(main)/putAway/page.tsx new file mode 100644 index 0000000..0f36748 --- /dev/null +++ b/src/app/(main)/putAway/page.tsx @@ -0,0 +1,40 @@ +// import { TypeEnum } from "@/app/utils/typeEnum"; +// import DetailedSchedule from "@/components/DetailedSchedule"; +// import { getServerI18n } from "@/i18n"; + +import PutAwayScan from "@/components/PutAwayScan"; +import { I18nProvider, getServerI18n } from "@/i18n"; +import Stack from "@mui/material/Stack"; +import Typography from "@mui/material/Typography"; +import { Metadata } from "next"; +import { Suspense } from "react"; + +export const metadata: Metadata = { + title: "Put Away", +}; + +const PutAway: React.FC = async () => { + const { t } = await getServerI18n("putAway"); + + return ( + <> + + + {t("Put Away")} + + + + }> + + + + + ); +}; + +export default PutAway; diff --git a/src/components/Breadcrumb/Breadcrumb.tsx b/src/components/Breadcrumb/Breadcrumb.tsx index 92c222d..f06168e 100644 --- a/src/components/Breadcrumb/Breadcrumb.tsx +++ b/src/components/Breadcrumb/Breadcrumb.tsx @@ -27,6 +27,7 @@ const pathToLabelMap: { [path: string]: string } = { "/dashboard": "dashboard", "/jo": "Job Order", "/jo/edit": "Edit Job Order", + "/putAway": "Put Away", }; const Breadcrumb = () => { diff --git a/src/components/NavigationContent/NavigationContent.tsx b/src/components/NavigationContent/NavigationContent.tsx index ce4e59a..d4b216e 100644 --- a/src/components/NavigationContent/NavigationContent.tsx +++ b/src/components/NavigationContent/NavigationContent.tsx @@ -79,6 +79,11 @@ const NavigationContent: React.FC = () => { label: "View item In-out And inventory Ledger", path: "/inventory", }, + { + icon: , + label: "Put Away Scan", + path: "/putAway", + }, ], }, // { diff --git a/src/components/PutAwayScan/PutAwayScan.tsx b/src/components/PutAwayScan/PutAwayScan.tsx new file mode 100644 index 0000000..e94dcd1 --- /dev/null +++ b/src/components/PutAwayScan/PutAwayScan.tsx @@ -0,0 +1,12 @@ +import React from "react"; + + +type Props = { + +}; + +const PutAwayScan: React.FC = ({} ) => { + return <> +} + +export default PutAwayScan; \ No newline at end of file diff --git a/src/components/PutAwayScan/PutAwayScanWrapper.tsx b/src/components/PutAwayScan/PutAwayScanWrapper.tsx new file mode 100644 index 0000000..3f11222 --- /dev/null +++ b/src/components/PutAwayScan/PutAwayScanWrapper.tsx @@ -0,0 +1,15 @@ +import React from "react"; +import GeneralLoading from "../General/GeneralLoading"; +import PutAwayScan from "./PutAwayScan"; + +interface SubComponents { + Loading: typeof GeneralLoading; +} + +const PutAwayScanWrapper: React.FC & SubComponents = async () => { + return +} + +PutAwayScanWrapper.Loading = GeneralLoading; + +export default PutAwayScanWrapper; \ No newline at end of file diff --git a/src/components/PutAwayScan/index.ts b/src/components/PutAwayScan/index.ts new file mode 100644 index 0000000..8d2e4fb --- /dev/null +++ b/src/components/PutAwayScan/index.ts @@ -0,0 +1 @@ +export { default } from "./PutAwayScanWrapper" \ No newline at end of file diff --git a/src/i18n/zh/common.json b/src/i18n/zh/common.json index 66be037..7b8250f 100644 --- a/src/i18n/zh/common.json +++ b/src/i18n/zh/common.json @@ -82,5 +82,7 @@ "mins": "分鐘", "Job Order": "工單", "Edit Job Order": "編輯工單", - "Production": "生產流程" + "Production": "生產流程", + "Put Away": "上架", + "Put Away Scan": "上架掃碼" } diff --git a/src/i18n/zh/putAway.json b/src/i18n/zh/putAway.json new file mode 100644 index 0000000..e62a81b --- /dev/null +++ b/src/i18n/zh/putAway.json @@ -0,0 +1,4 @@ +{ + "Put Away": "上架", + "Put Away Scan": "上架掃碼" +} \ No newline at end of file