From 9c4b5b330a63de245c1962d3b819e563850a3333 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 31 Jul 2024 09:51:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=A0=EC=B2=AD=EC=84=9C=EC=A0=91?= =?UTF-8?q?=EC=88=98=20=EC=A0=9C=ED=92=88=EB=AA=A9=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=EB=A1=9C=20?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=EB=B6=84=EB=A6=AC=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsp/adds/nims/dsuseMgtReceipt-edit.jsp | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp index c19a967..3af5ab7 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp @@ -496,6 +496,30 @@ return false; } + debugger + let isContinue = true; + dsProd.forEach(function (item) { + if(isNaN(item.dsuseQy)){ + dialog.alert({ + content: "폐기 수량은 숫자만 입력 가능합니다", + onOK: () => {} + }); + isContinue = false; + return false; + } + if(!isContinue) return false; + let dt = item.prdValidDe?.replaceAll('-', ''); + if(isNaN(dt) || dt.length > 8) { + dialog.alert({ + content: "유효 기간 형식이 부정확 합니다
(예:2024-01-01, 20240101)", + onOK: () => {} + }); + isContinue = false; + return false; + } + }); + if(!isContinue) return false; + let fileCount = 0; $("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(function() { if(this.dataset.url != null){