119 lines
5.7 KiB
HTML
119 lines
5.7 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="edit" name="sp_name" label="商品名称"/>
|
||
|
<input widget="combox" name="hf_state" label="回访状态"
|
||
|
data="[{id:'-1',text:'ALL'},{id:'0',text:'未回访'},{id:'2',text:'回访不成功'}]"
|
||
|
textField="text" valueField="id" value="0" 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"/>
|
||
|
|
||
|
<input widget="combox" name="extype" label="异常状态" showNullItem="true"
|
||
|
data="[{id:'-1',text:'无异常'},{id:'0',text:'待处理'},{id:'2',text:'处理中'},{id:'1',text:'已处理'}]"
|
||
|
textField="text" valueField="id" value=""/>
|
||
|
|
||
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
||
|
<a widget="button" iconCls="icon-edit" onclick="edit()">回访</a>
|
||
|
<a widget="button" iconCls="icon-edit" onclick="importExl()">导入</a>
|
||
|
</div>
|
||
|
|
||
|
<div widget="autosize">
|
||
|
<div widget="datagrid" name="grid" style="width: 100%;height:100%" url="revisit/getRevisitList" allowalternating="true" onrowdblclick="edit()">
|
||
|
<div type="indexcolumn" width="15" header="序号"></div>
|
||
|
<div field="id" visible="false"></div>
|
||
|
<!-- <div field="question_type_id" visible="false"></div>-->
|
||
|
<div field="org_name" width="30" header="分公司"></div>
|
||
|
<div field="cust_naem" width="40" header="客户名称"></div>
|
||
|
<div field="cust_tax_code" width="30" header="客户税号"></div>
|
||
|
<div field="spmc" width="90" header="商品"></div>
|
||
|
<div field="last_date" width="30" header="最后回访时间"></div>
|
||
|
<div field="reflect_name" width="30" header="最后回访结果"></div>
|
||
|
<div field="is_hf" width="20" header="是否回访"></div>
|
||
|
<div field="is_success" width="20" header="回访结果"></div>
|
||
|
<div field="state" width="15" 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,sp_name:aos.get('sp_name').value,hf_state:aos.get('hf_state').value,
|
||
|
searchbegindate:aos.get('searchbegindate').getValue(),searchenddate:aos.get('searchenddate').getValue(),type:aos.get('type').value,
|
||
|
reflect:aos.get('reflect').value,extype:aos.get('extype').value};
|
||
|
grid.load(params);*/
|
||
|
|
||
|
function showReflect() {
|
||
|
if(aos.get("hf_state").value=='2'){
|
||
|
aos.get("reflect").show();
|
||
|
}else{
|
||
|
aos.get("reflect").hide();
|
||
|
}
|
||
|
}
|
||
|
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,sp_name:aos.get('sp_name').value,hf_state:aos.get('hf_state').value,
|
||
|
searchbegindate:begindate,searchenddate:enddate,type:aos.get('type').value,reflect:aos.get('reflect').value,extype:aos.get('extype').value};
|
||
|
|
||
|
grid.load(params);
|
||
|
}
|
||
|
function edit(){
|
||
|
var data = grid.getSelected();
|
||
|
if(!data){
|
||
|
alert("请选择一条数据");
|
||
|
return;
|
||
|
}
|
||
|
var param = {};
|
||
|
param['pageState'] = 'editold';
|
||
|
param['id'] = data.id;
|
||
|
param['cust_name'] = data.cust_naem;
|
||
|
param['sp_name'] = data.sp_name;
|
||
|
var begindate=aos.get('searchbegindate').getValue();
|
||
|
var enddate=aos.get('searchenddate').getValue();
|
||
|
param['searchbegindate'] = begindate;
|
||
|
param['searchenddate'] = enddate;
|
||
|
param['showdaili'] = '1';
|
||
|
aos.showWindow('canvas/revisit/operation', param, '1000px', '618px', '回访', function(rtnValue){
|
||
|
parent.document.getElementById("recordFileName").value="";
|
||
|
grid.reload();
|
||
|
});
|
||
|
}
|
||
|
function importExl(){
|
||
|
aos.showWindow('canvas/revisit/import_hf_custinfo', null, '400px', '200px', '金融数据导入', function(){
|
||
|
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|