From cd0ce0cbe8af8719a6f542098ec78f2a5c1222ce Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 1 Dec 2025 10:28:05 +0000
Subject: (최겸) 구매 입찰 사전견적 개발(rfq-last)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../main/general-contracts-table-columns.tsx       | 37 +++-------------------
 1 file changed, 4 insertions(+), 33 deletions(-)

(limited to 'lib/general-contracts/main/general-contracts-table-columns.tsx')

diff --git a/lib/general-contracts/main/general-contracts-table-columns.tsx b/lib/general-contracts/main/general-contracts-table-columns.tsx
index c43bb383..ce51b791 100644
--- a/lib/general-contracts/main/general-contracts-table-columns.tsx
+++ b/lib/general-contracts/main/general-contracts-table-columns.tsx
@@ -17,6 +17,7 @@ import {
 import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header"
 import { DataTableRowAction } from "@/types/table"
 import { formatDate } from "@/lib/utils"
+import { GENERAL_CONTRACT_TYPE_LABELS, GeneralContractType, isGeneralContractType } from "@/lib/general-contracts/types"
 
 // 일반계약 리스트 아이템 타입 정의
 export interface GeneralContractListItem {
@@ -115,40 +116,10 @@ const getCategoryText = (category: string) => {
 
 // 계약종류 텍스트 변환
 const getTypeText = (type: string) => {
-  switch (type) {
-    case 'UP':
-      return '자재단가계약'
-    case 'LE':
-      return '임대차계약'
-    case 'IL':
-      return '개별운송계약'
-    case 'AL':
-      return '연간운송계약'
-    case 'OS':
-      return '외주용역계약'
-    case 'OW':
-      return '도급계약'
-    case 'LO':
-      return 'LOI'
-    case 'FA':
-      return 'FA'
-    case 'SC':
-      return '납품합의계약'
-    case 'OF':
-      return '클레임상계계약'
-    case 'AW':
-      return '사전작업합의'
-    case 'AD':
-      return '사전납품합의'
-    case 'SG':
-      return '임치(물품보관)계약'
-    case 'SR':
-      return '폐기물매각계약'
-    case 'SP':
-      return 'S-PEpC'
-    default:
-      return type
+  if (isGeneralContractType(type)) {
+    return GENERAL_CONTRACT_TYPE_LABELS[type];
   }
+  return type;
 }
 
 // 체결방식 텍스트 변환
-- 
cgit v1.2.3

