summaryrefslogtreecommitdiff
path: root/lib/items/table/item-excel-template.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/items/table/item-excel-template.tsx')
-rw-r--r--lib/items/table/item-excel-template.tsx42
1 files changed, 37 insertions, 5 deletions
diff --git a/lib/items/table/item-excel-template.tsx b/lib/items/table/item-excel-template.tsx
index 75338168..7d18bf03 100644
--- a/lib/items/table/item-excel-template.tsx
+++ b/lib/items/table/item-excel-template.tsx
@@ -15,9 +15,17 @@ export async function exportItemTemplate() {
// 컬럼 헤더 정의 및 스타일 적용
worksheet.columns = [
- { header: '아이템 코드', key: 'itemCode', width: 15 },
- { header: '아이템 명', key: 'itemName', width: 30 },
- { header: '설명', key: 'description', width: 50 }
+ { header: '자재그룹코드', key: 'itemCode', width: 15 },
+ { header: '자재그룹명', key: 'itemName', width: 30 },
+ { header: '상세', key: 'description', width: 50 },
+ { header: '부모 아이템 코드', key: 'parentItemCode', width: 18 },
+ { header: '레벨', key: 'itemLevel', width: 10 },
+ { header: '삭제 플래그', key: 'deleteFlag', width: 12 },
+ { header: '단위', key: 'unitOfMeasure', width: 10 },
+ { header: '강종', key: 'steelType', width: 10 },
+ { header: '등급 재질', key: 'gradeMaterial', width: 20 },
+ { header: '변경일자', key: 'changeDate', width: 12 },
+ { header: '기본단위', key: 'baseUnitOfMeasure', width: 12 }
];
// 헤더 스타일 적용
@@ -42,8 +50,32 @@ export async function exportItemTemplate() {
// 샘플 데이터 추가
const sampleData = [
- { itemCode: 'ITEM001', itemName: '샘플 아이템 1', description: '이것은 샘플 아이템 1의 설명입니다.' },
- { itemCode: 'ITEM002', itemName: '샘플 아이템 2', description: '이것은 샘플 아이템 2의 설명입니다.' }
+ {
+ itemCode: 'SAMPLE001',
+ itemName: '샘플1',
+ description: '샘플1',
+ parentItemCode: null,
+ itemLevel: 1,
+ deleteFlag: 'N',
+ unitOfMeasure: 'EA',
+ steelType: 'SS',
+ gradeMaterial: 'gradeMaterial',
+ changeDate: '20241201',
+ baseUnitOfMeasure: 'EA'
+ },
+ {
+ itemCode: 'SAMPLE002',
+ itemName: '샘플2',
+ description: '샘플2',
+ parentItemCode: 'SAMPLE001',
+ itemLevel: 2,
+ deleteFlag: 'N',
+ unitOfMeasure: 'EA',
+ steelType: 'SS',
+ gradeMaterial: 'gradeMaterial',
+ changeDate: '20241201',
+ baseUnitOfMeasure: 'EA'
+ }
];
// 데이터 행 추가