124 lines
3.1 KiB
HTML
124 lines
3.1 KiB
HTML
<html auth="false">
|
|
<head>
|
|
<title>各分公司回访情况明细表</title>
|
|
<style>
|
|
#showtb{
|
|
border-collapse:collapse;
|
|
}
|
|
/*关键设置 tbody出现滚动条*/
|
|
#showtb tbody {
|
|
display: block;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
|
|
#showtb tbody tr {
|
|
height: 25px;
|
|
}
|
|
#showtb tbody tr td {
|
|
line-height:25px;
|
|
padding-left: 6px;
|
|
border: 1px solid #cfcfce;
|
|
}
|
|
#showtb tbody tr th {
|
|
line-height:25px;
|
|
padding-left: 6px;
|
|
border: 1px solid #cfcfce;
|
|
background:#F8F8FF;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript" src="www/i18n/rms_i18n_{{language}}.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div widget="toolbar" style="padding: 10px; border: 0;">
|
|
|
|
<input name="searchbegindate" widget=datechooser allowinput="f" label="催缴日期">
|
|
<input name="searchenddate" widget=datechooser allowinput="f"
|
|
style="margin-left: -70px;" label="至">
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
<a widget="button" iconCls="icon-export" onclick="downloadfileGet()">导出</a>
|
|
</div>
|
|
<div style="overflow-x: auto;overflow-x: noscroll; height: 100%; width:100%;">
|
|
<table style="overflow-x: auto;width:100%;" id="showtb">
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var grid = aos.get('grid');
|
|
grid.load();
|
|
function downloadfileGet(){
|
|
var begindate=aos.get('searchbegindate').getValue();
|
|
var enddate=aos.get('searchenddate').getValue();
|
|
|
|
var param = { searchbegindate:begindate,
|
|
searchenddate:enddate};
|
|
var base = document.getElementsByTagName("base")[0].href;
|
|
|
|
window.location.href=base+"rush/visitreport/exportVisitDetailReport?begindate="+begindate+"&enddate="+enddate;
|
|
return false;
|
|
}
|
|
|
|
|
|
function search(){
|
|
|
|
var begindate=aos.get('searchbegindate').getValue();
|
|
var enddate=aos.get('searchenddate').getValue();
|
|
|
|
var param = { begindate:begindate,
|
|
enddate:enddate};
|
|
aos.post({
|
|
url:"rush/visitreport/post/visitDetailList",
|
|
data:param,
|
|
success:function(data){
|
|
|
|
$("#showtb").html("");
|
|
if(data.totaltype&&data.totaltype>0){
|
|
|
|
var len = data.totaltype;
|
|
var colname = 'col';
|
|
var column = "";
|
|
|
|
for(var i= 0;i<data.records.length;i++){
|
|
var trHTML = "<tr>"
|
|
|
|
var arr = new Array();
|
|
var noHTML = "";
|
|
|
|
if(i==0){
|
|
noHTML="<th ><center><nobr>序号</nobr></center></th>";
|
|
}else{
|
|
noHTML="<td ><center>"+i+"</center></td>";
|
|
}
|
|
|
|
trHTML +=noHTML;
|
|
for (var j =1 ;j<=len;j++){
|
|
column = j;
|
|
var tdHTML = "";
|
|
|
|
if(i==0){
|
|
tdHTML = "<th ><center><nobr>"+data.records[i][column]+"</nobr></center></th>";
|
|
}else{
|
|
tdHTML = "<td ><center><nobr>"+data.records[i][column]+"</nobr></center></td>";
|
|
}
|
|
|
|
trHTML += tdHTML;
|
|
|
|
arr[column] =data.records[i][column];
|
|
|
|
}
|
|
trHTML += "</tr>";
|
|
|
|
$("#showtb").append(trHTML);//在table最后面添加一行
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |