diff --git a/resources/views/quote-formulas/simulator.blade.php b/resources/views/quote-formulas/simulator.blade.php
index a19402b9..15a8218c 100644
--- a/resources/views/quote-formulas/simulator.blade.php
+++ b/resources/views/quote-formulas/simulator.blade.php
@@ -189,18 +189,47 @@ function renderInputFields() {
vars.forEach(v => {
const defaultValue = v.default_value || '';
- html += `
-
-
+ // TYPE이 포함된 변수는 문자열 입력 (select 또는 text)
+ const isTextInput = v.variable.includes('TYPE') || v.variable.includes('_CODE');
+
+ let inputHtml = '';
+ if (isTextInput && v.variable === 'CONTROLLER_TYPE') {
+ // 제어기 유형은 select로 표시
+ inputHtml = `
+
+ `;
+ } else if (isTextInput) {
+ inputHtml = `
+
+ `;
+ } else {
+ inputHtml = `
+ `;
+ }
+
+ html += `
+
+
+ ${inputHtml}
`;
});
@@ -243,7 +272,9 @@ function renderCategoryOrder() {
const inputs = {};
for (const [key, value] of formData.entries()) {
if (value !== '') {
- inputs[key] = parseFloat(value);
+ // 숫자로 변환 가능하면 숫자로, 아니면 문자열로 유지
+ const numValue = parseFloat(value);
+ inputs[key] = isNaN(numValue) ? value : numValue;
}
}