feat:품목관리 수식 산출에 전원(단상/삼상) 선택 추가

- 수식 입력 패널에 전원 Select 추가 (단상 220V / 삼상 380V)
- calculateFormula()에서 MP 변수 수집 및 API 전송
- Controller에서 MP 파라미터 수신 후 FormulaApiService로 전달

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 21:14:59 +09:00
parent f271f8bdc3
commit a2c8731937
2 changed files with 12 additions and 1 deletions

View File

@@ -66,11 +66,13 @@ public function calculateFormula(Request $request, int $id): JsonResponse
$width = (int) $request->input('width', 1000);
$height = (int) $request->input('height', 1000);
$qty = (int) $request->input('qty', 1);
$mp = $request->input('mp', 'single');
$variables = [
'W0' => $width,
'H0' => $height,
'QTY' => $qty,
'MP' => in_array($mp, ['single', 'three']) ? $mp : 'single',
];
$formulaService = new FormulaApiService();