|
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="UTF-8">
|
|
|
6
|
+ <title>待转派</title>
|
|
|
7
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
8
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
9
|
+ <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
|
|
|
10
|
+ <link rel="stylesheet" href="../css/init.css" />
|
|
|
11
|
+ <style>
|
|
|
12
|
+ #sqzx th {
|
|
|
13
|
+ padding: 5px 8px 5px 0;
|
|
|
14
|
+ text-align: right;
|
|
|
15
|
+ }
|
|
|
16
|
+
|
|
|
17
|
+ .select {
|
|
|
18
|
+ width: 150px;
|
|
|
19
|
+ background-color: #FFF;
|
|
|
20
|
+ background-image: none;
|
|
|
21
|
+ border: 1px solid #ccc;
|
|
|
22
|
+ border-radius: 1px;
|
|
|
23
|
+ color: inherit;
|
|
|
24
|
+ padding: 6px 12px;
|
|
|
25
|
+ }
|
|
|
26
|
+
|
|
|
27
|
+ #sex {
|
|
|
28
|
+ background-color: #FFF;
|
|
|
29
|
+ background-image: none;
|
|
|
30
|
+ border: 1px solid #ccc;
|
|
|
31
|
+ border-radius: 1px;
|
|
|
32
|
+ color: inherit;
|
|
|
33
|
+ padding: 6px 12px;
|
|
|
34
|
+ }
|
|
|
35
|
+
|
|
|
36
|
+ input {
|
|
|
37
|
+ background-color: #FFF;
|
|
|
38
|
+ background-image: none;
|
|
|
39
|
+ border: 1px solid #ccc;
|
|
|
40
|
+ border-radius: 1px;
|
|
|
41
|
+ color: inherit;
|
|
|
42
|
+ padding: 6px 12px;
|
|
|
43
|
+ }
|
|
|
44
|
+
|
|
|
45
|
+ #sqzx td {
|
|
|
46
|
+ padding: 6px 0 5px 10px;
|
|
|
47
|
+ }
|
|
|
48
|
+
|
|
|
49
|
+ .lxr ul li {
|
|
|
50
|
+ float: left;
|
|
|
51
|
+ list-style: none;
|
|
|
52
|
+ width: 30%;
|
|
|
53
|
+ margin-bottom: 5px;
|
|
|
54
|
+ padding-top: 10px;
|
|
|
55
|
+ }
|
|
|
56
|
+
|
|
|
57
|
+ .clearFix:after {
|
|
|
58
|
+ content: "";
|
|
|
59
|
+ display: block;
|
|
|
60
|
+ clear: both;
|
|
|
61
|
+ }
|
|
|
62
|
+
|
|
|
63
|
+ .form-group {
|
|
|
64
|
+ padding-left: 40px;
|
|
|
65
|
+ margin-bottom: 0;
|
|
|
66
|
+ }
|
|
|
67
|
+
|
|
|
68
|
+ textarea {
|
|
|
69
|
+ height: 70px;
|
|
|
70
|
+ border: 1px solid #ccc;
|
|
|
71
|
+ border-radius: 1px;
|
|
|
72
|
+ width: 50%;
|
|
|
73
|
+ resize: none;
|
|
|
74
|
+ }
|
|
|
75
|
+
|
|
|
76
|
+ .textarea_box {
|
|
|
77
|
+ margin-top: 10px;
|
|
|
78
|
+ }
|
|
|
79
|
+
|
|
|
80
|
+ .box_content {
|
|
|
81
|
+ border-bottom: 1px solid #ccc;
|
|
|
82
|
+ }
|
|
|
83
|
+
|
|
|
84
|
+ .tj_content {
|
|
|
85
|
+ border: 1px solid #e6e6e6;
|
|
|
86
|
+ border-radius: 5px;
|
|
|
87
|
+ }
|
|
|
88
|
+
|
|
|
89
|
+ .t-shade {
|
|
|
90
|
+ position: fixed;
|
|
|
91
|
+ top: 0;
|
|
|
92
|
+ left: 0;
|
|
|
93
|
+ width: 100%;
|
|
|
94
|
+ height: 100%;
|
|
|
95
|
+ background: rgba(0, 0, 0, 0.48);
|
|
|
96
|
+ z-index: 10004;
|
|
|
97
|
+ display: none;
|
|
|
98
|
+ }
|
|
|
99
|
+
|
|
|
100
|
+ .lyxz .shade_k {
|
|
|
101
|
+ z-index: 10005;
|
|
|
102
|
+ width: 60%;
|
|
|
103
|
+ margin: 10% auto;
|
|
|
104
|
+ background-color: #fff;
|
|
|
105
|
+ box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
|
|
|
106
|
+ border-radius: 5px;
|
|
|
107
|
+ }
|
|
|
108
|
+
|
|
|
109
|
+ .shade_title {
|
|
|
110
|
+ padding: 0 80px 0 20px;
|
|
|
111
|
+ height: 42px;
|
|
|
112
|
+ line-height: 42px;
|
|
|
113
|
+ border-bottom: 1px solid #eee;
|
|
|
114
|
+ font-size: 16px;
|
|
|
115
|
+ color: #FFFFFF;
|
|
|
116
|
+ overflow: hidden;
|
|
|
117
|
+ background-color: #00a1cb;
|
|
|
118
|
+ border-radius: 2px 2px 0 0;
|
|
|
119
|
+ position: relative;
|
|
|
120
|
+ border-top-left-radius: 5px;
|
|
|
121
|
+ border-top-right-radius: 5px;
|
|
|
122
|
+ }
|
|
|
123
|
+
|
|
|
124
|
+ .cx {
|
|
|
125
|
+ display: block;
|
|
|
126
|
+ }
|
|
|
127
|
+
|
|
|
128
|
+ .setwin {
|
|
|
129
|
+ position: absolute;
|
|
|
130
|
+ right: 15px;
|
|
|
131
|
+ top: 5px;
|
|
|
132
|
+ font-size: 0;
|
|
|
133
|
+ line-height: initial;
|
|
|
134
|
+ }
|
|
|
135
|
+
|
|
|
136
|
+ .setwin a {
|
|
|
137
|
+ position: relative;
|
|
|
138
|
+ width: 16px;
|
|
|
139
|
+ height: 16px;
|
|
|
140
|
+ font-size: 20px;
|
|
|
141
|
+ color: #fff;
|
|
|
142
|
+ }
|
|
|
143
|
+
|
|
|
144
|
+ .xg i {
|
|
|
145
|
+ font-size: 16px;
|
|
|
146
|
+ }
|
|
|
147
|
+
|
|
|
148
|
+ .hidens {
|
|
|
149
|
+ display: none;
|
|
|
150
|
+ }
|
|
|
151
|
+ .Min-width{
|
|
|
152
|
+ width: 150px;
|
|
|
153
|
+ }
|
|
|
154
|
+ .hidens {
|
|
|
155
|
+ display: none;
|
|
|
156
|
+ }
|
|
|
157
|
+ .inpBox {
|
|
|
158
|
+ border: 1px solid #e5e6e7;
|
|
|
159
|
+ height: 34px;
|
|
|
160
|
+ width: 220px;
|
|
|
161
|
+ display: inline-block;
|
|
|
162
|
+ position: relative;
|
|
|
163
|
+ vertical-align: middle;
|
|
|
164
|
+ }
|
|
|
165
|
+
|
|
|
166
|
+ .addTree {
|
|
|
167
|
+ background: #fff;
|
|
|
168
|
+ position: absolute;
|
|
|
169
|
+ width: 100%;
|
|
|
170
|
+ border: 1px solid #e5e6e7;
|
|
|
171
|
+ right: 0;
|
|
|
172
|
+ top: 33px;
|
|
|
173
|
+ display: none;
|
|
|
174
|
+ z-index: 222;
|
|
|
175
|
+ }
|
|
|
176
|
+
|
|
|
177
|
+ .xl {
|
|
|
178
|
+ display: inline-block;
|
|
|
179
|
+ background: url(../../img/dropDown.png) no-repeat;
|
|
|
180
|
+ height: 100%;
|
|
|
181
|
+ background-position: center center;
|
|
|
182
|
+ width: 20px;
|
|
|
183
|
+ position: absolute;
|
|
|
184
|
+ right: 0;
|
|
|
185
|
+ top: 0px;
|
|
|
186
|
+ /* background-color: #f7bc8b; */
|
|
|
187
|
+ cursor: pointer;
|
|
|
188
|
+ }
|
|
|
189
|
+
|
|
|
190
|
+ .ztree li span {
|
|
|
191
|
+ border: none;
|
|
|
192
|
+ padding: 0;
|
|
|
193
|
+ }
|
|
|
194
|
+
|
|
|
195
|
+ .inps {
|
|
|
196
|
+ width: 217px;
|
|
|
197
|
+ height: 32px;
|
|
|
198
|
+ outline: none;
|
|
|
199
|
+ border: 0;
|
|
|
200
|
+ border-image-width: 0;
|
|
|
201
|
+ padding: 0;
|
|
|
202
|
+ padding-left: 3px;
|
|
|
203
|
+ }
|
|
|
204
|
+
|
|
|
205
|
+ .xl {
|
|
|
206
|
+ display: inline-block;
|
|
|
207
|
+ background: url(../img/dropDown.png) no-repeat;
|
|
|
208
|
+ height: 100%;
|
|
|
209
|
+ background-position: center center;
|
|
|
210
|
+ width: 20px;
|
|
|
211
|
+ position: absolute;
|
|
|
212
|
+ right: 0;
|
|
|
213
|
+ top: 0px;
|
|
|
214
|
+ /* background-color: #f7bc8b; */
|
|
|
215
|
+ cursor: pointer;
|
|
|
216
|
+ }
|
|
|
217
|
+ .Cleans{
|
|
|
218
|
+ display: inline-block;
|
|
|
219
|
+ width: 20px;
|
|
|
220
|
+ position: absolute;
|
|
|
221
|
+ right: 21px;
|
|
|
222
|
+ top: 9px;
|
|
|
223
|
+ display: none;
|
|
|
224
|
+ }
|
|
|
225
|
+
|
|
|
226
|
+
|
|
|
227
|
+ </style>
|
|
|
228
|
+ </head>
|
|
|
229
|
+
|
|
|
230
|
+ <body class="gray-bg">
|
|
|
231
|
+ <div class="daoHang clearfix">
|
|
|
232
|
+ <div class="dhLeft">
|
|
|
233
|
+ <sapn>
|
|
|
234
|
+ <i class="syIcon"></i>位置:
|
|
|
235
|
+ <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
|
236
|
+ <a href="javaScript:;">工单处理</a>>
|
|
|
237
|
+ <a class="nowPosition">待转派列表</a>
|
|
|
238
|
+ </sapn>
|
|
|
239
|
+ </div>
|
|
|
240
|
+ <div class="dhRight">
|
|
|
241
|
+ <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
242
|
+ </div>
|
|
|
243
|
+ </div>
|
|
|
244
|
+ <div class="wrapper wrapper-content">
|
|
|
245
|
+
|
|
|
246
|
+ <div class="th-top clearfix">
|
|
|
247
|
+ <div class="form-inline th-bar clearfix">
|
|
|
248
|
+ <div class="time-box form-group" >
|
|
|
249
|
+ <i class="tub fa fa-search"></i>
|
|
|
250
|
+ <input class="form-control" type="text" id="key" placeholder="请输入标题关键字"/>
|
|
|
251
|
+ </div>
|
|
|
252
|
+
|
|
|
253
|
+ <div class="time-box form-group" >
|
|
|
254
|
+ <i class="tub fa fa-search"></i>
|
|
|
255
|
+ <input class="form-control" type="text" id="wids" placeholder="请输入工单号"/>
|
|
|
256
|
+ </div>
|
|
|
257
|
+
|
|
|
258
|
+ <div class="time-box form-group" >
|
|
|
259
|
+ <i class="tub fa fa-calendar"></i>
|
|
|
260
|
+ <input class="form-control" type="text" id="startTime" placeholder="起始时间">
|
|
|
261
|
+ </div>
|
|
|
262
|
+
|
|
|
263
|
+ <div class="time-box form-group" >
|
|
|
264
|
+ <select class="dataType form-control" id="state">
|
|
|
265
|
+ <option value="">请选择工单状态</option>
|
|
|
266
|
+ <option value="1">待交办</option>
|
|
|
267
|
+ <option value="2">待收回</option>
|
|
|
268
|
+ <option value="3">退回审核中</option>
|
|
|
269
|
+ <option value="5">延时审核中</option>
|
|
|
270
|
+ <option value="7">已回访</option>
|
|
|
271
|
+ </select>
|
|
|
272
|
+ </div>
|
|
|
273
|
+
|
|
|
274
|
+ <div class="time-box form-group" >
|
|
|
275
|
+ <select class=" dataType form-control" id="source">
|
|
|
276
|
+ </select>
|
|
|
277
|
+ </div>
|
|
|
278
|
+ <div class="time-box form-group" >
|
|
|
279
|
+ <select class="dataType form-control" id="keyid">
|
|
|
280
|
+ </select>
|
|
|
281
|
+ </div>
|
|
|
282
|
+ <div class="time-box form-group" >
|
|
|
283
|
+ <i class="tub fa fa-search"></i>
|
|
|
284
|
+ <input class="form-control" type="text" id="tel" placeholder="请输入投诉电话"/>
|
|
|
285
|
+ </div>
|
|
|
286
|
+ <div class="time-box form-group" >
|
|
|
287
|
+ <i class="tub fa fa-search"></i>
|
|
|
288
|
+ <input class="form-control" type="text" id="name" placeholder="请输入投诉人"/>
|
|
|
289
|
+ </div>
|
|
|
290
|
+ <div class="time-box form-group" >
|
|
|
291
|
+ <div class="inpBox">
|
|
|
292
|
+ <input type="text" class="inps" placeholder="请选择主办单位" />
|
|
|
293
|
+ <i class="Cleans fa fa-close"></i>
|
|
|
294
|
+ <i class="xl xl_one"></i>
|
|
|
295
|
+ <div class="addTree xlAdd">
|
|
|
296
|
+ <ul id="addTreeDemo" class="ztree">
|
|
|
297
|
+
|
|
|
298
|
+ </ul>
|
|
|
299
|
+ </div>
|
|
|
300
|
+ </div>
|
|
|
301
|
+ </div>
|
|
|
302
|
+ <div class="time-box form-group" >
|
|
|
303
|
+ <select class="form-control" id="ZX">
|
|
|
304
|
+
|
|
|
305
|
+ </select>
|
|
|
306
|
+ </div>
|
|
|
307
|
+ <div class="time-box form-group" >
|
|
|
308
|
+ <select class="form-control" id="type">
|
|
|
309
|
+
|
|
|
310
|
+ </select>
|
|
|
311
|
+ </div>
|
|
|
312
|
+
|
|
|
313
|
+ <div class="form-group tool_bars pull-right">
|
|
|
314
|
+ <botton class="btns Seach">搜索</botton>
|
|
|
315
|
+ </div>
|
|
|
316
|
+ </div>
|
|
|
317
|
+ </div>
|
|
|
318
|
+
|
|
|
319
|
+
|
|
|
320
|
+ <div style="padding: 10px;" class="tj_content clearFix">
|
|
|
321
|
+ <div>
|
|
|
322
|
+ <div style="width: 100%;padding: 10px;">
|
|
|
323
|
+ <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
|
324
|
+ <thead>
|
|
|
325
|
+ <tr>
|
|
|
326
|
+ <th data-checkbox="true"></th>
|
|
|
327
|
+ <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
|
|
|
328
|
+ <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
|
|
|
329
|
+ <th data-field="DeptName" data-align="center">主办单位</th>
|
|
|
330
|
+ <th data-field="OtherDeptName" data-align="center">协办单位</th>
|
|
|
331
|
+ <th data-field="UserName" data-align="center">受理人</th>
|
|
|
332
|
+ <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
|
|
|
333
|
+ <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
|
|
|
334
|
+ <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
|
|
|
335
|
+ <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
|
|
|
336
|
+ <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
|
|
|
337
|
+ </tr>
|
|
|
338
|
+ </thead>
|
|
|
339
|
+ <tbody class="list"></tbody>
|
|
|
340
|
+ </table>
|
|
|
341
|
+ </div>
|
|
|
342
|
+ </div>
|
|
|
343
|
+ </div>
|
|
|
344
|
+
|
|
|
345
|
+ <!--下载框-->
|
|
|
346
|
+ <div class="t-shade lyxz">
|
|
|
347
|
+ <div class="shade_k">
|
|
|
348
|
+ <div class="shade_title">
|
|
|
349
|
+ <span>录音播放与下载<srong class="cknum"></srong></span>
|
|
|
350
|
+ <span class="setwin gbly"><a>x</a></span>
|
|
|
351
|
+ </div>
|
|
|
352
|
+ <div class="shade_content">
|
|
|
353
|
+ <div class="Ly_box audiojs">
|
|
|
354
|
+ </div>
|
|
|
355
|
+ </div>
|
|
|
356
|
+ </div>
|
|
|
357
|
+ </div>
|
|
|
358
|
+ <input type="hidden" id="PID" />
|
|
|
359
|
+ <input type="hidden" id="Dpment" /
|
|
|
360
|
+ </div>
|
|
|
361
|
+ <script src="../js/laydate/laydate.js"></script>
|
|
|
362
|
+ <script src="../My97DatePicker/WdatePicker.js"></script>
|
|
|
363
|
+ <script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
|
364
|
+ <script>
|
|
|
365
|
+ var wid = helper.request.queryString("states");
|
|
|
366
|
+ if(wid){
|
|
|
367
|
+ $("#state").val(wid);
|
|
|
368
|
+ }
|
|
|
369
|
+ $(document).ready(function() {
|
|
|
370
|
+ load();
|
|
|
371
|
+ LY($("#source"));
|
|
|
372
|
+ LB($("#type"));
|
|
|
373
|
+ ZT($("#keyid"));
|
|
|
374
|
+ ZX($("#ZX"));
|
|
|
375
|
+
|
|
|
376
|
+ tree();
|
|
|
377
|
+ laydate.render({
|
|
|
378
|
+ elem: '#startTime',
|
|
|
379
|
+ range: '~',
|
|
|
380
|
+ theme: '#00a1cb',
|
|
|
381
|
+ });
|
|
|
382
|
+ ///搜素
|
|
|
383
|
+ $(".Seach").click(function() {
|
|
|
384
|
+ load();
|
|
|
385
|
+ });
|
|
|
386
|
+ //所属分类下拉
|
|
|
387
|
+ $('.inps').click(function() {
|
|
|
388
|
+ $('.xlAdd').css('display', 'block')
|
|
|
389
|
+ });
|
|
|
390
|
+ $('.xl').click(function() {
|
|
|
391
|
+ if($('.xlAdd').css('display') == 'block') {
|
|
|
392
|
+ $('.xlAdd').css('display', 'none')
|
|
|
393
|
+ } else {
|
|
|
394
|
+ $('.xlAdd').css('display', 'block')
|
|
|
395
|
+ }
|
|
|
396
|
+ });
|
|
|
397
|
+ $('.addTree').mouseleave(function() {
|
|
|
398
|
+ $(this).css('display', 'none')
|
|
|
399
|
+ });
|
|
|
400
|
+ $(".Cleans ").click(function(){
|
|
|
401
|
+ $('.inps').val("");
|
|
|
402
|
+ $("#PID").val("");
|
|
|
403
|
+ $("#Dpment").val("");
|
|
|
404
|
+ });
|
|
|
405
|
+
|
|
|
406
|
+ });
|
|
|
407
|
+
|
|
|
408
|
+ //关闭录音弹出
|
|
|
409
|
+ $(".gbly").click(function() {
|
|
|
410
|
+ $(".lyxz").removeClass("cx");
|
|
|
411
|
+ $('audio')[0].pause();
|
|
|
412
|
+ });
|
|
|
413
|
+
|
|
|
414
|
+ $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
|
|
|
415
|
+ $('.success').removeClass('success'); //去除之前选中的行的,选中样式
|
|
|
416
|
+ $(ele).addClass('success'); //添加当前选中的 success样式用于区别
|
|
|
417
|
+ });
|
|
|
418
|
+
|
|
|
419
|
+ //获取查询信息
|
|
|
420
|
+ function load() {
|
|
|
421
|
+ //先销毁表格
|
|
|
422
|
+ $('#orderlist').bootstrapTable('destroy');
|
|
|
423
|
+ //初始化表格,动态从服务器加载数据
|
|
|
424
|
+ $("#orderlist").bootstrapTable({
|
|
|
425
|
+ method: "get", //使用get请求到服务器获取数据
|
|
|
426
|
+ url: huayi.config.callcenter_url + "WorkOrder/GetCityList", //获取数据的Servlet地址
|
|
|
427
|
+ contentType: "application/x-www-form-urlencoded",
|
|
|
428
|
+ striped: true, //表格显示条纹
|
|
|
429
|
+ pagination: true, //启动分页
|
|
|
430
|
+ pageSize: 10, //每页显示的记录数
|
|
|
431
|
+ pageNumber: 1, //当前第几页
|
|
|
432
|
+ pageList: [10, 20, 50, 100], //记录数可选列表
|
|
|
433
|
+ search: false, //是否启用查询
|
|
|
434
|
+ showColumns: false, //显示下拉框勾选要显示的列
|
|
|
435
|
+ showRefresh: false, //显示刷新按钮
|
|
|
436
|
+ sidePagination: "server", //表示服务端请求
|
|
|
437
|
+ //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
|
438
|
+ //设置为limit可以获取limit, offset, search, sort, order
|
|
|
439
|
+ queryParamsType: "undefined",
|
|
|
440
|
+ queryParams: function queryParams(params) { //设置查询参数
|
|
|
441
|
+ var param = {
|
|
|
442
|
+ page: params.pageNumber,
|
|
|
443
|
+ pagesize: params.pageSize,
|
|
|
444
|
+ workid: $("#wids").val(),
|
|
|
445
|
+ state: $("#state").val(), //=工单状态
|
|
|
446
|
+ type: $("#type").val(), //=工单类型
|
|
|
447
|
+ bigtype: $("#bigtype").val(), //=大类别
|
|
|
448
|
+ smalltype: $("#smalltype").val(), //=小类别
|
|
|
449
|
+ key: $("#key").val(), //=关键字
|
|
|
450
|
+ tel: $("#tel").val(), //=客户电话
|
|
|
451
|
+ name: $("#name").val(), //=客户名称
|
|
|
452
|
+ usercode: $("#ZX").val(), //=坐席工号
|
|
|
453
|
+ keyid: $("#keyid").val(), //=关键词id
|
|
|
454
|
+ source: $("#source").val(), //=来源&
|
|
|
455
|
+ starttime: $('#startTime').val() && $('#startTime').val().split('~')[0], //=开始时间
|
|
|
456
|
+ endtime: $('#startTime').val() && $('#startTime').val().split('~')[1], //=结束时间
|
|
|
457
|
+ deptid:$("#PID").val(),
|
|
|
458
|
+ type:$("#type").val(),
|
|
|
459
|
+ tab: 0, //待处理
|
|
|
460
|
+ token: $.cookie("token")
|
|
|
461
|
+ };
|
|
|
462
|
+ return param;
|
|
|
463
|
+ },
|
|
|
464
|
+ onLoadSuccess: function(data) { //加载成功时执行
|
|
|
465
|
+ // layer.msg("加载成功");
|
|
|
466
|
+ //console.log(data);
|
|
|
467
|
+ },
|
|
|
468
|
+ onLoadError: function() { //加载失败时执行
|
|
|
469
|
+ //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
|
470
|
+ }
|
|
|
471
|
+ });
|
|
|
472
|
+ }
|
|
|
473
|
+ //状态
|
|
|
474
|
+ function States(val,row) {
|
|
|
475
|
+ var html = '';
|
|
|
476
|
+ switch(val + '') {
|
|
|
477
|
+ case '0':
|
|
|
478
|
+ html = '新工单';
|
|
|
479
|
+ if(row.F_IsReturn==1){
|
|
|
480
|
+ html = '新工单(回退)';
|
|
|
481
|
+ }
|
|
|
482
|
+ break;
|
|
|
483
|
+ case '1':
|
|
|
484
|
+ html = '待交办';
|
|
|
485
|
+ break;
|
|
|
486
|
+ case '2':
|
|
|
487
|
+ html = '待查收';
|
|
|
488
|
+ break;
|
|
|
489
|
+ case '3':
|
|
|
490
|
+ html = '退回审核中';
|
|
|
491
|
+ break;
|
|
|
492
|
+ case '4':
|
|
|
493
|
+ html = '办理中';
|
|
|
494
|
+ break;
|
|
|
495
|
+ case '5':
|
|
|
496
|
+ html = '延时审核';
|
|
|
497
|
+ break;
|
|
|
498
|
+ case '6':
|
|
|
499
|
+ html = '已办理';
|
|
|
500
|
+ break;
|
|
|
501
|
+ case '7':
|
|
|
502
|
+ html = '已回访';
|
|
|
503
|
+ break;
|
|
|
504
|
+ case '8':
|
|
|
505
|
+ html = '重办中';
|
|
|
506
|
+ break;
|
|
|
507
|
+ case '9':
|
|
|
508
|
+ html = '已结案';
|
|
|
509
|
+ break;
|
|
|
510
|
+ }
|
|
|
511
|
+ return html;
|
|
|
512
|
+
|
|
|
513
|
+ };
|
|
|
514
|
+ //时限
|
|
|
515
|
+ function OverTime(val,row){
|
|
|
516
|
+ if(val==1){
|
|
|
517
|
+ return '<div class="" style="cursor: pointer;">' +
|
|
|
518
|
+ '<span class="Greens">'+row.GapTime+'</span>'+
|
|
|
519
|
+ '</div>';
|
|
|
520
|
+ }else if(val==2){
|
|
|
521
|
+ return '<div class="" style="cursor: pointer;">' +
|
|
|
522
|
+ '<span class="Yellows">'+row.GapTime+'</span>'+
|
|
|
523
|
+ '</div>';
|
|
|
524
|
+ }else if(val==3){
|
|
|
525
|
+ return '<div class="" style="cursor: pointer;">' +
|
|
|
526
|
+ '<span class="Reds">'+row.GapTime+'</span>'+
|
|
|
527
|
+ '</div>';
|
|
|
528
|
+ }
|
|
|
529
|
+ };
|
|
|
530
|
+ //办理时限
|
|
|
531
|
+ function BanTime(val){
|
|
|
532
|
+ if(val){
|
|
|
533
|
+ var time=val.substring(0,val.indexOf(' '));
|
|
|
534
|
+ return '<div class="" style="cursor: pointer;">' +
|
|
|
535
|
+ '<span>'+time+'</span>'+
|
|
|
536
|
+ '</div>';
|
|
|
537
|
+ }
|
|
|
538
|
+
|
|
|
539
|
+ };
|
|
|
540
|
+ //音频
|
|
|
541
|
+ function setCode(val) {
|
|
|
542
|
+ if(val) {
|
|
|
543
|
+ return '<div class="imgs" style="cursor: pointer;">' +
|
|
|
544
|
+ '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
|
|
|
545
|
+ '</div>';
|
|
|
546
|
+ } else {
|
|
|
547
|
+ return '';
|
|
|
548
|
+ }
|
|
|
549
|
+ };
|
|
|
550
|
+ //录音
|
|
|
551
|
+ function ck(val) {
|
|
|
552
|
+ var path = $(val).attr("item");
|
|
|
553
|
+ $(".lyxz").addClass("cx");
|
|
|
554
|
+ $(".Ly_box").empty();
|
|
|
555
|
+ $(".down").attr("href", path);
|
|
|
556
|
+ $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
|
|
|
557
|
+ $('.shade_k').css({
|
|
|
558
|
+ 'top' : $(document).scrollTop() + ($(window).height() - $('.shade_k').height() - 289)/2,
|
|
|
559
|
+ 'left' : ($(window).width()-$('.shade_k').width())/2,
|
|
|
560
|
+ 'position' : 'absolute'
|
|
|
561
|
+ });
|
|
|
562
|
+ };
|
|
|
563
|
+
|
|
|
564
|
+ function GetCont(val) {
|
|
|
565
|
+ if(val) {
|
|
|
566
|
+ var str = '<div '
|
|
|
567
|
+ if(val.length > 10) {
|
|
|
568
|
+ str = str + ' title="' + val + '" ';
|
|
|
569
|
+ val = val.substr(0, 10) + "...";
|
|
|
570
|
+ }
|
|
|
571
|
+ return str + '>' + val + '</div>';
|
|
|
572
|
+ } else {
|
|
|
573
|
+ return '';
|
|
|
574
|
+ }
|
|
|
575
|
+ };
|
|
|
576
|
+ //操作
|
|
|
577
|
+ function Dispose(val, row) {
|
|
|
578
|
+ var Rows = row.Buttons;
|
|
|
579
|
+ var html = '';
|
|
|
580
|
+ for(var i = 0; i < Rows.length; i++) {
|
|
|
581
|
+
|
|
|
582
|
+ var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
|
|
|
583
|
+ if(html1) {
|
|
|
584
|
+ html1 = html1.replace("data", val);
|
|
|
585
|
+ }
|
|
|
586
|
+ html += html1;
|
|
|
587
|
+
|
|
|
588
|
+ }
|
|
|
589
|
+ return html;
|
|
|
590
|
+ };
|
|
|
591
|
+
|
|
|
592
|
+ //查看详情
|
|
|
593
|
+ function ckxq(str) {
|
|
|
594
|
+ layer.open({
|
|
|
595
|
+ type: 2,
|
|
|
596
|
+ content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
597
|
+ title: '工单详情',
|
|
|
598
|
+ area: ['85%', '80%'], //宽高
|
|
|
599
|
+ });
|
|
|
600
|
+ };
|
|
|
601
|
+ //编辑
|
|
|
602
|
+ function bj(str) {
|
|
|
603
|
+ layer.open({
|
|
|
604
|
+ type: 2,
|
|
|
605
|
+ content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
606
|
+ title: '编辑工单',
|
|
|
607
|
+ area: ['96%', '85%'], //宽高
|
|
|
608
|
+ });
|
|
|
609
|
+ };
|
|
|
610
|
+ //删除
|
|
|
611
|
+ function move(str) {
|
|
|
612
|
+ layer.confirm('确定删除工单?', {
|
|
|
613
|
+ btn: ['是', '否'] //按钮
|
|
|
614
|
+ }, function() {
|
|
|
615
|
+ $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
|
|
|
616
|
+ ids: str,
|
|
|
617
|
+ token: $.cookie("token")
|
|
|
618
|
+ }, function(result) {
|
|
|
619
|
+ result = JSON.parse(result);
|
|
|
620
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
621
|
+ layer.msg("删除成功");
|
|
|
622
|
+ load();
|
|
|
623
|
+ }
|
|
|
624
|
+ })
|
|
|
625
|
+ });
|
|
|
626
|
+ };
|
|
|
627
|
+ //提交
|
|
|
628
|
+ function tj(str) {
|
|
|
629
|
+ layer.confirm('确定要提交工单么?', {
|
|
|
630
|
+ btn: ['确定', '取消'] //按钮
|
|
|
631
|
+ }, function() {
|
|
|
632
|
+ //请求后台数据
|
|
|
633
|
+ /*发送请求*/
|
|
|
634
|
+ $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
|
|
|
635
|
+ ids: str,
|
|
|
636
|
+ token: $.cookie("token")
|
|
|
637
|
+ }, function(result) {
|
|
|
638
|
+ result = JSON.parse(result);
|
|
|
639
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
640
|
+ layer.msg("提交成功");
|
|
|
641
|
+ load();
|
|
|
642
|
+ }
|
|
|
643
|
+ })
|
|
|
644
|
+ });
|
|
|
645
|
+ };
|
|
|
646
|
+ //交办
|
|
|
647
|
+ function jb(str) {
|
|
|
648
|
+ layer.open({
|
|
|
649
|
+ type: 2,
|
|
|
650
|
+ content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
651
|
+ title: '工单交办',
|
|
|
652
|
+ area: ['87%', '80%'], //宽高
|
|
|
653
|
+ });
|
|
|
654
|
+ };
|
|
|
655
|
+ //领导批示
|
|
|
656
|
+ function lader(str) {
|
|
|
657
|
+ layer.open({
|
|
|
658
|
+ type: 2,
|
|
|
659
|
+ content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
660
|
+ title: '领导批示',
|
|
|
661
|
+ area: ['60%', '80%'], //宽高
|
|
|
662
|
+ });
|
|
|
663
|
+ };
|
|
|
664
|
+ //市长批示
|
|
|
665
|
+ function city(str) {
|
|
|
666
|
+ layer.open({
|
|
|
667
|
+ type: 2,
|
|
|
668
|
+ content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
669
|
+ title: '领导批示',
|
|
|
670
|
+ area: ['60%', '80%'], //宽高
|
|
|
671
|
+ });
|
|
|
672
|
+ };
|
|
|
673
|
+ //办理
|
|
|
674
|
+ function bl(str) {
|
|
|
675
|
+ layer.open({
|
|
|
676
|
+ type: 2,
|
|
|
677
|
+ content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
678
|
+ title: '办理工单',
|
|
|
679
|
+ area: ['60%', '80%'], //宽高
|
|
|
680
|
+ });
|
|
|
681
|
+ };
|
|
|
682
|
+ //督办
|
|
|
683
|
+
|
|
|
684
|
+ function Supervision(str) {
|
|
|
685
|
+ layer.open({
|
|
|
686
|
+ type: 2,
|
|
|
687
|
+ content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
|
|
|
688
|
+ title: '督办',
|
|
|
689
|
+ area: ['60%', '80%'], //宽高
|
|
|
690
|
+ });
|
|
|
691
|
+ };
|
|
|
692
|
+
|
|
|
693
|
+ //督查
|
|
|
694
|
+ function Supervision_(str) {
|
|
|
695
|
+ layer.open({
|
|
|
696
|
+ type: 2,
|
|
|
697
|
+ content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
|
|
|
698
|
+ title: '监察',
|
|
|
699
|
+ area: ['60%', '80%'], //宽高
|
|
|
700
|
+ });
|
|
|
701
|
+ };
|
|
|
702
|
+ //强制结案
|
|
|
703
|
+ function StrongLawsuit(str) {
|
|
|
704
|
+ layer.open({
|
|
|
705
|
+ type: 2,
|
|
|
706
|
+ content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
707
|
+ title: '强制结案',
|
|
|
708
|
+ area: ['60%', '80%'], //宽高
|
|
|
709
|
+ });
|
|
|
710
|
+ };
|
|
|
711
|
+ //回退BackDtail
|
|
|
712
|
+ function BackDtail(str) {
|
|
|
713
|
+ layer.open({
|
|
|
714
|
+ type: 2,
|
|
|
715
|
+ content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
716
|
+ title: '工单回退',
|
|
|
717
|
+ area: ['60%', '80%'], //宽高
|
|
|
718
|
+ });
|
|
|
719
|
+ };
|
|
|
720
|
+ //查收
|
|
|
721
|
+ function cs(str) {
|
|
|
722
|
+ layer.confirm('确定要查收?', {
|
|
|
723
|
+ btn: ['是', '否'] //按钮
|
|
|
724
|
+ }, function() {
|
|
|
725
|
+ $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
|
|
|
726
|
+ workorderid: str,
|
|
|
727
|
+ token: $.cookie("token")
|
|
|
728
|
+ }, function(result) {
|
|
|
729
|
+ result = JSON.parse(result);
|
|
|
730
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
731
|
+ layer.msg("查收成功");
|
|
|
732
|
+ load();
|
|
|
733
|
+ }
|
|
|
734
|
+ })
|
|
|
735
|
+ });
|
|
|
736
|
+ };
|
|
|
737
|
+ //收回
|
|
|
738
|
+ function sh(str) {
|
|
|
739
|
+ layer.confirm('确定要回收?', {
|
|
|
740
|
+ btn: ['是', '否'] //按钮
|
|
|
741
|
+ }, function() {
|
|
|
742
|
+ $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
|
|
|
743
|
+ workorderid: str,
|
|
|
744
|
+ token: $.cookie("token")
|
|
|
745
|
+ }, function(result) {
|
|
|
746
|
+ result = JSON.parse(result);
|
|
|
747
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
748
|
+ layer.msg("回收");
|
|
|
749
|
+ load();
|
|
|
750
|
+ }
|
|
|
751
|
+ })
|
|
|
752
|
+ });
|
|
|
753
|
+ };
|
|
|
754
|
+ //强制回收
|
|
|
755
|
+ function recycles() {
|
|
|
756
|
+ layer.confirm('确定要强制退回吗?', {
|
|
|
757
|
+ btn: ['是', '否'] //按钮
|
|
|
758
|
+ });
|
|
|
759
|
+ };
|
|
|
760
|
+ //退回申请
|
|
|
761
|
+ function th(str) {
|
|
|
762
|
+ layer.open({
|
|
|
763
|
+ type: 2,
|
|
|
764
|
+ content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
765
|
+ title: '申请退回工单',
|
|
|
766
|
+ area: ['60%', '80%'], //宽高
|
|
|
767
|
+ });
|
|
|
768
|
+ };
|
|
|
769
|
+ //审核退回申请
|
|
|
770
|
+ function shth(str) {
|
|
|
771
|
+ layer.open({
|
|
|
772
|
+ type: 2,
|
|
|
773
|
+ content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
774
|
+ title: '审核退回申请',
|
|
|
775
|
+ area: ['60%', '80%'], //宽高
|
|
|
776
|
+ });
|
|
|
777
|
+ };
|
|
|
778
|
+ //办理
|
|
|
779
|
+ // function th(str) {
|
|
|
780
|
+ // layer.open({
|
|
|
781
|
+ // type: 2,
|
|
|
782
|
+ // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
783
|
+ // title: '办理工单',
|
|
|
784
|
+ // area: ['35%', '30%'], //宽高
|
|
|
785
|
+ // });
|
|
|
786
|
+ // }
|
|
|
787
|
+ //申请延时
|
|
|
788
|
+ function ys(str) {
|
|
|
789
|
+ layer.open({
|
|
|
790
|
+ type: 2,
|
|
|
791
|
+ content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
792
|
+ title: '申请延时',
|
|
|
793
|
+ area: ['60%', '80%'], //宽高
|
|
|
794
|
+ });
|
|
|
795
|
+ };
|
|
|
796
|
+ //审核申请延时
|
|
|
797
|
+ function shys(str) {
|
|
|
798
|
+ layer.open({
|
|
|
799
|
+ type: 2,
|
|
|
800
|
+ content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
801
|
+ title: '审核延时申请',
|
|
|
802
|
+ area: ['60%', '80%'], //宽高
|
|
|
803
|
+ });
|
|
|
804
|
+ };
|
|
|
805
|
+ //诉求回访
|
|
|
806
|
+ function hf(str) {
|
|
|
807
|
+ layer.open({
|
|
|
808
|
+ type: 2,
|
|
|
809
|
+ content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
810
|
+ title: '工单回访',
|
|
|
811
|
+ area: ['60%', '80%'], //宽高
|
|
|
812
|
+ });
|
|
|
813
|
+ };
|
|
|
814
|
+ //重办工单
|
|
|
815
|
+ function cb(str) {
|
|
|
816
|
+ layer.open({
|
|
|
817
|
+ type: 2,
|
|
|
818
|
+ content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
819
|
+ title: '重办工单',
|
|
|
820
|
+ area: ['60%', '80%'], //宽高
|
|
|
821
|
+ });
|
|
|
822
|
+ };
|
|
|
823
|
+ //结案
|
|
|
824
|
+ function Lawsuit(str) {
|
|
|
825
|
+ layer.open({
|
|
|
826
|
+ type: 2,
|
|
|
827
|
+ content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
|
828
|
+ title: '诉求单结案',
|
|
|
829
|
+ area: ['60%', '80%'], //宽高
|
|
|
830
|
+ });
|
|
|
831
|
+ };
|
|
|
832
|
+
|
|
|
833
|
+ $('.Appeal').click(function() {
|
|
|
834
|
+ layer.open({
|
|
|
835
|
+ type: 2,
|
|
|
836
|
+ content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
|
|
|
837
|
+ title: '新增诉求',
|
|
|
838
|
+ area: ['85%', '80%'], //宽高
|
|
|
839
|
+ });
|
|
|
840
|
+ });
|
|
|
841
|
+ //上传文件
|
|
|
842
|
+ function upload() {
|
|
|
843
|
+ if(document.getElementById("upFile").files.length > 0) {
|
|
|
844
|
+ var formData = new FormData();
|
|
|
845
|
+ formData.append("upFile", document.getElementById("upFile").files[0]);
|
|
|
846
|
+ formData.append("token", $.cookie("token"));
|
|
|
847
|
+ $.ajax({
|
|
|
848
|
+ url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
|
|
|
849
|
+ type: "POST",
|
|
|
850
|
+ data: formData,
|
|
|
851
|
+ /**
|
|
|
852
|
+ *必须false才会自动加上正确的Content-Type
|
|
|
853
|
+ */
|
|
|
854
|
+ contentType: false,
|
|
|
855
|
+ /**
|
|
|
856
|
+ * 必须false才会避开jQuery对 formdata 的默认处理
|
|
|
857
|
+ * XMLHttpRequest会对 formdata 进行正确的处理
|
|
|
858
|
+ */
|
|
|
859
|
+ processData: false,
|
|
|
860
|
+ success: function(result) {
|
|
|
861
|
+ document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
|
|
|
862
|
+ $("#upFile").change(function() {
|
|
|
863
|
+ upload();
|
|
|
864
|
+ });
|
|
|
865
|
+ var r = $.parseJSON(result);
|
|
|
866
|
+ if(r.state.toLowerCase() == "success") {
|
|
|
867
|
+ $(".fjnr").text(r.data);
|
|
|
868
|
+ $("#scfj").show();
|
|
|
869
|
+ }
|
|
|
870
|
+ }
|
|
|
871
|
+ });
|
|
|
872
|
+ } else {
|
|
|
873
|
+ layer.confirm('请上传文件!', {
|
|
|
874
|
+ btn: ['确定']
|
|
|
875
|
+ });
|
|
|
876
|
+ }
|
|
|
877
|
+ };
|
|
|
878
|
+ //来源
|
|
|
879
|
+ function LY(obj) {
|
|
|
880
|
+ obj.empty();
|
|
|
881
|
+ obj.append('<option selected="selected" value="">请选择工单来源</option>');
|
|
|
882
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
|
|
|
883
|
+ "token": $.cookie("token"),
|
|
|
884
|
+ id: 1
|
|
|
885
|
+ }, function(data) {
|
|
|
886
|
+ if(data.state.toLowerCase() == "success") {
|
|
|
887
|
+ var content = data.data;
|
|
|
888
|
+ $(content).each(function(i, n) {
|
|
|
889
|
+ $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
|
|
|
890
|
+ })
|
|
|
891
|
+ }
|
|
|
892
|
+ })
|
|
|
893
|
+ };
|
|
|
894
|
+ //类别
|
|
|
895
|
+ function LB(obj) {
|
|
|
896
|
+ obj.empty();
|
|
|
897
|
+ obj.append('<option selected="selected" value="">请选择类型</option>');
|
|
|
898
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
|
|
|
899
|
+ "token": $.cookie("token"),
|
|
|
900
|
+ id: 2
|
|
|
901
|
+ }, function(data) {
|
|
|
902
|
+ if(data.state.toLowerCase() == "success") {
|
|
|
903
|
+ var content = data.data;
|
|
|
904
|
+ $(content).each(function(i, n) {
|
|
|
905
|
+ $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
|
|
|
906
|
+ })
|
|
|
907
|
+ }
|
|
|
908
|
+ })
|
|
|
909
|
+ };
|
|
|
910
|
+ // 主题
|
|
|
911
|
+ function ZT(obj) {
|
|
|
912
|
+ obj.empty();
|
|
|
913
|
+ obj.append('<option selected="selected" value="">请选择主题词</option>');
|
|
|
914
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
|
|
|
915
|
+ "token": $.cookie("token"),
|
|
|
916
|
+ id: 3
|
|
|
917
|
+ }, function(data) {
|
|
|
918
|
+ if(data.state.toLowerCase() == "success") {
|
|
|
919
|
+ var content = data.data;
|
|
|
920
|
+ $(content).each(function(i, n) {
|
|
|
921
|
+ $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
|
|
|
922
|
+ })
|
|
|
923
|
+ }
|
|
|
924
|
+ })
|
|
|
925
|
+ };
|
|
|
926
|
+ ///坐席
|
|
|
927
|
+ function ZX(obj) {
|
|
|
928
|
+ obj.empty();
|
|
|
929
|
+ obj.append('<option selected="selected" value="">请选择坐席</option>');
|
|
|
930
|
+ $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
|
|
|
931
|
+ "token": $.cookie("token"),
|
|
|
932
|
+ }, function(data) {
|
|
|
933
|
+ if(data.state.toLowerCase() == "success") {
|
|
|
934
|
+ var content = data.data;
|
|
|
935
|
+ $(content).each(function(i, n) {
|
|
|
936
|
+ $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
|
|
|
937
|
+ })
|
|
|
938
|
+ }
|
|
|
939
|
+ })
|
|
|
940
|
+ };
|
|
|
941
|
+
|
|
|
942
|
+ function tree() {
|
|
|
943
|
+ $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
|
|
|
944
|
+ "token": $.cookie("token"),
|
|
|
945
|
+ // "pid": pid
|
|
|
946
|
+ }, function(result) {
|
|
|
947
|
+ result = $.parseJSON(result);
|
|
|
948
|
+ $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
|
|
|
949
|
+ });
|
|
|
950
|
+ };
|
|
|
951
|
+ var setting1 = {
|
|
|
952
|
+ data: {
|
|
|
953
|
+ key: {
|
|
|
954
|
+ name: "F_DeptName"
|
|
|
955
|
+ },
|
|
|
956
|
+ simpleData: {
|
|
|
957
|
+ enable: true,
|
|
|
958
|
+ idKey: "F_DeptId",
|
|
|
959
|
+ pIdKey: "F_PartentId",
|
|
|
960
|
+ rootPId: 0
|
|
|
961
|
+ }
|
|
|
962
|
+ },
|
|
|
963
|
+ callback: {
|
|
|
964
|
+ onClick: zTreeOnClick
|
|
|
965
|
+ }
|
|
|
966
|
+ };
|
|
|
967
|
+ function zTreeOnClick(event, treeId, treeNode) {
|
|
|
968
|
+ if(treeNode.level == 2) {
|
|
|
969
|
+ $('.inps').val(treeNode.F_DeptName);
|
|
|
970
|
+ $("#PID").val(treeNode.F_DeptId);
|
|
|
971
|
+ $("#Dpment").val(treeNode.F_DeptName);
|
|
|
972
|
+ $(".Cleans").show();
|
|
|
973
|
+ }
|
|
|
974
|
+
|
|
|
975
|
+ };
|
|
|
976
|
+ </script>
|
|
|
977
|
+ </body>
|
|
|
978
|
+
|
|
|
979
|
+</html>
|