50 lines
1.6 KiB
HTML
50 lines
1.6 KiB
HTML
<html login="false" auth="false">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>电话查询</title>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar" name="grid" style="padding:10px;border:0;" >
|
|
|
|
<input widget="combox" name="mobile" label="客户联系信息" valueFromSelect="false"
|
|
emptyText="请选择或输入电话" textField="mobile" valueField="mobile" allowInput="true" />
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
|
|
|
|
</div>
|
|
<div widget="autosize">
|
|
<div widget="datagrid" name="contacts" style="width: 100%; height: 100%;" url="rush/tel/contacts" >
|
|
<div type="indexcolumn" width="8" header="序号"></div>
|
|
<div field="cust_name" width="35" header="客户名称"></div>
|
|
<div field="org_name" width="20" header="分公司"></div>
|
|
<div field="end_date" withTime="true" width="15" align="center" header="到期日期"></div>
|
|
<div field="cust_tax_code" width="25" header="客户税号"></div>
|
|
<div field="revenuename" width="22" header="所属税局"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
<script type="text/javascript">
|
|
function init(param){
|
|
customer_id=param['customer_id'];
|
|
var grid = aos.get('mobile');
|
|
var url="rush/tel/getList?customer_id=";
|
|
var msgurl=url+customer_id;
|
|
grid.load(msgurl);
|
|
}
|
|
|
|
function search(){
|
|
var grid = aos.get('contacts');
|
|
if(aos.get('mobile').value==""){
|
|
aos.tip('联系电话不能为空');
|
|
return;
|
|
}
|
|
var params={mobile:aos.get('mobile').value};
|
|
grid.load(params);
|
|
}
|
|
|
|
|
|
</script>
|
|
</html> |