119 lines
4.8 KiB
HTML
119 lines
4.8 KiB
HTML
|
<html login="false">
|
||
|
<head>
|
||
|
<title>金融回访结果明细</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<div widget="toolbar" style="padding:10px;border:0;">
|
||
|
<input widget="combox" name="org_name" label="分公司" url="revisit/getOrgList"
|
||
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||
|
showNullItem="true" />
|
||
|
<input widget="edit" name="cust_name" label="客户名称"/>
|
||
|
<input widget="combox" name="hf_state" label="回访结果"
|
||
|
data="[{id:'1',text:'回访成功'},{id:'0',text:'回访不成功'}]"
|
||
|
showNullItem="true" allowInput="false"
|
||
|
textField="text" valueField="id" onvaluechanged="showReflect()"/>
|
||
|
<input widget="combox" name="reflect" label="反馈类型" url="revisit/reflect/getReflect"
|
||
|
emptyText="请选择" textField="reflect_name" valueField="reflect_id" allowInput="false"
|
||
|
showNullItem="true" visible="false"/>
|
||
|
<br/>
|
||
|
<input name="searchbegindate" widget="datechooser" allowinput="false" label="销售日期"/>
|
||
|
<input name="searchenddate" widget="datechooser" allowinput="false" label="至"/>
|
||
|
|
||
|
<!-- <input widget="combox" name="type" label="类型"-->
|
||
|
<!-- data="[{id:'-1',text:'ALL'},{id:'0',text:'商品'},{id:'1',text:'金融'},{id:'2',text:'满意度'}]"-->
|
||
|
<!-- textField="text" valueField="id" value="-1"/>-->
|
||
|
|
||
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
||
|
<a widget="button" iconCls="icon-export" onclick="downloadfile()">导出</a>
|
||
|
</div>
|
||
|
|
||
|
<div widget="autosize">
|
||
|
<div widget="datagrid" name="grid" style="width: 2560px;height:100%" url="hfrecord/getJRHfResultList" allowalternating="true" onrowdblclick="">
|
||
|
|
||
|
</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!=""){
|
||
|
if (enddate==""){
|
||
|
aos.alert('请选择结束时间!');
|
||
|
return ;
|
||
|
}else {
|
||
|
if (begindate > enddate) {
|
||
|
aos.alert('开始日期必须早于结束日期!');
|
||
|
}
|
||
|
}
|
||
|
}else if(enddate!=""){
|
||
|
aos.alert('请选择开始时间!');
|
||
|
return ;
|
||
|
}
|
||
|
|
||
|
var params={org_name:aos.get('org_name').value,cust_name:aos.get('cust_name').value,hf_state:aos.get('hf_state').value,reflect:aos.get('reflect').value,
|
||
|
searchbegindate:begindate,searchenddate:enddate,type:1};
|
||
|
// grid.load(params);
|
||
|
|
||
|
aos.post({
|
||
|
url:"hfrecord/getJRHfResultType",
|
||
|
data:params,
|
||
|
success:function (data) {
|
||
|
if(data!=null){
|
||
|
var cols=[
|
||
|
{type:"indexcolumn",width:"10",header:"序号"},
|
||
|
];
|
||
|
for(var i=0;i<data.length;i++){
|
||
|
var item={field:data[i]["field_name"],width:"30",headerAlign:"center",allowSort:true,header:data[i]["type_name"]};
|
||
|
cols.push(item);
|
||
|
}
|
||
|
grid.setColumns(cols);
|
||
|
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!=""){
|
||
|
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/exportJRHfResult?org_name="+aos.get('org_name').value+"&cust_name="+aos.get('cust_name').value+
|
||
|
"&hf_state="+aos.get('hf_state').value+"&reflect="+aos.get('reflect').value+"&searchbegindate="+begindate+
|
||
|
"&searchenddate="+enddate+"&type=1"));
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|