Kaynağa Gözat

shibaihuichuan110

liuzhihui 2 yıl önce
ebeveyn
işleme
e91e8d9d71

+ 20 - 0
WebUI/CallCenterWeb.UI/OneHundredWorkOrder/LawsuitMedia.html

@@ -219,6 +219,14 @@
219 219
 										<option value="非常不满意">非常不满意</option>
220 220
 									</select>
221 221
 								</td>
222
+								<th>工单标识:</th>
223
+                                <td>
224
+                                    <select id="worderType" class="form-control Min-width" name="select">
225
+                                    	<option value="">请选择</option>
226
+                                        <option value="2" selected>110转办</option>
227
+                                        <option value="1">转110</option>
228
+                                    </select>
229
+                                </td>
222 230
                             </tr>
223 231
                         </table>
224 232
                     </div>
@@ -231,6 +239,7 @@
231 239
                                 <tr>
232 240
                                     <th data-formatter="serialNumber" data-align="center">序号</th>
233 241
                                     <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
242
+                                    <th data-field="F_ordersign" data-formatter="Getordersign" data-align="center">工单标识</th>
234 243
                                     <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
235 244
                                     <th data-field="DeptName" data-align="center">承办单位</th>
236 245
                                     <th data-field="UserName" data-align="center">受理人</th>
@@ -381,6 +390,7 @@
381 390
                         jianhang: 6, // 多媒体
382 391
                         IsRelease:$("#IsRelease").val(),
383 392
                         myd:$("#satisfaction").val(), //满意度
393
+                        ordersign:$("#worderType").val(), //标识
384 394
                         token: $.cookie("token"),
385 395
                     };
386 396
                     // 导出参数
@@ -483,6 +493,16 @@
483 493
                 return "<span style='color: #e02433'>子工单</span>"
484 494
             }
485 495
         }
496
+        //工单标识
497
+        function Getordersign(val){
498
+        	if(val==1){
499
+        		return '转110'
500
+        	}else if(val==2){
501
+        		return '110转办'
502
+        	}else{
503
+        		return '-'
504
+        	}       	
505
+        }
486 506
 
487 507
         function GetCont(val) {
488 508
             if (val) {

+ 945 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/errorResetProvincialPlatform.html

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