"use client" import * as React from "react" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" // 기본적인 RFQ 타입 정의 (rfq-table.tsx와 일치) interface TechSalesRfq { id: number rfqCode: string | null itemId: number itemName: string | null materialCode: string | null dueDate: Date rfqSendDate: Date | null status: "RFQ Created" | "RFQ Vendor Assignned" | "RFQ Sent" | "Quotation Analysis" | "Closed" picCode: string | null remark: string | null cancelReason: string | null createdAt: Date updatedAt: Date createdBy: number | null createdByName: string updatedBy: number | null updatedByName: string sentBy: number | null sentByName: string | null pspid: string projNm: string sector: string projMsrm: number ptypeNm: string attachmentCount: number quotationCount: number } interface ProjectDetailDialogProps { open: boolean onOpenChange: (open: boolean) => void selectedRfq: TechSalesRfq | null } export function ProjectDetailDialog({ open, onOpenChange, selectedRfq, }: ProjectDetailDialogProps) { if (!selectedRfq) { return null } return ( 프로젝트 상세정보 {selectedRfq.pspid}
RFQ: {selectedRfq.rfqCode || "미할당"} | 자재: {selectedRfq.materialCode || "N/A"}
{selectedRfq.projNm} - {selectedRfq.ptypeNm} ({selectedRfq.itemName || "자재명 없음"})
{/* 기본 프로젝트 정보 */}

기본 정보

프로젝트 ID
{selectedRfq.pspid}
프로젝트명
{selectedRfq.projNm}
선종
{selectedRfq.ptypeNm}
척수
{selectedRfq.projMsrm}
섹터
{selectedRfq.sector}
{/* 닫기 버튼 */}
) }