From 4fe733d7d9d3d873fa395133e9a42cf9fc8c44dc Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 24 Sep 2025 07:59:35 +0000
Subject: (최겸) 구매 피드백 반영(용어 수정, 견적유형, 조건설정, 첨부파일
 선택사항 등)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../vendor-quotations-table-columns.tsx            | 56 ++++++++++++----------
 1 file changed, 30 insertions(+), 26 deletions(-)

(limited to 'lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx')

diff --git a/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx b/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
index a7135ea5..11b6bdaf 100644
--- a/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
+++ b/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
@@ -254,11 +254,16 @@ export function getColumns({
         const rfqCode = row.original.rfqCode
         const value = row.getValue("rfqType")
 
-        // F로 시작하지 않으면 빈 값 반환
-        if (!rfqCode?.startsWith('F')) {
-          return null
+        // RFQ 코드의 앞자리에 따라 유형 결정
+        if (rfqCode?.startsWith('I')) {
+          return "ITB"
+        } else if (rfqCode?.startsWith('R')) {
+          return "RFQ"
+        } else if (rfqCode?.startsWith('F')) {
+          return "일반견적"
         }
 
+        // 기존 rfqType 값이 있는 경우 (백업)
         const typeMap: Record<string, string> = {
           "ITB": "ITB",
           "RFQ": "RFQ",
@@ -270,30 +275,29 @@ export function getColumns({
       minSize: 80,
       maxSize: 120,
       enableResizing: true,
-      // F로 시작하지 않을 때 컬럼 숨기기
       enableHiding: true,
     },
-    {
-      accessorKey: "rfqTitle",
-      header: ({ column }) => (
-        <DataTableColumnHeaderSimple column={column} title="RFQ 제목" />
-      ),
-      cell: ({ row }) => {
-        const rfqCode = row.original.rfqCode
-        const value = row.getValue("rfqTitle")
+    // {
+    //   accessorKey: "rfqTitle",
+    //   header: ({ column }) => (
+    //     <DataTableColumnHeaderSimple column={column} title="RFQ 제목" />
+    //   ),
+    //   cell: ({ row }) => {
+    //     const rfqCode = row.original.rfqCode
+    //     const value = row.getValue("rfqTitle")
 
-        // F로 시작하지 않으면 빈 값 반환
-        if (!rfqCode?.startsWith('F')) {
-          return null
-        }
+    //     // F로 시작하지 않으면 빈 값 반환
+    //     if (!rfqCode?.startsWith('F')) {
+    //       return null
+    //     }
 
-        return value || "-"
-      },
-      minSize: 200,
-      maxSize: 400,
-      enableResizing: true,
-      enableHiding: true,
-    },
+    //     return value || "-"
+    //   },
+    //   minSize: 200,
+    //   maxSize: 400,
+    //   enableResizing: true,
+    //   enableHiding: true,
+    // },
     {
       accessorKey: "projectName",
       header: ({ column }) => (
@@ -301,10 +305,10 @@ export function getColumns({
       ),
       cell: ({ row }) => (
         <div className="flex flex-col">
-          <span className="font-mono text-xs text-muted-foreground">
+          <span className="text-md font-medium`">
             {row.original.projectCode}
           </span>
-          <span className="max-w-[200px] truncate" title={row.original.projectName || ""}>
+          <span className="max-w-[200px] truncate text-sm text-muted-foreground" title={row.original.projectName || ""}>
             {row.original.projectName || "-"}
           </span>
         </div>
@@ -453,7 +457,7 @@ export function getColumns({
     {
       accessorKey: "rfqSendDate",
       header: ({ column }) => (
-        <DataTableColumnHeaderSimple column={column} title="발송일" />
+        <DataTableColumnHeaderSimple column={column} title="RFQ 접수일" />
       ),
       cell: ({ row }) => {
         const value = row.getValue("rfqSendDate")
-- 
cgit v1.2.3

