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){