2022-05-16 15:07:40 +00:00
|
|
|
<html login="false" auth="false">
|
|
|
|
<head>
|
|
|
|
<title>分公司异常客户任务中心列表</title>
|
|
|
|
<style>
|
|
|
|
/* a {float:right;} */
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div widget="toolbar" style="padding:4px;border:0;">
|
|
|
|
<!-- style="width:300px;" -->
|
|
|
|
<input widget="combox" name="company" label="分公司" url="rush/excustomer/getOrgList"
|
|
|
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
|
|
|
showNullItem="true" onvaluechanged="getRevenue" />
|
|
|
|
<input widget="combox" name="revenue" label="税务机关" emptyText="请选择" textField="text" valueField="id" allowInput="false" showNullItem="true"/>
|
|
|
|
<input widget="combox" name="expstate" label="到期情况" sqlid="rushfee_list.grouplist" showNullItem="true"/>
|
|
|
|
<input name="searchbegindate" widget=datechooser allowinput="f" label="创建日期">
|
|
|
|
至:
|
|
|
|
<input name="searchenddate" widget=datechooser allowinput="f" >
|
|
|
|
</br>
|
|
|
|
<input widget="edit" name="cust_name" label="客户名称" />
|
|
|
|
<input widget="edit" name="cust_tax_code" label="客户税号" />
|
|
|
|
|
|
|
|
<input widget="combox" name="feedback" label="反馈类型" url="rush/excustomer/getexlist"
|
|
|
|
emptyText="请选择" textField="name" valueField="name" multiSelect="true" allowInput="false"
|
|
|
|
showNullItem="true" onvaluechanged="getRevenue" />
|
|
|
|
<input name="dealbegindate" widget=datechooser allowinput="f" label="处理日期">
|
|
|
|
至:
|
|
|
|
<input name="dealenddate" widget=datechooser allowinput="f" >
|
|
|
|
</br>
|
|
|
|
<input name="isdeal" widget=combox allowinput="f" showNullItem="true" multiSelect="true"
|
|
|
|
data="[{id:'1',text:'已处理'},{id:'0',text:'待处理'},{id:'2',text:'处理中'}]" label="是否处理">
|
2022-10-01 13:37:45 +00:00
|
|
|
<input name="cust_type" widget=combox allowinput="f" showNullItem="true" multiSelect="true"
|
2022-05-16 15:07:40 +00:00
|
|
|
data="[{id:'1',text:'十次以上'},{id:'0',text:'异常客户'},{id:'3',text:'销售回访异常'}]" label="客户类型">
|
|
|
|
<input name="dealtype" widget=combox allowinput="f" showNullItem="true"
|
|
|
|
data="[{id:'1',text:'分公司处理'},{id:'0',text:'系统处理'}]" label="处理类型">
|
|
|
|
<input name="resulttype" widget=combox label="处理结果" url="rush/excustomer/getchooselist"
|
|
|
|
emptyText="请选择" textField="name" valueField="name" multiSelect="true" allowInput="false"
|
|
|
|
showNullItem="true" onvaluechanged="getRevenue" >
|
|
|
|
<input name="istax" widget=combox allowinput="f" showNullItem="true"
|
|
|
|
data="[{id:'1',text:'免征户'},{id:'0',text:'非免征户'}]" label="是否免征">
|
|
|
|
</br>
|
|
|
|
<input name="chargetype" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
|
|
|
data="[{id:'0',text:'服务费'},{id:'1',text:'托管'}]" emptyText="请选择" label="产品类型">
|
|
|
|
<input name="injf" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
|
|
|
data="[{id:'0',text:'否'},{id:'1',text:'是'}]" emptyText="请选择" label="机房状态">
|
|
|
|
<input name="ifmz" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
|
|
|
data="[{id:'0',text:'否'},{id:'1',text:'是'}]" emptyText="请选择" label="是否免征">
|
|
|
|
<input name="zqlstime" widget=datechooser allowinput="f" label="准确率创建时间">
|
|
|
|
至:
|
|
|
|
<input name="zqletime" widget=datechooser allowinput="f" >
|
|
|
|
|
|
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
|
|
<a widget="button" iconCls="icon-edit" onclick="tianjia()">批量保存</a>
|
2022-10-01 13:37:45 +00:00
|
|
|
<a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>
|
2022-05-16 15:07:40 +00:00
|
|
|
<a widget="button" iconCls="icon-import" onclick="importData()" >导入电话数据</a>
|
|
|
|
</div>
|
|
|
|
<div widget="autosize">
|
|
|
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/excustomer/excustomer" multiSelect="true" onrowdblclick="pay()">
|
|
|
|
<div type="checkcolumn" width="25" header ="选择"></div>
|
|
|
|
<div type="indexcolumn" width="25" header="序号"></div>
|
|
|
|
<div field="id" visible="false" ></div>
|
|
|
|
<div field="customer_id" visible="false" ></div>
|
|
|
|
<div field="cust_type" visible="false" ></div>
|
|
|
|
<div field="state" visible="false" ></div>
|
|
|
|
<div field="isvalid" visible="false" ></div>
|
|
|
|
<div field="custtype" width="45" header="客户类型" ></div>
|
|
|
|
<div field="iscancel" width="45" header="是否注销" ></div>
|
|
|
|
<div field="istaxation" width="40" header="是否免征" ></div>
|
|
|
|
<div field="cust_name" width="100" header="客户名称"></div>
|
|
|
|
<div field="cust_tax_code" width="80" header="税号"></div>
|
|
|
|
<div field="feedback" width="60" header="最近反馈结果"></div>
|
|
|
|
<div field="remark" width="60" header="备注"></div>
|
|
|
|
<div field="org_name" width="40" header="分公司"></div>
|
|
|
|
<div field="contacts_info" width="60" header="联系方式"></div>
|
|
|
|
<div field="end_date" visible="false"></div>
|
|
|
|
<div field="zuixin" width="60" header="CRM到期日期"></div>
|
|
|
|
<div field="create_date" width="50" header="创建日期"></div>
|
|
|
|
<div field="dealtime" width="80" header="处理日期"></div>
|
|
|
|
<div field="revenuename" width="60" header="所属税局"></div>
|
|
|
|
<div field="cutsremark" width="80" header="信息修改"></div>
|
|
|
|
<div field="cutstype" width="60" header="处理方式"></div>
|
|
|
|
<div field="rustype" width="60" header="处理结果"></div>
|
|
|
|
<div field="ischuli" width="60" align="center" header="状态"></div>
|
|
|
|
<div field="zxhfremark" width="60" header="最新回访结果"></div>
|
|
|
|
<div field="createtime" width="60" header="初始创建时间"></div>
|
|
|
|
<div field="zxhftime" width="60" align="center" header="最新回访时间"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var grid = aos.get('grid');
|
|
|
|
var url="rush/org/getRevenueByOrgId?companyid=";
|
|
|
|
var select=aos.get('isdeal');
|
|
|
|
var asd ='0,2';
|
|
|
|
select.setValue(asd);
|
|
|
|
|
|
|
|
function search() {
|
|
|
|
var begindate = aos.get('searchbegindate').getValue();
|
|
|
|
var enddate = aos.get('searchenddate').getValue();
|
|
|
|
var dealbegindate = aos.get('dealbegindate').getValue();
|
|
|
|
var dealenddate = aos.get('dealenddate').getValue();
|
|
|
|
var zqlstime = aos.get('zqlstime').getValue();
|
|
|
|
var zqletime = aos.get('zqletime').getValue();
|
|
|
|
if (dealbegindate != "") {
|
|
|
|
dealbegindate = dealbegindate + " " + "00:00:00"
|
|
|
|
}
|
|
|
|
if (dealenddate != "") {
|
|
|
|
dealenddate = dealenddate + " " + "23:59:59"
|
|
|
|
}
|
|
|
|
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 params = {
|
|
|
|
dealbegindate: dealbegindate,
|
|
|
|
dealenddate: dealenddate,
|
|
|
|
searchbegindate: begindate,
|
|
|
|
searchenddate: enddate,
|
|
|
|
zqlstime: zqlstime,
|
|
|
|
zqletime: zqletime,
|
|
|
|
cust_name: aos.get('cust_name').value,
|
|
|
|
expstate: aos.get('expstate').value,
|
|
|
|
company: aos.get('company').value,
|
|
|
|
feedback: aos.get('feedback').value,
|
|
|
|
revenue: aos.get('revenue').value,
|
|
|
|
ischuli: aos.get('isdeal').getValue(),
|
|
|
|
istax: aos.get('istax').getValue(),
|
|
|
|
cust_type: aos.get('cust_type').getValue(),
|
|
|
|
cust_tax_code: aos.get('cust_tax_code').value,
|
|
|
|
resulttype: aos.get('resulttype').value,
|
|
|
|
custtype: aos.get('chargetype').getValue(),
|
|
|
|
injf: aos.get('injf').getValue(),
|
|
|
|
ifmz: aos.get('ifmz').getValue(),
|
|
|
|
dealtype: aos.get('dealtype').value
|
|
|
|
}
|
|
|
|
grid.load(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (enddate != "") {
|
|
|
|
aos.alert('请选择开始时间!');
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
var begindate = aos.get('searchbegindate').getValue();
|
|
|
|
var enddate = aos.get('searchenddate').getValue();
|
|
|
|
var params = {
|
|
|
|
dealbegindate: dealbegindate,
|
|
|
|
dealenddate: dealenddate,
|
|
|
|
searchbegindate: begindate,
|
|
|
|
searchenddate: enddate,
|
|
|
|
zqlstime: zqlstime,
|
|
|
|
zqletime: zqletime,
|
|
|
|
cust_name: aos.get('cust_name').value,
|
|
|
|
expstate: aos.get('expstate').value,
|
|
|
|
feedback: aos.get('feedback').value,
|
|
|
|
company: aos.get('company').value,
|
|
|
|
istax: aos.get('istax').getValue(),
|
|
|
|
revenue: aos.get('revenue').value,
|
|
|
|
ischuli: aos.get('isdeal').getValue(),
|
|
|
|
cust_type: aos.get('cust_type').getValue(),
|
|
|
|
cust_tax_code: aos.get('cust_tax_code').value,
|
|
|
|
resulttype: aos.get('resulttype').value,
|
|
|
|
custtype: aos.get('chargetype').getValue(),
|
|
|
|
injf: aos.get('injf').getValue(),
|
|
|
|
ifmz: aos.get('ifmz').getValue(),
|
|
|
|
dealtype: aos.get('dealtype').value
|
|
|
|
}
|
|
|
|
grid.load(params);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function getRevenue(e){
|
|
|
|
var company = aos.get('company');
|
|
|
|
var revenue = aos.get('revenue');
|
|
|
|
revenue_url = url+company.getValue();
|
|
|
|
revenue.load(revenue_url)
|
|
|
|
}
|
|
|
|
|
|
|
|
function pay(){
|
|
|
|
var data = grid.getSelected();
|
|
|
|
if(!data){
|
|
|
|
aos.alert('请选择一条数据。');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var param = {};
|
|
|
|
param['pageState'] = 'editold';
|
|
|
|
param['customer_id'] = data.customer_id;
|
|
|
|
param['id'] = data.id;
|
|
|
|
param['cust_name'] = data.cust_name;
|
|
|
|
param['cust_type'] = data.cust_type;
|
|
|
|
param['end_date'] = data.end_date;
|
|
|
|
param['state'] = data.state;
|
|
|
|
param['onfeedback'] = data.feedback;
|
|
|
|
if(data.cust_type=='0'){
|
|
|
|
if(data.isvalid=='1')
|
|
|
|
{ dakai(param);
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
dakaile(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
}else if(data.cust_type=='3'){
|
|
|
|
|
|
|
|
param['cust_tax_code'] = data.cust_tax_code;
|
|
|
|
param['org_name'] = data.org_name;
|
|
|
|
aos.showWindow('canvas/revisit/hf_excust_detail', param, '1200px', '400px', '回访异常客户信息明细', function(haha){
|
|
|
|
if(haha=="close"){
|
|
|
|
|
|
|
|
}else{grid.reload();}
|
|
|
|
});
|
|
|
|
|
|
|
|
}else
|
|
|
|
{
|
|
|
|
|
|
|
|
dakaile(param);}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function dakai(param){
|
|
|
|
|
|
|
|
aos.showWindow('canvas/tick/excustomerdetail', param, '1200px', '400px', '异常客户信息明细', function(haha){
|
|
|
|
if(haha=="close"){
|
|
|
|
}
|
|
|
|
else{grid.reload();}
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
function dakaile(param){
|
|
|
|
|
|
|
|
aos.showWindow('canvas/tick/tenexcustomerdetail', param, '1200px', '400px', '异常客户信息明细', function(haha){
|
|
|
|
if(haha=="close"){
|
|
|
|
}
|
|
|
|
else{grid.reload();}
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function tianjia(){
|
|
|
|
var a=0;
|
|
|
|
var b=0;
|
|
|
|
var rows=grid.getSelecteds();
|
|
|
|
if (rows==null||rows==''){
|
|
|
|
aos.alert('需要勾选保存企业');
|
|
|
|
return ;
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
for(var i=0;rows.length>i;i++){
|
|
|
|
if(rows[i].state!=1){
|
|
|
|
a=a+1;
|
|
|
|
}
|
|
|
|
if(rows[i].cust_type==3){
|
|
|
|
b=b+1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(a!=rows.length){aos.tip('选中的企业已被处理');}
|
|
|
|
else if(b>0){aos.tip('选中的企业包含销售回访异常客户,该类型需要维护联系方式,不能批量保存。');}
|
|
|
|
else{
|
|
|
|
add();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
function add(){
|
|
|
|
var param = {};
|
|
|
|
param['pageState'] = 'editnew';
|
|
|
|
aos.showWindow('canvas/tick/exfeedbackadd', param, '480px', '300px', '批量反馈类型添加', function(params,rtnValue){
|
|
|
|
var feedback = params['feedback'];
|
|
|
|
var remark = params['remark']+'(来自批量保存)';
|
|
|
|
if(params=="close"){
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var rows=grid.getSelecteds();
|
|
|
|
for(var i=0;rows.length>i;i++){
|
|
|
|
var data={
|
|
|
|
customer_id:rows[i].customerid,
|
|
|
|
cust_name:rows[i].cust_name,
|
|
|
|
feedback:feedback,
|
|
|
|
remark:remark,
|
|
|
|
cust_type:rows[i].cust_type,
|
|
|
|
id:rows[i].id
|
|
|
|
}
|
|
|
|
|
|
|
|
aos.post({
|
|
|
|
url:"rush/excustomer/saveRecord",
|
|
|
|
data:data,
|
|
|
|
success:function(rtnData){
|
|
|
|
aos.tip('保存成功');
|
|
|
|
grid.reload();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function exportExl(){
|
|
|
|
|
|
|
|
var cust_name=aos.get('cust_name').value;
|
|
|
|
var expstate=aos.get('expstate').value;
|
|
|
|
var feedback=aos.get('feedback').value;
|
|
|
|
var company=aos.get('company').value;
|
|
|
|
var istax=aos.get('istax').getValue();
|
|
|
|
var revenue=aos.get('revenue').value;
|
|
|
|
var ischuli=aos.get('isdeal').getValue();
|
|
|
|
var cust_type=aos.get('cust_type').getValue();
|
|
|
|
var cust_tax_code=aos.get('cust_tax_code').value;
|
|
|
|
var resulttype=aos.get('resulttype').value;
|
|
|
|
var dealtype=aos.get('dealtype').value;
|
|
|
|
var base = document.getElementsByTagName("base")[0].href;
|
|
|
|
var Eurl=base+"operExlData/exportExl";
|
|
|
|
var begindate=aos.get('searchbegindate').getValue();
|
|
|
|
var enddate=aos.get('searchenddate').getValue();
|
|
|
|
var dealbegindate=aos.get('dealbegindate').getValue();
|
|
|
|
var dealenddate=aos.get('dealenddate').getValue();
|
2022-10-01 13:37:45 +00:00
|
|
|
var zqlstime = aos.get('zqlstime').getValue();
|
|
|
|
var zqletime = aos.get('zqletime').getValue();
|
2022-05-16 15:07:40 +00:00
|
|
|
if(dealbegindate!=""){dealbegindate=dealbegindate+" "+"00:00:00"}
|
|
|
|
if(dealenddate!=""){dealenddate=dealenddate+" "+"23:59:59"}
|
|
|
|
if (begindate != ""){
|
|
|
|
if (enddate==""){
|
|
|
|
aos.alert('请选择结束时间!');
|
|
|
|
return ;
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
if (begindate>enddate){
|
|
|
|
aos.alert('开始日期必须早于结束日期!');
|
|
|
|
return;
|
|
|
|
}else{
|
|
|
|
var begindate=begindate+" "+"00:00:00";
|
|
|
|
var enddate=enddate+" "+"23:59:59";
|
2022-10-01 13:37:45 +00:00
|
|
|
Eurl=Eurl+"?zqlstime="+zqlstime+"&zqletime="+zqletime+"&searchbegindate="+begindate+"&searchenddate="+enddate+"&cust_name="+encodeURI(encodeURI(cust_name))+"&expstate="+expstate+"&company="+company+"&feedback="+encodeURI(encodeURI(feedback))+"&revenue="+revenue+"&cust_type="+cust_type+"&cust_tax_code="+cust_tax_code+"&dealbegindate="+dealbegindate+"&dealenddate="+dealenddate+"&resulttype="+encodeURI(encodeURI(resulttype))+"&dealtype="+encodeURI(encodeURI(dealtype))+"&istax="+istax+"&ischuli="+ischuli;
|
2022-05-16 15:07:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if(enddate!=""){
|
|
|
|
aos.alert('请选择开始时间!');
|
|
|
|
return ;
|
|
|
|
}else{
|
2022-10-01 13:37:45 +00:00
|
|
|
Eurl=Eurl+"?zqlstime="+zqlstime+"&zqletime="+zqletime+"&cust_name="+encodeURI(encodeURI(cust_name))+"&expstate="+expstate+"&company="+company+"&feedback="+encodeURI(encodeURI(feedback))+"&revenue="+revenue+"&cust_type="+cust_type+"&cust_tax_code="+cust_tax_code+"&dealbegindate="+dealbegindate+"&dealenddate="+dealenddate+"&resulttype="+encodeURI(encodeURI(resulttype))+"&dealtype="+encodeURI(encodeURI(dealtype))+"&istax="+istax+"&ischuli="+ischuli;
|
|
|
|
}
|
2022-05-16 15:07:40 +00:00
|
|
|
window.location.href=Eurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function importData(){
|
|
|
|
aos.showWindow('canvas/tick/importExlfile', null, '300px', '200px', '历史数据导入',function(rtnValue){
|
|
|
|
grid.reload();
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</html>
|