feat:검사주기(n/c값) 및 검사기준(standard_criteria) 기능 추가
- 검사주기 입력을 n값, c값, 텍스트 3개로 분리 - standard_criteria JSON으로 구조화된 비교기준 저장 (min/max + 이상/초과/이하/미만) - 미리보기 측정치 셀 수를 frequency_n 기반 동적 렌더링 - 그룹 항목 미리보기에서 측정치/검사방식/주기/판정 행별 개별 표시 - ID 비교 === → == 수정 (문자열/숫자 타입 불일치 버그) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -289,8 +289,11 @@ public function duplicate(Request $request, int $id): JsonResponse
|
||||
'item' => $item->item,
|
||||
'standard' => $item->standard,
|
||||
'tolerance' => $item->tolerance,
|
||||
'standard_criteria' => $item->standard_criteria,
|
||||
'method' => $item->method,
|
||||
'measurement_type' => $item->measurement_type,
|
||||
'frequency_n' => $item->frequency_n,
|
||||
'frequency_c' => $item->frequency_c,
|
||||
'frequency' => $item->frequency,
|
||||
'regulation' => $item->regulation,
|
||||
'sort_order' => $item->sort_order,
|
||||
@@ -428,8 +431,11 @@ private function saveRelations(DocumentTemplate $template, array $data, bool $de
|
||||
'item' => $item['item'] ?? '',
|
||||
'standard' => $item['standard'] ?? '',
|
||||
'tolerance' => $item['tolerance'] ?? null,
|
||||
'standard_criteria' => $item['standard_criteria'] ?? null,
|
||||
'method' => $item['method'] ?? '',
|
||||
'measurement_type' => $item['measurement_type'] ?? null,
|
||||
'frequency_n' => $item['frequency_n'] ?? null,
|
||||
'frequency_c' => $item['frequency_c'] ?? null,
|
||||
'frequency' => $item['frequency'] ?? '',
|
||||
'regulation' => $item['regulation'] ?? '',
|
||||
'sort_order' => $iIndex,
|
||||
|
||||
Reference in New Issue
Block a user