From c5002d77087b256599b174ada611621657fcc523 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Sun, 15 Jun 2025 04:40:22 +0000 Subject: (최겸) 기술영업 조선,해양RFQ 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vendor-response/detail/project-info-tab.tsx | 157 +++------------------ 1 file changed, 17 insertions(+), 140 deletions(-) (limited to 'lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx') diff --git a/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx b/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx index e4b1b8c3..a8f44474 100644 --- a/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx +++ b/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx @@ -4,34 +4,7 @@ import * as React from "react" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { ScrollArea } from "@/components/ui/scroll-area" -import { formatDateToQuarter, formatDate } from "@/lib/utils" - -interface ProjectSnapshot { - pspid?: string - projNm?: string - projMsrm?: number - kunnr?: string - kunnrNm?: string - cls1?: string - cls1Nm?: string - ptype?: string - ptypeNm?: string - estmPm?: string - scDt?: string - klDt?: string - lcDt?: string - dlDt?: string - dockNo?: string - dockNm?: string - projNo?: string - ownerNm?: string - pspUpdatedAt?: string | Date -} - -interface SeriesSnapshot { - sersNo?: string - klDt?: string -} +import { formatDate } from "@/lib/utils" interface ProjectInfoTabProps { quotation: { @@ -43,17 +16,13 @@ interface ProjectInfoTabProps { dueDate: Date | null status: string | null remark: string | null - projectSnapshot?: ProjectSnapshot | null - seriesSnapshot?: SeriesSnapshot[] | null - item?: { - id: number - itemCode: string | null - itemList: string | null - } | null biddingProject?: { id: number pspid: string | null projNm: string | null + sector: string | null + projMsrm: string | null + ptypeNm: string | null } | null createdByUser?: { id: number @@ -71,8 +40,6 @@ interface ProjectInfoTabProps { export function ProjectInfoTab({ quotation }: ProjectInfoTabProps) { const rfq = quotation.rfq - const projectSnapshot = rfq?.projectSnapshot - const seriesSnapshot = rfq?.seriesSnapshot console.log("rfq: ", rfq) @@ -110,14 +77,9 @@ export function ProjectInfoTab({ quotation }: ProjectInfoTabProps) {
{rfq.rfqCode || "미할당"}
-
자재 코드
+
자재 그룹
{rfq.materialCode || "N/A"}
-
-
자재명
- {/* TODO : 타입 작업 (시연을 위해 빌드 중단 상태임. 추후 수정) */} -
{rfq.itemShipbuilding?.itemList || "N/A"}
-
마감일
@@ -164,108 +126,23 @@ export function ProjectInfoTab({ quotation }: ProjectInfoTabProps) {
프로젝트명
{rfq.biddingProject.projNm || "N/A"}
-
- - - )} - - {/* 프로젝트 스냅샷 정보 */} - {projectSnapshot && ( - - - 프로젝트 스냅샷 - - RFQ 생성 시점의 프로젝트 상세 정보 - - - -
- {projectSnapshot.projNo && ( -
-
공사번호
-
{projectSnapshot.projNo}
-
- )} - {projectSnapshot.projNm && ( -
-
공사명
-
{projectSnapshot.projNm}
-
- )} - {projectSnapshot.estmPm && ( -
-
견적 PM
-
{projectSnapshot.estmPm}
-
- )} - {projectSnapshot.kunnrNm && ( -
-
선주
-
{projectSnapshot.kunnrNm}
-
- )} - {projectSnapshot.cls1Nm && ( -
-
선급
-
{projectSnapshot.cls1Nm}
-
- )} - {projectSnapshot.projMsrm && ( -
-
척수
-
{projectSnapshot.projMsrm}
-
- )} - {projectSnapshot.ptypeNm && ( -
-
선종
-
{projectSnapshot.ptypeNm}
-
- )} -
-
-
- )} - - {/* 시리즈 스냅샷 정보 */} - {seriesSnapshot && Array.isArray(seriesSnapshot) && seriesSnapshot.length > 0 && ( - - - 시리즈 정보 스냅샷 - - 프로젝트의 시리즈별 K/L 일정 정보 - - - - {seriesSnapshot.map((series: SeriesSnapshot, index: number) => ( -
-
- 시리즈 {series.sersNo || index + 1} -
-
- {series.klDt && ( -
-
K/L
-
{formatDateToQuarter(series.klDt)}
-
- )} -
+
+
프로젝트 섹터
+
{rfq.biddingProject.sector || "N/A"}
+
+
+
프로젝트 규모
+
{rfq.biddingProject.projMsrm || "N/A"}
+
+
+
프로젝트 타입
+
{rfq.biddingProject.ptypeNm || "N/A"}
- ))} - - - )} - - {/* 정보가 없는 경우 */} - {!projectSnapshot && !seriesSnapshot && ( - - -
- 추가 프로젝트 상세정보가 없습니다.
)} +
) -- cgit v1.2.3