88 lines
2.5 KiB
HTML
88 lines
2.5 KiB
HTML
|
<html login="false" auth="false">
|
||
|
<head>
|
||
|
<title>分公司电话接通率情况</title>
|
||
|
<style>
|
||
|
/* a {float:right;} */
|
||
|
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div widget="toolbar" style="padding:4px;border:0;">
|
||
|
|
||
|
|
||
|
<input name="searchbegindate" widget=datechooser allowinput="f" label="创建日期">
|
||
|
至:
|
||
|
<input name="searchenddate" widget=datechooser allowinput="f" >
|
||
|
|
||
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
||
|
|
||
|
</div>
|
||
|
<div widget="autosize">
|
||
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/companykaohe/getcompanyjtl">
|
||
|
<div field="org_name" width="60" align="center" header="分公司" ></div>
|
||
|
<div field="num" width="60" align="center" header="拨打总数量"></div>
|
||
|
<div field="weijietong" width="60" align="center" header="未接通"></div>
|
||
|
<div field="jietong" width="60" align="center" header="接通"></div>
|
||
|
<div field="hushu" width="60" align="center" header="户数"></div>
|
||
|
<div field="jitonglvbili" width="60" align="center" header="接通率比例"></div>
|
||
|
<div field="paiming" width="60" align="center" header="排名" ></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
<script type="text/javascript">
|
||
|
var grid = aos.get('grid');
|
||
|
|
||
|
var begintime =aos.formatDate(new Date(),"yyyy-MM-dd");
|
||
|
var endtime =aos.formatDate(new Date(),"yyyy-MM-dd");
|
||
|
aos.get('searchbegindate').setValue(begintime);
|
||
|
aos.get('searchenddate').setValue(endtime);
|
||
|
|
||
|
function search(){
|
||
|
var begindate=aos.get('searchbegindate').getValue();
|
||
|
var enddate=aos.get('searchenddate').getValue();
|
||
|
|
||
|
if (begindate!="")
|
||
|
{
|
||
|
if (enddate=="")
|
||
|
{aos.alert('请选择结束时间!');
|
||
|
return ;
|
||
|
}
|
||
|
else{
|
||
|
if (begindate>enddate)
|
||
|
{
|
||
|
aos.alert('开始日期必须早于结束日期!');
|
||
|
}else{
|
||
|
|
||
|
var begindate=begindate+" "+"00:00:00";
|
||
|
var enddate=enddate+" "+"23:59:59";
|
||
|
|
||
|
|
||
|
var params={
|
||
|
|
||
|
searchbegindate:begindate,
|
||
|
searchenddate:enddate
|
||
|
|
||
|
}
|
||
|
grid.load(params);
|
||
|
}
|
||
|
}
|
||
|
}else if(enddate!="")
|
||
|
{
|
||
|
aos.alert('请选择开始时间!');
|
||
|
return ;
|
||
|
}else{
|
||
|
var begindate=aos.get('searchbegindate').getValue();
|
||
|
var enddate=aos.get('searchenddate').getValue();
|
||
|
var params = {
|
||
|
searchbegindate:begindate,
|
||
|
searchenddate:enddate
|
||
|
}
|
||
|
grid.load(params);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</html>
|