rushfee/resource/html/tick/paigongdan.html

92 lines
2.9 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false" auth="false">
<head>
<title>安装单报表</title>
<style>
</style>
</head>
<body>
<div widget="toolbar" style="padding:4px;border:0;">
<input widget="combox" name="nianfen" label="年份"
data="[{id:'2019',text:'2019'},{id:'2020',text:'2020'},{id:'2021',text:'2021'},{id:'2022',text:'2022'}]"
textField="text" valueField="id" value="2020" />
<input name="searchbegindate" widget=datechooser allowinput="f" label="创建日期">
至:
<input name="searchenddate" widget=datechooser allowinput="f" >
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>&nbsp;&nbsp;&nbsp;
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/kaohe/getpaigongdan">
<div field="paiming" width="60" align="center" header="排名" ></div>
<div field="org_name" width="60" align="center" header="分公司" ></div>
<div field="pingjun" width="60" align="center" header="平均值"></div>
<div field="fei" width="60" align="center" header="非现场服务单数量"></div>
<div field="num" width="60" align="center" header="派工单数量"></div>
<div field="weilu" width="60" align="center" header="未录非现场服务单数量"></div>
<!-- <div field="wancheng" width="60" align="center" header="非现场服务单录入率"></div>
--> <div field="paixu" width="40" header="非现场服务单录入率" align="center" renderer="percentRenderer" multiplyHundred="false"></div>
<div field="defen" width="60" align="center" header="分值"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function search(){
var nianfen = aos.get('nianfen').getValue();
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 begindate=begindate;
var enddate=enddate;
var params={
searchbegindate:begindate,
searchenddate:enddate,
nianfen:nianfen
}
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,
nianfen:nianfen
}
grid.load(params);
}
}
</script>
</html>