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/ship/item-excel-template.tsx | |
| parent | 0fddf148402fd6b99a1b3800d73679899bcb2ed3 (diff) | |
(최겸) 기술영업 아이템 수정(컬럼명 및 item table FK 삭제, rfq에서 사용하는 service 수정)
Diffstat (limited to 'lib/items-tech/table/ship/item-excel-template.tsx')
| -rw-r--r-- | lib/items-tech/table/ship/item-excel-template.tsx | 36 |
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: '자재명', } ]; |
