26c1a21d2c9060a971f8fff821fbf76b.php
7.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:62:"D:\WWW\sos\public/../application/web\view\fu_ji_tong\index.php";i:1621562787;}*/ ?>
<!DOCTYPE html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>表单填写</title>
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/easyui.css" />
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/menu.css" />
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" />
<link rel="stylesheet" type="text/css" href="/assets/web/css/common_car.css" />
<script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script>
<script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>
<script type="text/javascript" src="/assets/common/js/jquery.cookie.1.4.1.js"></script>
<!-- 插件调用 --->
<script type="text/javascript" src="/assets/common/js/datagrid-detailview.js"></script>
<script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script>
<!-- 基础 JS 调用 -->
<script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>
<script type="text/javascript" src="/assets/web/js/src/allCity.js"></script>
<style>
#fm>div {
width: 100%;
display: flex;
justify-content: space-around;
margin: 10px 0;
}
#fm>div input{
width: 180px;
}
</style>
</head>
<body style="margin-bottom: 54px;">
<div class="easyui-layout" data-options="fit:true">
<div data-options="split:false,region:'west',collapsible:true,footer:'#win_base_org_form_footer'" title="客户列表" id="saveBox" style="width:100%;">
<table id="dg" style="width: 100%; height: 100%"
data-options="rownumbers:true,singleSelect:true,pagination:true,toolbar:'#tb'">
</table>
<div id="tb" style="padding:5px;height:auto">
<div>
推送结果:
<input class="easyui-combobox" style="width:125px" name="materialname" id="materialname"
data-options="valueField:'id',
textField:'text',
data:
[{ 'id':0,
'text':'全部' ,
selected:true
},{ 'id':1,
'text':'成功' ,
},{
'id':2,
'text':'失败'
}] ,panelHeight:'auto'
"/>
地区:
<input class="easyui-combobox" style="width:125px" name="type" id="new_type"
data-options="valueField:'id',
textField:'text',
data:
[
{ 'id':0,
'text':'全部' ,
selected:true
},{ 'id':1,
'text':'湖南省内' ,
},{ 'id':2,
'text':'湖南省外' ,
}] ,panelHeight:'auto'
"/>
起始时间: <input class="easyui-datebox" id='start' name='start' style="width:180px">
截止时间: <input class="easyui-datebox" id='end' name='end' style="width:180px">
电话: <input class="easyui-numberbox" type="text" id='phone' name='phone'>
<a href="#" class="easyui-linkbutton" id="search_buttn" iconCls="icon-search">搜索</a>
<a id="derive_btn" href="/products/fu_ji_tong/to_excel" class="easyui-linkbutton" style="height:28px" data-options="iconCls:'icon-undo'">导出</a>
</div>
</div>
</div>
</div>
</body>
<tbody id="html_table"></tbody>
<script type="text/javascript" src="/assets/web/js/src/common_fu.js"></script>
<script>
//下拉框搜索
init_datagrid('/products/fu_ji_tong/customer_list', 0);
//下拉框搜索
$('#search_buttn').bind('click', function() {
var _data = $('#dg').data('datagrid'); // 拿到datagrid初始化的数据缓存
if(_data && _data.options){
_data.options.pageNumber = 1; // 修改缓存
}
$.data($('#dg')[0], 'datagrid', _data); // 把修改写回去
var result=$('#materialname').combobox('getValue');
var new_type=$('#new_type').combobox('getValue');
var start = $("#start").val();
var end = $("#end").val();
var phone = $("#phone").val();
if(phone.length>0){
if(phone.length!=11){
$.messager.alert('检索手机号','手机号格式错误,请重新输入');
return false;
}
}
var result = {
result,
new_type,
start,
end,
phone
}
// console.log(result);return false;
init_datagrid('/products/fu_ji_tong/customer_list', result);
});
function init_datagrid(data_url, res) {
//表头字段
var arr_columns = dg_columns();
$("#dg").datagrid({
rownumbers:true,
singleSelect:true,
pagination:true,
url:data_url,
queryParams: res,
method:'post',
columns: [arr_columns],
loadMsg: '正在加载数据',
emptyMsg: '列表为空',
});
}
function dg_columns() {
var arr = new Array();
arr.push({
field: 'username',
title: '客户名称',
width: 120,
align: 'center'
});
arr.push({
field: 'sex',
title: '性别',
width: 80,
align: 'center'
});
arr.push({
field: 'phone',
title: '电话',
width: 150,
align: 'center'
});
arr.push({
field: 'certificateNo',
title: '身份证号',
width: 200,
align: 'center'
});
arr.push({
field: 'result',
title: '推送结果',
width: 500,
align: 'center'
});
arr.push({
field: 'create_time',
title: '推送时间',
width: 250,
align: 'center'
});
// console.log(arr)
return arr;
}
</script>
</html>