Browse Source

매출관리 기준날짜 변경

yhl88 2 years ago
parent
commit
7efd80c00f

+ 6 - 4
src/main/webapp/js/app/salesmng/ITP_SALESMNG01010.js

@@ -140,12 +140,14 @@ let pageObj = {
140 140
 		            fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
141 141
 		        }
142 142
 		    });
143
-
144
-			// 조회일자 지정
143
+			// 조회일자 지정	
145 144
 			var now = new Date();
145
+			var fromDate = new Date(now);
146
+			fromDate.setDate(now.getDate() - 30);
147
+			var toDate = new Date(now);
146 148
 			$('#ITP_TAB_SALESMNG01010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);			
147
-			$('#ITP_FORM_SALESMNG01010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
148
-			$('#ITP_FORM_SALESMNG01010_SEARCH_TO_DT').datepicker('setDate', new Date());
149
+			$('#ITP_FORM_SALESMNG01010_SEARCH_FROM_DT').datepicker('setDate', fromDate);
150
+			$('#ITP_FORM_SALESMNG01010_SEARCH_TO_DT').datepicker('setDate', toDate);
149 151
 			
150 152
 			// 권한에 따라 매장값 설정
151 153
 			$('#ITP_FORM_SALESMNG01010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));

+ 6 - 4
src/main/webapp/js/app/salesmng/ITP_SALESMNG02010.js

@@ -146,12 +146,14 @@ let pageObj = {
146 146
 		            fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
147 147
 		        }
148 148
 		    });
149
-
150
-			// 조회일자 지정
149
+			// 조회일자 지정	
151 150
 			var now = new Date();
151
+			var fromDate = new Date(now);
152
+			fromDate.setDate(now.getDate() - 30);
153
+			var toDate = new Date(now);
152 154
 			$('#ITP_TAB_SALESMNG02010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);			
153
-			$('#ITP_FORM_SALESMNG02010_SEARCH_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
154
-			$('#ITP_FORM_SALESMNG02010_SEARCH_TO_DT').datepicker('setDate', new Date());
155
+			$('#ITP_FORM_SALESMNG02010_SEARCH_FROM_DT').datepicker('setDate', fromDate);
156
+			$('#ITP_FORM_SALESMNG02010_SEARCH_TO_DT').datepicker('setDate', toDate);
155 157
 			
156 158
 			// 권한에 따라 매장값 설정
157 159
 			$('#ITP_FORM_SALESMNG02010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));