"use client" import * as React from "react" import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import { Badge } from "@/components/ui/badge" import { VendorWithCbeFields } from "@/config/vendorCbeColumnsConfig" import { RfqItemsTable } from "./rfq-items-table/rfq-items-table" import { formatDateTime } from "@/lib/utils" import { CalendarClock } from "lucide-react" interface RfqDeailDialogProps { isOpen: boolean onOpenChange: (open: boolean) => void rfqId: number | null rfq: VendorWithCbeFields | null } export function RfqDeailDialog({ isOpen, onOpenChange, rfqId, rfq, }: RfqDeailDialogProps) { return (
프로젝트: {rfq && rfq.projectName}({rfq && rfq.projectCode}) / RFQ: {rfq && rfq.rfqCode} Detail {rfq && (
{rfq.rfqDescription && rfq.rfqDescription}
{/* 정보를 두 행으로 나누어 표시 */}
{/* 첫 번째 행: 상태 배지 */}
{rfq.rfqType && ( RFQ 유형: {rfq.rfqType} )} {rfq.vendorStatus && ( RFQ 상태: {rfq.rfqStatus} )}
{/* 두 번째 행: Due Date를 강조 표시 */} {rfq.rfqDueDate && (
Due Date: {formatDateTime(rfq.rfqDueDate)}
)}
)}
{rfqId && (
)}
) }