feat(WEB): 중간검사 문서 템플릿 동적 연동 - 공정관리 선택기 + Worker Screen 동적 폼

- ProcessStep 타입에 documentTemplateId/documentTemplateName 추가
- 공정관리 actions.ts: document_template_id 매핑 + getDocumentTemplates 서버 액션
- StepForm: 검사여부 사용 시 문서양식 선택 드롭다운 추가
- WorkerScreen actions.ts: getInspectionTemplate, saveInspectionDocument 서버 액션 추가
- InspectionInputModal: tolerance 기반 자동 판정 + 동적 폼(DynamicInspectionForm) 추가
  - evaluateTolerance: symmetric/asymmetric/range 3가지 tolerance 판정
  - 기존 공정별 하드코딩은 템플릿 없을 때 레거시 모드로 유지
- InspectionReportModal: 템플릿 모드 동적 렌더링 (기준서/DATA/결재라인)
- WorkerScreen index: handleInspectionComplete에서 Document 저장 호출 추가
This commit is contained in:
2026-02-10 08:36:12 +09:00
parent 14b84cc08d
commit 12a423051a
7 changed files with 574 additions and 13 deletions

View File

@@ -166,6 +166,8 @@ export interface ProcessStep {
isRequired: boolean; // 필수여부
needsApproval: boolean; // 승인여부
needsInspection: boolean; // 검사여부
documentTemplateId?: number; // 문서양식 ID (검사 시 사용할 템플릿)
documentTemplateName?: string; // 문서양식명 (표시용)
isActive: boolean; // 사용여부
order: number; // 순서 (드래그&드롭)
// 연결 정보