summaryrefslogtreecommitdiff
path: root/lib/items-tech/table/top/item-excel-template.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-05-20 09:01:22 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-05-20 09:01:22 +0000
commit45f4c426c98d86a251644a4858740bec989edf83 (patch)
treeb0a3f1ce6ac3e4493ee53c93ef33841c8eb34cfb /lib/items-tech/table/top/item-excel-template.tsx
parent11f13979825d28180956fc27600176bfc47457e1 (diff)
(최겸) 기술영업 아이템리스트 수정 및 개발 0520
Diffstat (limited to 'lib/items-tech/table/top/item-excel-template.tsx')
-rw-r--r--lib/items-tech/table/top/item-excel-template.tsx33
1 files changed, 12 insertions, 21 deletions
diff --git a/lib/items-tech/table/top/item-excel-template.tsx b/lib/items-tech/table/top/item-excel-template.tsx
index 4514af59..f0e10d82 100644
--- a/lib/items-tech/table/top/item-excel-template.tsx
+++ b/lib/items-tech/table/top/item-excel-template.tsx
@@ -19,13 +19,10 @@ export async function exportTopItemTemplate() {
// 컬럼 헤더 정의 및 스타일 적용
worksheet.columns = [
{ header: '아이템 코드', key: 'itemCode', width: 15 },
- { header: '아이템 명', key: 'itemName', width: 30 },
{ header: '기능(공종)', key: 'workType', width: 15 },
- { header: '설명', key: 'description', width: 50 },
- { header: '항목1', key: 'itemList1', width: 20 },
- { header: '항목2', key: 'itemList2', width: 20 },
- { header: '항목3', key: 'itemList3', width: 20 },
- { header: '항목4', key: 'itemList4', width: 20 },
+ { header: '아이템 리스트', key: 'itemList', width: 20 },
+ { header: '서브 아이템 리스트', key: 'subItemList', width: 20 },
+
];
// 헤더 스타일 적용
@@ -51,25 +48,18 @@ export async function exportTopItemTemplate() {
// 샘플 데이터 추가
const sampleData = [
{
- itemCode: 'TOP001',
- itemName: 'TOP 샘플 아이템 1',
+ itemCode: 'TOP001',
workType: 'TM',
- description: '이것은 해양 TOP 샘플 아이템 1의 설명입니다.',
- itemList1: '항목1 샘플 데이터',
- itemList2: '항목2 샘플 데이터',
- itemList3: '항목3 샘플 데이터',
- itemList4: '항목4 샘플 데이터'
+ itemList: '항목1 샘플 데이터',
+ subItemList: '항목2 샘플 데이터',
},
{
- itemCode: 'TOP002',
- itemName: 'TOP 샘플 아이템 2',
+ itemCode: 'TOP002',
workType: 'TS',
- description: '이것은 해양 TOP 샘플 아이템 2의 설명입니다.',
- itemList1: '항목1 샘플 데이터',
- itemList2: '항목2 샘플 데이터',
- itemList3: '',
- itemList4: ''
+ itemList: '항목1 샘플 데이터',
+ subItemList: '항목2 샘플 데이터',
}
+
];
// 데이터 행 추가
@@ -94,7 +84,8 @@ export async function exportTopItemTemplate() {
// 워크시트에 공종 유형 관련 메모 추가
const infoRow = worksheet.addRow(['공종 유형 안내: ' + TOP_WORK_TYPES.join(', ')]);
infoRow.font = { bold: true, color: { argb: 'FF0000FF' } };
- worksheet.mergeCells(`A${infoRow.number}:H${infoRow.number}`);
+ worksheet.mergeCells(`A${infoRow.number}:F${infoRow.number}`);
+
// 워크시트 보호 (선택적)
worksheet.protect('', {