rushfee/resource/html/rush/rushlist.html

70 lines
2.5 KiB
HTML
Raw Normal View History

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;">
<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="客户名称" />
<a widget="button" iconCls="icon-edit" onclick="pay()">拨打</a>
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
</div>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/post/rushList" onrowdblclick="pay()">
<div type="indexcolumn" width="35" header="序号"></div>
<div field="customerid" visible="false" ></div>
<div field="cust_name" width="150" header="客户名称"></div>
<div field="org_short_name" width="100" header="分公司"></div>
<div field="cust_tax_code" width="100" header="客户税号"></div>
<div field="tel1" width="100" header="电话1"></div>
<div field="tel2" width="100" header="电话2"></div>
<div field="invoice_tel" width="100" header="发票电话"></div>
<div field="org_id" width="100" 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 params={cust_name:aos.get('cust_name').value,company:aos.get('company').value,revenue:aos.get('revenue').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)
//aos.get('contact').select(0);
}
function pay(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据。');
return;
}
var param = {};
param['pageState'] = 'editold';
param['customer_id'] = data.customerid;
param['cust_name'] = data.cust_name;
param ['org_id'] = data.org_id;
aos.showWindow('canvas/rush/paydetail', param, '760px', '350px', '客户信息明细', function(rtnValue){
});
}
</script>
</html>