Bläddra i källkod

create new put away page

master
cyril.tsui 1 dag sedan
förälder
incheckning
62d9183b21
8 ändrade filer med 81 tillägg och 1 borttagningar
  1. +40
    -0
      src/app/(main)/putAway/page.tsx
  2. +1
    -0
      src/components/Breadcrumb/Breadcrumb.tsx
  3. +5
    -0
      src/components/NavigationContent/NavigationContent.tsx
  4. +12
    -0
      src/components/PutAwayScan/PutAwayScan.tsx
  5. +15
    -0
      src/components/PutAwayScan/PutAwayScanWrapper.tsx
  6. +1
    -0
      src/components/PutAwayScan/index.ts
  7. +3
    -1
      src/i18n/zh/common.json
  8. +4
    -0
      src/i18n/zh/putAway.json

+ 40
- 0
src/app/(main)/putAway/page.tsx Visa fil

@@ -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 (
<>
<Stack
direction="row"
justifyContent="space-between"
flexWrap="wrap"
rowGap={2}
>
<Typography variant="h4" marginInlineEnd={2}>
{t("Put Away")}
</Typography>
</Stack>
<I18nProvider namespaces={["putAway", "common"]}>
<Suspense fallback={<PutAwayScan.Loading />}>
<PutAwayScan />
</Suspense>
</I18nProvider>
</>
);
};

export default PutAway;

+ 1
- 0
src/components/Breadcrumb/Breadcrumb.tsx Visa fil

@@ -27,6 +27,7 @@ const pathToLabelMap: { [path: string]: string } = {
"/dashboard": "dashboard",
"/jo": "Job Order",
"/jo/edit": "Edit Job Order",
"/putAway": "Put Away",
};

const Breadcrumb = () => {


+ 5
- 0
src/components/NavigationContent/NavigationContent.tsx Visa fil

@@ -79,6 +79,11 @@ const NavigationContent: React.FC = () => {
label: "View item In-out And inventory Ledger",
path: "/inventory",
},
{
icon: <RequestQuote />,
label: "Put Away Scan",
path: "/putAway",
},
],
},
// {


+ 12
- 0
src/components/PutAwayScan/PutAwayScan.tsx Visa fil

@@ -0,0 +1,12 @@
import React from "react";


type Props = {

};

const PutAwayScan: React.FC<Props> = ({} ) => {
return <></>
}

export default PutAwayScan;

+ 15
- 0
src/components/PutAwayScan/PutAwayScanWrapper.tsx Visa fil

@@ -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 <PutAwayScan/>
}

PutAwayScanWrapper.Loading = GeneralLoading;

export default PutAwayScanWrapper;

+ 1
- 0
src/components/PutAwayScan/index.ts Visa fil

@@ -0,0 +1 @@
export { default } from "./PutAwayScanWrapper"

+ 3
- 1
src/i18n/zh/common.json Visa fil

@@ -82,5 +82,7 @@
"mins": "分鐘",
"Job Order": "工單",
"Edit Job Order": "編輯工單",
"Production": "生產流程"
"Production": "生產流程",
"Put Away": "上架",
"Put Away Scan": "上架掃碼"
}

+ 4
- 0
src/i18n/zh/putAway.json Visa fil

@@ -0,0 +1,4 @@
{
"Put Away": "上架",
"Put Away Scan": "上架掃碼"
}

Laddar…
Avbryt
Spara