From 8914cc5f704be5a2e7494389ff33e909da2d404d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A3=BC=EC=88=98=ED=98=84?= Date: Fri, 25 Jul 2025 19:05:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=81=EC=A0=91=EC=9E=85=EB=A0=A5=EA=B0=92?= =?UTF-8?q?=20=EC=95=88=EB=82=98=EC=98=A4=EB=8A=94=EA=B1=B0=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/info/bank/input.html | 2 +- .../resources/templates/info/bank/output.html | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/front/src/main/resources/templates/info/bank/input.html b/front/src/main/resources/templates/info/bank/input.html index 8bf132e4..e2aec841 100644 --- a/front/src/main/resources/templates/info/bank/input.html +++ b/front/src/main/resources/templates/info/bank/input.html @@ -478,7 +478,7 @@ const field = form.elements.namedItem(key); if (field) { field.value = val; - if(key === 'transferCategoryCode' && (val === "code.bank.input.self" || val === "code.bank.input.1" || val === "code.bank.input.4")){ + if(key === 'transferCategoryCode' && (val !== "code.bank.input.10" && val !== "code.bank.input.12" && val !== "code.bank.input.13")){ document.getElementById(val+"_value").value = product["transferCategory"]; } if(key === 'unitCode' && val === "code.count.unit.self"){ diff --git a/front/src/main/resources/templates/info/bank/output.html b/front/src/main/resources/templates/info/bank/output.html index ed314924..5a51a527 100644 --- a/front/src/main/resources/templates/info/bank/output.html +++ b/front/src/main/resources/templates/info/bank/output.html @@ -472,7 +472,7 @@ const field = form.elements.namedItem(key); if (field) { field.value = val; - if (key === 'transferCategoryCode' && val === "code.bank.input.self") { + if (key === 'transferCategoryCode' && val === "code.bank.output.self") { document.getElementById(val + "_value").value = product["transferCategory"]; } if (key === 'unitCode' && val === "code.count.unit.self") { @@ -481,6 +481,22 @@ } }); + + + if (product.transferCategoryCode === "code.bank.output.self") { + const transferCategoryInput = document.getElementById(product.transferCategoryCode + "_value"); + if (transferCategoryInput) { + transferCategoryInput.value = product.transferCategory || ""; + } + } + + // 단위 입력 필드 표시 여부 처리 + if (product.unitCode === "code.count.unit.self") { + const unitDiv = document.getElementById("unitDiv"); + if (unitDiv) { + unitDiv.style.display = ""; + } + } ENV.elementRefs.select.transferCategoryCodeSelect.setValue(product.transferCategoryCode); ENV.elementRefs.select.unitCodeSelect.setValue(product.unitCode); document.getElementById("unit").value = product.unit;