From 7b27eda963173ce766adc9b87ae50c02e2268e16 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 19 Nov 2024 14:02:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A0=9C=EC=A1=B0=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20radio=20=EB=B2=84=ED=8A=BC=20=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20=20=20=20=20=20default=20-=20?= =?UTF-8?q?=EC=97=85=EC=B2=B4=20=EB=B3=B4=EC=9C=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/adds/nims/product-popup.jsp | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp index 73f4282..ac7c8fb 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp @@ -134,13 +134,25 @@
- - -  신규 API 업체코드 적용 - - - + + + + +
+ + +
+ + +
+
+ + +
+
+ + +
@@ -383,14 +395,16 @@ //그리드(우)조회(새로 조회) $P.fnDetailSearchList = () => { + if(!$P.control.dataset.getCurrent()?.prductCd){ return false; } + let bsshCd = '${bsshCd}'; - if(!$('#chkDtlBsshCd--${pageName}').is(":checked")){ + if($('input:radio[name="schMnfNo"]:checked').val() === 'nims'){ bsshCd = ''; } - + $P.seqInfoControl.query = { fg: $('#schOpt--productPopup').val(), // 1-제조번호, 2-시리얼번호 pg: 1, @@ -443,8 +457,7 @@ $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 $("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); $("#btnSearchDtl--${pageName}").on("click", () => $P.fnDetailSearchList()); - $("#chkDtlBsshCd--${pageName}").on("change", () => $P.fnDetailSearchList()); - + $('input:radio[name="schMnfNo"]').on("change", () => $P.fnDetailSearchList()); $("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList); @@ -467,6 +480,7 @@ // 초기 화면 설정 $P.initForm = () => { $("#btnSearchDtl--${pageName}").prop("disabled", true); + $('input:radio[name="schMnfNo"]').filter('[value="bc"]').prop('checked', true); } /**************************************************************************