|
@@ -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'));
|