|
|
|
@@ -16,7 +16,7 @@ import { Button, Stack } from "@mui/material"; |
|
|
|
import { BomCombo } from "@/app/api/bom"; |
|
|
|
import JoCreateFormModal from "./JoCreateFormModal"; |
|
|
|
import AddIcon from '@mui/icons-material/Add'; |
|
|
|
import QcStockInModal from "../PoDetail/QcStockInModal"; |
|
|
|
import QcStockInModal from "../Qc/QcStockInModal"; |
|
|
|
import { useSession } from "next-auth/react"; |
|
|
|
import { SessionWithTokens } from "@/config/authConfig"; |
|
|
|
import { createStockInLine } from "@/app/api/stockIn/actions"; |
|
|
|
@@ -25,17 +25,19 @@ import dayjs from "dayjs"; |
|
|
|
|
|
|
|
import { fetchInventories } from "@/app/api/inventory/actions"; |
|
|
|
import { InventoryResult } from "@/app/api/inventory"; |
|
|
|
import { PrinterCombo } from "@/app/api/settings/printer"; |
|
|
|
|
|
|
|
interface Props { |
|
|
|
defaultInputs: SearchJoResultRequest, |
|
|
|
bomCombo: BomCombo[] |
|
|
|
printerCombo: PrinterCombo[]; |
|
|
|
} |
|
|
|
|
|
|
|
type SearchQuery = Partial<Omit<JobOrder, "id">>; |
|
|
|
|
|
|
|
type SearchParamNames = keyof SearchQuery; |
|
|
|
|
|
|
|
const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => { |
|
|
|
const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo, printerCombo }) => { |
|
|
|
const { t } = useTranslation("jo"); |
|
|
|
const router = useRouter() |
|
|
|
const [filteredJos, setFilteredJos] = useState<JobOrder[]>([]); |
|
|
|
@@ -426,7 +428,7 @@ const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => { |
|
|
|
open={openModal} |
|
|
|
onClose={closeNewModal} |
|
|
|
inputDetail={modalInfo} |
|
|
|
printerCombo={[]} |
|
|
|
printerCombo={printerCombo} |
|
|
|
// skipQc={true} |
|
|
|
/> |
|
|
|
</> |
|
|
|
|