| | |
| | | setTimeout(function(){ |
| | | getTheaddData() |
| | | getThbodyData() |
| | | getType() |
| | | },0) |
| | | setInterval(function(){ |
| | | getThbodyData() |
| | | },5000) |
| | | |
| | | var getType = function () { |
| | | $.ajax({ |
| | | url:baseurl+'/pms/projectPlan/dataSummary', |
| | | type:'GET', |
| | | data:{}, |
| | | success:function(res){ |
| | | if (res.code ===200 ) { |
| | | var str = '<tr>' |
| | | +'<th>' + '项目总数' + '</th>' + '<th>'+ res.data.totalQuantity +'</th>' |
| | | +'<th>' + '集成项目' + '</th>' + '<th>'+ res.data.intoSum +'</th>' |
| | | +'<th>' + '非集成项目数' + '</th>' + '<th>'+ res.data.wrongInto +'</th>' |
| | | +'<th>' + '已验收项目数' + '</th>' + '<th>'+ res.data.inspected +'</th>' |
| | | +'<th>' + '未验收项目数' + '</th>' + '<th>'+ res.data.wrongInspected +'</th>' |
| | | +'<th>' + '已完工未验收数' + '</th>' + '<th>'+ res.data.finished +'</th>' |
| | | $("#type-header").append(str) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | /****************************************************************************************************************************************************************************/ |
| | | |
| | | |
| | | |
| | | var proData = ["项目名称","售前金额核算","开始时间","结束时间", |
| | | var proData = ["项目名称","项目类型","售前金额核算","开始时间","结束时间", |
| | | "合约签订","图面会签","BOM设计/二级BOM下发", |
| | | "材料采购","生产制作","内部安装调整(研发物料)","进场安装","程序调试","系统联调","上线运行","项目验收","运费","安装费"] |
| | | var getTheaddData = function(){ |
| | |
| | | // }, |
| | | // }) |
| | | } |
| | | |
| | | |
| | | /*****************************************************************************************************************************************************************************/ |
| | | var getThbodyData = function(){ |
| | | $.ajax({ |
| | |
| | | data:{}, |
| | | success:function(res){ |
| | | if(res.code==200){ |
| | | // console.log(res) |
| | | data=res.data |
| | | // 判断时间是否有null 有null的改为 "" |
| | | for(var i = 0;i<data.length;i++){ |
| | |
| | | } |
| | | var str2 = '<tr id="row'+i+'" class="row">' |
| | | +'<th class="projects">'+data[i].id+'</th>' |
| | | +'<th class="projects">'+data[i].type+'</th>' |
| | | +'<td class="nor-mal">'+data[i].presaleAmt+'</td>' |
| | | +'<td class="nor-mal">'+data[i].startDay.substring(0,10)+'</td>' |
| | | +'<td class="nor-mal">'+data[i].endDay.substring(0,10)+'</td>' |
| | | +'<td class="nor-mal">'+'<p>'+data[i].startDay.substring(0,10)+'</p>'+'</td>' |
| | | +'<td class="nor-mal">'+'<p>'+data[i].endDay.substring(0,10)+'</p>'+'</td>' |
| | | var str9 = '<td class="normal">'+'<p>'+data[i].plandeAmt+'</p>'+'<p>'+data[i].realdeAmt+'</p>'+'</td>' |
| | | + '<td class="normal">'+'<p>'+data[i].planinAmt+'</p>'+'<p>'+data[i].realinAmt+'</p>'+'</td>' |
| | | var str3 = str2 +str + str9 +'</tr>' |
| | |
| | | /*****************************************************************************************************************************************************************************/ |
| | | |
| | | |
| | | |