From df3feeade97c45bfa3dda8ff4325c4a29bc90c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Fri, 20 Feb 2026 15:41:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=ED=92=88=EB=AA=A9=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=88=98=EC=8B=9D=20=EC=82=B0=EC=B6=9C=20=EC=9E=85=EB=A0=A5?= =?UTF-8?q?=ED=8F=BC=EC=97=90=20=EC=A0=9C=ED=92=88=EB=AA=A8=EB=8D=B8/?= =?UTF-8?q?=EC=84=A4=EC=B9=98=ED=83=80=EC=9E=85/=EB=A7=88=EA=B0=90?= =?UTF-8?q?=ED=83=80=EC=9E=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 제품모델(KSS01~KDSS01), 설치타입(벽면형/측면형/혼합형), 마감타입(SUS/EGI) select 추가 - FG 코드 파싱으로 입력폼 자동 세팅 (FG-KQTS01-벽면형-SUS → 각 필드 매핑) - calculateFormula() API 호출 시 새 파라미터 전송 - ItemManagementApiController에서 product_model/installation_type/finishing_type 수신 처리 Co-Authored-By: Claude Opus 4.6 --- .../Api/Admin/ItemManagementApiController.php | 13 +++- .../views/item-management/index.blade.php | 68 ++++++++++++++++++- 2 files changed, 78 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/Admin/ItemManagementApiController.php b/app/Http/Controllers/Api/Admin/ItemManagementApiController.php index 6ac82b1d..b83d0657 100644 --- a/app/Http/Controllers/Api/Admin/ItemManagementApiController.php +++ b/app/Http/Controllers/Api/Admin/ItemManagementApiController.php @@ -75,7 +75,18 @@ public function calculateFormula(Request $request, int $id): JsonResponse 'MP' => in_array($mp, ['single', 'three']) ? $mp : 'single', ]; - $formulaService = new FormulaApiService(); + // 제품모델/설치타입/마감타입 (입력값이 있으면 전달) + if ($request->filled('product_model')) { + $variables['product_model'] = $request->input('product_model'); + } + if ($request->filled('installation_type')) { + $variables['installation_type'] = $request->input('installation_type'); + } + if ($request->filled('finishing_type')) { + $variables['finishing_type'] = $request->input('finishing_type'); + } + + $formulaService = new FormulaApiService; $result = $formulaService->calculateBom( $item->code, $variables, diff --git a/resources/views/item-management/index.blade.php b/resources/views/item-management/index.blade.php index 06fcb13e..6562f566 100644 --- a/resources/views/item-management/index.blade.php +++ b/resources/views/item-management/index.blade.php @@ -61,7 +61,7 @@ class="bom-tab px-3 py-1.5 text-xs font-medium rounded-md bg-gray-100 text-gray-