diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-13 07:22:04 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-13 07:22:04 +0000 |
| commit | 9f3b8915ab20f177edafd3c4a4cc1ca0da0fc766 (patch) | |
| tree | df110ca4a654bc3b3d0bd02b68cba45a25a7c39e /lib/items-tech/table/import-excel-button.tsx | |
| parent | 0fddf148402fd6b99a1b3800d73679899bcb2ed3 (diff) | |
(최겸) 기술영업 아이템 수정(컬럼명 및 item table FK 삭제, rfq에서 사용하는 service 수정)
Diffstat (limited to 'lib/items-tech/table/import-excel-button.tsx')
| -rw-r--r-- | lib/items-tech/table/import-excel-button.tsx | 16 |
1 files changed, 3 insertions, 13 deletions
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"] }; // 헤더 매핑 확인 (대체 이름 포함) |
