99 lines
3.1 KiB
HTML
99 lines
3.1 KiB
HTML
|
<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" >
|
||
|
|
||
|
<input name="searchbegindate1" widget=datechooser allowinput="f" label="出库日期">
|
||
|
至:
|
||
|
<input name="searchenddate1" 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/kaohe/getanzhuang">
|
||
|
<div field="paiming" width="60" align="center" header="排名" ></div>
|
||
|
<div field="org_name" width="60" align="center" header="分公司" ></div>
|
||
|
<div field="chuku" width="60" align="center" header="销售出库单数量"></div>
|
||
|
<div field="anzhuang" width="60" align="center" header="安装单数量"></div>
|
||
|
<div field="wancheng" width="60" align="center" header="安装单录入率"></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();
|
||
|
var begindate1=aos.get('searchbegindate1').getValue();
|
||
|
var enddate1=aos.get('searchenddate1').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={
|
||
|
searchbegindate1:begindate1,
|
||
|
searchenddate1:enddate1,
|
||
|
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 begindate1=aos.get('searchbegindate1').getValue();
|
||
|
var enddate1=aos.get('searchenddate1').getValue();
|
||
|
var params = {
|
||
|
searchbegindate1:begindate1,
|
||
|
searchenddate1:enddate1,
|
||
|
searchbegindate:begindate,
|
||
|
searchenddate:enddate,
|
||
|
nianfen:nianfen
|
||
|
|
||
|
}
|
||
|
grid.load(params);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</html>
|