agentuser_management.php
10.4 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
218
219
220
221
222
223
<div class="easyui-layout" data-options="fit:true">
<!-- 左侧模块 -->
<div data-options="
split:false,
region:'west',
collapsible:true,
" 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',
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.agentuser.createSelectUpBtn"><b>操作</b></th>
</tr>
</thead>
</table>
</div>
<!-- 中间模块 -->
<div data-options="region:'center'" style="width: 100%;">
<div id="agentuser_toolbar" style="height:33px;">
<a href="javascript:void(0)" class="easyui-linkbutton"
data-options="iconCls:'icon-reload',plain:true" onclick="$.h.agentuser.oninit()">刷新</a>
<a href="javascript:void(0)" class="easyui-linkbutton"
data-options="iconCls:'icon-remove',plain:true">删除用户</a>
</div>
<table id="agentuser_table" class="easyui-datagrid" style="width:100%;" title=""
data-options="
idField: 'user_id',
fit: true,
rownumbers: true,
singleSelect:true,
autoRowHeight:false,
border:false,
toolbar:'#agentuser_toolbar',
method:'get',
checkOnSelect:false,
selectOnCheck:false,
pagination: true,
pageSize: 20,
onClickRow:$.h.agentuser.onClickRow,
onDblClickRow:$.h.user.onDblClickRow,
url:'/web/agent_user/getAgentUsers'
">
<thead data-options="frozen:true">
<tr>
<th data-options="field:'id',hidden:false"></th>
<th data-options="field:'agent_account',sortable:true"><b>登录账号</b></th>
<th data-options="field:'password',align:'left,sortable:true'"><b>登录密码</b></th>
</tr>
</thead>
<thead>
<tr>
<th data-options="field:'user_code'"><b>机构代码</b></th>
<th data-options="field:'user_ename',align:'left'"><b>英文名</b></th>
<th data-options="field:'agent_cname',align:'left'"><b>中文名</b></th>
<th data-options="field:'agent_phone',align:'left'"><b>手机号</b></th>
<th data-options="field:'agent_address',align:'left'"><b>地址</b></th>
<th data-options="field:'sex',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>
<th data-options="field:'org_name',hidden:false"><b>机构名称</b></th>
<th data-options="field:'org_code',hidden:false"><b>机构编码</b></th>
</tr>
</thead>
</table>
</div>
<!-- 右侧模块 -->
<div data-options="
split:true,
region:'east',
collapsible:true,
footer:'#win_base_org_form_footer',
toolbar:'#orders_grid_details_toolbar',
" 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="agentUserForm" 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 type="text" disabled class="easyui-textbox" id="org_name" value="请在左侧列表选择"
style="width: 100%;"/>
<input type="hidden" id="org_code" name="org_code">
<input type="hidden" name="id">
<input type="hidden" id="lock_version" name="lock_version">
</div>
</li>
<li>
<div class="formflow-l">登录账号</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="agent_account" style="width: 100%;"
data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">登录密码</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="password" style="width: 100%;"
data-options=""/>
</div>
</li>
<li>
<div class="formflow-l">确认密码</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="password2" style="width: 100%;"
data-options=""/>
</div>
</li>
<li>
<div class="formflow-l">英文姓名</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="agent_ename" style="width: 100%;"
data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">中文姓名</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="agent_cname" style="width: 100%;"
data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">手机号码</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="agent_phone" style="width: 100%;"
data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">代理地址</div>
<div class="formflow-r">
<input type="text" class="easyui-textbox" name="agent_address" style="width: 100%;"
data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">银行卡号</div>
<div class="formflow-r">
<input type="text" 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>
<li>
<div class="formflow-l">状态</div>
<div class="formflow-r">
<input id="agentuser_status" name="status" class="easyui-switchbutton" data-options="value:1,onText:'启用',offText:'禁用',width:100,checked:true,onChange:$.h.agentuser.changeStatus" />
</div>
</li>
<li>
<div class="formflow-l">备注</div>
<div class="formflow-r">
<input class="easyui-textbox" name="remark" style="width: 100%;"
data-options=""/>
</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.org.reset">重置</a>
<a class="easyui-linkbutton" id="pmm_submitbtn"
data-options="iconCls:'icon-ok',onClick:$.h.org.onSubmitUserForm"
style="width:46%;height:40px;">添加</a>
</div>
</div>
</div>
</div>