From 9f3b8915ab20f177edafd3c4a4cc1ca0da0fc766 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 13 Jun 2025 07:22:04 +0000
Subject: (최겸) 기술영업 아이템 수정(컬럼명 및 item table FK 삭제, rfq에서
 사용하는 service 수정)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/items-tech/table/import-excel-button.tsx | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

(limited to 'lib/items-tech/table/import-excel-button.tsx')

diff --git a/lib/items-tech/table/import-excel-button.tsx b/lib/items-tech/table/import-excel-button.tsx
index 9bf4578c..3281823c 100644
--- a/lib/items-tech/table/import-excel-button.tsx
+++ b/lib/items-tech/table/import-excel-button.tsx
@@ -13,7 +13,6 @@ import {
   DialogFooter,
   DialogHeader,
   DialogTitle,
-  DialogTrigger,
 } from "@/components/ui/dialog"
 import { Progress } from "@/components/ui/progress"
 import { processFileImport } from "./ship/import-item-handler"
@@ -123,22 +122,13 @@ export function ImportItemButton({ itemType, onSuccess }: ImportItemButtonProps)
       });
       
       // 필수 헤더 확인 (타입별 구분)
-      let requiredHeaders: string[] = ["아이템 코드", "기능(공종)"];
-      
-      // 해양 TOP 및 HULL의 경우 선종 헤더는 필요 없음
-      if (itemType === "ship") {
-        requiredHeaders = [...requiredHeaders, "A-MAX", "S-MAX", "LNGC", "VLCC", "CONT"];
-      }
+      const requiredHeaders: string[] = ["아이템 코드", "기능(공종)"];
       
       const alternativeHeaders = {
         "아이템 코드": ["itemCode", "item_code"],
-        "아이템 명": ["itemName", "item_name"],
         "기능(공종)": ["workType"],
-        "설명": ["description"],
-        "항목1": ["itemList1"],
-        "항목2": ["itemList2"],
-        "항목3": ["itemList3"],
-        "항목4": ["itemList4"]
+        "자재명": ["itemList"],
+        "자재명(상세)": ["subItemList"]
       };
       
       // 헤더 매핑 확인 (대체 이름 포함)
-- 
cgit v1.2.3

