feat(WEB): 작업일지/검사성적서 버튼 공정 레벨 설정 연동
- Process 타입에 documentTemplateId, needsWorkLog 필드 추가 (ProcessStep에서 이동) - ProcessForm에 중간검사 양식/작업일지 설정 UI 추가 - StepForm에서 해당 UI 제거 - WorkerScreen 하단 버튼 조건부 렌더링: needsWorkLog/documentTemplateId 기반
This commit is contained in:
@@ -57,7 +57,14 @@ export interface Process {
|
||||
description?: string; // 공정 설명 (테이블에 표시)
|
||||
processType: ProcessType; // 생산, 검사 등
|
||||
department: string; // 담당부서
|
||||
workLogTemplate?: string; // 작업일지 양식
|
||||
workLogTemplate?: string; // 작업일지 양식 (레거시 string)
|
||||
|
||||
// 중간검사/작업일지 설정 (Process 레벨)
|
||||
documentTemplateId?: number; // 중간검사 양식 ID
|
||||
documentTemplateName?: string; // 중간검사 양식명 (표시용)
|
||||
needsWorkLog: boolean; // 작업일지 여부
|
||||
workLogTemplateId?: number; // 작업일지 양식 ID
|
||||
workLogTemplateName?: string; // 작업일지 양식명 (표시용)
|
||||
|
||||
// 자동 분류 규칙
|
||||
classificationRules: ClassificationRule[];
|
||||
@@ -99,6 +106,9 @@ export interface ProcessFormData {
|
||||
processCategory?: string;
|
||||
useProductionDate?: boolean;
|
||||
workLogTemplate?: string;
|
||||
documentTemplateId?: number;
|
||||
needsWorkLog: boolean;
|
||||
workLogTemplateId?: number;
|
||||
classificationRules: ClassificationRuleInput[];
|
||||
requiredWorkers: number;
|
||||
equipmentInfo?: string;
|
||||
@@ -169,8 +179,6 @@ export interface ProcessStep {
|
||||
isRequired: boolean; // 필수여부
|
||||
needsApproval: boolean; // 승인여부
|
||||
needsInspection: boolean; // 검사여부
|
||||
documentTemplateId?: number; // 문서양식 ID (검사 시 사용할 템플릿)
|
||||
documentTemplateName?: string; // 문서양식명 (표시용)
|
||||
isActive: boolean; // 사용여부
|
||||
order: number; // 순서 (드래그&드롭)
|
||||
// 연결 정보
|
||||
|
||||
Reference in New Issue
Block a user