From 4ee8b24cfadf47452807fa2af801385ed60ab47c Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 15 Sep 2025 14:41:01 +0000 Subject: (대표님) 작업사항 - rfqLast, tbeLast, pdfTron, userAuth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tbe-last/table/pr-items-dialog.tsx | 83 ++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 lib/tbe-last/table/pr-items-dialog.tsx (limited to 'lib/tbe-last/table/pr-items-dialog.tsx') diff --git a/lib/tbe-last/table/pr-items-dialog.tsx b/lib/tbe-last/table/pr-items-dialog.tsx new file mode 100644 index 00000000..780d4b5b --- /dev/null +++ b/lib/tbe-last/table/pr-items-dialog.tsx @@ -0,0 +1,83 @@ +// lib/tbe-last/table/dialogs/pr-items-dialog.tsx + +"use client" + +import * as React from "react" +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, + DialogDescription +} from "@/components/ui/dialog" +import { Badge } from "@/components/ui/badge" +import { formatDate } from "@/lib/utils" + +interface PrItemsDialogProps { + open: boolean + onOpenChange: (open: boolean) => void + sessionDetail: any + isLoading: boolean +} + +export function PrItemsDialog({ + open, + onOpenChange, + sessionDetail, + isLoading +}: PrItemsDialogProps) { + return ( + + + + PR Items + + Purchase Request items for this RFQ + + + {isLoading ? ( +
Loading...
+ ) : sessionDetail?.prItems ? ( +
+ + + + + + + + + + + + + + + {sessionDetail.prItems.map((item: any) => ( + + + + + + + + + + + ))} + +
PR NoMaterial CodeDescriptionSizeQtyUnitDeliveryMajor
{item.prNo}{item.materialCode}{item.materialDescription}{item.size || "-"}{item.quantity}{item.uom} + {item.deliveryDate ? formatDate(item.deliveryDate, "KR") : "-"} + + {item.majorYn && Major} +
+
+ ) : ( +
+ No PR items available +
+ )} +
+
+ ) +} \ No newline at end of file -- cgit v1.2.3