From 33367406a0257148bf2227bd110c79199f659c02 Mon Sep 17 00:00:00 2001 From: kent Date: Tue, 30 Dec 2025 17:27:01 +0900 Subject: [PATCH] =?UTF-8?q?feat(MNG):=20=EA=B2=AC=EC=A0=81=20=EA=B3=B5?= =?UTF-8?q?=EC=8B=9D=20=EC=8B=9C=EB=AE=AC=EB=A0=88=EC=9D=B4=ED=84=B0=20UI?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - FormulaEvaluatorService: 공식 평가 로직 개선 - simulator.blade.php: 시뮬레이터 UI/UX 개선 - 입력 필드 레이아웃 최적화 - 계산 결과 표시 개선 - 에러 처리 강화 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../Quote/FormulaEvaluatorService.php | 9 +- .../views/quote-formulas/simulator.blade.php | 135 +++++++++++++++--- 2 files changed, 122 insertions(+), 22 deletions(-) diff --git a/app/Services/Quote/FormulaEvaluatorService.php b/app/Services/Quote/FormulaEvaluatorService.php index 9c04c72a..bf2e7825 100644 --- a/app/Services/Quote/FormulaEvaluatorService.php +++ b/app/Services/Quote/FormulaEvaluatorService.php @@ -795,10 +795,17 @@ public function calculateBomWithDebug( $tenantId = $tenantId ?? session('selected_tenant_id'); $this->currentTenantId = $tenantId; - // Step 1: 입력값 수집 + // Step 1: 입력값 수집 (React 동기화 변수 포함) $this->addDebugStep(1, '입력값수집', [ 'W0' => $inputVariables['W0'] ?? null, 'H0' => $inputVariables['H0'] ?? null, + 'QTY' => $inputVariables['QTY'] ?? 1, + 'PC' => $inputVariables['PC'] ?? '', + 'GT' => $inputVariables['GT'] ?? 'wall', + 'MP' => $inputVariables['MP'] ?? 'single', + 'CT' => $inputVariables['CT'] ?? 'basic', + 'WS' => $inputVariables['WS'] ?? 50, + 'INSP' => $inputVariables['INSP'] ?? 50000, 'finished_goods' => $finishedGoodsCode, ]); diff --git a/resources/views/quote-formulas/simulator.blade.php b/resources/views/quote-formulas/simulator.blade.php index 6e3b6394..cfb7189b 100644 --- a/resources/views/quote-formulas/simulator.blade.php +++ b/resources/views/quote-formulas/simulator.blade.php @@ -85,31 +85,78 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-lg font-medium

완제품 BOM 시뮬레이션

- + +
+ + +
+
- +
-
- +
+
-
- - -
-
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +