瀏覽代碼

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

dwkim 2 年之前
父節點
當前提交
59a86e4c18
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/webapp/js/app/config.js

+ 4 - 0
src/main/webapp/js/app/config.js

@@ -1184,7 +1184,9 @@ function itp_fn_get_today_ko(split) {
1184
 };
1184
 };
1185
 
1185
 
1186
 function itp_fn_get_before_month(dateStr, addMonth, split) {
1186
 function itp_fn_get_before_month(dateStr, addMonth, split) {
1187
+	if (!addMonth) addMonth=1;
1187
 	if (split == null || split == undefined) split = '.';
1188
 	if (split == null || split == undefined) split = '.';
1189
+	if (dateStr == null || dateStr == undefined) dateStr = itp_fn_get_today_ko();
1188
 	dateStr = itp_fn_delete_date_format(dateStr);
1190
 	dateStr = itp_fn_delete_date_format(dateStr);
1189
 	var yyyy = dateStr.substring(0,4),
1191
 	var yyyy = dateStr.substring(0,4),
1190
 		mm = parseInt(dateStr.substring(4,6), 10),
1192
 		mm = parseInt(dateStr.substring(4,6), 10),
@@ -1200,7 +1202,9 @@ function itp_fn_get_before_month(dateStr, addMonth, split) {
1200
 };
1202
 };
1201
 
1203
 
1202
 function itp_fn_get_after_month(dateStr, addMonth, split) {
1204
 function itp_fn_get_after_month(dateStr, addMonth, split) {
1205
+	if (!addMonth) addMonth=1;
1203
 	if (split == null || split == undefined) split = '.';
1206
 	if (split == null || split == undefined) split = '.';
1207
+	if (dateStr == null || dateStr == undefined) dateStr = itp_fn_get_today_ko();
1204
 	dateStr = itp_fn_delete_date_format(dateStr);
1208
 	dateStr = itp_fn_delete_date_format(dateStr);
1205
 	var yyyy = dateStr.substring(0,4),
1209
 	var yyyy = dateStr.substring(0,4),
1206
 		mm = parseInt(dateStr.substring(4,6), 10),
1210
 		mm = parseInt(dateStr.substring(4,6), 10),