Files
sam-react-prod/src/components/material/ReceivingManagement/SuccessDialog.tsx
byeongcheolryu f0e8e51d06 feat: 생산/품질/자재/출고/주문 관리 페이지 구현
- 생산관리: 대시보드, 작업지시, 작업실적, 작업자화면
- 품질관리: 검사관리 (리스트/등록/상세)
- 자재관리: 입고관리, 재고현황
- 출고관리: 출하관리 (리스트/등록/상세/수정)
- 주문관리: 수주관리, 생산의뢰
- 기존 컴포넌트 개선: CardTransactionInquiry, VendorDetail, QuoteRegistration
- IntegratedListTemplateV2 개선
- 공통 컴포넌트 분석 문서 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:13:07 +09:00

49 lines
1.5 KiB
TypeScript

'use client';
/**
* 성공 다이얼로그 (검사 등록 완료 / 입고 처리 완료)
*/
import { CheckCircle2 } from 'lucide-react';
import { Button } from '@/components/ui/button';
import {
Dialog,
DialogContent,
} from '@/components/ui/dialog';
interface Props {
open: boolean;
type: 'inspection' | 'receiving';
lotNo?: string;
onClose: () => void;
}
export function SuccessDialog({ open, type, lotNo, onClose }: Props) {
const title = type === 'inspection' ? '수입검사가 합격 처리되었습니다.' : '입고 처리가 완료되었습니다.';
const message = type === 'inspection'
? `LOT번호: ${lotNo}\n입고 처리가 완료되었습니다.`
: `LOT번호: ${lotNo}\n재고에 반영되었습니다.`;
return (
<Dialog open={open} onOpenChange={(newOpen) => !newOpen && onClose()}>
<DialogContent className="max-w-sm">
<div className="flex flex-col items-center text-center py-6 space-y-4">
<div className="w-16 h-16 rounded-full bg-green-100 flex items-center justify-center">
<CheckCircle2 className="w-10 h-10 text-green-600" />
</div>
<div className="space-y-2">
<h3 className="text-lg font-semibold">{title}</h3>
<div className="text-sm text-muted-foreground whitespace-pre-line">
{message}
</div>
</div>
<Button onClick={onClose} className="w-full mt-4">
</Button>
</div>
</DialogContent>
</Dialog>
);
}