00a122d907da989bf087feee8ddb51cd.php
13.5 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:61:"D:\sos\public/../application/web\view\org\org_manage_main.php";i:1593486913;s:46:"D:\sos\application\web\view\layouts\layout.php";i:1593486913;}*/ ?>
<!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/icon.css" />
<link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.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/common.menu.js"></script>
<!--业务-组织机构树-->
<script type="text/javascript" src="/assets/web/js/src/operation.orgManageMain.js"></script>
<!--业务-机构人员-->
<script type="text/javascript" src="/assets/web/js/src/user_management.js"></script>
<!--业务-代理用户-->
<script type="text/javascript" src="/assets/web/js/src/agentuser_management.js"></script>
<script type="text/javascript">
$(function () {
$("<div class=\"datagrid-mask\"></div>").css({
display: "none", position: "absolute",
width: "100%",
height: "100%"
}).appendTo("#Loading");
$("<div class=\"loading\"></div>").html("<div><img src='/assets/web/img/loading.gif' style='width:80px;height:80px;'></div><div style='font-size:12px;color:#666;'>首页加载中……</div>").css({
position: "relative",
left: $(window).width() / 2 - $(window).width() * 0.1,
top: $(window).height() / 2 - 100,
width: $(window).width() * 0.2
}).appendTo("#Loading").css({display: "block"});
setTimeout(function () {
$("#Loading").fadeOut("normal", function () {
$(this).remove();
});
}, 300)
});
</script>
</head>
<body>
<div id='Loading' style="position:absolute;z-index:1000;top:0px;left:0px;width:100%;height:100%;background-color:#fff;text-align:center;"></div>
<!-- 内容区域 start -->
<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'center',border:false" style="overflow: hidden;">
<table id="win_base_org_grid" class="easyui-treegrid" style="width: 100%;"
data-options="
fit:true,
collapsible:true,
iconCls:'kbi-icon-record',
singleSelect:true,
border:false,
method:'get',
toolbar:'#orders_grid_details_toolbar',
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:'caozuo',width:40,formatter:$.h.org.createSelectUpBtn"><b>操作</b></th>
<th data-options="field:'cn_name',width:300"><b>机构名称</b></th>
</tr>
</thead>
<thead>
<tr>
<th data-options="field:'org_code',width:100"><b>编码</b></th>
<th data-options="field:'org_head',width:100"><b>负责人</b></th>
<th data-options="field:'org_phone',width:150"><b>电话</b></th>
<th data-options="
field:'org_type',
fixed:true,
width:80,
align:'center',
formatter:function(value,row,index) {
switch(value) {
case 1:
return '保险代理';
case 2:
return '主体公司';
case 3:
return '科技公司';
case 4:
return '内部机构';
case 5:
return '外部机构';
default:
return '未知';
}
},
styler:function(value,row,index) {
switch(value) {
case 1:return;
//return 'background-color:#ccc;color:red;';
case 2:return;
//return 'background-color:#eee;color:blue;';
case 3:return;
//return 'background-color:#ccc;color:red;';
case 4:return;
//return 'background-color:#eee;color:blue;';
case 5:return;
//return 'background-color:#eee;color:blue;';
default:
return 'background-color:#eee;color:red;';
}
}
"><b>机构类型</b></th>
<th data-options="
value:1,
width:50,
field:'org_status',
formatter:function(value,row,index) {
return value == 1 ? '<font color=green>启用</font>' : '<font color=red>禁用</font>'
}
"><b>状态</b></th>
<th data-options="field:'org_province',width:100"><b>省份</b></th>
<th data-options="field:'org_city',width:100"><b>城市</b></th>
<th data-options="field:'org_area',width:100"><b>区/县</b></th>
<th data-options="field:'org_address',width:250"><b>地址</b></th>
<th data-options="field:'en_name',width:100"><b>英文简称</b></th>
<th data-options="field:'remark',width:100"><b>备注</b></th>
</tr>
</thead>
</table>
</div>
<div data-options="
region:'east',
split:true,
collapsible:true,
footer:'#win_base_org_form_footer',
onResize:$.h.org.onReSizeForm
" title="添加机构" id="orgSaveBox" style="width:360px;padding:5px;">
<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="orgForm" data-options="" method="post" class="form-message" style="padding-top: 20px;">
<ul class=" totalForm">
<li>
<div class="formflow-l">上级机构</div>
<div class="formflow-r">
<input type="text" disabled data-options="required:true" class="easyui-textbox" id="org_pname" value="请在左侧列表选择" style="width: 100%;"/>
<input type="hidden" id="org_pid" name="org_pid">
<input type="hidden" name="org_id" id="org_id">
<input type="hidden" name="lock_version">
</div>
</li>
<li>
<div class="formflow-l">机构类型</div>
<div class="formflow-r">
<select data-potions="editable:false,panelHeight:'auto'" class="easyui-combobox" name="org_type" id="org_type" style="width: 100%;">
<option value="1">保险代理</option>
<option value="2">主体公司</option>
<option value="3">科技公司</option>
<option value="4">内部机构</option>
<option value="5">外部机构</option>
</select>
</div>
</li>
<li>
<div class="formflow-l">中文名称</div>
<div class="formflow-r">
<input class="easyui-textbox" name="cn_name" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">负责人</div>
<div class="formflow-r">
<input class="easyui-textbox" name="org_head" style="width: 100%;" data-options="required:true"/>
</div>
</li>
<li>
<div class="formflow-l">电话</div>
<div class="formflow-r">
<input class="easyui-textbox" name="org_phone" style="width: 100%;" data-options="required:true,validType:'phone'"/>
</div>
</li>
<li>
<div class="formflow-l">省份</div>
<div class="formflow-r">
<input class="easyui-textbox" name="org_province" style="width: 100%;" data-options=""/>
</div>
</li>
<li>
<div class="formflow-l">城市</div>
<div class="formflow-r">
<input class="easyui-textbox" name="org_city" style="width: 100%;" data-options=""/>
</div>
</li>
<li>
<div class="formflow-l">区县</div>
<div class="formflow-r">
<input class="easyui-textbox" name="org_area" style="width: 100%;" data-options=""/>
</div>
</li>
<li>
<div class="formflow-l">地址</div>
<div class="formflow-r">
<input class="easyui-textbox" name="org_address" style="width: 100%;" data-options=""/>
</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>
<li>
<div class="formflow-l">英文简称</div>
<div class="formflow-r">
<input class="easyui-textbox" name="en_name" style="width: 100%;" data-options=""/>
</div>
</li>
<li>
<div class="formflow-l">状态</div>
<div class="formflow-r">
<input id="org_status" name="org_status" class="easyui-switchbutton" data-options="value:1,onText:'启用',offText:'禁用',width:100,checked:true,onChange:$.h.org.changeStatus" />
</div>
</li>
<li>
<div class="formflow-l">排序</div>
<div class="formflow-r">
<input id="org_sort" name="org_sort" class="easyui-numberspinner" style="width:100%;" data-options="value:1,required:true,spinAlign:'horizontal',min:0,max:9999999"/>
</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="orgSubmitBTN" data-options="iconCls:'icon-ok',onClick:$.h.org.onSubmitForm" style="width:46%;height:40px;">添加</a>
</div>
</div>
</div>
<!-- 右键菜单 -->
<div id="mm" class="easyui-menu" style="width:120px;" data-options="onClick:$.h.org.menuHandler">
<div data-options="name:'selectUpOrg'">选为上级机构</div>
</div>
<!-- 工具栏-->
<div id="orders_grid_details_toolbar" style="height:33px;display:flex;justify-content: space-between;">
<div style="margin-left: 5px;">
<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.org.delOrgTip">删除机构</a>
<!-- <input class="easyui-textbox" id="itemid" data-options="label:'机构名称',labelWidth:70" style="width:250px" />-->
<!-- <input class="easyui-textbox" data-options="label:'身份证号',labelWidth:70" style="width:200px" />-->
<!-- <input class="easyui-datetimespinner" data-options="label:'日期',labelWidth:35" style="width:200px" />-->
<!-- <input class="easyui-datetimespinner" data-options="label:'至',labelWidth:20" style="width:190px" />-->
<!-- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:false,onClick:$.h.org.searchOrg">搜索</a>-->
</div>
</div>
</div>
<!-- 内容区域 end -->
</body>
</html>