summaryrefslogtreecommitdiff
path: root/lib/vendor-rfq-response/vendor-cbe-table/rfq-detail-dialog.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-rfq-response/vendor-cbe-table/rfq-detail-dialog.tsx')
-rw-r--r--lib/vendor-rfq-response/vendor-cbe-table/rfq-detail-dialog.tsx89
1 files changed, 0 insertions, 89 deletions
diff --git a/lib/vendor-rfq-response/vendor-cbe-table/rfq-detail-dialog.tsx b/lib/vendor-rfq-response/vendor-cbe-table/rfq-detail-dialog.tsx
deleted file mode 100644
index e9328641..00000000
--- a/lib/vendor-rfq-response/vendor-cbe-table/rfq-detail-dialog.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-"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 (
- <Dialog open={isOpen} onOpenChange={onOpenChange}>
- <DialogContent className="max-w-[90wv] sm:max-h-[80vh] overflow-auto" style={{ maxWidth: 1000, height: 480 }}>
- <DialogHeader>
- <div className="flex flex-col space-y-2">
- <DialogTitle>프로젝트: {rfq && rfq.projectName}({rfq && rfq.projectCode}) / RFQ: {rfq && rfq.rfqCode} Detail</DialogTitle>
- {rfq && (
- <div className="flex flex-col space-y-3 mt-2">
- <div className="text-sm text-muted-foreground">
- <span className="font-medium text-foreground">{rfq.rfqDescription && rfq.rfqDescription}</span>
- </div>
-
- {/* 정보를 두 행으로 나누어 표시 */}
- <div className="flex flex-col space-y-2 sm:space-y-0 sm:flex-row sm:justify-between sm:items-center">
- {/* 첫 번째 행: 상태 배지 */}
- <div className="flex items-center flex-wrap gap-2">
- {rfq.rfqType && (
- <Badge
- variant={
- rfq.rfqType === "BUDGETARY" ? "default" :
- rfq.rfqType === "PURCHASE" ? "destructive" :
- rfq.rfqType === "PURCHASE_BUDGETARY" ? "secondary" : "outline"
- }
- >
- RFQ 유형: {rfq.rfqType}
- </Badge>
- )}
-
-
- {rfq.vendorStatus && (
- <Badge variant="outline">
- RFQ 상태: {rfq.rfqStatus}
- </Badge>
- )}
-
- </div>
-
- {/* 두 번째 행: Due Date를 강조 표시 */}
- {rfq.rfqDueDate && (
- <div className="flex items-center">
- <Badge variant="secondary" className="flex gap-1 text-xs py-1 px-3">
- <CalendarClock className="h-3.5 w-3.5" />
- <span className="font-semibold">Due Date:</span>
- <span>{formatDateTime(rfq.rfqDueDate)}</span>
- </Badge>
- </div>
- )}
- </div>
- </div>
- )}
- </div>
- </DialogHeader>
- {rfqId && (
- <div className="py-4">
- <RfqItemsTable rfqId={rfqId} />
- </div>
- )}
- </DialogContent>
- </Dialog>
- )
-} \ No newline at end of file