From 33be47506f0aa62b969d82521580a29e95080268 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 13 Aug 2025 11:05:09 +0000
Subject: (대표님) 입찰, 법무검토, EDP 변경사항 대응, dolce 개선, form-data
 개선, 정규업체 등록관리 추가 (최겸) pq 미사용 컴포넌트 및 페이지 제거, 파일
 라우트에 pq 적용
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/pq/pq-review-table-new/vendors-table-columns.tsx | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

(limited to 'lib/pq/pq-review-table-new/vendors-table-columns.tsx')

diff --git a/lib/pq/pq-review-table-new/vendors-table-columns.tsx b/lib/pq/pq-review-table-new/vendors-table-columns.tsx
index d3fada0d..449b69be 100644
--- a/lib/pq/pq-review-table-new/vendors-table-columns.tsx
+++ b/lib/pq/pq-review-table-new/vendors-table-columns.tsx
@@ -55,7 +55,7 @@ export interface PQSubmission {
   pqTypeLabel: string
 
   // PQ 대상품목
-  pqItems: string | null
+  pqItems: string | null | Array<{itemCode: string, itemName: string}>
 
   // 방문실사 요청 정보
   siteVisitRequestId: number | null  // 방문실사 요청 ID
@@ -457,11 +457,19 @@ export function getColumns({ setRowAction, router }: GetColumnsProps): ColumnDef
         return <span className="text-muted-foreground">-</span>;
       }
 
-      return (
-        <div className="flex items-center gap-2">
-          <span className="text-sm">{pqItems}</span>
-        </div>
-      )
+      // JSON 파싱하여 첫 번째 아이템 표시
+        const items = typeof pqItems === 'string' ? JSON.parse(pqItems) : pqItems;
+        if (Array.isArray(items) && items.length > 0) {
+          const firstItem = items[0];
+          return (
+            <div className="flex items-center gap-2">
+              <span className="text-sm">{firstItem.itemCode} - {firstItem.itemName}</span>
+              {items.length > 1 && (
+                <span className="text-xs text-muted-foreground">외 {items.length - 1}건</span>
+              )}
+            </div>
+          );
+        }
     },
   }
 
-- 
cgit v1.2.3

