From f04466f367adf2bf7eb459cd1caa3108e7d4086d Mon Sep 17 00:00:00 2001 From: syc0123 Date: Thu, 26 Mar 2026 12:17:41 +0900 Subject: [PATCH] =?UTF-8?q?[RAPID-fix]=20=EC=88=98=EC=A3=BC=ED=86=B5?= =?UTF-8?q?=ED=95=A9=EB=93=B1=EB=A1=9D=20=EC=88=98=EB=9F=89=20=EC=A0=95?= =?UTF-8?q?=EC=88=98=ED=8F=AC=EB=A7=B7=20=EB=B3=B5=EC=9B=90,=20=EA=B8=88?= =?UTF-8?q?=EC=95=A1=ED=95=84=EB=93=9C=20blur=EC=8B=9C=20=EC=86=8C?= =?UTF-8?q?=EC=88=98=EC=A0=902=EC=9E=90=EB=A6=AC=20=ED=8F=AC=EB=A7=B7=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 수주수량: 정수 포맷(formatInteger) 유지, 우측정렬 - 공급가액/부가세/총액: blur 시 formatMoney로 .00 포맷 복원 - blur 이벤트를 이벤트 위임 방식으로 변경하여 동적 행에도 적용 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../estimateAndOrderRegistFormPopup.jsp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/WebContent/WEB-INF/view/contractMgmt/estimateAndOrderRegistFormPopup.jsp b/WebContent/WEB-INF/view/contractMgmt/estimateAndOrderRegistFormPopup.jsp index 4956b59..c927c8d 100644 --- a/WebContent/WEB-INF/view/contractMgmt/estimateAndOrderRegistFormPopup.jsp +++ b/WebContent/WEB-INF/view/contractMgmt/estimateAndOrderRegistFormPopup.jsp @@ -68,16 +68,16 @@ // 숫자만 입력 처리 $("input:text[numberOnly]").on("keyup", function() { - if($(this).attr("id") === "facility_qty") { + if($(this).hasClass("item-order-quantity") || $(this).attr("id") === "facility_qty") { $(this).val(formatInteger($(this).val().replace(/[^0-9]/g, ""))); } else { $(this).val(fnc_addComma($(this).val().replace(/[^0-9.]/g, ""))); } }); - $("input:text[numberOnly]").on("blur", function() { + $(document).on("blur", "input:text[numberOnly]", function() { var val = $(this).val(); if(val && val !== '') { - if($(this).attr("id") === "facility_qty") { + if($(this).hasClass("item-order-quantity") || $(this).attr("id") === "facility_qty") { $(this).val(formatInteger(removeComma(val))); } else { $(this).val(formatMoney(removeComma(val))); @@ -450,7 +450,7 @@ } // 수주 정보 설정 - if(existingData.orderQuantity) $("#" + itemId + " .item-order-quantity").val(addComma(existingData.orderQuantity)); + if(existingData.orderQuantity) $("#" + itemId + " .item-order-quantity").val(formatInteger(existingData.orderQuantity)); if(existingData.orderUnitPrice) $("#" + itemId + " .item-order-unit-price").val(addComma(existingData.orderUnitPrice)); if(existingData.orderSupplyPrice) $("#" + itemId + " .item-order-supply-price").val(addComma(existingData.orderSupplyPrice)); if(existingData.orderVat) $("#" + itemId + " .item-order-vat").val(addComma(existingData.orderVat)); @@ -551,9 +551,9 @@ // 수주 정보 (Machine이고 프로젝트가 있으면 수량 readonly) html += ''; if(isMachine && hasProject) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } html += ''; html += ''; @@ -703,7 +703,7 @@ totalVat += parseFloat(removeComma($(this).find(".item-order-vat").val())) || 0; totalAmount += parseFloat(removeComma($(this).find(".item-order-total-amount").val())) || 0; }); - $("#totalOrderQuantity").text(addComma(totalQty)); + $("#totalOrderQuantity").text(addCommaInt(totalQty)); $("#totalOrderSupplyPrice").text(addComma(totalSupply)); $("#totalOrderVat").text(addComma(totalVat)); $("#totalOrderTotalAmount").text(addComma(totalAmount));