rushfee/build/classes/html/revisit/hfresulthy.html

104 lines
3.6 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false">
<head>
<title>会员回访结果</title>
</head>
<body>
<div widget="toolbar" style="padding:10px;border:0;">
<input name="searchbegindate" widget="datechooser" allowinput="false" label="销售日期"/>
<input name="searchenddate" widget="datechooser" allowinput="false" label="至"/>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
<a widget="button" iconCls="icon-export" onclick="downloadfile()">导出</a>
</div>
<div>
<div widget="datagrid" name="grid"
url="hfrecord/summaryHyresult" allowalternating="true" onrowdblclick="" showPager="false" >
<div field="type" width="30" header=""></div>
<div field="sum" width="30" header="回访总数"></div>
<div field="sum_1" width="30" header="成功"></div>
<div field="sum_0" width="30" header="不成功"></div>
<div field="sumhy" width="30" header="托管总数"></div>
<div field="sumhy_1" width="30" header="成功"></div>
<div field="sumhy_0" width="30" header="不成功"></div>
<div field="sumfhy" width="30" header="非托管总数"></div>
<div field="sumfhy_1" width="30" header="成功"></div>
<div field="sumfhy_0" width="30" header="不成功"></div>
</div>
</div>
<script type="text/javascript">
var grid = aos.get('grid');
function search(){
var begindate=aos.get('searchbegindate').getValue();
var enddate=aos.get('searchenddate').getValue();
if(begindate==""&&enddate==""){
aos.alert('请选择销售时间!');
return ;
}
if(begindate!=""){
if (enddate==""){
aos.alert('请选择结束时间!');
return ;
}else {
if (begindate > enddate) {
aos.alert('开始日期必须早于结束日期!');
}
}
}else if(enddate!=""){
aos.alert('请选择开始时间!');
return ;
}
var params={searchbegindate:begindate,searchenddate:enddate,type:'0'};
grid.load(params);
}
function showReflect() {
if(aos.get("hf_state").value=='0'){
aos.get("reflect").show();
}else{
aos.get("reflect").hide();
}
}
/**
* 导出
*/
function downloadfile(){
var begindate=aos.get('searchbegindate').getValue();
var enddate=aos.get('searchenddate').getValue();
if(begindate==""&&enddate==""){
aos.alert('请选择销售时间!');
return ;
}
if(begindate!=""){
if (enddate==""){
aos.alert('请选择结束时间!');
return ;
}else {
if (begindate > enddate) {
aos.alert('开始日期必须早于结束日期!');
}
}
}else if(enddate!=""){
aos.alert('请选择开始时间!');
return ;
}
var base = document.getElementsByTagName("base")[0].href;
window.location.href=encodeURI(encodeURI(base+"hfrecord/exportSumHyHfResult?searchbegindate="+begindate+
"&searchenddate="+enddate+"&type=0"));
}
</script>
</body>
</html>