91 lines
3.6 KiB
HTML
91 lines
3.6 KiB
HTML
|
<html login="false">
|
||
|
<head>
|
||
|
<title>维护列表</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div widget="toolbar" style="padding:10px;border:0;">
|
||
|
<input widget="combox" name="company" label="分公司" url="rush/org/getOrgList"
|
||
|
emptyText="请选择" textField="text" valueField="id" allowInput="false"
|
||
|
showNullItem="true" onvaluechanged="getRevenue" />
|
||
|
<input widget="combox" name="revenue" label="税务机关" style="width:300px;" emptyText="请选择" textField="text" valueField="id" allowInput="false" showNullItem="true"/>
|
||
|
<input widget="edit" name="cust_name" label="客户名称" /><br>
|
||
|
<input widget="edit" name="feedback" label="筛选条件有" width="500"/>
|
||
|
<a widget="button" iconCls="icon-edit" onclick="shaixuan()">反馈筛选</a>
|
||
|
<a widget="button" iconCls="icon-search" onclick="search">查询</a>
|
||
|
<a widget="button" iconCls="icon-export" onclick="downloadfileGet()">导出</a><br/>
|
||
|
|
||
|
</div>
|
||
|
<div widget="autosize">
|
||
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/ContactMt/getList" onrowdblclick="pay()">
|
||
|
<div type="indexcolumn" width="30" header="序号"></div>
|
||
|
<div field="cust_name" width="120" header="客户名称"></div>
|
||
|
<div field="org_name" width="100" header="分公司"></div>
|
||
|
<div field="revenuename" width="100" header="所属税局"></div>
|
||
|
<div field="customer_id" visible="false" header="客户id"></div>
|
||
|
<div field="contacts_info" width="80" header="联系方式"></div>
|
||
|
<div field="end_date" width="80" header="到期日期"></div>
|
||
|
<div field="operate_date" width="100" header="最近催缴日期"></div>
|
||
|
<div field="weihu" width="100" header="最近维护时间"></div>
|
||
|
<div field="feedback_type" width="80" header="反馈结果"></div>
|
||
|
<div field="remark" width="100" header="备注"></div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</body>
|
||
|
<script type="text/javascript">
|
||
|
var grid = aos.get('grid');
|
||
|
var url="rush/org/getRevenueByOrgId?companyid=";
|
||
|
|
||
|
function search(){
|
||
|
var data={};
|
||
|
data['company']=aos.get('company').getValue();
|
||
|
data['revenue']=aos.get('revenue').getValue();
|
||
|
data['feedback']=aos.get('feedback').getValue();
|
||
|
data['custname']=aos.get('cust_name').getValue();
|
||
|
grid.load(data);
|
||
|
}
|
||
|
function getRevenue(e){
|
||
|
var company = aos.get('company');
|
||
|
var revenue = aos.get('revenue');
|
||
|
revenue_url = url+company.getValue();
|
||
|
revenue.load(revenue_url)
|
||
|
}
|
||
|
function shaixuan(){
|
||
|
var param = {};
|
||
|
param['pageState'] = 'editnew';
|
||
|
param['feedback']=aos.get('feedback').getValue();
|
||
|
aos.showWindow('canvas/tick/feedbacktask', param, '500px', '400px', '反馈类型筛选任务', function(params,RtnData){
|
||
|
|
||
|
aos.get('feedback').setValue(params['feedback']);
|
||
|
aos.get('feedback').setValue(RtnData['feedback']);
|
||
|
|
||
|
|
||
|
});
|
||
|
}
|
||
|
function pay(){
|
||
|
var data = grid.getSelected();
|
||
|
if(!data){
|
||
|
aos.alert('请选择一条数据。');
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var param = {};
|
||
|
param['customer_id']=data.customer_id;
|
||
|
param['end_date']=data.end_date;
|
||
|
param['pageState'] = 'editold';
|
||
|
aos.showWindow('canvas/rush/Contactdetail', param, '550px', '650px', '客户信息明细', function(rtnValue){
|
||
|
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
function downloadfileGet(){
|
||
|
var base = document.getElementsByTagName("base")[0].href;
|
||
|
window.location.href=base+"rush/ContactMt/exportRecordGet?company="+aos.get('company').getValue()+"&revenue="+aos.get('revenue').getValue()+"&cust_name="+aos.get('cust_name').getValue()+"&feedback="+ encodeURI(encodeURI(aos.get('feedback').getValue()));
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
</html>
|