summaryrefslogtreecommitdiff
path: root/lib/items-tech/table/import-excel-button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/items-tech/table/import-excel-button.tsx')
-rw-r--r--lib/items-tech/table/import-excel-button.tsx16
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"]
};
// 헤더 매핑 확인 (대체 이름 포함)