feat:검사 기준서 동적화 + 소스 테이블 통합 검색
- 동적 필드/연결 모델 추가 (SectionField, Link, LinkValue, Preset) - 통합 검색 API (SourceTableSearchController) - items/processes/lots/users - 템플릿 편집 UI: 소스 테이블 드롭다운 + datalist 검색/선택 - 문서 작성/인쇄/상세 뷰: getFieldValue() 기반 동적 렌더링 - DocumentTemplateApiController: source_table 기반 저장/복제 - DocumentController: sectionFields/links eager loading 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@ public function create(Request $request): View|Response
|
||||
|
||||
// 선택된 템플릿
|
||||
$template = $templateId
|
||||
? DocumentTemplate::with(['approvalLines', 'basicFields', 'sections.items', 'columns'])->find($templateId)
|
||||
? DocumentTemplate::with(['approvalLines', 'basicFields', 'sections.items', 'columns', 'sectionFields', 'links.linkValues'])->find($templateId)
|
||||
: null;
|
||||
|
||||
return view('documents.edit', [
|
||||
@@ -82,6 +82,8 @@ public function edit(int $id): View|Response
|
||||
'template.basicFields',
|
||||
'template.sections.items',
|
||||
'template.columns',
|
||||
'template.sectionFields',
|
||||
'template.links.linkValues',
|
||||
'approvals.user',
|
||||
'data',
|
||||
'attachments.file',
|
||||
@@ -115,6 +117,8 @@ public function print(int $id): View
|
||||
'template.basicFields',
|
||||
'template.sections.items',
|
||||
'template.columns',
|
||||
'template.sectionFields',
|
||||
'template.links.linkValues',
|
||||
'approvals.user',
|
||||
'data',
|
||||
'creator',
|
||||
@@ -137,6 +141,8 @@ public function show(int $id): View
|
||||
'template.basicFields',
|
||||
'template.sections.items',
|
||||
'template.columns',
|
||||
'template.sectionFields',
|
||||
'template.links.linkValues',
|
||||
'approvals.user',
|
||||
'data',
|
||||
'attachments.file',
|
||||
|
||||
Reference in New Issue
Block a user