Quellcode durchsuchen

Merge branch 'develop' of http://112.172.147.34:4936/style24/style24.admin.git into develop

gagamel vor 4 Jahren
Ursprung
Commit
a583e3a2d1

+ 10 - 2
src/main/webapp/WEB-INF/views/customer/CustomerActiveListForm.html

@@ -248,6 +248,9 @@
 		// 입력 값 체크
 		const $searchGb = $('#custActiveForm select[name=searchGb]');	// 검색구분
 		const $searchTxt = $('#custActiveForm input[name=searchTxt]');	// 검색내용
+		const $stDate = $('#custActiveForm input[name=stDate]');
+		const $edDate = $('#custActiveForm input[name=edDate]');
+
 		let isSearchVaild = true;
 		let validationMessage;
 
@@ -265,7 +268,13 @@
 				validationMessage = '검색구분을 선택해주세요';
 				isSearchVaild = false;
 			}
+		}
 
+		if (gagajf.isNull($stDate.val()) && gagajf.isNull($edDate.val())) {
+			if (gagajf.isNull($searchTxt.val()) && gagajf.isNull($searchGb.val())) {
+				validationMessage = '일자 없이 조회시 <br> 검색구분 선택 및 내용을 입력해주세요';
+				isSearchVaild = false;
+			}
 		}
 
 		if (!isSearchVaild) {
@@ -276,11 +285,10 @@
 				}
 			});
 		}
-
 		return isSearchVaild;
-
 	}
 
+
 	// 검색
 	var fnSearch = function() {
 		// 유효성 체크

+ 5 - 0
src/main/webapp/WEB-INF/views/marketing/PointGrantPopupForm.html

@@ -129,6 +129,11 @@
 				mcxDialog.alert("지급가능한 포인트를 초과하였습니다.");
 				return;
 			}
+			let today = new Date().format("YYYY-MM-DD");
+			if (grantPoint.expBeDt < today) {
+				mcxDialog.alert("만료일자는 오늘일자 보다 크거나 같아야 합니다.");
+				return;
+			}
 		}
 
 		// (+ + 1) -> 1, (- + 1) -> -1