rushfee/build/classes/html/revisit/hfresultList.html

121 lines
5.6 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: 1560px;height:100%" url="hfrecord/getHfResultList" allowalternating="true" onrowdblclick="">
<div type="indexcolumn" width="10" header="序号"></div>
<div field="log_id" visible="false"></div>
<div field="obj_id" visible="false"></div>
<div field="org_name" width="18" header="分公司"></div>
<div field="cust_name" width="30" header="客户名称"></div>
<div field="cust_tax_code" width="25" header="税号"></div>
<div field="spfl" width="15" header="商品分类"></div>
<div field="xsrq" width="20" header="销售日期"></div>
<div field="spmc" width="25" header="商品名称"></div>
<div field="ywy" width="15" header="业务员"></div>
<div field="price" width="10" header="价格"></div>
<div field="hf_name" width="15" header="回访人"></div>
<div field="hf_phone" width="20" header="回访电话"></div>
<div field="prepare_name" width="15" header="备用联系人"></div>
<div field="prepare_phone" width="20" header="备用电话"></div>
<div field="is_success" width="20" header="回访结果"></div>
<div field="reflect_name" width="20" header="反馈结果"></div>
<div field="suggestion" width="20" header="备注"></div>
</div>
</div>
<script type="text/javascript">
var grid = aos.get('grid');
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:aos.get('searchbegindate').getValue(),searchenddate:aos.get('searchenddate').getValue(),type:aos.get('type').value};
grid.load(params);
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:aos.get('type').value};
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/exportHfResult?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="+aos.get('type').value));
}
</script>
</body>
</html>