Files
sam-react-prod/src/components/production/WorkerScreen/WorkCompletionResultDialog.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

85 lines
2.8 KiB
TypeScript

'use client';
/**
* 작업 완료 결과 다이얼로그
*
* 스크린샷 기준:
* - ✅ 작업이 완료되었습니다
* - 🔲 제품검사LOT: KD-SA-251223-01
* - ✅ 제품검사(FQC)가 자동 생성되었습니다.
* - [품질관리 > 제품검사]에서 검사를 진행하세요.
*/
import { CheckSquare, Square } from 'lucide-react';
import {
AlertDialog,
AlertDialogAction,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
} from '@/components/ui/alert-dialog';
interface WorkCompletionResultDialogProps {
open: boolean;
onOpenChange: (open: boolean) => void;
lotNo: string;
onConfirm: () => void;
}
export function WorkCompletionResultDialog({
open,
onOpenChange,
lotNo,
onConfirm,
}: WorkCompletionResultDialogProps) {
const handleConfirm = () => {
onConfirm();
onOpenChange(false);
};
return (
<AlertDialog open={open} onOpenChange={onOpenChange}>
<AlertDialogContent className="bg-zinc-900 text-white border-zinc-700">
<AlertDialogHeader>
<AlertDialogTitle className="sr-only"> </AlertDialogTitle>
<AlertDialogDescription asChild>
<div className="space-y-3 text-white">
{/* ✅ 작업이 완료되었습니다 */}
<div className="flex items-center gap-2">
<CheckSquare className="h-5 w-5 text-green-500 fill-green-500" />
<span className="text-base"> .</span>
</div>
{/* 🔲 제품검사LOT */}
<div className="flex items-center gap-2">
<Square className="h-5 w-5 text-zinc-500" />
<span className="text-base text-zinc-400">LOT: {lotNo}</span>
</div>
{/* ✅ 제품검사(FQC)가 자동 생성되었습니다 */}
<div className="flex items-center gap-2">
<CheckSquare className="h-5 w-5 text-green-500 fill-green-500" />
<span className="text-base">(FQC) .</span>
</div>
{/* 안내 메시지 */}
<p className="text-sm text-zinc-400 pl-7">
[ &gt; ] .
</p>
</div>
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter className="flex justify-center sm:justify-center">
<AlertDialogAction
onClick={handleConfirm}
className="bg-pink-200 hover:bg-pink-300 text-zinc-900 font-medium px-8"
>
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
);
}