Files
sam-react-prod/src/components/production/WorkOrders/workOrderConfig.ts
유병철 62ef2b1ff9 feat(WEB): IntegratedDetailTemplate 통합 템플릿 구현 및 Phase 1~8 마이그레이션
- Phase 1: 기안함(DocumentCreate) 마이그레이션
- Phase 2: 작업지시(WorkOrderCreate/Edit) 마이그레이션
- Phase 3: 출하(ShipmentCreate/Edit) 마이그레이션
- Phase 4: 사원(EmployeeForm) 마이그레이션
- Phase 5: 게시판(BoardForm) 마이그레이션
- Phase 6: 1:1문의(InquiryForm) 마이그레이션
- Phase 7: 공정(ProcessForm) 마이그레이션
- Phase 8: 수입검사/품질검사(InspectionCreate) 마이그레이션
- DetailActions에 showSave 옵션 추가
- 각 도메인별 config 파일 생성

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 19:31:07 +09:00

65 lines
1.8 KiB
TypeScript

'use client';
import { FileText } from 'lucide-react';
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';
/**
* 작업지시 상세 페이지 Config
*
* 참고: 이 config는 타이틀/버튼 영역만 정의
* 폼 내용은 기존 WorkOrderDetail의 renderView에서 처리
* (공정 진행 단계, 작업 품목 테이블, 상태 변경 버튼, 작업일지 모달 등 특수 기능 유지)
*
* 특이사항:
* - view 모드만 지원 (수정은 별도 /edit 페이지로 이동)
* - 삭제 기능 없음
* - 상태 변경 버튼이 많음 (작업 시작, 완료, 되돌리기 등)
*/
export const workOrderConfig: DetailConfig = {
title: '작업지시 상세',
description: '작업지시 정보를 조회하고 관리합니다',
icon: FileText,
basePath: '/production/work-orders',
fields: [], // renderView 사용으로 필드 정의 불필요
gridColumns: 2,
actions: {
showBack: true,
showDelete: false, // 작업지시는 삭제 기능 없음
showEdit: true,
backLabel: '목록',
editLabel: '수정',
},
};
/**
* 작업지시 등록 페이지 Config
* IntegratedDetailTemplate 마이그레이션 (2025-01-20)
*/
export const workOrderCreateConfig: DetailConfig = {
title: '작업지시 등록',
description: '새로운 작업지시를 등록합니다',
icon: FileText,
basePath: '/production/work-orders',
fields: [],
actions: {
showBack: true,
showEdit: false,
showDelete: false,
showSave: true,
submitLabel: '등록',
},
};
/**
* 작업지시 수정 페이지 Config
*/
export const workOrderEditConfig: DetailConfig = {
...workOrderCreateConfig,
title: '작업지시 수정',
description: '작업지시 정보를 수정합니다',
actions: {
...workOrderCreateConfig.actions,
submitLabel: '저장',
},
};