feat:품목관리 수식 산출 입력폼에 제품모델/설치타입/마감타입 추가

- 제품모델(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 <noreply@anthropic.com>
This commit is contained in:
2026-02-20 15:41:14 +09:00
parent 15f83d0367
commit df3feeade9
2 changed files with 78 additions and 3 deletions

View File

@@ -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,