FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 regels
1.2 KiB

  1. import { preloadBomCombo } from "@/app/api/bom";
  2. import JodetailSearch from "@/components/Jodetail/JodetailSearch";
  3. import { I18nProvider, getServerI18n } from "@/i18n";
  4. import { Stack, Typography } from "@mui/material";
  5. import { Metadata } from "next";
  6. import React, { Suspense } from "react";
  7. import GeneralLoading from "@/components/General/GeneralLoading";
  8. import JodetailSearchWrapper from "@/components/Jodetail/FinishedGoodSearchWrapper";
  9. export const metadata: Metadata = {
  10. title: "Job Order Pickexcution"
  11. }
  12. const jo: React.FC = async () => {
  13. const { t } = await getServerI18n("jo");
  14. preloadBomCombo()
  15. return (
  16. <>
  17. <Stack
  18. direction="row"
  19. justifyContent="space-between"
  20. flexWrap="wrap"
  21. rowGap={2}
  22. >
  23. <Typography variant="h4" marginInlineEnd={2}>
  24. {t("Job Order Pickexcution")}
  25. </Typography>
  26. </Stack>
  27. <I18nProvider namespaces={["jo", "common", "pickOrder"]}>
  28. <Suspense fallback={<GeneralLoading />}>
  29. <JodetailSearchWrapper />
  30. </Suspense>
  31. </I18nProvider>
  32. </>
  33. )
  34. }
  35. export default jo;