From eb654f88214095f71be142b989e620fd28db3f69 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 11 Aug 2025 09:00:38 +0000
Subject: (최겸) 기술영업 변경사항 반영, PQ/실사 변경사항 반영
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/accepted-quotations-table-columns.tsx    | 74 ++++++++++++++++------
 1 file changed, 55 insertions(+), 19 deletions(-)

(limited to 'lib/tech-project-avl/table/accepted-quotations-table-columns.tsx')

diff --git a/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx b/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
index e73c2163..5dd1b58f 100644
--- a/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
+++ b/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
@@ -21,6 +21,7 @@ export interface RfqItemInfo {
 // Accepted Quotation 타입 정의
 export interface AcceptedQuotationItem {
   id: number
+  uniqueKey: string // 확장된 데이터의 유니크 키
   rfqId: number
   vendorId: number
   quotationVersion: number | null
@@ -162,6 +163,59 @@ export function getColumns(): ColumnDef<AcceptedQuotationItem>[] {
         excelHeader: "프로젝트명",
       },
     },
+    // 선주명
+    {
+      accessorKey: "kunnrNm",
+      header: ({ column }) => (
+        <DataTableColumnHeaderSimple column={column} title="선주명" />
+      ),
+      cell: ({ row }) => (
+        <div className="max-w-32 truncate">
+          {row.original.kunnrNm || "-"}
+        </div>
+      ),
+      enableSorting: true,
+      enableHiding: true,
+      meta: {
+        excelHeader: "선주명",
+      },
+    },
+    // 선종코드
+    {
+      accessorKey: "ptype",
+      header: ({ column }) => (
+        <DataTableColumnHeaderSimple column={column} title="선종코드" />
+      ),
+      cell: ({ row }) => (
+        <div className="font-medium">
+          {row.original.ptype || "-"}
+        </div>
+      ),
+      enableSorting: true,
+      enableHiding: true,
+      meta: {
+        excelHeader: "선종코드",
+      },
+    },
+        // 공종
+        {
+          accessorKey: "workType",
+          header: ({ column }) => (
+            <DataTableColumnHeaderSimple column={column} title="공종" />
+          ),
+          cell: ({ row }) => {
+            return (
+              <div className="max-w-32 truncate">
+                {row.original.workType || "-"}
+              </div>
+            );
+          },
+          enableSorting: false,
+          enableHiding: true,
+          meta: {
+            excelHeader: "공종",
+          },
+        },
     // RFQ 코드
     {
       accessorKey: "rfqCode",
@@ -215,25 +269,7 @@ export function getColumns(): ColumnDef<AcceptedQuotationItem>[] {
         excelHeader: "자재그룹",
       },
     },
-    // 공종
-    {
-      accessorKey: "workType",
-      header: ({ column }) => (
-        <DataTableColumnHeaderSimple column={column} title="공종" />
-      ),
-      cell: ({ row }) => {
-        return (
-          <div className="max-w-32 truncate">
-            {row.original.workType || "-"}
-          </div>
-        );
-      },
-      enableSorting: false,
-      enableHiding: true,
-      meta: {
-        excelHeader: "공종",
-      },
-    },
+
     // 선종
     {
       accessorKey: "shipType",
-- 
cgit v1.2.3

