diff --git a/src/app/api/settings/item/index.ts b/src/app/api/settings/item/index.ts index a51bc92..57caa39 100644 --- a/src/app/api/settings/item/index.ts +++ b/src/app/api/settings/item/index.ts @@ -28,6 +28,7 @@ export type ItemsResult = { qcChecks: ItemQc[] action?: any } + export type Result = { item: ItemsResult qcChecks: ItemQc[] diff --git a/src/components/RoughScheduleDetail/RoughScheudleDetailView.tsx b/src/components/RoughScheduleDetail/RoughScheudleDetailView.tsx index 960b5c1..4150515 100644 --- a/src/components/RoughScheduleDetail/RoughScheudleDetailView.tsx +++ b/src/components/RoughScheduleDetail/RoughScheudleDetailView.tsx @@ -19,8 +19,9 @@ import {Add, Check, Close, EditNote} from "@mui/icons-material"; import {ItemQc, ItemsResult} from "@/app/api/settings/item"; import { useGridApiRef } from "@mui/x-data-grid"; import ProductDetails from "@/components/CreateItem/ProductDetails"; -import QcDetails from "@/components/CreateItem/QcDetails"; import DetailInfoCard from "@/components/RoughScheduleDetail/DetailInfoCard"; +import ViewByFGDetails from "@/components/RoughScheduleDetail/ViewByFGDetails"; +import ViewByBomDetails from "@/components/RoughScheduleDetail/ViewByBomDetails"; type Props = { isEditMode: boolean; @@ -169,10 +170,8 @@ const RoughScheduleDetailView: React.FC = ({ {serverError} )} - {tabIndex === 0 && } - {tabIndex === 1 && } - {/* {type === TypeEnum.MATERIAL && } */} - {/* {type === TypeEnum.BYPRODUCT && } */} + {tabIndex === 0 && } + {tabIndex === 1 && }