user_management.php
10.3 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<div class="easyui-layout" data-options="fit:true">
<!-- 中间模块 -->
<div data-options="region:'center'" style="width: 100%;">
<div id="orders_grid_details_toolbar" style="height:33px;">
<!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除人员</a> -->
<!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:false,onClick:$.h.org.oninit">刷新</a>
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:false,onClick:$.h.user.delOrgTip">删除机构</a> -->
</div>
<table id="people_table" class="easyui-datagrid" style="width:100%;" title=""
data-options="
idField: 'user_id',
fit: true,
rownumbers: true,
singleSelect:true,
autoRowHeight:false,
border:false,
toolbar:'#orders_grid_details_toolbar',
method:'get',
checkOnSelect:false,
selectOnCheck:false,
pagination: true,
pageSize: 20,
onClickRow:$.h.user.onClick,
onDblClickRow:$.h.user.onDblClickRow,
url:'/web/agent_user/getUsers'
" >
<!-- onDblClickRow: function(index, data) {
$('#people_login_account').textbox('setValue', data.login_account);
$('#people_password').textbox('setValue', data.password);
$('#people_user_code').textbox('setValue', data.user_code);
$('#people_user_ename').textbox('setValue', data.user_ename);
$('#people_user_cname').textbox('setValue', data.user_cname);
$('#people_user_phone').textbox('setValue', data.user_phone);
$('#people_user_address').textbox('setValue', data.user_address);
$('#people_bank_card_num').textbox('setValue', data.bank_card_num);
$('#people_bank').textbox('setValue', data.bank);
$('#people_bank_address').textbox('setValue', data.bank_address);
$('#people_id_number').textbox('setValue', data.id_number);
} -->
<thead data-options="frozen:true">
<tr>
<th data-options="field:'id',checkbox:true"></th>
<th data-options="field:'login_account',sortable:true"><b>登录账号</b></th>
<th data-options="field:'password',align:'left,sortable:true'"><b>登录密码</b></th>
<th data-options="field:'user_code',align:'left,sortable:true'"><b>人员编码</b></th>
</tr>
</thead>
<thead>
<tr>
<th data-options="field:'user_ename',align:'left'"><b>人员英文名</b></th>
<th data-options="field:'user_cname',align:'left'"><b>人员中文名</b></th>
<th data-options="field:'user_phone',align:'left'"><b>员工手机号</b></th>
<th data-options="field:'user_address',align:'left'"><b>员工地址</b></th>
<th data-options="field:'bank_card_num',align:'left'"><b>银行卡号</b></th>
<th data-options="field:'bank',align:'left'"><b>员工银行卡开户行</b></th>
<th data-options="field:'bank_address',align:'left'"><b>银行卡开户行地址</b></th>
<th data-options="field:'id_number',align:'left'"><b>身份证号码</b></th>
</tr>
</thead>
</table>
</div>
<style>
</style>
<!-- 右模块 -->
<div data-options="
split:true,
region:'east',
collapsible:true,
footer:'#win_base_org_form_footer'
" title="人员信息" id="saveBox" style="width:360px;">
<div class="easyui-panel" data-options="fit:true,border:false,footer:'#client_list_left_footer'" style="background-color:#eee;padding:5px 5px 0px 5px;">
<form action="" id="userForm" data-options="" method="post" class="form-message " style="padding-top: 20px;">
<ul class="totalForm totalForm_two">
<li id="additem">
<div class="formflow-l">上级机构</div>
<div class="formflow-r">
<input disabled class="easyui-textbox" id="org_pname" value="请在左侧列表选择" style="width: 100%;"/>
<input type="hidden" id="id" name="id">
<input type="hidden" id="org_code" name="org_code">
<input type="hidden" id="lock_version" name="lock_version">
</div>
</li>
<li>
<div class="formflow-l">登录账号</div>
<div class="formflow-r">
<input class="easyui-textbox" name="login_account" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">登录密码</div>
<div class="formflow-r">
<input class="easyui-textbox" name="password" id="user-password" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">确认密码</div>
<div class="formflow-r">
<input class="easyui-textbox" name="password2" id="user-password2" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">人员编码</div>
<div class="formflow-r">
<input class="easyui-textbox" name="user_code" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">人员英文名</div>
<div class="formflow-r">
<input class="easyui-textbox" name="user_ename" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">人员中文名</div>
<div class="formflow-r">
<input class="easyui-textbox" name="user_cname" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">员工手机号</div>
<div class="formflow-r">
<input class="easyui-textbox" name="user_phone" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">员工地址</div>
<div class="formflow-r">
<input class="easyui-textbox" name="user_address" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">银行卡号</div>
<div class="formflow-r">
<input class="easyui-textbox" name="bank_card_num" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">开户行</div>
<div class="formflow-r">
<input class="easyui-textbox" name="bank" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">开户行地址</div>
<div class="formflow-r">
<input class="easyui-textbox" name="bank_address" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">身份证号</div>
<div class="formflow-r">
<input class="easyui-textbox" name="id_number" style="width: 100%;" data-options="required:true"/>
</div>
</li>
</ul>
</form>
<div id="client_list_left_footer" style="padding:5px;overflow:hidden; display:flex;justify-content:space-between;align-items:center;">
<a class="easyui-linkbutton" style="width:46%;height:40px;" data-options="iconCls:'icon-reload',onClick:$.h.user.reset">重置</a>
<a class="easyui-linkbutton" id="pmm_submitbtn" data-options="iconCls:'icon-ok',onClick:$.h.user.onSubmitUserForm" style="width:46%;height:40px;">添加</a>
</div>
</div>
</div>
<!-- 右边模块 -->
<div data-options="
split:false,
region:'west',
collapsible:true,
footer:'#win_base_org_form_footer'
" title="机构列表" id="saveBox" style="width:350px;">
<table id="win_base_org_grid" class="easyui-treegrid" style="width: 100%;"
data-options="
fit:true,
fitColumns:true,
collapsible:true,
iconCls:'kbi-icon-record',
singleSelect:true,
border:false,
method:'get',
rownumbers:true,
idField: 'org_id',
treeField:'cn_name',
lines: true,
resizeHandle:'right',
onDblClickRow:$.h.org.onDblClickRow,
onClickRow:$.h.org.onClickRow,
onRowContextMenu:$.h.org.rightClick,
onLoadSuccess:function(){$('.createSelectUpBtn').linkbutton({plain: true});},
url:'/web/organization/getTree'
">
<thead data-options="frozen:true">
<tr>
<th data-options="field:'org_id',hidden:true"></th>
<th data-options="field:'cn_name',width:180"><b>机构名称</b></th>
</tr>
</thead>
<thead>
<tr>
<th data-options="field:'org_code',width:80"><b>编码</b></th>
<th data-options="field:'caozuo',width:30,formatter:$.h.user.createSelectUpBtn"><b>操作</b></th>
</tr>
</thead>
</table>
</div>
</div>