rushfee/resource/html/tick/cancellist.html

104 lines
3.3 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'},{id:'2023',text:'2023'}]"
textField="text" valueField="id" value="2020" />
<input name="yuefen" widget=combox allowinput="f" showNullItem="true" multiSelect="true"
data="[{id:'01',text:'01'},{id:'02',text:'02'},{id:'03',text:'03'},{id:'04',text:'04'},{id:'05',text:'05'},{id:'06',text:'06'},{id:'07',text:'07'},{id:'08',text:'08'},{id:'09',text:'09'},{id:'10',text:'10'},{id:'11',text:'11'},{id:'12',text:'12'}]" label="月份">
<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/cancellist">
<div type="indexcolumn" visible = false width="20" header="序号"></div>
<div field="排名" width="20" align="center" header="排名"></div>
<div field="org_name" width="60" align="center" header="分公司" ></div>
<div field="need" width="60" align="center" header="需处理数量"></div>
<div field="ready" width="60" align="center" header="已处理数量"></div>
<div field="noready" width="60" align="center" header="未处理数量"></div>
<!-- <div field="zxl" width="60" align="center" header="注销户清理率"></div> -->
<div field="paixu1" width="40" header="注销户清理率" align="center" renderer="percentRenderer" multiplyHundred="false"></div>
<div field="score" width="60" align="center" header="分值" renderer = "changesRender"></div>
<div field="paixu" width="20" align="center" visible = false header="paixu"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function search(){
var params={
nianfen:aos.get('nianfen').getValue(),
quarter : aos.get('yuefen').getValue()
}
grid.load(params);
}
function changesRender(e){
var nianfen = aos.get('nianfen').getValue();
if(nianfen=='2019'){
var row = e.row;
var value =new Number(row.paixu) * 100000;
//alert(value);
if(value>=90000){
return 3 ;
}
if(value<80000){
return 0 ;
}
if(80000<=value<90000){
return (3-(90000-value)*0.0002).toFixed(2);
}
}
if(nianfen=='2020'||nianfen=='2021'){
var row = e.row;
var value = row.noready;
if(value>=10){
return 0;
}else{
return (5-0.5*value).toFixed(2);
}
}
if(nianfen=='2022'){
var row = e.row;
var value = row.noready;
if(value>=10){
return 0;
}else{
return (2-0.2*value).toFixed(2);
}
}
if(nianfen=='2023'){
var row = e.row;
var value = row.noready;
if(value>=10){
return 0;
}else{
return (2-0.2*value).toFixed(2);
}
}
/* if(parseFloat(value)>=parseFloat("90")){
return 3 ;
}else if(parseFloat("80")<=parseFloat(value)<parseFloat("90")){
return 3- 0.002*(parseFloat("90")-parseFloat(value));
}else if(parseFloat(value)<parseFloat("80")){
return 0 ;
} */
}
</script>
</html>