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>
This commit is contained in:
유병철
2026-02-02 16:46:52 +09:00
parent 1a69324d59
commit ca6247286a
28 changed files with 4195 additions and 1776 deletions

View File

@@ -0,0 +1,49 @@
'use client';
/**
* 제품검사성적서 모달
* DocumentViewer를 사용하여 문서 표시 + 인쇄/PDF 기능 제공
*/
import { Save } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { DocumentViewer } from '@/components/document-system';
import { InspectionReportDocument } from './InspectionReportDocument';
import type { InspectionReportDocument as InspectionReportDocumentType } from '../types';
interface InspectionReportModalProps {
open: boolean;
onOpenChange: (open: boolean) => void;
data: InspectionReportDocumentType | null;
onSave?: () => void;
}
export function InspectionReportModal({
open,
onOpenChange,
data,
onSave,
}: InspectionReportModalProps) {
if (!data) return null;
return (
<DocumentViewer
title="제품검사성적서"
preset="readonly"
open={open}
onOpenChange={onOpenChange}
pdfMeta={{
documentNumber: data.documentNumber,
createdDate: data.createdDate,
}}
toolbarExtra={
<Button onClick={onSave} size="sm">
<Save className="w-4 h-4 mr-1.5" />
</Button>
}
>
<InspectionReportDocument data={data} />
</DocumentViewer>
);
}