73 lines
2.4 KiB
HTML
73 lines
2.4 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 name="searchbegindate" widget=datechooser allowinput="f" label="开始">
|
|
<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/getnjiaofeiList" >
|
|
<div type="indexcolumn" width="10" header="序号"></div>
|
|
<div field="cust_name" width="30" header="客户名称"></div>
|
|
<div field="org_name" width="15" header="分公司"></div>
|
|
<div field="lately_feedback_type" width="30" header="反馈类型"></div>
|
|
<div field="count" width="10" header="回访次数"></div>
|
|
<div field="lately_contacts_info" width="30" header="联系信息"></div>
|
|
<div field="customer_id" visible="false" header="客户id"></div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</body>
|
|
<script type="text/javascript">
|
|
var grid = aos.get('grid');
|
|
var url="rush/org/getRevenueByOrgId?companyid=";
|
|
|
|
function search(){
|
|
|
|
|
|
var begindate=aos.get('searchbegindate').getValue();
|
|
var company=aos.get('company').getValue();
|
|
|
|
|
|
|
|
var params={begindate:begindate,company:company}
|
|
grid.load(params);
|
|
|
|
|
|
}
|
|
|
|
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> |