From 14f61e24947fb92dd71ec0a7196a6e815f8e66da Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 21 Jul 2025 07:54:26 +0000 Subject: (최겸)기술영업 RFQ 담당자 초대, 요구사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/techsales-rfq/table/project-detail-dialog.tsx | 238 +++++++++++----------- 1 file changed, 119 insertions(+), 119 deletions(-) (limited to 'lib/techsales-rfq/table/project-detail-dialog.tsx') diff --git a/lib/techsales-rfq/table/project-detail-dialog.tsx b/lib/techsales-rfq/table/project-detail-dialog.tsx index 68f13960..00202501 100644 --- a/lib/techsales-rfq/table/project-detail-dialog.tsx +++ b/lib/techsales-rfq/table/project-detail-dialog.tsx @@ -1,120 +1,120 @@ -"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}
-
-
-
-
- - {/* 닫기 버튼 */} -
-
- -
-
-
-
- ) +"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}
+
+
+
+
+ + {/* 닫기 버튼 */} +
+
+ +
+
+
+
+ ) } \ No newline at end of file -- cgit v1.2.3