summaryrefslogtreecommitdiff
path: root/lib/items-tech/table/ship/item-excel-template.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/items-tech/table/ship/item-excel-template.tsx')
-rw-r--r--lib/items-tech/table/ship/item-excel-template.tsx36
1 files changed, 9 insertions, 27 deletions
diff --git a/lib/items-tech/table/ship/item-excel-template.tsx b/lib/items-tech/table/ship/item-excel-template.tsx
index f6b20b6d..401fb911 100644
--- a/lib/items-tech/table/ship/item-excel-template.tsx
+++ b/lib/items-tech/table/ship/item-excel-template.tsx
@@ -1,8 +1,6 @@
import * as ExcelJS from 'exceljs';
import { saveAs } from "file-saver";
-const SHIP_TYPES = ['A-MAX', 'S-MAX', 'LNGC', 'VLCC', 'CONT'] as const;
-
/**
* 조선 아이템 데이터 가져오기를 위한 Excel 템플릿 파일 생성 및 다운로드
*/
@@ -17,14 +15,10 @@ export async function exportItemTemplate() {
// 컬럼 헤더 정의 및 스타일 적용
worksheet.columns = [
- { header: '아이템 코드', key: 'itemCode', width: 15 },
+ { header: '자재 그룹', key: 'itemCode', width: 15 },
{ header: '기능(공종)', key: 'workType', width: 15 },
- { header: '아이템 리스트', key: 'itemList', width: 30 },
- ...SHIP_TYPES.map(type => ({
- header: type,
- key: type,
- width: 10
- }))
+ { header: '선종', key: 'shipTypes', width: 15 },
+ { header: '자재명', key: 'itemList', width: 30 },
];
// 헤더 스타일 적용
@@ -52,32 +46,20 @@ export async function exportItemTemplate() {
{
itemCode: 'BG0001',
workType: '기장',
- itemList: '아이템 리스트 내용',
- 'A-MAX': 'O',
- 'S-MAX': 'O',
- 'LNGC': 'O',
- 'VLCC': ' ',
- 'CONT': ' '
+ shipTypes: 'A-MAX',
+ itemList: '자재명',
},
{
itemCode: 'BG0002',
workType: '전장',
- itemList: '아이템 리스트 내용 2',
- 'A-MAX': 'O',
- 'S-MAX': ' ',
- 'LNGC': 'O',
- 'VLCC': 'O',
- 'CONT': ' '
+ shipTypes: 'LNGC',
+ itemList: '자재명',
},
{
itemCode: 'BG0003',
workType: '선실',
- itemList: '선종 없는 아이템',
- 'A-MAX': ' ',
- 'S-MAX': ' ',
- 'LNGC': ' ',
- 'VLCC': ' ',
- 'CONT': ' '
+ shipTypes: 'VLCC',
+ itemList: '자재명',
}
];