From 2fdce8d7a57c792bba0ac36fa554dca9c9cc31e3 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 30 May 2025 03:36:16 +0000
Subject: (김준회) 기술영업 조선 RFQ 오류 수정 및 선종 필터 기능 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/techsales-rfq/table/rfq-table-column.tsx | 41 +++++++++++++++++++++++-----
 1 file changed, 34 insertions(+), 7 deletions(-)

(limited to 'lib/techsales-rfq/table/rfq-table-column.tsx')

diff --git a/lib/techsales-rfq/table/rfq-table-column.tsx b/lib/techsales-rfq/table/rfq-table-column.tsx
index 4f7bd499..dfb85420 100644
--- a/lib/techsales-rfq/table/rfq-table-column.tsx
+++ b/lib/techsales-rfq/table/rfq-table-column.tsx
@@ -30,8 +30,40 @@ type TechSalesRfq = {
   updatedByName: string
   sentBy: number | null
   sentByName: string | null
-  projectSnapshot: Record<string, unknown>
-  seriesSnapshot: Record<string, unknown>
+  // 스키마와 일치하도록 타입 수정
+  projectSnapshot: {
+    pspid: string;
+    projNm?: string;
+    sector?: string;
+    projMsrm?: number;
+    kunnr?: string;
+    kunnrNm?: string;
+    cls1?: string;
+    cls1Nm?: string;
+    ptype?: string;
+    ptypeNm?: string;
+    pmodelCd?: string;
+    pmodelNm?: string;
+    pmodelSz?: string;
+    pmodelUom?: string;
+    txt04?: string;
+    txt30?: string;
+    estmPm?: string;
+    pspCreatedAt?: Date | string;
+    pspUpdatedAt?: Date | string;
+  } | Record<string, unknown> // legacy 호환성을 위해 유지
+  seriesSnapshot: Array<{
+    pspid: string;
+    sersNo: string;
+    scDt?: string;
+    klDt?: string;
+    lcDt?: string;
+    dlDt?: string;
+    dockNo?: string;
+    dockNm?: string;
+    projNo?: string;
+    post1?: string;
+  }> | Record<string, unknown> // legacy 호환성을 위해 유지
   pspid: string
   projNm: string
   sector: string
@@ -43,11 +75,6 @@ type TechSalesRfq = {
   [key: string]: unknown
 }
 
-// 프로젝트 상세정보 타입 추가를 위한 확장
-// interface ExtendedDataTableRowAction<TData> extends DataTableRowAction<TData> {
-//   type: DataTableRowAction<TData>["type"] | "project-detail"
-// }
-
 interface GetColumnsProps {
   setRowAction: React.Dispatch<React.SetStateAction<DataTableRowAction<TechSalesRfq> | null>>;
   openAttachmentsSheet: (rfqId: number) => void;
-- 
cgit v1.2.3

