Files
sam-react-prod/src/components/quality/InspectionManagement/documents/InspectionRequestModal.tsx
유병철 ca6247286a feat(WEB): 수입검사 관리 대폭 개선, 캘린더 DayTimeView 추가 및 출고 기능 보완
- 수입검사: InspectionCreate/Detail/List 대폭 개선, OrderSelectModal/문서 컴포넌트 신규 추가
- 수입검사: actions/types/mockData/inspectionConfig 전면 리팩토링
- QMS: InspectionModalV2/ImportInspectionDocument 개선
- 캘린더: DayTimeView 신규 추가, CalendarHeader/ScheduleCalendar/utils 확장
- 출고: ShipmentDetail/List/actions 개선, ShipmentOrderDocument/ShippingSlip 수정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 16:46:52 +09:00

40 lines
977 B
TypeScript

'use client';
/**
* 제품검사요청서 모달
* DocumentViewer를 사용하여 문서 표시 + 인쇄/PDF 기능 제공
*/
import { DocumentViewer } from '@/components/document-system';
import { InspectionRequestDocument } from './InspectionRequestDocument';
import type { InspectionRequestDocument as InspectionRequestDocumentType } from '../types';
interface InspectionRequestModalProps {
open: boolean;
onOpenChange: (open: boolean) => void;
data: InspectionRequestDocumentType | null;
}
export function InspectionRequestModal({
open,
onOpenChange,
data,
}: InspectionRequestModalProps) {
if (!data) return null;
return (
<DocumentViewer
title="제품검사요청서"
preset="readonly"
open={open}
onOpenChange={onOpenChange}
pdfMeta={{
documentNumber: data.documentNumber,
createdDate: data.createdDate,
}}
>
<InspectionRequestDocument data={data} />
</DocumentViewer>
);
}