|
|
@@ -12,8 +12,15 @@ $(function(){
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 当初始化月份值
|
|
|
+ var months = month_method_2();
|
|
|
+ for(var i=0; i < months.length;i++){
|
|
|
+ $("#sel_month").append('<option value= "'+ months[i] +'">'+ months[i] +'</option>');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 当前月份初始化
|
|
|
- $("#sel_month").val(getM()-1);
|
|
|
+ $("#sel_month").val(months[months.length-1 ]);
|
|
|
|
|
|
// 根据月份确定天数
|
|
|
monthChange();
|
|
|
@@ -50,6 +57,7 @@ $(function(){
|
|
|
getFsWorkInfo();
|
|
|
})
|
|
|
// end
|
|
|
+
|
|
|
/**
|
|
|
* 检索出勤明细数据
|
|
|
* @param {*} param
|
|
|
@@ -57,8 +65,8 @@ $(function(){
|
|
|
function getFsWorkInfo(){
|
|
|
|
|
|
var param = {
|
|
|
- "start_time": "2017-"+(GV("#sel_month")-1)+"-25 23:00:00" ,
|
|
|
- "end_time": "2017-"+GV("#sel_month")+"-25 23:00:00"
|
|
|
+ "start_time": timeTranslate( GV("#sel_month") ) ,
|
|
|
+ "end_time": (GV("#sel_month")+"/25 23:00:00").replace("/","-").replace("/","-")
|
|
|
}
|
|
|
|
|
|
if(GV("#fs_employee")!=''){
|
|
|
@@ -92,7 +100,7 @@ $(function(){
|
|
|
* @param {*} seq
|
|
|
*/
|
|
|
function getTableContent(obj,seq){
|
|
|
- var days = getDays(GV("#sel_month")-1);
|
|
|
+ var days = getDaysByDate(GV("#sel_month")+"/01");
|
|
|
var map_class = {};
|
|
|
for(var z=0; z < obj.subStatisticsFsWork.length ;z++){
|
|
|
if(obj.subStatisticsFsWork[z].check_id !=undefined){
|
|
|
@@ -146,5 +154,5 @@ function getTableContent(obj,seq){
|
|
|
*/
|
|
|
function monthChange(){
|
|
|
$(".m28").show();
|
|
|
- $(".m"+getDays(GV("#sel_month")-1)).hide();
|
|
|
+ $(".m"+getDaysByDate(GV("#sel_month")+'/01')).hide();
|
|
|
}
|