| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- $(function(){
- // 当前月份初始化
- $("#sel_month").val(getM()-1);
- $("#month_name").html( $("#sel_month").find("option:selected").text());
- // 导管中心选择
- $("#center_manage").change(function(){
- var center_manage_id = GV(this);
- if(center_manage_id == ''){
- $("#fs_station,#fs_employee").html('');
- }else{
- getFsStationList(center_manage_id,function(obj){
- $("#fs_station").html(obj);
- });
- }
- })
- // 查询
- $("#searchBtn").click(function(){
- $("#month_name").html( $("#sel_month").find("option:selected").text() )
- getFsWorkInfo();
- })
- // 导出excel
- $("#exportExcel").click(function(){
- var param = '';
- if( GV("#fs_station") != '' && GV("#fs_station")!=null ){
- param = "&deptId="+ GV("#fs_station");
- }else if(GV("#center_manage")!='' ){
- param = "¢erId=" + GV("#center_manage");
- }
- window.location.href = getserveraddr() +"/file/appeal/info?month="+GV("#sel_month")+param;
- })
- // 初始化查询
- getFsWorkInfo();
- // end
- })
- /**
- * 检索出勤明细数据
- * @param {*} param
- */
- 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"
- }
-
- if(GV("#fs_station")!=''){
- param[ 'dept_id' ] = GV("#fs_station");
- }else if(GV("#center_manage") != ''){
- param[ 'parent_dept_id' ] = GV("#center_manage");
- }
- post_common_service("statistics/check/appeal",param,function(data){
-
- $(".table-tbody").empty();
- if(data.length >0){
- for(var i=0;i< data.length;i++){
- $(".table-tbody").append( getTableContent(data[i],i+1));
- }
- }
- },function(error){
- });
- }
- /**
- * 拼接表格内容
- * @param {*} obj
- * @param {*} seq
- */
- function getTableContent(obj,seq){
-
- var content = "<tr><td>"+seq+"</td> <td >"+obj.fee_station_name+"</td> <td >"+GDV(obj.appeal_num,0)+
- "</td> <td >"+GDV(obj.appeal_success_num,0)+"</td><td>"+ GDV(obj.appeal_fail_num,0) +"</td><td>"+ GDV(obj.appeal_other_num,0) +"</td> </tr>";
- return content;
- }
|