// 품목기준 Config
const itemMasterConfig = {
  id: 'item',
  title: '품목기준 목록',
  description: '페이지 템플릿과 필드를 관리합니다',
  icon: 'Layers',
  tabs: [
    { id: 'hierarchy', label: '계층구조', icon: 'GitBranch' },
    { id: 'section', label: '섹션', icon: 'Layers' },
    { id: 'field', label: '항목', icon: 'ClipboardList' },
    { id: 'attribute', label: '속성', icon: 'Settings' },
  ],
  entityTypes: [
    { id: 1, code: 'FG', name: '제품', description: '완제품', sortOrder: 1, isActive: true },
    { id: 2, code: 'PT', name: '부품', description: '부품/파트', sortOrder: 2, isActive: true },
    { id: 3, code: 'WIP', name: '반제품', description: '반제품/공정품', sortOrder: 3, isActive: true },
    { id: 4, code: 'RM', name: '원자재', description: '원자재', sortOrder: 4, isActive: true },
  ],
  categories: [
    { id: 1, code: 'SCR', name: '스크린', parentId: null, level: 1, path: '/1', sortOrder: 1 },
    { id: 2, code: 'SCR-STD', name: '표준형', parentId: 1, level: 2, path: '/1/2', sortOrder: 1 },
    { id: 3, code: 'SCR-PRM', name: '프리미엄', parentId: 1, level: 2, path: '/1/3', sortOrder: 2 },
    { id: 4, code: 'SLT', name: '슬랫', parentId: null, level: 1, path: '/4', sortOrder: 2 },
    { id: 5, code: 'SLT-STD', name: '표준형', parentId: 4, level: 2, path: '/4/5', sortOrder: 1 },
    { id: 6, code: 'BND', name: '절곡', parentId: null, level: 1, path: '/6', sortOrder: 3 },
    { id: 7, code: 'MTR', name: '모터', parentId: null, level: 1, path: '/7', sortOrder: 4 },
    { id: 8, code: 'MTR-TUB', name: '튜블러모터', parentId: 7, level: 2, path: '/7/8', sortOrder: 1 },
    { id: 9, code: 'MTR-GRD', name: '기어드모터', parentId: 7, level: 2, path: '/7/9', sortOrder: 2 },
  ],
  masterFields: [
    { id: 1, fieldKey: 'itemCode', fieldName: '품목코드', inputType: 'text', isRequired: true, validations: { maxLength: 20, pattern: '^[A-Z0-9-]+$' }, description: '품목 식별 코드' },
    { id: 2, fieldKey: 'itemName', fieldName: '품목명', inputType: 'text', isRequired: true, validations: { maxLength: 100 }, description: '품목 이름' },
    { id: 3, fieldKey: 'category', fieldName: '분류', inputType: 'select', isRequired: false, options: { source: 'api', apiUrl: '/api/item-categories' }, description: '품목 분류' },
    { id: 4, fieldKey: 'itemType', fieldName: '품목유형', inputType: 'select', isRequired: true, options: { items: ['제품', '부품', '반제품', '원자재'] }, description: '제품/부품/반제품/원자재' },
    { id: 5, fieldKey: 'unit', fieldName: '단위', inputType: 'select', isRequired: true, options: { items: ['EA', 'SET', 'M', 'KG', 'TON'] }, description: '수량 단위' },
    { id: 6, fieldKey: 'spec', fieldName: '규격', inputType: 'text', isRequired: false, description: '제품 규격' },
    { id: 7, fieldKey: 'bomRequired', fieldName: 'BOM 필요', inputType: 'checkbox', isRequired: false, description: 'BOM 구성 필요 여부' },
    { id: 8, fieldKey: 'inspectionRequired', fieldName: '검사 필요', inputType: 'checkbox', isRequired: false, description: '입고/출고 검사 필요 여부' },
    { id: 9, fieldKey: 'leadTime', fieldName: '리드타임', inputType: 'number', isRequired: false, validations: { min: 0 }, description: '조달/생산 소요일' },
    { id: 10, fieldKey: 'safetyStock', fieldName: '안전재고', inputType: 'number', isRequired: false, validations: { min: 0 }, description: '안전재고 수량' },
    { id: 11, fieldKey: 'description', fieldName: '설명', inputType: 'textarea', isRequired: false, description: '품목 상세 설명' },
    { id: 12, fieldKey: 'price', fieldName: '단가', inputType: 'number', isRequired: false, validations: { min: 0 }, description: '기준 단가' },
  ],
  masterSections: [
    { id: 1, sectionKey: 'basicInfo', sectionName: '기본정보', sectionType: 'general', applicableTypes: ['FG', 'PT', 'WIP', 'RM'], description: '품목 기본 정보', fields: [1, 2, 3, 4, 5, 6] },
    { id: 2, sectionKey: 'bom', sectionName: 'BOM', sectionType: 'module', applicableTypes: ['FG', 'WIP'], description: 'BOM 구성 정보', fields: [7] },
    { id: 3, sectionKey: 'inventory', sectionName: '재고정보', sectionType: 'general', applicableTypes: ['FG', 'PT', 'RM'], description: '재고 관련 정보', fields: [9, 10] },
    { id: 4, sectionKey: 'quality', sectionName: '품질정보', sectionType: 'module', applicableTypes: ['FG', 'PT', 'RM'], description: '품질 검사 정보', fields: [8] },
    { id: 5, sectionKey: 'pricing', sectionName: '단가정보', sectionType: 'general', applicableTypes: ['FG', 'PT', 'RM'], description: '단가 정보', fields: [12] },
  ],
  pageTemplates: [
    {
      id: 1, pageCode: 'item_registration', pageName: '품목 등록', pagePath: '/제품관리/품목_등록', itemTypes: ['FG'],
      sections: [
        { sectionId: 1, sectionKey: 'basicInfo', sectionName: '기본정보', sortOrder: 1, fields: [
          { fieldId: 1, fieldKey: 'itemCode', fieldName: '품목코드', inputType: 'text', isRequired: true },
          { fieldId: 2, fieldKey: 'itemName', fieldName: '품목명', inputType: 'text', isRequired: true },
          { fieldId: 3, fieldKey: 'category', fieldName: '분류', inputType: 'select', isRequired: false },
        ]},
        { sectionId: 2, sectionKey: 'bom', sectionName: 'BOM', sortOrder: 2, fields: [
          { fieldId: 7, fieldKey: 'bomRequired', fieldName: 'BOM 필요', inputType: 'checkbox', isRequired: false },
        ]},
      ],
      conditions: [{ id: 1, sourceFieldKey: 'category', conditionType: 'equals', conditionValue: 'FG', displayType: 'show_section', targetSectionKey: 'bom' }]
    }
  ],

  // ========== 절곡 부품 샘플 데이터 (첨부 엑셀 기준) ==========
  bendingPartsSampleData: [
    // 벽면형 가이드레일 관련 부품
    {
      id: 'BP001',
      itemCode: 'SD30',
      itemName: '엘바',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 3000,
      qty: 4,
      totalKg: 0.9,
      developedView: {
        dimensions: [{ input: 16, rate: -1, afterRate: null, sum: 75 }],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP002',
      itemCode: 'SD31',
      itemName: '하장바',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 3000,
      qty: 2,
      totalKg: 1.158,
      developedView: {
        dimensions: [
          { input: 15, rate: -1, afterRate: 28, sum: 67 },
          { input: null, rate: null, afterRate: null, sum: 126 },
          { input: null, rate: null, afterRate: null, sum: 165 },
          { input: null, rate: null, afterRate: null, sum: 178 },
          { input: null, rate: null, afterRate: null, sum: 193 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP003',
      itemCode: 'SD32',
      itemName: '짜부가스켓',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 0.8T',
      totalWidth: 500,
      lengthOption: 3000,
      qty: 4,
      totalKg: 0.576,
      developedView: {
        dimensions: [{ input: 48, rate: null, afterRate: null, sum: null }],
        angles: [],
        note: '80*4,50*8',
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP004',
      itemCode: 'SD33',
      itemName: '50평철',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.2T',
      totalWidth: 500,
      lengthOption: 3000,
      qty: 2,
      totalKg: 0.3,
      developedView: {
        dimensions: [{ input: 50, rate: null, afterRate: null, sum: null }],
        angles: [],
        drawingImage: null,
      },
      status: '활성',
    },
    // 케이스 관련 부품 (S/BOX)
    {
      id: 'BP005',
      itemCode: 'SD34',
      itemName: '500*380전면판(50*380)',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOptions: [3000, 2438],
      qty: [1, 1],
      totalKg: [1.764, 1.433544],
      developedView: {
        dimensions: [
          { input: 17, rate: -1, afterRate: 71, sum: 120 },
          { input: null, rate: null, afterRate: null, sum: 499, note: 'A"' },
          { input: null, rate: null, afterRate: null, sum: 553 },
          { input: null, rate: null, afterRate: 568, highlight: true, sum: 588 },
        ],
        angles: ['각도', '각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP006',
      itemCode: 'SD35',
      itemName: 'S/BOX 린텔박스',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOptions: [3000, 2438],
      qty: [1, 1],
      totalKg: [0.504, 0.409584],
      developedView: {
        dimensions: [
          { input: 20, rate: -1, afterRate: 35, highlight: true, sum: 84 },
          { input: null, rate: null, afterRate: null, sum: 138 },
          { input: null, rate: null, afterRate: null, sum: 168 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP007',
      itemCode: 'SD36',
      itemName: '500*380밑면 점검구(240)',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOptions: [3000, 2438],
      qty: [2, 2],
      totalKg: [1.794, 1.457924],
      developedView: {
        dimensions: [
          { input: 17, rate: -1, afterRate: 30, sum: 269 },
          { input: null, rate: null, afterRate: 282, highlight: true, sum: 299 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP008',
      itemCode: 'SD37',
      itemName: 'S/BOX 후면 코너',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOptions: [3000, 2438],
      qty: [2, 2],
      totalKg: [1.008, 0.819168],
      developedView: {
        dimensions: [
          { input: 20, rate: -1, afterRate: 35, sum: 84 },
          { input: null, rate: null, afterRate: null, sum: 133 },
          { input: null, rate: null, afterRate: 148, highlight: true, sum: 168 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP009',
      itemCode: 'SD38',
      itemName: '마구리(505*385)',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: null,
      qty: 4,
      totalKg: 1.169344,
      developedView: {
        dimensions: [
          { input: 50, rate: null, afterRate: null, sum: 554 },
          { input: null, rate: null, afterRate: null, sum: 604 },
          { input: 50, rate: null, afterRate: null, sum: 434 },
          { input: null, rate: null, afterRate: null, sum: 484 },
        ],
        angles: [],
        note: '마구리 - 절단판',
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP010',
      itemCode: 'SD39',
      itemName: '상부 덮개',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 1220,
      qty: 5,
      totalKg: 2.3729,
      developedView: {
        dimensions: [{ input: 389, rate: null, afterRate: null, sum: null }],
        angles: [],
        drawingImage: null,
      },
      status: '활성',
    },
    // 벽면형 마감재 관련 부품
    {
      id: 'BP011',
      itemCode: 'SD40',
      itemName: '벽면형 마감제',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.2T',
      totalWidth: 500,
      lengthOption: 4300,
      qty: 8,
      totalKg: 6.9832,
      developedView: {
        dimensions: [
          { input: 10, rate: -1, afterRate: 21, sum: 130 },
          { input: null, rate: null, afterRate: null, sum: 159, note: 'A"' },
          { input: null, rate: null, afterRate: null, sum: 173 },
          { input: null, rate: null, afterRate: 188, highlight: true, sum: 203, highlight2: true },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP012',
      itemCode: 'SD41',
      itemName: '벽면형 본체',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 4300,
      qty: 4,
      totalKg: 5.0568,
      developedView: {
        dimensions: [
          { input: 10, rate: -1, afterRate: 35, sum: 114 },
          { input: null, rate: null, afterRate: null, sum: 180 },
          { input: null, rate: null, afterRate: null, sum: 259 },
          { input: null, rate: null, afterRate: null, sum: 284 },
          { input: null, rate: null, afterRate: null, sum: 294 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP013',
      itemCode: 'SD42',
      itemName: '벽면형-C',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 4300,
      qty: 4,
      totalKg: 1.7888,
      developedView: {
        dimensions: [
          { input: 30, rate: -1, afterRate: 74, sum: 104 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP014',
      itemCode: 'SD43',
      itemName: '벽면형-D',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 4300,
      qty: 4,
      totalKg: 1.806,
      developedView: {
        dimensions: [
          { input: 11, rate: -1, afterRate: 33, sum: 72 },
          { input: null, rate: null, afterRate: null, sum: 94 },
          { input: null, rate: null, afterRate: null, sum: 105 },
        ],
        angles: ['각도'],
        drawingImage: null,
      },
      status: '활성',
    },
    {
      id: 'BP015',
      itemCode: 'SD44',
      itemName: '절단판',
      partType: 'D형 (D)',
      category: '가이드레일(측면형) (S)',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      lengthOption: 80,
      qty: 4,
      totalKg: 0.0416,
      developedView: {
        dimensions: [{ input: 130, rate: null, afterRate: null, sum: null }],
        angles: [],
        note: '절단판 - 단순 절단',
        drawingImage: null,
      },
      status: '활성',
    },
  ],

  // ========== 절곡 작업일지용 데이터 변환 함수 ==========
  // 절곡 부품 데이터를 작업일지 양식에 맞게 변환하는 설정
  workLogMapping: {
    // 헤더 정보
    headerFields: ['customerName', 'siteName', 'workDate', 'productLotNo', 'productionManager'],
    // 작업내역 테이블 컬럼
    workDetailColumns: [
      { field: 'itemName', label: '세부품명' },
      { field: 'material', label: '재질' },
      { field: 'lotNo', label: '입고 & 생산 LOT NO' },
      { field: 'lengthSpec', label: '길이/규격' },
      { field: 'qty', label: '수량' },
    ],
    // 전개도 연동 필드
    developedViewFields: ['dimensions', 'angles', 'drawingImage'],
  },

  // ========== 절곡 작업일지 샘플 데이터 ==========
  foldingWorkLogSampleData: {
    docNo: 'WL-FLD-241215-01',
    workDate: '2024-12-15',
    customerName: '(주)신한건설',
    customerCode: 'SH001',
    siteName: '강남역 오피스텔 신축공사',
    siteCode: 'SITE-2024-0156',
    productLotNo: 'LOT-FLD-2024-12-001',
    productionManager: '김생산',
    sections: [
      {
        id: 'wall-type',
        title: '1.1 벽면형 [120·70]',
        items: [
          { partCode: '①', partName: '마감재', material: 'EGI1.15T', lotNo: 'LOT-M-2024-001', lengthSpec: '4300', qty: 8 },
          { partCode: '②', partName: '가이드레일', material: 'EGI1.6T', lotNo: 'LOT-M-2024-002', lengthSpec: '3000', qty: 4 },
          { partCode: '③', partName: 'C형', material: 'EGI1.55T', lotNo: 'LOT-M-2024-003', lengthSpec: '4300', qty: 4 },
          { partCode: '④', partName: 'D형', material: 'EGI1.6T', lotNo: 'LOT-M-2024-004', lengthSpec: '4300', qty: 4 },
          { partCode: '⑤', partName: '별도마감재', material: 'SUS1.2T', lotNo: 'LOT-M-2024-005', lengthSpec: '4300', qty: 2 },
          { partCode: '', partName: '하부BASE', material: 'EGI1.55T', lotNo: 'LOT-M-2024-006', lengthSpec: '하부BASE 130·80', qty: 4 },
        ],
      },
      {
        id: 'bottom-finish',
        title: '2. 하단마감재 [60·40]',
        items: [
          { partCode: '①', partName: '하단마감재', material: 'EGI1.55T', lotNo: 'LOT-M-2024-007', lengthSpec: '3000', qty: 4 },
          { partCode: '④', partName: '별도마감재', material: 'SUS1.2T', lotNo: 'LOT-M-2024-008', lengthSpec: '3000', qty: 2 },
          { partCode: '②', partName: '하단보강엘바', material: 'EGI1.55T', lotNo: 'LOT-M-2024-009', lengthSpec: '3000', qty: 4 },
          { partCode: '③', partName: '하단보강평철', material: 'EGI1.15T', lotNo: 'LOT-M-2024-010', lengthSpec: '3000', qty: 2 },
        ],
      },
      {
        id: 'case',
        title: '3.1 케이스 [500*330]',
        items: [
          { partCode: '①', partName: '전면부', material: 'EGI1.55T', lotNo: 'LOT-M-2024-011', lengthSpec: '3000/2438', qty: 2 },
          { partCode: '②', partName: '린텔부', material: 'EGI1.55T', lotNo: 'LOT-M-2024-012', lengthSpec: '3000/2438', qty: 2 },
          { partCode: '③⑤', partName: '하부점검구', material: 'EGI1.55T', lotNo: 'LOT-M-2024-013', lengthSpec: '3000/2438', qty: 4 },
          { partCode: '④', partName: '후면코너부', material: 'EGI1.55T', lotNo: 'LOT-M-2024-014', lengthSpec: '3000/2438', qty: 4 },
          { partCode: '⑥', partName: '상부덮개', material: 'EGI1.55T', lotNo: 'LOT-M-2024-015', lengthSpec: '1220', qty: 5 },
          { partCode: '⑦', partName: '측면부(마구리)', material: 'EGI1.55T', lotNo: 'LOT-M-2024-016', lengthSpec: '505*385', qty: 4 },
        ],
      },
      {
        id: 'smoke-barrier',
        title: '4. 연기차단재',
        items: [
          { partCode: '', partName: '레일용 [W50]', material: 'EG0.8T + 화이바 글라스', lotNo: 'LOT-M-2024-017', lengthSpec: 'W50', qty: 8 },
          { partCode: '', partName: '케이스용 [W80]', material: 'EG0.8T + 화이바 글라스', lotNo: 'LOT-M-2024-018', lengthSpec: 'W80', qty: 4 },
        ],
      },
    ],
    approval: {
      writer: { name: '이판매', date: '2024-12-15', sign: true },
      reviewer: { name: '박생산', date: '2024-12-15', sign: true },
      approver: { name: '최품질', date: '2024-12-15', sign: false },
    },
    totalWeight: 25.8,
    remarks: '• V컷팅 작업 완료 후 절곡 진행\n• 중간검사 필수 항목 확인 완료',
  },

  // ========== 품목 등록 샘플 데이터 (50개) ==========
  sampleItems: [
    // ============ 제품 (Product) - 10개 ============
    {
      id: 1,
      itemType: '제품',
      productCategory: '스크린',
      productType: '표준형',
      productName: '일반스크린',
      itemCode: 'FG-SCR-STD-001',
      fireRating: '일반(30분)',
      width: 3000,
      height: 4000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-01-10',
    },
    {
      id: 2,
      itemType: '제품',
      productCategory: '스크린',
      productType: '프리미엄',
      productName: '방화스크린',
      itemCode: 'FG-SCR-PRM-001',
      fireRating: '방화(60분)',
      width: 3500,
      height: 4500,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-01-12',
    },
    {
      id: 3,
      itemType: '제품',
      productCategory: '슬랫',
      productType: '알루미늄',
      productName: '알루미늄슬랫셔터',
      itemCode: 'FG-SLT-AL-001',
      fireRating: '일반(30분)',
      width: 4000,
      height: 3500,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-01-15',
    },
    {
      id: 4,
      itemType: '제품',
      productCategory: '슬랫',
      productType: '스틸',
      productName: '스틸슬랫셔터',
      itemCode: 'FG-SLT-STL-001',
      fireRating: '방화(60분)',
      width: 5000,
      height: 4000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-01-18',
    },
    {
      id: 5,
      itemType: '제품',
      productCategory: '스크린',
      productType: '특수형',
      productName: '초대형스크린',
      itemCode: 'FG-SCR-SPL-001',
      fireRating: '방화(90분)',
      width: 8000,
      height: 6000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-02-01',
    },
    {
      id: 6,
      itemType: '제품',
      productCategory: '스크린',
      productType: '표준형',
      productName: '소형스크린',
      itemCode: 'FG-SCR-STD-002',
      fireRating: '일반(30분)',
      width: 1500,
      height: 2000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-02-05',
    },
    {
      id: 7,
      itemType: '제품',
      productCategory: '슬랫',
      productType: '인슐레이트',
      productName: '단열슬랫셔터',
      itemCode: 'FG-SLT-INS-001',
      fireRating: '방화(60분)',
      width: 3000,
      height: 3000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-02-10',
    },
    {
      id: 8,
      itemType: '제품',
      productCategory: '스크린',
      productType: '프리미엄',
      productName: '고급방화스크린',
      itemCode: 'FG-SCR-PRM-002',
      fireRating: '방화(120분)',
      width: 4500,
      height: 5000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-02-15',
    },
    {
      id: 9,
      itemType: '제품',
      productCategory: '슬랫',
      productType: '알루미늄',
      productName: '경량알루미늄셔터',
      itemCode: 'FG-SLT-AL-002',
      fireRating: '일반(30분)',
      width: 2500,
      height: 2500,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-02-20',
    },
    {
      id: 10,
      itemType: '제품',
      productCategory: '스크린',
      productType: '특수형',
      productName: '커브드스크린',
      itemCode: 'FG-SCR-SPL-002',
      fireRating: '방화(60분)',
      width: 6000,
      height: 4000,
      unit: 'SET',
      status: '활성',
      bomRequired: true,
      createdAt: '2024-02-25',
    },

    // ============ 조립 부품 (Assembly Part) - 5개 ============
    {
      id: 11,
      itemType: '부품',
      partSubType: '조립 부품',
      assemblyPartType: '샤프트ASS\'Y',
      assemblyPartItemName: '샤프트어셈블리(4인치)',
      itemCode: 'PT-ASY-SFT4-001',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '4인치 스크린용',
      createdAt: '2024-01-20',
    },
    {
      id: 12,
      itemType: '부품',
      partSubType: '조립 부품',
      assemblyPartType: '샤프트ASS\'Y',
      assemblyPartItemName: '샤프트어셈블리(5인치)',
      itemCode: 'PT-ASY-SFT5-001',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '5인치 대형스크린용',
      createdAt: '2024-01-22',
    },
    {
      id: 13,
      itemType: '부품',
      partSubType: '조립 부품',
      assemblyPartType: '하단바ASS\'Y',
      assemblyPartItemName: '하단바어셈블리(스크린)',
      itemCode: 'PT-ASY-BTM-001',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '스크린 하단 마감용',
      createdAt: '2024-01-25',
    },
    {
      id: 14,
      itemType: '부품',
      partSubType: '조립 부품',
      assemblyPartType: '케이스ASS\'Y',
      assemblyPartItemName: '케이스어셈블리(500*380)',
      itemCode: 'PT-ASY-CSE-001',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '표준형 케이스',
      createdAt: '2024-01-28',
    },
    {
      id: 15,
      itemType: '부품',
      partSubType: '조립 부품',
      assemblyPartType: '가이드레일ASS\'Y',
      assemblyPartItemName: '가이드레일어셈블리(벽면형)',
      itemCode: 'PT-ASY-GR-001',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '벽면 설치용',
      createdAt: '2024-02-01',
    },

    // ============ 절곡 부품 (Bending Part) - 5개 ============
    {
      id: 16,
      itemType: '부품',
      partSubType: '절곡 부품',
      bendingPartItemName: '가이드레일(벽면형)',
      itemCode: 'PT-BND-R-001',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      length: 3000,
      unit: 'EA',
      status: '활성',
      bomRequired: false,
      createdAt: '2024-01-15',
    },
    {
      id: 17,
      itemType: '부품',
      partSubType: '절곡 부품',
      bendingPartItemName: '가이드레일(측면형)',
      itemCode: 'PT-BND-S-001',
      material: 'E.G.I 1.6T',
      totalWidth: 450,
      length: 3000,
      unit: 'EA',
      status: '활성',
      bomRequired: false,
      createdAt: '2024-01-18',
    },
    {
      id: 18,
      itemType: '부품',
      partSubType: '절곡 부품',
      bendingPartItemName: '케이스',
      itemCode: 'PT-BND-C-001',
      material: 'E.G.I 1.6T',
      totalWidth: 500,
      length: 2438,
      unit: 'EA',
      status: '활성',
      bomRequired: false,
      createdAt: '2024-01-20',
    },
    {
      id: 19,
      itemType: '부품',
      partSubType: '절곡 부품',
      bendingPartItemName: '하단마감재(스크린)',
      itemCode: 'PT-BND-B-001',
      material: 'E.G.I 1.2T',
      totalWidth: 60,
      length: 3000,
      unit: 'EA',
      status: '활성',
      bomRequired: false,
      createdAt: '2024-01-22',
    },
    {
      id: 20,
      itemType: '부품',
      partSubType: '절곡 부품',
      bendingPartItemName: 'L-Bar',
      itemCode: 'PT-BND-L-001',
      material: 'E.G.I 1.6T',
      totalWidth: 50,
      length: 4300,
      unit: 'EA',
      status: '활성',
      bomRequired: false,
      createdAt: '2024-01-25',
    },

    // ============ 구매 부품 (Purchased Part) - 5개 ============
    // 품목코드 패턴: {code}-{전원}-{용량} (예: E-220V-300 KG)
    {
      id: 21,
      itemType: '부품',
      partSubType: '구매 부품',
      purchasedPartItemName: '전동개폐기',
      power: '220V',
      capacity: '300 KG',
      itemCode: 'E-220V-300 KG',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '일반 스크린용',
      createdAt: '2024-02-01',
    },
    {
      id: 22,
      itemType: '부품',
      partSubType: '구매 부품',
      purchasedPartItemName: '전동개폐기',
      power: '380V',
      capacity: '600 KG',
      itemCode: 'E-380V-600 KG',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '대형 스크린용',
      createdAt: '2024-02-03',
    },
    {
      id: 23,
      itemType: '부품',
      partSubType: '구매 부품',
      purchasedPartItemName: '제어반',
      power: '220V',
      capacity: '500 KG',
      itemCode: 'CTL-220V-500 KG',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '표준형 제어반',
      createdAt: '2024-02-05',
    },
    {
      id: 24,
      itemType: '부품',
      partSubType: '구매 부품',
      purchasedPartItemName: '연기감지기',
      power: '220V',
      capacity: '150 KG',
      itemCode: 'SMK-220V-150 KG',
      unit: 'EA',
      status: '활성',
      bomRequired: false,
      remark: '방재시스템 연동',
      createdAt: '2024-02-08',
    },
    {
      id: 25,
      itemType: '부품',
      partSubType: '구매 부품',
      purchasedPartItemName: '수동개폐기',
      power: '220V',
      capacity: '400 KG',
      itemCode: 'M-220V-400 KG',
      unit: 'EA',
      status: '활성',
      bomRequired: true,
      remark: '수동 조작용',
      createdAt: '2024-02-10',
    },

    // ============ 부자재 (Sub Material) - 10개 ============
    // 품목코드 패턴: {code}-{spec} (예: SCR-0.3T)
    {
      id: 26,
      itemType: '부자재',
      subMaterialItemName: '스크린원단',
      subMaterialSpec: '0.3T',
      itemCode: 'SCR-0.3T',
      unit: 'M',
      status: '활성',
      remark: '일반 스크린용',
      createdAt: '2024-01-10',
    },
    {
      id: 27,
      itemType: '부자재',
      subMaterialItemName: '스크린원단',
      subMaterialSpec: '0.5T',
      itemCode: 'SCR-0.5T',
      unit: 'M',
      status: '활성',
      remark: '방화 스크린용',
      createdAt: '2024-01-12',
    },
    {
      id: 28,
      itemType: '부자재',
      subMaterialItemName: '슬랫',
      subMaterialSpec: '75mm',
      itemCode: 'SLT-75mm',
      unit: 'EA',
      status: '활성',
      remark: '표준형 슬랫',
      createdAt: '2024-01-15',
    },
    {
      id: 29,
      itemType: '부자재',
      subMaterialItemName: '슬랫',
      subMaterialSpec: '100mm',
      itemCode: 'SLT-100mm',
      unit: 'EA',
      status: '활성',
      remark: '대형 슬랫',
      createdAt: '2024-01-18',
    },
    {
      id: 30,
      itemType: '부자재',
      subMaterialItemName: '가이드레일',
      subMaterialSpec: '60×60',
      itemCode: 'GR-60×60',
      unit: 'M',
      status: '활성',
      remark: '표준형 레일',
      createdAt: '2024-01-20',
    },
    {
      id: 31,
      itemType: '부자재',
      subMaterialItemName: '가이드레일',
      subMaterialSpec: '80×80',
      itemCode: 'GR-80×80',
      unit: 'M',
      status: '활성',
      remark: '대형 레일',
      createdAt: '2024-01-22',
    },
    {
      id: 32,
      itemType: '부자재',
      subMaterialItemName: '샤프트',
      subMaterialSpec: '4인치',
      itemCode: 'SFT-4인치',
      unit: 'EA',
      status: '활성',
      remark: '소형 스크린용',
      createdAt: '2024-01-25',
    },
    {
      id: 33,
      itemType: '부자재',
      subMaterialItemName: '샤프트',
      subMaterialSpec: '6인치',
      itemCode: 'SFT-6인치',
      unit: 'EA',
      status: '활성',
      remark: '대형 스크린용',
      createdAt: '2024-01-28',
    },
    {
      id: 34,
      itemType: '부자재',
      subMaterialItemName: '스프링',
      subMaterialSpec: '중형',
      itemCode: 'SPR-중형',
      unit: 'EA',
      status: '활성',
      remark: '표준형 사용',
      createdAt: '2024-02-01',
    },
    {
      id: 35,
      itemType: '부자재',
      subMaterialItemName: '체인',
      subMaterialSpec: '#35',
      itemCode: 'CHN-#35',
      unit: 'M',
      status: '활성',
      remark: '수동 개폐용',
      createdAt: '2024-02-05',
    },

    // ============ 원자재 (Raw Material) - 10개 ============
    // 품목코드 패턴: {code}-{spec} (예: STEEL-1.2T)
    {
      id: 36,
      itemType: '원자재',
      rawMaterialItemName: '철판',
      rawMaterialSpec: '1.2T',
      itemCode: 'STEEL-1.2T',
      unit: 'KG',
      status: '활성',
      remark: '일반 철판',
      createdAt: '2024-01-05',
    },
    {
      id: 37,
      itemType: '원자재',
      rawMaterialItemName: '철판',
      rawMaterialSpec: '1.6T',
      itemCode: 'STEEL-1.6T',
      unit: 'KG',
      status: '활성',
      remark: '후판',
      createdAt: '2024-01-08',
    },
    {
      id: 38,
      itemType: '원자재',
      rawMaterialItemName: '아연도금강판',
      rawMaterialSpec: '1.0T',
      itemCode: 'EGI-1.0T',
      unit: 'KG',
      status: '활성',
      remark: 'E.G.I',
      createdAt: '2024-01-10',
    },
    {
      id: 39,
      itemType: '원자재',
      rawMaterialItemName: '아연도금강판',
      rawMaterialSpec: '1.6T',
      itemCode: 'EGI-1.6T',
      unit: 'KG',
      status: '활성',
      remark: 'E.G.I 후판',
      createdAt: '2024-01-12',
    },
    {
      id: 40,
      itemType: '원자재',
      rawMaterialItemName: '스테인리스',
      rawMaterialSpec: '1.0T',
      itemCode: 'SUS-1.0T',
      unit: 'KG',
      status: '활성',
      remark: 'SUS 304',
      createdAt: '2024-01-15',
    },
    {
      id: 41,
      itemType: '원자재',
      rawMaterialItemName: '스테인리스',
      rawMaterialSpec: '1.5T',
      itemCode: 'SUS-1.5T',
      unit: 'KG',
      status: '활성',
      remark: 'SUS 304 후판',
      createdAt: '2024-01-18',
    },
    {
      id: 42,
      itemType: '원자재',
      rawMaterialItemName: '알루미늄판',
      rawMaterialSpec: '1.5T',
      itemCode: 'AL-1.5T',
      unit: 'KG',
      status: '활성',
      remark: '경량 알루미늄',
      createdAt: '2024-01-20',
    },
    {
      id: 43,
      itemType: '원자재',
      rawMaterialItemName: '알루미늄판',
      rawMaterialSpec: '2.0T',
      itemCode: 'AL-2.0T',
      unit: 'KG',
      status: '활성',
      remark: '표준 알루미늄',
      createdAt: '2024-01-22',
    },
    {
      id: 44,
      itemType: '원자재',
      rawMaterialItemName: '각파이프',
      rawMaterialSpec: '40×40',
      itemCode: 'PIPE-40×40',
      unit: 'M',
      status: '활성',
      remark: '프레임용',
      createdAt: '2024-01-25',
    },
    {
      id: 45,
      itemType: '원자재',
      rawMaterialItemName: '각파이프',
      rawMaterialSpec: '50×50',
      itemCode: 'PIPE-50×50',
      unit: 'M',
      status: '활성',
      remark: '대형 프레임용',
      createdAt: '2024-01-28',
    },

    // ============ 소모품 (Consumables) - 5개 ============
    // 품목코드 패턴: {품목명}-{규격} (예: 볼트-M8×20)
    {
      id: 46,
      itemType: '소모품',
      consumableItemName: '볼트',
      consumableSpec: 'M8×20',
      itemCode: '볼트-M8×20',
      unit: 'EA',
      remark: '일반 체결용',
      createdAt: '2024-01-10',
    },
    {
      id: 47,
      itemType: '소모품',
      consumableItemName: '너트',
      consumableSpec: 'M8',
      itemCode: '너트-M8',
      unit: 'EA',
      remark: 'M8 볼트용',
      createdAt: '2024-01-12',
    },
    {
      id: 48,
      itemType: '소모품',
      consumableItemName: '용접봉',
      consumableSpec: '2.6mm',
      itemCode: '용접봉-2.6mm',
      unit: 'KG',
      remark: 'CO2 용접용',
      createdAt: '2024-01-15',
    },
    {
      id: 49,
      itemType: '소모품',
      consumableItemName: '페인트',
      consumableSpec: '회색',
      itemCode: '페인트-회색',
      unit: 'L',
      remark: '하도용',
      createdAt: '2024-01-18',
    },
    {
      id: 50,
      itemType: '소모품',
      consumableItemName: '실리콘',
      consumableSpec: '투명',
      itemCode: '실리콘-투명',
      unit: 'EA',
      remark: '방수 실링용',
      createdAt: '2024-01-20',
    },
  ],
};

export default itemMasterConfig;
