- 미사용 import/변수/console.log 대량 정리 (100+개 파일) - ItemMasterContext 간소화 (미사용 로직 제거) - IntegratedListTemplateV2 / UniversalListPage 개선 - 결재 컴포넌트(ApprovalBox, DraftBox, ReferenceBox) 정리 - HR 컴포넌트(급여/휴가/부서) 코드 간소화 - globals.css 스타일 정리 및 개선 - AuthenticatedLayout 개선 - middleware CSP 정리 - proxy route 불필요 로깅 제거 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
'use client';
|
|
|
|
/**
|
|
* 입고증 다이얼로그
|
|
*
|
|
* document-system 통합 버전 (2026-01-22)
|
|
*/
|
|
|
|
import { Download } from 'lucide-react';
|
|
import { Button } from '@/components/ui/button';
|
|
import { DocumentViewer } from '@/components/document-system';
|
|
import type { ReceivingDetail } from './types';
|
|
import { ReceivingReceiptContent } from './ReceivingReceiptContent';
|
|
|
|
interface Props {
|
|
open: boolean;
|
|
onOpenChange: (open: boolean) => void;
|
|
detail: ReceivingDetail;
|
|
}
|
|
|
|
export function ReceivingReceiptDialog({ open, onOpenChange, detail }: Props) {
|
|
const handleDownload = () => {
|
|
// TODO: PDF 다운로드 기능
|
|
};
|
|
|
|
const toolbarExtra = (
|
|
<Button variant="outline" size="sm" onClick={handleDownload}>
|
|
<Download className="w-4 h-4 mr-1" />
|
|
다운로드
|
|
</Button>
|
|
);
|
|
|
|
return (
|
|
<DocumentViewer
|
|
title="입고증"
|
|
subtitle={`${detail.supplier} (${detail.orderNo})`}
|
|
preset="inspection"
|
|
open={open}
|
|
onOpenChange={onOpenChange}
|
|
toolbarExtra={toolbarExtra}
|
|
>
|
|
<ReceivingReceiptContent data={detail} />
|
|
</DocumentViewer>
|
|
);
|
|
}
|