Browse Source

省平台以及知识库对接

miaofuhao 3 years ago
parent
commit
7bcdcf1a43
27 changed files with 12178 additions and 8 deletions
  1. 10 0
      WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html
  2. 10 0
      WebUI/CallCenterWeb.UI/Business/LeaderDCL.html
  3. 13 1
      WebUI/CallCenterWeb.UI/Business/WorkDC.html
  4. 1 1
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LawsuitProvincialPlatform.html
  5. 1 1
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderListProvincialPlatform.html
  6. 888 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderYJAProvincialPlatform.html
  7. 874 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderYJBProvincialPlatform.html
  8. 834 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderYZBProvincialPlatform.html
  9. 1025 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/ProvincialPlatformPendingTransfer.html
  10. 1 1
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/ProvincialPlatformReturnSignature.html
  11. 880 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/ReturnReviewedTransferredProvincialPlatform.html
  12. 1010 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/WorkDSZBProvincialPlatform.html
  13. 1152 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/WorkIsproresultProvincialPlatform.html
  14. 848 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/expiredWorkOrdersProvincialPlatform.html
  15. 1053 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/haveAduitProvincialPlatform.html
  16. 1053 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/haveDoneToAuditProvincialPlatform.html
  17. 869 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/toAuditListProvincialPlatform.html
  18. 847 0
      WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/toSupervListProvincialPlatform.html
  19. 3 3
      WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js
  20. 85 0
      WebUI/CallCenterWeb.UI/chatWith.html
  21. 1 1
      WebUI/CallCenterWeb.UI/login.html
  22. 145 0
      WebUI/CallCenterWeb.UI/zhiShiKu/commonHtml/addReply.html
  23. 105 0
      WebUI/CallCenterWeb.UI/zhiShiKu/commonHtml/refuseReply.html
  24. 110 0
      WebUI/CallCenterWeb.UI/zhiShiKu/commonHtml/replyDetail.html
  25. 30 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/SelectCategoryCode.js
  26. 25 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/common.js
  27. 305 0
      WebUI/CallCenterWeb.UI/zhiShiKu/knowledgeReply.html

+ 10 - 0
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

@@ -950,6 +950,16 @@
950 950
             });
951 951
         	
952 952
         }
953
+        // 服务工单上报40
954
+		function reportServiceWorkOrder(str) {
955
+		    layer.open({
956
+		        type: 2,
957
+		        content: "../CommonHtml/provincialPlatformReport.html?wid=" + str, //iframe的url,no代表不显示滚动条
958
+		        title: "省平台上报",
959
+		        area: ["70%", "70%"], //宽高
960
+		        shade: 0,
961
+		    });
962
+		}
953 963
         //提交重办
954 964
         function tjcb(str) {
955 965
         	layer.open({

+ 10 - 0
WebUI/CallCenterWeb.UI/Business/LeaderDCL.html

@@ -828,6 +828,16 @@
828 828
                 area: ['60%', '80%'], //宽高
829 829
             });
830 830
         }
831
+        // 服务工单上报40
832
+		function reportServiceWorkOrder(str) {
833
+		    layer.open({
834
+		        type: 2,
835
+		        content: "../CommonHtml/provincialPlatformReport.html?wid=" + str, //iframe的url,no代表不显示滚动条
836
+		        title: "省平台上报",
837
+		        area: ["70%", "70%"], //宽高
838
+		        shade: 0,
839
+		    });
840
+		}
831 841
         //审核退回申请
832 842
         function shth(str) {
833 843
             layer.open({

+ 13 - 1
WebUI/CallCenterWeb.UI/Business/WorkDC.html

@@ -390,7 +390,6 @@
390 390
                                     <th data-field="OtherDeptName" data-align="center">协办单位</th>
391 391
                                     <th data-field="UserName" data-align="center">受理人</th>
392 392
                                     <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
393
-                                    <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
394 393
                                     <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
395 394
                                     <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
396 395
                                     <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
@@ -940,6 +939,19 @@
940 939
                 area: ['60%', '80%'], //宽高
941 940
             });
942 941
         }
942
+        
943
+        // 省平台申请延时37
944
+		function provincialPlatformApplicationDelay(str,type) {
945
+		    layer.open({
946
+		        type: 2,
947
+		        content:
948
+		            "../CommonHtml/provincialPlatformApplicationDelay.html?wid=" + str+"&type="+type, //iframe的url,no代表不显示滚动条
949
+		        title: "省平台申请延时",
950
+		        area: ["70%", "70%"], //宽高
951
+		        shade: 0,
952
+		    });
953
+		    
954
+		}
943 955
 
944 956
         $('.Appeal').click(function () {
945 957
             layer.open({

+ 1 - 1
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LawsuitProvincialPlatform.html

@@ -242,7 +242,7 @@
242 242
                        	state: $("#state").val(), //=工单状态
243 243
                        	starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
244 244
                         endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
245
-                        source: $("#source").val(), //=来源&
245
+                        source: 109, //=来源&
246 246
                         keyid: $("#keyid").val(), //=主题词
247 247
                         tel: $("#tel").val(), //=客户电话
248 248
                         name: $("#name").val(), //=客户名称

+ 1 - 1
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderListProvincialPlatform.html

@@ -247,7 +247,7 @@
247 247
                        	state: orderState, //=工单状态
248 248
                        	starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
249 249
                         endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
250
-//                      source: 109, //=来源&
250
+                        source: 109, //=来源&
251 251
                         keyid: $("#keyid").val(), //=主题词
252 252
                         tel: $("#tel").val(), //=客户电话
253 253
                         name: $("#name").val(), //=客户名称

+ 888 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderYJAProvincialPlatform.html

@@ -0,0 +1,888 @@
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
+                        token: $.cookie("token")
284
+                    };
285
+                    return param;
286
+                },
287
+                onLoadSuccess: function (data) { //加载成功时执行
288
+                    //						layer.msg("加载成功");
289
+                    //console.log(data);
290
+                },
291
+                onLoadError: function () { //加载失败时执行
292
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
293
+                }
294
+            });
295
+        }
296
+        //状态
297
+        function States(val, row) {
298
+            var html = '';
299
+            switch (val + '') {
300
+                case '0':
301
+                    html = '新工单';
302
+                    if (row.F_IsReturn == 1) {
303
+                        html = '新工单(回退)';
304
+                    }
305
+                    break;
306
+                case '1':
307
+                    html = '待交办';
308
+                    break;
309
+                case '2':
310
+                    html = '待查收';
311
+                    break;
312
+                case '3':
313
+                    html = '退回审核中';
314
+                    break;
315
+                case '4':
316
+                    html = '办理中';
317
+                    break;
318
+                case '5':
319
+                    html = '延时审核';
320
+                    break;
321
+                case '6':
322
+                    html = '已办理';
323
+                    break;
324
+                case '7':
325
+                    html = '已回访';
326
+                    break;
327
+                case '8':
328
+                    html = '重办中';
329
+                    break;
330
+                case '9':
331
+                    html = '已结案';
332
+                    break;
333
+                case '10':
334
+                    html = '待审核';
335
+                    break;
336
+                case '11':
337
+                    html = '重办待交办';
338
+                    break;
339
+                    //              case '12':
340
+                    //                  html = '待审核';
341
+                    //                  break;
342
+                case '13':
343
+                    html = '重办驳回';
344
+                    break;
345
+            }
346
+            return html;
347
+        }
348
+        //时限
349
+        function OverTime(val, row) {
350
+            if (val == 1) {
351
+                return '<div class="" style="cursor: pointer;">' +
352
+                    '<span class="Greens">' + row.GapTime + '</span>' +
353
+                    '</div>';
354
+            } else if (val == 2) {
355
+                return '<div class="" style="cursor: pointer;">' +
356
+                    '<span class="Yellows">' + row.GapTime + '</span>' +
357
+                    '</div>';
358
+            } else if (val == 3) {
359
+                return '<div class="" style="cursor: pointer;">' +
360
+                    '<span class="Reds">' + row.GapTime + '</span>' +
361
+                    '</div>';
362
+            }
363
+        }
364
+        //办理时限
365
+        function BanTime(val) {
366
+            if (val) {
367
+                var time = val.substring(0, val.indexOf(' '));
368
+                return '<div class="" style="cursor: pointer;">' +
369
+                    '<span>' + time + '</span>' +
370
+                    '</div>';
371
+            }
372
+
373
+        }
374
+        //音频
375
+        function setCode(val) {
376
+            if (val) {
377
+                return '<div class="imgs" style="cursor: pointer;">' +
378
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
379
+                    '</div>';
380
+            } else {
381
+                return '';
382
+            }
383
+        }
384
+
385
+        //编号
386
+        function serialNumber(val, row, index) {
387
+            return index + 1;
388
+        }
389
+
390
+        function GetCont(val) {
391
+            if (val) {
392
+                var str = '<div '
393
+                if (val.length > 10) {
394
+                    str = str + ' title="' + val + '" ';
395
+                    val = val.substr(0, 10) + "...";
396
+                }
397
+                return str + '>' + val + '</div>';
398
+            } else {
399
+                return '';
400
+            }
401
+        }
402
+        //操作
403
+        function Dispose(val, row) {
404
+            var Rows = row.Buttons;
405
+            var html = '';
406
+            for (var i = 0; i < Rows.length; i++) {
407
+
408
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
409
+                if (html1) {
410
+                    html1 = html1.replace("data", val);
411
+                }
412
+                html += html1;
413
+
414
+            }
415
+            return html;
416
+        }
417
+
418
+        //编辑
419
+        function bj(str) {
420
+            layer.open({
421
+                type: 2,
422
+                content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
423
+                title: '编辑工单',
424
+                area: ['96%', '85%'], //宽高
425
+            });
426
+        }
427
+        //删除
428
+        function move(str) {
429
+            layer.confirm('确定删除工单?', {
430
+                btn: ['是', '否'] //按钮
431
+            }, function () {
432
+                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
433
+                    ids: str,
434
+                    token: $.cookie("token")
435
+                }, function (result) {
436
+                    result = JSON.parse(result);
437
+                    if (result.state.toLowerCase() == "success") {
438
+                        layer.msg("删除成功");
439
+                        load();
440
+                    }
441
+                })
442
+            });
443
+        }
444
+        //提交
445
+        function tj(str) {
446
+            layer.confirm('确定要提交工单么?', {
447
+                btn: ['确定', '取消'] //按钮
448
+            }, function () {
449
+                //请求后台数据
450
+                /*发送请求*/
451
+                $.post(huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
452
+                    ids: str,
453
+                    token: $.cookie("token")
454
+                }, function (result) {
455
+                    result = JSON.parse(result);
456
+                    if (result.state.toLowerCase() == "success") {
457
+                        layer.msg("提交成功");
458
+                        load();
459
+                    }
460
+                })
461
+            });
462
+        }
463
+        //交办
464
+        function jb(str) {
465
+            layer.open({
466
+                type: 2,
467
+                content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
468
+                title: '工单交办',
469
+                area: ['87%', '80%'], //宽高
470
+            });
471
+        }
472
+        //领导批示
473
+        function lader(str) {
474
+            layer.open({
475
+                type: 2,
476
+                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
477
+                title: '领导批示',
478
+                area: ['60%', '80%'], //宽高
479
+            });
480
+        }
481
+        //市长批示
482
+        function city(str) {
483
+            layer.open({
484
+                type: 2,
485
+                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
486
+                title: '领导批示',
487
+                area: ['60%', '80%'], //宽高
488
+            });
489
+        }
490
+        //办理
491
+        function bl(str) {
492
+            layer.open({
493
+                type: 2,
494
+                content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
495
+                title: '办理工单',
496
+                area: ['60%', '80%'], //宽高
497
+            });
498
+        }
499
+        //督办
500
+
501
+        function Supervision(str) {
502
+            layer.open({
503
+                type: 2,
504
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
505
+                title: '督办',
506
+                area: ['60%', '80%'], //宽高
507
+            });
508
+        }
509
+
510
+        //督查
511
+        function Supervision_(str) {
512
+            layer.open({
513
+                type: 2,
514
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
515
+                title: '监察',
516
+                area: ['60%', '80%'], //宽高
517
+            });
518
+        }
519
+        //强制结案
520
+        function StrongLawsuit(str) {
521
+            layer.open({
522
+                type: 2,
523
+                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
524
+                title: '强制结案',
525
+                area: ['60%', '80%'], //宽高
526
+            });
527
+        }
528
+        //回退BackDtail
529
+        function BackDtail(str) {
530
+            layer.open({
531
+                type: 2,
532
+                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
533
+                title: '工单回退',
534
+                area: ['60%', '80%'], //宽高
535
+            });
536
+        }
537
+        //查收
538
+        function cs(str) {
539
+            layer.confirm('确定要查收?', {
540
+                btn: ['是', '否'] //按钮
541
+            }, function () {
542
+                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
543
+                    workorderid: str,
544
+                    token: $.cookie("token")
545
+                }, function (result) {
546
+                    result = JSON.parse(result);
547
+                    if (result.state.toLowerCase() == "success") {
548
+                        layer.msg("查收成功");
549
+                        load();
550
+                    }
551
+                })
552
+            });
553
+        }
554
+        //收回
555
+        function sh(str) {
556
+            layer.confirm('确定要回收?', {
557
+                btn: ['是', '否'] //按钮
558
+            }, function () {
559
+                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
560
+                    workorderid: str,
561
+                    token: $.cookie("token")
562
+                }, function (result) {
563
+                    result = JSON.parse(result);
564
+                    if (result.state.toLowerCase() == "success") {
565
+                        layer.msg("回收");
566
+                        load();
567
+                    }
568
+                })
569
+            });
570
+        }
571
+        //强制回收
572
+        function recycles() {
573
+            layer.confirm('确定要强制退回吗?', {
574
+                btn: ['是', '否'] //按钮
575
+            });
576
+        }
577
+        //退回申请
578
+        function th(str) {
579
+            layer.open({
580
+                type: 2,
581
+                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
582
+                title: '申请退回工单',
583
+                area: ['60%', '80%'], //宽高
584
+            });
585
+        }
586
+        //审核退回申请
587
+        function shth(str) {
588
+            layer.open({
589
+                type: 2,
590
+                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
591
+                title: '审核退回申请',
592
+                area: ['60%', '80%'], //宽高
593
+            });
594
+        }
595
+        //办理
596
+        //			function th(str) {
597
+        //				layer.open({
598
+        //					type: 2,
599
+        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
600
+        //					title: '办理工单',
601
+        //					area: ['35%', '30%'], //宽高
602
+        //				});
603
+        //			}
604
+        //申请延时
605
+        function ys(str) {
606
+            layer.open({
607
+                type: 2,
608
+                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
609
+                title: '申请延时',
610
+                area: ['60%', '80%'], //宽高
611
+            });
612
+        }
613
+        //审核申请延时
614
+        function shys(str) {
615
+            layer.open({
616
+                type: 2,
617
+                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
618
+                title: '审核延时申请',
619
+                area: ['60%', '80%'], //宽高
620
+            });
621
+        }
622
+        //诉求回访
623
+        function hf(str) {
624
+            layer.open({
625
+                type: 2,
626
+                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
627
+                title: '工单回访',
628
+                area: ['60%', '80%'], //宽高
629
+            });
630
+        }
631
+        //重办工单
632
+        function cb(str) {
633
+            layer.open({
634
+                type: 2,
635
+                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
636
+                title: '重办工单',
637
+                area: ['60%', '80%'], //宽高
638
+            });
639
+        }
640
+        //结案
641
+        function Lawsuit(str) {
642
+            layer.open({
643
+                type: 2,
644
+                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
645
+                title: '诉求单结案',
646
+                area: ['60%', '80%'], //宽高
647
+            });
648
+        }
649
+        //提交重办
650
+        function tjcb(str) {
651
+            layer.open({
652
+                type: 2,
653
+                content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
654
+                title: "提交重办",
655
+                area: ["50%", "40%"], //宽高
656
+            });
657
+            //      	 layer.confirm('确认提交重办吗?', {
658
+            //              btn: ['是', '否'] //按钮
659
+            //          }, function () {
660
+            //              $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
661
+            //					ids: str,
662
+            //					"token": $.cookie("token")
663
+            //				}, function(result) {
664
+            //					result = JSON.parse(result);
665
+            //					if(result.state.toLowerCase() == "success") {
666
+            //						layer.msg("操作成功");
667
+            //						//load();
668
+            //						$("#orderlist").bootstrapTable('refresh');
669
+            //					}
670
+            //				})
671
+            //          });
672
+        }
673
+        //退回
674
+        function returnAuditor(str) {
675
+            layer.open({
676
+                type: 2,
677
+                content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
678
+                title: "退回",
679
+                area: ["50%", "40%"], //宽高
680
+            });
681
+        }
682
+        //修改
683
+        function editProcessingResult(str) {
684
+            layer.open({
685
+                type: 2,
686
+                content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
687
+                title: "修改",
688
+                area: ["50%", "70%"], //宽高
689
+            });
690
+        }
691
+
692
+        $('.Appeal').click(function () {
693
+            layer.open({
694
+                type: 2,
695
+                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
696
+                title: '新增诉求',
697
+                area: ['85%', '80%'], //宽高
698
+            });
699
+        })
700
+        //上传文件
701
+        function upload() {
702
+            if (document.getElementById("upFile").files.length > 0) {
703
+                var formData = new FormData();
704
+                formData.append("upFile", document.getElementById("upFile").files[0]);
705
+                formData.append("token", $.cookie("token"));
706
+                $.ajax({
707
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
708
+                    type: "POST",
709
+                    data: formData,
710
+                    /**
711
+                     *必须false才会自动加上正确的Content-Type
712
+                     */
713
+                    contentType: false,
714
+                    /**
715
+                     * 必须false才会避开jQuery对 formdata 的默认处理
716
+                     * XMLHttpRequest会对 formdata 进行正确的处理
717
+                     */
718
+                    processData: false,
719
+                    success: function (result) {
720
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile")
721
+                            .outerHTML;
722
+                        $("#upFile").change(function () {
723
+                            upload();
724
+                        });
725
+                        var r = $.parseJSON(result);
726
+                        if (r.state.toLowerCase() == "success") {
727
+                            $(".fjnr").text(r.data);
728
+                            $("#scfj").show();
729
+                        }
730
+                    }
731
+                });
732
+            } else {
733
+                layer.confirm('请上传文件!', {
734
+                    btn: ['确定']
735
+                });
736
+            }
737
+        }
738
+        //来源
739
+        function LY(obj) {
740
+            obj.empty();
741
+            obj.append('<option selected="selected" value="">请选择</option>');
742
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
743
+                "token": $.cookie("token"),
744
+                id: 1
745
+            }, function (data) {
746
+                if (data.state.toLowerCase() == "success") {
747
+                    var content = data.data;
748
+                    $(content).each(function (i, n) {
749
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
750
+                            obj);
751
+                    })
752
+                }
753
+            })
754
+        }
755
+        //类别
756
+        function LB(obj) {
757
+            obj.empty();
758
+            obj.append('<option selected="selected" value="">请选择</option>');
759
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
760
+                "token": $.cookie("token"),
761
+                id: 2
762
+            }, function (data) {
763
+                if (data.state.toLowerCase() == "success") {
764
+                    var content = data.data;
765
+                    $(content).each(function (i, n) {
766
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
767
+                            obj);
768
+                    })
769
+                }
770
+            })
771
+        }
772
+        //		主题
773
+        function ZT(obj) {
774
+            obj.empty();
775
+            obj.append('<option selected="selected" value="">请选择</option>');
776
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
777
+                "token": $.cookie("token"),
778
+                id: 3
779
+            }, function (data) {
780
+                if (data.state.toLowerCase() == "success") {
781
+                    var content = data.data;
782
+                    $(content).each(function (i, n) {
783
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
784
+                            obj);
785
+                    })
786
+                }
787
+            })
788
+        }
789
+
790
+
791
+        function tree() {
792
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
793
+                "token": $.cookie("token"),
794
+                //		"pid": pid
795
+            }, function (result) {
796
+                result = $.parseJSON(result);
797
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
798
+            });
799
+        }
800
+        var setting1 = {
801
+            data: {
802
+                key: {
803
+                    name: "F_DeptName"
804
+                },
805
+                simpleData: {
806
+                    enable: true,
807
+                    idKey: "F_DeptId",
808
+                    pIdKey: "F_PartentId",
809
+                    rootPId: 0
810
+                }
811
+            },
812
+            callback: {
813
+                onClick: zTreeOnClick
814
+            }
815
+        };
816
+
817
+        function zTreeOnClick(event, treeId, treeNode) {
818
+            if (treeNode.level >= 1) {
819
+                $('.inps').val(treeNode.F_DeptName);
820
+                $("#PID").val(treeNode.F_DeptId);
821
+                $("#Dpment").val(treeNode.F_DeptName);
822
+                $(".Cleans").show();
823
+            }
824
+
825
+        };
826
+        $(".exportFile").click(function () {
827
+            var usercode_ = $("#ZX").val(); //坐席
828
+            if (usercode_ != null) {
829
+                $(usercode_).each(function (i, n) {
830
+                    var obj1 = "";
831
+                    obj1 = n + ",";
832
+                    usercodeID += obj1;
833
+                });
834
+            } else {
835
+                usercodeID = "";
836
+            }
837
+
838
+            //      	调度员
839
+            var ddusercodeID = "";
840
+            var ddusercode_ = $("#yardman").val(); //坐席
841
+            if (ddusercode_ != null) {
842
+                $(ddusercode_).each(function (i, n) {
843
+                    var obj2 = "";
844
+                    obj2 = n + ",";
845
+                    ddusercodeID += obj2;
846
+                });
847
+            } else {
848
+                ddusercodeID = "";
849
+            }
850
+
851
+            var workid = $("#wids").val()
852
+            var key = $("#key").val() //=关键字
853
+            var tel = $("#tel").val() //=客户电话
854
+            var name = $("#name").val() //=客户名称
855
+            var usercode = usercodeID //=坐席工号
856
+            var ddusercode = ddusercodeID
857
+            var source = $("#source").val() //=来源&
858
+            var wjstarttime = $("#wjstarttime").val() //=开始时间
859
+            var wjendtime = $("#wjendtime").val() //=结束时间
860
+            var deptid = $("#PID").val()
861
+            var type = $("#type").val() //=工单类型
862
+            var bigtype = $("#bigtype").val()
863
+            var smalltype = $("#smalltype").val() //=小类别
864
+            var sourcearea = $("#sourceAreas").val() //区域
865
+            var state = $("#state").val() == undefined ? "" : $("#state").val() //=工单状态
866
+            var tab = 5;
867
+            var keyid = $("#keyid").val() //=关键词id
868
+            var dealtype = $("#dealtype").val()
869
+            //var F_IsSatisfie = $("#F_IsSatisfie").val()
870
+            var Issatisfie = $("#Issatisfie").val()
871
+
872
+            var url = huayi.config.callcenter_url + "WorkOrder/GetLDDealList?token=" + $.cookie("token");
873
+            //          + "&F_IsSatisfie=" + F_IsSatisfie
874
+            url += "&workid=" + workid + "&state=" + state + "&type=" + type + "&tab=" + tab + "&key=" + key +
875
+                "&tel=" +
876
+                tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" +
877
+                source +
878
+                "&wjstarttime=" + wjstarttime + "&wjendtime=" + wjendtime + "&deptid=" + deptid +
879
+                "&sourcearea=" +
880
+                sourcearea +
881
+                "&bigtype=" + bigtype + "&smalltype=" + smalltype + "&keyid=" + keyid + "&dealtype=" +
882
+                dealtype + "&Issatisfie=" + Issatisfie + "&jianhang=4" + "&isdc=1";
883
+            window.location.href = url;
884
+        })
885
+    </script>
886
+</body>
887
+
888
+</html>

+ 874 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderYJBProvincialPlatform.html

@@ -0,0 +1,874 @@
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="starttime" class="photo x-color laydate-icon"
50
+                                        autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
51
+                                        id="endtime" 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
+        $(document).ready(function () {
184
+            load();
185
+            laydate.skin('blue');
186
+            laydate({
187
+                elem: '#starttime',
188
+                event: 'focus',
189
+                istime: true,
190
+                format: 'YYYY-MM-DD hh:mm:ss'
191
+            });
192
+            laydate({
193
+                elem: '#endtime',
194
+                event: 'focus',
195
+                istime: true,
196
+                format: 'YYYY-MM-DD hh:mm:ss'
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
+                        jbstarttime: $("#starttime").val(), //=开始时间
272
+                        jbendtime: $("#endtime").val(), //=结束时间
273
+                        deptid: $("#PID").val(),
274
+                        type: $("#type").val(),
275
+                        tab: 1, //待处理
276
+                        sourcearea: $('#sourceAreas').val(), //区域
277
+                        jianhang: 4, // 多媒体
278
+                        token: $.cookie("token")
279
+                    };
280
+                    return param;
281
+                },
282
+                onLoadSuccess: function (data) { //加载成功时执行
283
+                    //layer.msg("加载成功");
284
+                    //console.log(data);
285
+                    var roleCode = $.cookie("code")
286
+                    if (roleCode == "GLY" || roleCode == "ZXLD" || roleCode == "WLDW") {
287
+                        $(".sendMsg").show()
288
+                    } else {
289
+                        $(".sendMsg").hide()
290
+                    }
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
+                    if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
324
+                        html = "已办未果"
325
+                    } else {
326
+                        html = '已办理';
327
+                    }
328
+                    break;
329
+                case '7':
330
+                    html = '已回访';
331
+                    break;
332
+                case '8':
333
+                    html = "重办中";
334
+                    break;
335
+                case '9':
336
+                    html = '已结案';
337
+                    break;
338
+            }
339
+            return html;
340
+
341
+        }
342
+        //时限
343
+        function OverTime(val, row) {
344
+            if (val == 1) {
345
+                return '<div class="" style="cursor: pointer;">' +
346
+                    '<span class="Greens">' + row.GapTime + '</span>' +
347
+                    '</div>';
348
+            } else if (val == 2) {
349
+                return '<div class="" style="cursor: pointer;">' +
350
+                    '<span class="Yellows">' + row.GapTime + '</span>' +
351
+                    '</div>';
352
+            } else if (val == 3) {
353
+                return '<div class="" style="cursor: pointer;">' +
354
+                    '<span class="Reds">' + row.GapTime + '</span>' +
355
+                    '</div>';
356
+            }
357
+        }
358
+        //办理时限
359
+        function BanTime(val) {
360
+            if (val) {
361
+                var time = val.substring(0, val.indexOf(' '));
362
+                return '<div class="" style="cursor: pointer;">' +
363
+                    '<span>' + time + '</span>' +
364
+                    '</div>';
365
+            }
366
+
367
+        }
368
+        //音频
369
+        function setCode(val) {
370
+            if (val) {
371
+                return '<div class="imgs" style="cursor: pointer;">' +
372
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
373
+                    '</div>';
374
+            } else {
375
+                return '';
376
+            }
377
+        }
378
+
379
+        //编号
380
+        function serialNumber(val, row, index) {
381
+            return index + 1;
382
+        }
383
+
384
+
385
+        function GetCont(val) {
386
+            if (val) {
387
+                var str = '<div '
388
+                if (val.length > 10) {
389
+                    str = str + ' title="' + val + '" ';
390
+                    val = val.substr(0, 10) + "...";
391
+                }
392
+                return str + '>' + val + '</div>';
393
+            } else {
394
+                return '';
395
+            }
396
+        }
397
+        //操作
398
+        function Dispose(val, row) {
399
+            var Rows = row.Buttons;
400
+            var html = '<a class="xg sendMsg" onclick="sendMsg(\'' + row.F_WorkOrderId + '\')" title="催办">催办</a>';
401
+            for (var i = 0; i < Rows.length; i++) {
402
+
403
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
404
+                if (html1) {
405
+                    html1 = html1.replace("data", val);
406
+                    html1 = html1.replace("row", row.F_MainDeptId);
407
+                }
408
+                html += html1;
409
+
410
+            }
411
+            return html;
412
+        }
413
+
414
+        //催办
415
+        function sendMsg(wid) {
416
+            layer.confirm('确定催办吗', {
417
+                btn: ['确定', '取消']
418
+            }, function () {
419
+                $.post(huayi.config.callcenter_url + 'WorkOrder/Reminders', {
420
+                    workorderid: wid,
421
+                    token: $.cookie("token")
422
+                }, function (result) {
423
+                    result = JSON.parse(result);
424
+                    if (result.state.toLowerCase() == 'success') {
425
+                        layer.msg('催办成功')
426
+                    }
427
+                })
428
+            })
429
+        }
430
+
431
+        //编辑
432
+        function bj(str) {
433
+            layer.open({
434
+                type: 2,
435
+                content: "../CommonHtml/AddAppeal.html?wid=" + str +
436
+                "&workType=zzbl", //iframe的url,no代表不显示滚动条
437
+                title: '编辑工单',
438
+                area: ['96%', '85%'], //宽高
439
+            });
440
+        }
441
+        //删除
442
+        function move(str) {
443
+            layer.confirm('确定删除工单?', {
444
+                btn: ['是', '否'] //按钮
445
+            }, function () {
446
+                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
447
+                    ids: str,
448
+                    token: $.cookie("token")
449
+                }, function (result) {
450
+                    result = JSON.parse(result);
451
+                    if (result.state.toLowerCase() == "success") {
452
+                        layer.msg("删除成功");
453
+                        load();
454
+                    }
455
+                })
456
+            });
457
+        }
458
+        //提交
459
+        function tj(str) {
460
+            layer.confirm('确定要提交工单么?', {
461
+                btn: ['确定', '取消'] //按钮
462
+            }, function () {
463
+                //请求后台数据
464
+                /*发送请求*/
465
+                $.post(huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
466
+                    ids: str,
467
+                    token: $.cookie("token")
468
+                }, function (result) {
469
+                    result = JSON.parse(result);
470
+                    if (result.state.toLowerCase() == "success") {
471
+                        layer.msg("提交成功");
472
+                        load();
473
+                    }
474
+                })
475
+            });
476
+        }
477
+        //交办
478
+        function jb(str) {
479
+            layer.open({
480
+                type: 2,
481
+                content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
482
+                title: '工单交办',
483
+                area: ['87%', '80%'], //宽高
484
+            });
485
+        }
486
+        //派单
487
+        function pd(str) {
488
+            layer.open({
489
+                type: 2,
490
+                content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
491
+                title: "办理工单",
492
+                area: ["87%", "80%"], //宽高
493
+            });
494
+        }
495
+        //领导批示
496
+        function lader(str) {
497
+            layer.open({
498
+                type: 2,
499
+                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
500
+                title: '领导批示',
501
+                area: ['60%', '80%'], //宽高
502
+            });
503
+        }
504
+        //市长批示
505
+        function city(str) {
506
+            layer.open({
507
+                type: 2,
508
+                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
509
+                title: '领导批示',
510
+                area: ['60%', '80%'], //宽高
511
+            });
512
+        }
513
+        //办理
514
+        function bl(str) {
515
+            layer.open({
516
+                type: 2,
517
+                content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
518
+                title: '办理工单',
519
+                area: ['60%', '80%'], //宽高
520
+            });
521
+        }
522
+        //督办
523
+
524
+        function Supervision(str) {
525
+            layer.open({
526
+                type: 2,
527
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
528
+                title: '督办',
529
+                area: ['60%', '80%'], //宽高
530
+            });
531
+        }
532
+
533
+        //督查
534
+        function Supervision_(str) {
535
+            layer.open({
536
+                type: 2,
537
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
538
+                title: '监察',
539
+                area: ['60%', '80%'], //宽高
540
+            });
541
+        }
542
+        //强制结案
543
+        function StrongLawsuit(str) {
544
+            layer.open({
545
+                type: 2,
546
+                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
547
+                title: '强制结案',
548
+                area: ['60%', '80%'], //宽高
549
+            });
550
+        }
551
+        //回退BackDtail
552
+        function BackDtail(str) {
553
+            layer.open({
554
+                type: 2,
555
+                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
556
+                title: '工单回退',
557
+                area: ['60%', '80%'], //宽高
558
+            });
559
+        }
560
+        //查收
561
+        function cs(str) {
562
+            layer.confirm('确定要查收?', {
563
+                btn: ['是', '否'] //按钮
564
+            }, function () {
565
+                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
566
+                    workorderid: str,
567
+                    token: $.cookie("token")
568
+                }, function (result) {
569
+                    result = JSON.parse(result);
570
+                    if (result.state.toLowerCase() == "success") {
571
+                        layer.msg("查收成功");
572
+                        load();
573
+                    }
574
+                })
575
+            });
576
+        }
577
+        //收回
578
+        function sh(str) {
579
+            layer.confirm('确定要回收?', {
580
+                btn: ['是', '否'] //按钮
581
+            }, function () {
582
+                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
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 recycles() {
596
+            layer.confirm('确定要强制退回吗?', {
597
+                btn: ['是', '否'] //按钮
598
+            });
599
+        }
600
+        //退回申请
601
+        function th(str) {
602
+            layer.open({
603
+                type: 2,
604
+                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
605
+                title: '申请退回工单',
606
+                area: ['60%', '80%'], //宽高
607
+            });
608
+        }
609
+        //审核退回申请
610
+        function shth(str) {
611
+            layer.open({
612
+                type: 2,
613
+                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
614
+                title: '审核退回申请',
615
+                area: ['60%', '80%'], //宽高
616
+            });
617
+        }
618
+        //办理
619
+        //			function th(str) {
620
+        //				layer.open({
621
+        //					type: 2,
622
+        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
623
+        //					title: '办理工单',
624
+        //					area: ['35%', '30%'], //宽高
625
+        //				});
626
+        //			}
627
+        //申请延时
628
+        function ys(str) {
629
+            layer.open({
630
+                type: 2,
631
+                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
632
+                title: '申请延时',
633
+                area: ['60%', '80%'], //宽高
634
+            });
635
+        }
636
+        //审核申请延时
637
+        function shys(str) {
638
+            layer.open({
639
+                type: 2,
640
+                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
641
+                title: '审核延时申请',
642
+                area: ['60%', '80%'], //宽高
643
+            });
644
+        }
645
+        //诉求审核
646
+        function hf(str) {
647
+            layer.open({
648
+                type: 2,
649
+                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
650
+                title: '工单审核',
651
+                area: ['60%', '80%'], //宽高
652
+            });
653
+        }
654
+        //重办工单
655
+        function cb(str) {
656
+            layer.open({
657
+                type: 2,
658
+                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
659
+                title: '重办工单',
660
+                area: ['60%', '80%'], //宽高
661
+            });
662
+        }
663
+        //结案
664
+        function Lawsuit(str) {
665
+            layer.open({
666
+                type: 2,
667
+                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
668
+                title: '诉求单结案',
669
+                area: ['60%', '80%'], //宽高
670
+            });
671
+        }
672
+        //驳回重办
673
+        function bhcb(str) {
674
+            //回退BackDtail
675
+            layer.open({
676
+                type: 2,
677
+                content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
678
+                title: "驳回重办",
679
+                area: ["60%", "80%"], //宽高
680
+            });
681
+        }
682
+
683
+        $('.Appeal').click(function () {
684
+            layer.open({
685
+                type: 2,
686
+                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
687
+                title: '新增诉求',
688
+                area: ['85%', '80%'], //宽高
689
+            });
690
+        })
691
+        //上传文件
692
+        function upload() {
693
+            if (document.getElementById("upFile").files.length > 0) {
694
+                var formData = new FormData();
695
+                formData.append("upFile", document.getElementById("upFile").files[0]);
696
+                formData.append("token", $.cookie("token"));
697
+                $.ajax({
698
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
699
+                    type: "POST",
700
+                    data: formData,
701
+                    /**
702
+                     *必须false才会自动加上正确的Content-Type
703
+                     */
704
+                    contentType: false,
705
+                    /**
706
+                     * 必须false才会避开jQuery对 formdata 的默认处理
707
+                     * XMLHttpRequest会对 formdata 进行正确的处理
708
+                     */
709
+                    processData: false,
710
+                    success: function (result) {
711
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile")
712
+                            .outerHTML;
713
+                        $("#upFile").change(function () {
714
+                            upload();
715
+                        });
716
+                        var r = $.parseJSON(result);
717
+                        if (r.state.toLowerCase() == "success") {
718
+                            $(".fjnr").text(r.data);
719
+                            $("#scfj").show();
720
+                        }
721
+                    }
722
+                });
723
+            } else {
724
+                layer.confirm('请上传文件!', {
725
+                    btn: ['确定']
726
+                });
727
+            }
728
+        }
729
+        //来源
730
+        function LY(obj) {
731
+            obj.empty();
732
+            obj.append('<option selected="selected" value="">请选择</option>');
733
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
734
+                "token": $.cookie("token"),
735
+                id: 1
736
+            }, function (data) {
737
+                if (data.state.toLowerCase() == "success") {
738
+                    var content = data.data;
739
+                    $(content).each(function (i, n) {
740
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
741
+                            obj);
742
+                    })
743
+                }
744
+            })
745
+        }
746
+        //类别
747
+        function LB(obj) {
748
+            obj.empty();
749
+            obj.append('<option selected="selected" value="">请选择</option>');
750
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
751
+                "token": $.cookie("token"),
752
+                id: 2
753
+            }, function (data) {
754
+                if (data.state.toLowerCase() == "success") {
755
+                    var content = data.data;
756
+                    $(content).each(function (i, n) {
757
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
758
+                            obj);
759
+                    })
760
+                }
761
+            })
762
+        }
763
+        //		主题
764
+        function ZT(obj) {
765
+            obj.empty();
766
+            obj.append('<option selected="selected" value="">请选择</option>');
767
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
768
+                "token": $.cookie("token"),
769
+                id: 3
770
+            }, function (data) {
771
+                if (data.state.toLowerCase() == "success") {
772
+                    var content = data.data;
773
+                    $(content).each(function (i, n) {
774
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
775
+                            obj);
776
+                    })
777
+                }
778
+            })
779
+        }
780
+
781
+
782
+        function tree() {
783
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
784
+                "token": $.cookie("token"),
785
+                //		"pid": pid
786
+            }, function (result) {
787
+                result = $.parseJSON(result);
788
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
789
+            });
790
+        }
791
+        var setting1 = {
792
+            data: {
793
+                key: {
794
+                    name: "F_DeptName"
795
+                },
796
+                simpleData: {
797
+                    enable: true,
798
+                    idKey: "F_DeptId",
799
+                    pIdKey: "F_PartentId",
800
+                    rootPId: 0
801
+                }
802
+            },
803
+            callback: {
804
+                onClick: zTreeOnClick
805
+            }
806
+        };
807
+
808
+        function zTreeOnClick(event, treeId, treeNode) {
809
+            if (treeNode.level >= 1) {
810
+                $('.inps').val(treeNode.F_DeptName);
811
+                $("#PID").val(treeNode.F_DeptId);
812
+                $("#Dpment").val(treeNode.F_DeptName);
813
+                $(".Cleans").show();
814
+            }
815
+
816
+        };
817
+
818
+        $(".exportFile").click(function () {
819
+            var usercode_ = $("#ZX").val(); //坐席
820
+            if (usercode_ != null) {
821
+                $(usercode_).each(function (i, n) {
822
+                    var obj1 = "";
823
+                    obj1 = n + ",";
824
+                    usercodeID += obj1;
825
+                });
826
+            } else {
827
+                usercodeID = "";
828
+            }
829
+            // 调度员
830
+            var ddusercodeID = "";
831
+            var ddusercode_ = $("#yardman").val(); //坐席
832
+            if (ddusercode_ != null) {
833
+                $(ddusercode_).each(function (i, n) {
834
+                    var obj2 = "";
835
+                    obj2 = n + ",";
836
+                    ddusercodeID += obj2;
837
+                });
838
+            } else {
839
+                ddusercodeID = "";
840
+            }
841
+            var workid = $("#wids").val()
842
+            var key = $("#key").val() //=关键字
843
+            var tel = $("#tel").val() //=客户电话
844
+            var name = $("#name").val() //=客户名称
845
+            var usercode = usercodeID //=坐席工号
846
+            var ddusercode = ddusercodeID
847
+            var source = $("#source").val() //=来源&
848
+            var jbstarttime = $("#starttime").val() //=开始时间
849
+            var jbendtime = $("#endtime").val() //=结束时间
850
+            var deptid = $("#PID").val()
851
+            var type = $("#type").val() //=工单类型
852
+            var bigtype = $("#bigtype").val()
853
+            var smalltype = $("#smalltype").val() //=小类别
854
+            var sourcearea = $("#sourceAreas").val() //区域
855
+            var state = $("#state").val() //=工单状态
856
+            var tab = 1;
857
+            var keyid = $("#keyid").val() //=关键词id
858
+
859
+            var url = huayi.config.callcenter_url + "WorkOrder/GetLDDealList?token=" + $.cookie("token");
860
+            url += "&workid=" + workid + "&state=" + state + "&type=" + type + "&tab=" + tab + "&key=" + key +
861
+                "&tel=" +
862
+                tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" +
863
+                source +
864
+                "&jbstarttime=" + jbstarttime + "&jbendtime=" + jbendtime + "&deptid=" + deptid +
865
+                "&sourcearea=" +
866
+                sourcearea +
867
+                "&bigtype=" + bigtype + "&smalltype=" + smalltype + "&keyid=" + keyid + "&jianhang=4" +
868
+                "&isdc=1";
869
+            window.location.href = url;
870
+        })
871
+    </script>
872
+</body>
873
+
874
+</html>

+ 834 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LeaderYZBProvincialPlatform.html

@@ -0,0 +1,834 @@
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="starttime" class="photo x-color laydate-icon"
50
+                                        autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
51
+                                        id="endtime" 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
+        $(document).ready(function () {
184
+            load();
185
+            laydate.skin('blue');
186
+            laydate({
187
+                elem: '#starttime',
188
+                event: 'focus',
189
+                istime: true,
190
+                format: 'YYYY-MM-DD hh:mm:ss'
191
+            });
192
+            laydate({
193
+                elem: '#endtime',
194
+                event: 'focus',
195
+                istime: true,
196
+                format: 'YYYY-MM-DD hh:mm:ss'
197
+            });
198
+        });
199
+        //关闭录音弹出
200
+        $(".gbly").click(function () {
201
+            $(".lyxz").removeClass("cx");
202
+            $('audio')[0].pause();
203
+        });
204
+        //时限
205
+        function OverTime(val, row) {
206
+            if (val == 1) {
207
+                return '<div class="" style="cursor: pointer;">' +
208
+                    '<span class="Greens">' + row.GapTime + '</span>' +
209
+                    '</div>';
210
+            } else if (val == 2) {
211
+                return '<div class="" style="cursor: pointer;">' +
212
+                    '<span class="Yellows">' + row.GapTime + '</span>' +
213
+                    '</div>';
214
+            } else if (val == 3) {
215
+                return '<div class="" style="cursor: pointer;">' +
216
+                    '<span class="Reds">' + row.GapTime + '</span>' +
217
+                    '</div>';
218
+            }
219
+        }
220
+        //办理时限
221
+        function BanTime(val) {
222
+            if (val) {
223
+                var time = val.substring(0, val.indexOf(' '));
224
+                return '<div class="" style="cursor: pointer;">' +
225
+                    '<span>' + time + '</span>' +
226
+                    '</div>';
227
+            }
228
+
229
+        }
230
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
231
+            $('.success').removeClass('success'); //去除之前选中的行的,选中样式
232
+            $(ele).addClass('success'); //添加当前选中的 success样式用于区别
233
+        });
234
+
235
+        //获取查询信息
236
+        function load() {
237
+            //坐席
238
+            var usercodeID = "";
239
+            var usercode_ = $("#ZX").val(); //坐席
240
+            if (usercode_ != null) {
241
+                $(usercode_).each(function (i, n) {
242
+                    var obj1 = '';
243
+                    obj1 = n + ",";
244
+                    usercodeID += obj1;
245
+                })
246
+            } else {
247
+                usercodeID = ""
248
+            }
249
+            //      	调度员
250
+            var ddusercodeID = "";
251
+            var ddusercode_ = $("#yardman").val(); //坐席
252
+            if (ddusercode_ != null) {
253
+                $(ddusercode_).each(function (i, n) {
254
+                    var obj2 = '';
255
+                    obj2 = n + ",";
256
+                    ddusercodeID += obj2;
257
+                })
258
+            } else {
259
+                ddusercodeID = ""
260
+            }
261
+            //先销毁表格
262
+            $('#orderlist').bootstrapTable('destroy');
263
+            //初始化表格,动态从服务器加载数据
264
+            $("#orderlist").bootstrapTable({
265
+                method: "get", //使用get请求到服务器获取数据
266
+                url: huayi.config.callcenter_url + "WorkOrder/GetLDDealList", //获取数据的Servlet地址
267
+                contentType: "application/x-www-form-urlencoded",
268
+                striped: true, //表格显示条纹
269
+                pagination: true, //启动分页
270
+                pageSize: 10, //每页显示的记录数
271
+                pageNumber: 1, //当前第几页
272
+                pageList: [10, 20, 50, 100], //记录数可选列表
273
+                search: false, //是否启用查询
274
+                showColumns: false, //显示下拉框勾选要显示的列
275
+                showRefresh: false, //显示刷新按钮
276
+                sidePagination: "server", //表示服务端请求
277
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
278
+                //设置为limit可以获取limit, offset, search, sort, order
279
+                queryParamsType: "undefined",
280
+                queryParams: function queryParams(params) { //设置查询参数
281
+                    var param = {
282
+                        page: params.pageNumber,
283
+                        pagesize: params.pageSize,
284
+                        workid: $("#wids").val(),
285
+                        state: $("#state").val(), //=工单状态
286
+                        type: $("#type").val(), //=工单类型
287
+                        bigtype: $("#bigtype").val(), //=大类别
288
+                        smalltype: $("#smalltype").val(), //=小类别
289
+                        key: $("#key").val(), //=关键字
290
+                        tel: $("#tel").val(), //=客户电话
291
+                        name: $("#name").val(), //=客户名称
292
+                        usercode: usercodeID, //=坐席工号
293
+                        ddusercode: ddusercodeID,
294
+                        source: $("#source").val(), //=来源&
295
+                        starttime: $("#starttime").val(), //=开始时间
296
+                        endtime: $("#endtime").val(), //=结束时间
297
+                        deptid: $("#PID").val(),
298
+                        type: $("#type").val(),
299
+                        tab: 4, //待处理
300
+                        sourcearea: $('#sourceAreas').val(), //区域
301
+                        jianhang: 4, // 多媒体
302
+                        token: $.cookie("token")
303
+                    };
304
+                    return param;
305
+                },
306
+                onLoadSuccess: function (data) { //加载成功时执行
307
+                    //						layer.msg("加载成功");
308
+                    //console.log(data);
309
+                },
310
+                onLoadError: function () { //加载失败时执行
311
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
312
+                }
313
+            });
314
+        }
315
+        //状态
316
+        function States(val, row) {
317
+            var html = '';
318
+            switch (val + '') {
319
+                case '0':
320
+                    html = '新工单';
321
+                    if (row.F_IsReturn == 1) {
322
+                        html = '新工单(回退)';
323
+                    }
324
+                    break;
325
+                case '1':
326
+                    html = '待交办';
327
+                    break;
328
+                case '2':
329
+                    html = '待查收';
330
+                    break;
331
+                case '3':
332
+                    html = '退回审核中';
333
+                    break;
334
+                case '4':
335
+                    html = '办理中';
336
+                    break;
337
+                case '5':
338
+                    html = '延时审核';
339
+                    break;
340
+                case '6':
341
+                    html = '已办理';
342
+                    break;
343
+                case '7':
344
+                    html = '已回访';
345
+                    break;
346
+                case '8':
347
+                    html = '重办中';
348
+                    break;
349
+                case '9':
350
+                    html = '已结案';
351
+                    break;
352
+                case '10':
353
+                    html = '待审核';
354
+                    break;
355
+                case '11':
356
+                    html = '重办待交办';
357
+                    break;
358
+                    //              case '12':
359
+                    //                  html = '待审核';
360
+                    //                  break;
361
+                case '13':
362
+                    html = '重办驳回';
363
+                    break;
364
+            }
365
+            return html;
366
+        }
367
+        //音频
368
+        function setCode(val) {
369
+            if (val) {
370
+                return '<div class="imgs" style="cursor: pointer;">' +
371
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
372
+                    '</div>';
373
+            } else {
374
+                return '';
375
+            }
376
+        }
377
+
378
+        //编号
379
+        function serialNumber(val, row, index) {
380
+            return index + 1;
381
+        }
382
+
383
+        function GetCont(val) {
384
+            if (val) {
385
+                var str = '<div '
386
+                if (val.length > 10) {
387
+                    str = str + ' title="' + val + '" ';
388
+                    val = val.substr(0, 10) + "...";
389
+                }
390
+                return str + '>' + val + '</div>';
391
+            } else {
392
+                return '';
393
+            }
394
+        }
395
+        //操作
396
+        function Dispose(val, row) {
397
+            var Rows = row.Buttons;
398
+            var html = '';
399
+            for (var i = 0; i < Rows.length; i++) {
400
+
401
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
402
+                if (html1) {
403
+                    html1 = html1.replace("data", val);
404
+                }
405
+                html += html1;
406
+
407
+            }
408
+            return html;
409
+        }
410
+
411
+        //编辑
412
+        function bj(str) {
413
+            layer.open({
414
+                type: 2,
415
+                content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
416
+                title: '编辑工单',
417
+                area: ['96%', '85%'], //宽高
418
+            });
419
+        }
420
+        //删除
421
+        function move(str) {
422
+            layer.confirm('确定删除工单?', {
423
+                btn: ['是', '否'] //按钮
424
+            }, function () {
425
+                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
426
+                    ids: str,
427
+                    token: $.cookie("token")
428
+                }, function (result) {
429
+                    result = JSON.parse(result);
430
+                    if (result.state.toLowerCase() == "success") {
431
+                        layer.msg("删除成功");
432
+                        load();
433
+                    }
434
+                })
435
+            });
436
+        }
437
+        //提交
438
+        function tj(str) {
439
+            layer.confirm('确定要提交工单么?', {
440
+                btn: ['确定', '取消'] //按钮
441
+            }, function () {
442
+                //请求后台数据
443
+                /*发送请求*/
444
+                $.post(huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
445
+                    ids: str,
446
+                    token: $.cookie("token")
447
+                }, function (result) {
448
+                    result = JSON.parse(result);
449
+                    if (result.state.toLowerCase() == "success") {
450
+                        layer.msg("提交成功");
451
+                        load();
452
+                    }
453
+                })
454
+            });
455
+        }
456
+        //交办
457
+        function jb(str) {
458
+            layer.open({
459
+                type: 2,
460
+                content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
461
+                title: '工单交办',
462
+                area: ['87%', '80%'], //宽高
463
+            });
464
+        }
465
+        //领导批示
466
+        function lader(str) {
467
+            layer.open({
468
+                type: 2,
469
+                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
470
+                title: '领导批示',
471
+                area: ['60%', '80%'], //宽高
472
+            });
473
+        }
474
+        //市长批示
475
+        function city(str) {
476
+            layer.open({
477
+                type: 2,
478
+                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
479
+                title: '领导批示',
480
+                area: ['60%', '80%'], //宽高
481
+            });
482
+        }
483
+        //办理
484
+        function bl(str) {
485
+            layer.open({
486
+                type: 2,
487
+                content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
488
+                title: '办理工单',
489
+                area: ['60%', '80%'], //宽高
490
+            });
491
+        }
492
+        //督办
493
+
494
+        function Supervision(str) {
495
+            layer.open({
496
+                type: 2,
497
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
498
+                title: '督办',
499
+                area: ['60%', '80%'], //宽高
500
+            });
501
+        }
502
+
503
+        //督查
504
+        function Supervision_(str) {
505
+            layer.open({
506
+                type: 2,
507
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
508
+                title: '监察',
509
+                area: ['60%', '80%'], //宽高
510
+            });
511
+        }
512
+        //强制结案
513
+        function StrongLawsuit(str) {
514
+            layer.open({
515
+                type: 2,
516
+                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
517
+                title: '强制结案',
518
+                area: ['60%', '80%'], //宽高
519
+            });
520
+        }
521
+        //回退BackDtail
522
+        function BackDtail(str) {
523
+            layer.open({
524
+                type: 2,
525
+                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
526
+                title: '工单回退',
527
+                area: ['60%', '80%'], //宽高
528
+            });
529
+        }
530
+        //查收
531
+        function cs(str) {
532
+            layer.confirm('确定要查收?', {
533
+                btn: ['是', '否'] //按钮
534
+            }, function () {
535
+                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
536
+                    workorderid: str,
537
+                    token: $.cookie("token")
538
+                }, function (result) {
539
+                    result = JSON.parse(result);
540
+                    if (result.state.toLowerCase() == "success") {
541
+                        layer.msg("查收成功");
542
+                        load();
543
+                    }
544
+                })
545
+            });
546
+        }
547
+        //收回
548
+        function sh(str) {
549
+            layer.confirm('确定要回收?', {
550
+                btn: ['是', '否'] //按钮
551
+            }, function () {
552
+                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
553
+                    workorderid: str,
554
+                    token: $.cookie("token")
555
+                }, function (result) {
556
+                    result = JSON.parse(result);
557
+                    if (result.state.toLowerCase() == "success") {
558
+                        layer.msg("回收");
559
+                        load();
560
+                    }
561
+                })
562
+            });
563
+        }
564
+        //强制回收
565
+        function recycles() {
566
+            layer.confirm('确定要强制退回吗?', {
567
+                btn: ['是', '否'] //按钮
568
+            });
569
+        }
570
+        //退回申请
571
+        function th(str) {
572
+            layer.open({
573
+                type: 2,
574
+                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
575
+                title: '申请退回工单',
576
+                area: ['60%', '80%'], //宽高
577
+            });
578
+        }
579
+        //审核退回申请
580
+        function shth(str) {
581
+            layer.open({
582
+                type: 2,
583
+                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
584
+                title: '审核退回申请',
585
+                area: ['60%', '80%'], //宽高
586
+            });
587
+        }
588
+        //办理
589
+        //			function th(str) {
590
+        //				layer.open({
591
+        //					type: 2,
592
+        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
593
+        //					title: '办理工单',
594
+        //					area: ['35%', '30%'], //宽高
595
+        //				});
596
+        //			}
597
+        //申请延时
598
+        function ys(str) {
599
+            layer.open({
600
+                type: 2,
601
+                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
602
+                title: '申请延时',
603
+                area: ['60%', '80%'], //宽高
604
+            });
605
+        }
606
+        //审核申请延时
607
+        function shys(str) {
608
+            layer.open({
609
+                type: 2,
610
+                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
611
+                title: '审核延时申请',
612
+                area: ['60%', '80%'], //宽高
613
+            });
614
+        }
615
+        //诉求回访
616
+        function hf(str) {
617
+            layer.open({
618
+                type: 2,
619
+                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
620
+                title: '工单回访',
621
+                area: ['60%', '80%'], //宽高
622
+            });
623
+        }
624
+        //重办工单
625
+        function cb(str) {
626
+            layer.open({
627
+                type: 2,
628
+                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
629
+                title: '重办工单',
630
+                area: ['60%', '80%'], //宽高
631
+            });
632
+        }
633
+        //结案
634
+        function Lawsuit(str) {
635
+            layer.open({
636
+                type: 2,
637
+                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
638
+                title: '诉求单结案',
639
+                area: ['60%', '80%'], //宽高
640
+            });
641
+        }
642
+
643
+        $('.Appeal').click(function () {
644
+            layer.open({
645
+                type: 2,
646
+                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
647
+                title: '新增诉求',
648
+                area: ['85%', '80%'], //宽高
649
+            });
650
+        })
651
+        //上传文件
652
+        function upload() {
653
+            if (document.getElementById("upFile").files.length > 0) {
654
+                var formData = new FormData();
655
+                formData.append("upFile", document.getElementById("upFile").files[0]);
656
+                formData.append("token", $.cookie("token"));
657
+                $.ajax({
658
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
659
+                    type: "POST",
660
+                    data: formData,
661
+                    /**
662
+                     *必须false才会自动加上正确的Content-Type
663
+                     */
664
+                    contentType: false,
665
+                    /**
666
+                     * 必须false才会避开jQuery对 formdata 的默认处理
667
+                     * XMLHttpRequest会对 formdata 进行正确的处理
668
+                     */
669
+                    processData: false,
670
+                    success: function (result) {
671
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile")
672
+                            .outerHTML;
673
+                        $("#upFile").change(function () {
674
+                            upload();
675
+                        });
676
+                        var r = $.parseJSON(result);
677
+                        if (r.state.toLowerCase() == "success") {
678
+                            $(".fjnr").text(r.data);
679
+                            $("#scfj").show();
680
+                        }
681
+                    }
682
+                });
683
+            } else {
684
+                layer.confirm('请上传文件!', {
685
+                    btn: ['确定']
686
+                });
687
+            }
688
+        }
689
+        //来源
690
+        function LY(obj) {
691
+            obj.empty();
692
+            obj.append('<option selected="selected" value="">请选择</option>');
693
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
694
+                "token": $.cookie("token"),
695
+                id: 1
696
+            }, function (data) {
697
+                if (data.state.toLowerCase() == "success") {
698
+                    var content = data.data;
699
+                    $(content).each(function (i, n) {
700
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
701
+                            obj);
702
+                    })
703
+                }
704
+            })
705
+        }
706
+        //类别
707
+        function LB(obj) {
708
+            obj.empty();
709
+            obj.append('<option selected="selected" value="">请选择</option>');
710
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
711
+                "token": $.cookie("token"),
712
+                id: 2
713
+            }, function (data) {
714
+                if (data.state.toLowerCase() == "success") {
715
+                    var content = data.data;
716
+                    $(content).each(function (i, n) {
717
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
718
+                            obj);
719
+                    })
720
+                }
721
+            })
722
+        }
723
+        //		主题
724
+        function ZT(obj) {
725
+            obj.empty();
726
+            obj.append('<option selected="selected" value="">请选择</option>');
727
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
728
+                "token": $.cookie("token"),
729
+                id: 3
730
+            }, function (data) {
731
+                if (data.state.toLowerCase() == "success") {
732
+                    var content = data.data;
733
+                    $(content).each(function (i, n) {
734
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
735
+                            obj);
736
+                    })
737
+                }
738
+            })
739
+        }
740
+
741
+
742
+        function tree() {
743
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
744
+                "token": $.cookie("token"),
745
+                //		"pid": pid
746
+            }, function (result) {
747
+                result = $.parseJSON(result);
748
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
749
+            });
750
+        }
751
+        var setting1 = {
752
+            data: {
753
+                key: {
754
+                    name: "F_DeptName"
755
+                },
756
+                simpleData: {
757
+                    enable: true,
758
+                    idKey: "F_DeptId",
759
+                    pIdKey: "F_PartentId",
760
+                    rootPId: 0
761
+                }
762
+            },
763
+            callback: {
764
+                onClick: zTreeOnClick
765
+            }
766
+        };
767
+
768
+        function zTreeOnClick(event, treeId, treeNode) {
769
+            if (treeNode.level >= 1) {
770
+                $('.inps').val(treeNode.F_DeptName);
771
+                $("#PID").val(treeNode.F_DeptId);
772
+                $("#Dpment").val(treeNode.F_DeptName);
773
+                $(".Cleans").show();
774
+            }
775
+
776
+        };
777
+
778
+        $(".exportFile").click(function () {
779
+            var usercode_ = $("#ZX").val(); //坐席
780
+            if (usercode_ != null) {
781
+                $(usercode_).each(function (i, n) {
782
+                    var obj1 = "";
783
+                    obj1 = n + ",";
784
+                    usercodeID += obj1;
785
+                });
786
+            } else {
787
+                usercodeID = "";
788
+            }
789
+
790
+            //      	调度员
791
+            var ddusercodeID = "";
792
+            var ddusercode_ = $("#yardman").val(); //坐席
793
+            if (ddusercode_ != null) {
794
+                $(ddusercode_).each(function (i, n) {
795
+                    var obj2 = "";
796
+                    obj2 = n + ",";
797
+                    ddusercodeID += obj2;
798
+                });
799
+            } else {
800
+                ddusercodeID = "";
801
+            }
802
+
803
+            var workid = $("#wids").val()
804
+            var key = $("#key").val() //=关键字
805
+            var tel = $("#tel").val() //=客户电话
806
+            var name = $("#name").val() //=客户名称
807
+            var usercode = usercodeID //=坐席工号
808
+            var ddusercode = ddusercodeID
809
+            var source = $("#source").val() //=来源&
810
+            var starttime = $("#starttime").val() //=开始时间
811
+            var endtime = $("#endtime").val() //=结束时间
812
+            var deptid = $("#PID").val()
813
+            var type = $("#type").val() //=工单类型
814
+            var bigtype = $("#bigtype").val()
815
+            var smalltype = $("#smalltype").val() //=小类别
816
+            var sourcearea = $("#sourceAreas").val() //区域
817
+            var state = $("#state").val() //=工单状态
818
+            var tab = 4;
819
+
820
+            var url = huayi.config.callcenter_url + "WorkOrder/GetLDDealList?token=" + $.cookie("token");
821
+            url += "&workid=" + workid + "&state=" + state + "&type=" + type + "&tab=" + tab + "&key=" + key +
822
+                "&tel=" +
823
+                tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" +
824
+                source +
825
+                "&starttime=" + starttime + "&endtime=" + endtime + "&deptid=" + deptid + "&sourcearea=" +
826
+                sourcearea +
827
+                "&bigtype=" + bigtype + "&smalltype=" + smalltype + "&jianhang=4" +
828
+                "&isdc=1";
829
+            window.location.href = url;
830
+        })
831
+    </script>
832
+</body>
833
+
834
+</html>

File diff suppressed because it is too large
+ 1025 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/ProvincialPlatformPendingTransfer.html


+ 1 - 1
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/ProvincialPlatformReturnSignature.html

@@ -220,7 +220,7 @@
220 220
                        	state: orderState, //=工单状态
221 221
                        	starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[0], //=开始时间
222 222
                         endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
223
-//                      source: 109, //=来源&
223
+                        source: 109, //=来源&
224 224
                         keyid: $("#keyid").val(), //=主题词
225 225
                         tel: $("#tel").val(), //=客户电话
226 226
                         name: $("#name").val(), //=客户名称

+ 880 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/ReturnReviewedTransferredProvincialPlatform.html

@@ -0,0 +1,880 @@
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="starttime" class="photo x-color laydate-icon"
50
+                                        autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
51
+                                        id="endtime" 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="DeptNames" data-align="center">退回单位</th>
149
+                                    <th data-field="Backreason" data-align="center">退回原因</th>
150
+                                    <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
151
+                                </tr>
152
+                            </thead>
153
+                            <tbody class="list"></tbody>
154
+                        </table>
155
+                    </div>
156
+                </div>
157
+            </div>
158
+        </div>
159
+
160
+        <!--下载框-->
161
+        <div class="t-shade lyxz">
162
+            <div class="shade_k">
163
+                <div class="shade_title">
164
+                    <span>录音播放与下载<srong class="cknum"></srong></span>
165
+                    <span class="setwin gbly"><a>x</a></span>
166
+                </div>
167
+                <div class="shade_content">
168
+                    <div class="Ly_box audiojs">
169
+                    </div>
170
+                </div>
171
+            </div>
172
+        </div>
173
+        <input type="hidden" id="PID" />
174
+        <input type="hidden" id="Dpment" />
175
+    </div>
176
+    <script src="../js/layui/layui.js"></script>
177
+    <script src="../js/bootstrap-select.js"></script>
178
+    <script src="../css/laydate/laydate.js"></script>
179
+    <script src="../My97DatePicker/WdatePicker.js"></script>
180
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
181
+    <script src="../js/search/screen.js"></script>
182
+    <script src="../js/WorkOrder/WorkOrderList.js"></script>
183
+
184
+    <script>
185
+        var wid = helper.request.queryString("states");
186
+        if (wid) {
187
+            $("#state").val(wid);
188
+        }
189
+        $(document).ready(function () {
190
+            load();
191
+            laydate.skin('blue');
192
+            laydate({
193
+                elem: '#starttime',
194
+                event: 'focus',
195
+                istime: true,
196
+                format: 'YYYY-MM-DD hh:mm:ss'
197
+            });
198
+            laydate({
199
+                elem: '#endtime',
200
+                event: 'focus',
201
+                istime: true,
202
+                format: 'YYYY-MM-DD hh:mm:ss'
203
+            });
204
+
205
+        });
206
+        //关闭录音弹出
207
+        $(".gbly").click(function () {
208
+            $(".lyxz").removeClass("cx");
209
+            $('audio')[0].pause();
210
+        });
211
+
212
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
213
+            $('.success').removeClass('success'); //去除之前选中的行的,选中样式
214
+            $(ele).addClass('success'); //添加当前选中的 success样式用于区别
215
+        });
216
+
217
+        //获取查询信息
218
+        function load() {
219
+            //坐席
220
+            var usercodeID = "";
221
+            var usercode_ = $("#ZX").val(); //坐席
222
+            if (usercode_ != null) {
223
+                $(usercode_).each(function (i, n) {
224
+                    var obj1 = '';
225
+                    obj1 = n + ",";
226
+                    usercodeID += obj1;
227
+                })
228
+            } else {
229
+                usercodeID = ""
230
+            }
231
+            //      	调度员
232
+            var ddusercodeID = "";
233
+            var ddusercode_ = $("#yardman").val(); //坐席
234
+            if (ddusercode_ != null) {
235
+                $(ddusercode_).each(function (i, n) {
236
+                    var obj2 = '';
237
+                    obj2 = n + ",";
238
+                    ddusercodeID += obj2;
239
+                })
240
+            } else {
241
+                ddusercodeID = ""
242
+            }
243
+            //先销毁表格
244
+            $('#orderlist').bootstrapTable('destroy');
245
+            //初始化表格,动态从服务器加载数据
246
+            $("#orderlist").bootstrapTable({
247
+                method: "get", //使用get请求到服务器获取数据
248
+                url: huayi.config.callcenter_url + "WorkOrder/GetLDDealList", //获取数据的Servlet地址
249
+                contentType: "application/x-www-form-urlencoded",
250
+                striped: true, //表格显示条纹
251
+                pagination: true, //启动分页
252
+                pageSize: 10, //每页显示的记录数
253
+                pageNumber: 1, //当前第几页
254
+                pageList: [10, 20, 50, 100], //记录数可选列表
255
+                search: false, //是否启用查询
256
+                showColumns: false, //显示下拉框勾选要显示的列
257
+                showRefresh: false, //显示刷新按钮
258
+                sidePagination: "server", //表示服务端请求
259
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
260
+                //设置为limit可以获取limit, offset, search, sort, order
261
+                queryParamsType: "undefined",
262
+                queryParams: function queryParams(params) { //设置查询参数
263
+                    var param = {
264
+                        page: params.pageNumber,
265
+                        pagesize: params.pageSize,
266
+                        workid: $("#wids").val(),
267
+                        state: 10, //=工单状态
268
+                        type: $("#type").val(), //=工单类型
269
+                        bigtype: $("#bigtype").val(), //=大类别
270
+                        smalltype: $("#smalltype").val(), //=小类别
271
+                        key: $("#key").val(), //=关键字
272
+                        tel: $("#tel").val(), //=客户电话
273
+                        name: $("#name").val(), //=客户名称
274
+                        usercode: usercodeID, //=坐席工号
275
+                        ddusercode: ddusercodeID,
276
+                        keyid: $("#keyid").val(), //=关键词id
277
+                        source: $("#source").val(), //=来源&
278
+                        starttime: $("#starttime").val(), //=开始时间
279
+                        endtime: $("#endtime").val(), //=结束时间
280
+                        deptid: $("#PID").val(),
281
+                        type: $("#type").val(),
282
+                        tab: 10, // 退回待审转办
283
+                        sourcearea: $('#sourceAreas').val(), //区域
284
+                        jianhang: 4, // 多媒体
285
+                        token: $.cookie("token")
286
+                    };
287
+                    return param;
288
+                },
289
+                onLoadSuccess: function (data) { //加载成功时执行
290
+                    //						layer.msg("加载成功");
291
+                    //console.log(data);
292
+                },
293
+                onLoadError: function () { //加载失败时执行
294
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
295
+                }
296
+            });
297
+        }
298
+        //状态
299
+        function States(val, row) {
300
+            var html = '';
301
+            switch (val + '') {
302
+                case '0':
303
+                    html = '新工单';
304
+                    if (row.F_IsReturn == 1) {
305
+                        html = '新工单(回退)';
306
+                    }
307
+                    break;
308
+                case '1':
309
+                    html = '待交办';
310
+                    break;
311
+                case '2':
312
+                    html = '待查收';
313
+                    break;
314
+                case '3':
315
+                    html = '退回审核中';
316
+                    break;
317
+                case '4':
318
+                    html = '办理中';
319
+                    break;
320
+                case '5':
321
+                    html = '延时审核';
322
+                    break;
323
+                case '6':
324
+                    html = '已办理';
325
+                    break;
326
+                case '7':
327
+                    html = '已回访';
328
+                    break;
329
+                case '8':
330
+                    html = '重办中';
331
+                    break;
332
+                case '9':
333
+                    html = '已结案';
334
+                    break;
335
+                case '10':
336
+                    html = '待审核';
337
+                    break;
338
+            }
339
+            return html;
340
+
341
+        }
342
+        //时限
343
+        function OverTime(val, row) {
344
+            if (val == 1) {
345
+                return '<div class="" style="cursor: pointer;">' +
346
+                    '<span class="Greens">' + row.GapTime + '</span>' +
347
+                    '</div>';
348
+            } else if (val == 2) {
349
+                return '<div class="" style="cursor: pointer;">' +
350
+                    '<span class="Yellows">' + row.GapTime + '</span>' +
351
+                    '</div>';
352
+            } else if (val == 3) {
353
+                return '<div class="" style="cursor: pointer;">' +
354
+                    '<span class="Reds">' + row.GapTime + '</span>' +
355
+                    '</div>';
356
+            }
357
+        }
358
+        //办理时限
359
+        function BanTime(val) {
360
+            if (val) {
361
+                var time = val.substring(0, val.indexOf(' '));
362
+                return '<div class="" style="cursor: pointer;">' +
363
+                    '<span>' + time + '</span>' +
364
+                    '</div>';
365
+            }
366
+
367
+        }
368
+        //音频
369
+        function setCode(val) {
370
+            if (val) {
371
+                return '<div class="imgs" style="cursor: pointer;">' +
372
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
373
+                    '</div>';
374
+            } else {
375
+                return '';
376
+            }
377
+        }
378
+
379
+        //编号
380
+        function serialNumber(val, row, index) {
381
+            return index + 1;
382
+        }
383
+
384
+        function GetCont(val) {
385
+            if (val) {
386
+                var str = '<div '
387
+                if (val.length > 10) {
388
+                    str = str + ' title="' + val + '" ';
389
+                    val = val.substr(0, 10) + "...";
390
+                }
391
+                return str + '>' + val + '</div>';
392
+            } else {
393
+                return '';
394
+            }
395
+        }
396
+        //操作
397
+        function Dispose(val, row) {
398
+            var Rows = row.Buttons;
399
+            //          alert(row.F_WorkOrderId);
400
+            var WorkOrderId = row.F_WorkOrderId;
401
+            var html = '';
402
+            // if (row.F_WorkState == '1') {
403
+            //     html += '<a class="xg" onclick="redeploy(\'' + WorkOrderId + '\')">转派&nbsp</a>';
404
+            // }
405
+            for (var i = 0; i < Rows.length; i++) {
406
+
407
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
408
+                if (html1) {
409
+                    html1 = html1.replace("data", val);
410
+                }
411
+                html += html1;
412
+
413
+            }
414
+
415
+            return html;
416
+        }
417
+
418
+        //转派
419
+        function redeploy(WorkOrderId) {
420
+            layer.open({
421
+                type: 2,
422
+                content: "../CommonHtml/zhuanpai.html?wid=" + WorkOrderId, //iframe的url,no代表不显示滚动条
423
+                title: '转派',
424
+                area: ['85%', '80%'], //宽高
425
+            });
426
+        }
427
+        //编辑
428
+        function bj(str) {
429
+            layer.open({
430
+                type: 2,
431
+                content: "../CommonHtml/AddAppeal.html?wid=" + str + "&workType=jb", //iframe的url,no代表不显示滚动条
432
+                title: '编辑工单',
433
+                area: ['96%', '85%'], //宽高
434
+            });
435
+        }
436
+        //删除
437
+        function move(str) {
438
+            layer.confirm('确定删除工单?', {
439
+                btn: ['是', '否'] //按钮
440
+            }, function () {
441
+                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
442
+                    ids: str,
443
+                    token: $.cookie("token")
444
+                }, function (result) {
445
+                    result = JSON.parse(result);
446
+                    if (result.state.toLowerCase() == "success") {
447
+                        layer.msg("删除成功");
448
+                        load();
449
+                    }
450
+                })
451
+            });
452
+        }
453
+        //提交
454
+        function tj(str) {
455
+            layer.confirm('确定要提交工单么?', {
456
+                btn: ['确定', '取消'] //按钮
457
+            }, function () {
458
+                //请求后台数据
459
+                /*发送请求*/
460
+                $.post(huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
461
+                    ids: str,
462
+                    token: $.cookie("token")
463
+                }, function (result) {
464
+                    result = JSON.parse(result);
465
+                    if (result.state.toLowerCase() == "success") {
466
+                        layer.msg("提交成功");
467
+                        load();
468
+                    }
469
+                })
470
+            });
471
+        }
472
+        //交办
473
+        function jb(str) {
474
+            layer.open({
475
+                type: 2,
476
+                content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
477
+                title: '工单交办',
478
+                area: ['87%', '80%'], //宽高
479
+            });
480
+        }
481
+
482
+        //领导批示
483
+        function lader(str) {
484
+            layer.open({
485
+                type: 2,
486
+                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
487
+                title: '领导批示',
488
+                area: ['60%', '80%'], //宽高
489
+            });
490
+        }
491
+        //市长批示
492
+        function city(str) {
493
+            layer.open({
494
+                type: 2,
495
+                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
496
+                title: '领导批示',
497
+                area: ['60%', '80%'], //宽高
498
+            });
499
+        }
500
+        //办理
501
+        function bl(str) {
502
+            layer.open({
503
+                type: 2,
504
+                content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
505
+                title: '办理工单',
506
+                area: ['60%', '80%'], //宽高
507
+            });
508
+        }
509
+        //督办
510
+
511
+        function Supervision(str) {
512
+            layer.open({
513
+                type: 2,
514
+                state: 1,
515
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
516
+                    '&state=1', //iframe的url,no代表不显示滚动条
517
+                title: '督办',
518
+                area: ['60%', '80%'], //宽高
519
+            });
520
+        }
521
+        //不督办
522
+        function ndb(str) {
523
+            layer.open({
524
+                type: 2,
525
+                state: 2,
526
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
527
+                    '&state=2', //iframe的url,no代表不显示滚动条
528
+                title: '不督办',
529
+                area: ['60%', '80%'], //宽高
530
+            });
531
+        }
532
+        //督查
533
+        function Supervision_(str) {
534
+            layer.open({
535
+                type: 2,
536
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
537
+                title: '监察',
538
+                area: ['60%', '80%'], //宽高
539
+            });
540
+        }
541
+        //强制结案
542
+        function StrongLawsuit(str) {
543
+            layer.open({
544
+                type: 2,
545
+                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
546
+                title: '强制结案',
547
+                area: ['60%', '80%'], //宽高
548
+            });
549
+        }
550
+        //回退BackDtail
551
+        function BackDtail(str) {
552
+            layer.open({
553
+                type: 2,
554
+                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
555
+                title: '工单回退',
556
+                area: ['60%', '80%'], //宽高
557
+            });
558
+        }
559
+        //查收
560
+        function cs(str) {
561
+            layer.confirm('确定要查收?', {
562
+                btn: ['是', '否'] //按钮
563
+            }, function () {
564
+                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
565
+                    workorderid: str,
566
+                    token: $.cookie("token")
567
+                }, function (result) {
568
+                    result = JSON.parse(result);
569
+                    if (result.state.toLowerCase() == "success") {
570
+                        layer.msg("查收成功");
571
+                        load();
572
+                    }
573
+                })
574
+            });
575
+        }
576
+        //收回
577
+        function sh(str) {
578
+            layer.confirm('确定要回收?', {
579
+                btn: ['是', '否'] //按钮
580
+            }, function () {
581
+                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
582
+                    workorderid: str,
583
+                    token: $.cookie("token")
584
+                }, function (result) {
585
+                    result = JSON.parse(result);
586
+                    if (result.state.toLowerCase() == "success") {
587
+                        layer.msg("回收");
588
+                        load();
589
+                    }
590
+                })
591
+            });
592
+        }
593
+        //强制回收
594
+        function recycles() {
595
+            layer.confirm('确定要强制退回吗?', {
596
+                btn: ['是', '否'] //按钮
597
+            });
598
+        }
599
+        //退回申请
600
+        function th(str) {
601
+            layer.open({
602
+                type: 2,
603
+                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
604
+                title: '申请退回工单',
605
+                area: ['60%', '80%'], //宽高
606
+            });
607
+        }
608
+        //审核退回申请
609
+        function shth(str) {
610
+            layer.open({
611
+                type: 2,
612
+                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
613
+                title: '审核退回申请',
614
+                area: ['60%', '80%'], //宽高
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: ['35%', '30%'], //宽高
624
+        //				});
625
+        //			}
626
+        //申请延时
627
+        function ys(str) {
628
+            layer.open({
629
+                type: 2,
630
+                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
631
+                title: '申请延时',
632
+                area: ['60%', '80%'], //宽高
633
+            });
634
+        }
635
+        //审核申请延时
636
+        function shys(str) {
637
+            layer.open({
638
+                type: 2,
639
+                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
640
+                title: '审核延时申请',
641
+                area: ['60%', '80%'], //宽高
642
+            });
643
+        }
644
+        //诉求回访
645
+        function hf(str) {
646
+            layer.open({
647
+                type: 2,
648
+                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
649
+                title: '工单回访',
650
+                area: ['60%', '80%'], //宽高
651
+            });
652
+        }
653
+        //重办工单
654
+        function cb(str) {
655
+            layer.open({
656
+                type: 2,
657
+                content: "../CommonHtml/AddAppeal.html?wid=" + str + "&workType=cb", //iframe的url,no代表不显示滚动条
658
+                // content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
659
+                title: '重办工单',
660
+                area: ["95%", "95%"], //宽高
661
+            });
662
+        }
663
+        //审核
664
+        function audit(str) {
665
+            layer.open({
666
+                type: 2,
667
+                content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
668
+                title: '审核',
669
+                area: ['60%', '80%'], //宽高
670
+            });
671
+        }
672
+        //结案
673
+        function Lawsuit(str) {
674
+            layer.open({
675
+                type: 2,
676
+                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
677
+                title: '诉求单结案',
678
+                area: ['60%', '80%'], //宽高
679
+            });
680
+        }
681
+        //转督办
682
+        function zdb(str, row) {
683
+            layer.open({
684
+                type: 2,
685
+                content: "../CommonHtml/superTrunl.html?wid=" + str,
686
+                title: "督办工单",
687
+                area: ["60%", "80%"], //宽高
688
+            });
689
+        }
690
+        $('.Appeal').click(function () {
691
+            layer.open({
692
+                type: 2,
693
+                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
694
+                title: '新增诉求',
695
+                area: ['85%', '80%'], //宽高
696
+            });
697
+        })
698
+        //上传文件
699
+        function upload() {
700
+            if (document.getElementById("upFile").files.length > 0) {
701
+                var formData = new FormData();
702
+                formData.append("upFile", document.getElementById("upFile").files[0]);
703
+                formData.append("token", $.cookie("token"));
704
+                $.ajax({
705
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
706
+                    type: "POST",
707
+                    data: formData,
708
+                    /**
709
+                     *必须false才会自动加上正确的Content-Type
710
+                     */
711
+                    contentType: false,
712
+                    /**
713
+                     * 必须false才会避开jQuery对 formdata 的默认处理
714
+                     * XMLHttpRequest会对 formdata 进行正确的处理
715
+                     */
716
+                    processData: false,
717
+                    success: function (result) {
718
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile")
719
+                            .outerHTML;
720
+                        $("#upFile").change(function () {
721
+                            upload();
722
+                        });
723
+                        var r = $.parseJSON(result);
724
+                        if (r.state.toLowerCase() == "success") {
725
+                            $(".fjnr").text(r.data);
726
+                            $("#scfj").show();
727
+                        }
728
+                    }
729
+                });
730
+            } else {
731
+                layer.confirm('请上传文件!', {
732
+                    btn: ['确定']
733
+                });
734
+            }
735
+        }
736
+        //来源
737
+        function LY(obj) {
738
+            obj.empty();
739
+            obj.append('<option selected="selected" value="">请选择</option>');
740
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
741
+                "token": $.cookie("token"),
742
+                id: 1
743
+            }, function (data) {
744
+                if (data.state.toLowerCase() == "success") {
745
+                    var content = data.data;
746
+                    $(content).each(function (i, n) {
747
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
748
+                            obj);
749
+                    })
750
+                }
751
+            })
752
+        }
753
+        //类别
754
+        function LB(obj) {
755
+            obj.empty();
756
+            obj.append('<option selected="selected" value="">请选择</option>');
757
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
758
+                "token": $.cookie("token"),
759
+                id: 2
760
+            }, function (data) {
761
+                if (data.state.toLowerCase() == "success") {
762
+                    var content = data.data;
763
+                    $(content).each(function (i, n) {
764
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
765
+                            obj);
766
+                    })
767
+                }
768
+            })
769
+        }
770
+        //		主题
771
+        function ZT(obj) {
772
+            obj.empty();
773
+            obj.append('<option selected="selected" value="">请选择</option>');
774
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
775
+                "token": $.cookie("token"),
776
+                id: 3
777
+            }, function (data) {
778
+                if (data.state.toLowerCase() == "success") {
779
+                    var content = data.data;
780
+                    $(content).each(function (i, n) {
781
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
782
+                            obj);
783
+                    })
784
+                }
785
+            })
786
+        }
787
+
788
+
789
+        function tree() {
790
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
791
+                "token": $.cookie("token"),
792
+                //		"pid": pid
793
+            }, function (result) {
794
+                result = $.parseJSON(result);
795
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
796
+            });
797
+        }
798
+        var setting1 = {
799
+            data: {
800
+                key: {
801
+                    name: "F_DeptName"
802
+                },
803
+                simpleData: {
804
+                    enable: true,
805
+                    idKey: "F_DeptId",
806
+                    pIdKey: "F_PartentId",
807
+                    rootPId: 0
808
+                }
809
+            },
810
+            callback: {
811
+                onClick: zTreeOnClick
812
+            }
813
+        };
814
+
815
+        function zTreeOnClick(event, treeId, treeNode) {
816
+            if (treeNode.level >= 1) {
817
+                $('.inps').val(treeNode.F_DeptName);
818
+                $("#PID").val(treeNode.F_DeptId);
819
+                $("#Dpment").val(treeNode.F_DeptName);
820
+                $(".Cleans").show();
821
+            }
822
+
823
+        };
824
+
825
+        $(".exportFile").click(function () {
826
+            var usercode_ = $("#ZX").val(); //坐席
827
+            if (usercode_ != null) {
828
+                $(usercode_).each(function (i, n) {
829
+                    var obj1 = "";
830
+                    obj1 = n + ",";
831
+                    usercodeID += obj1;
832
+                });
833
+            } else {
834
+                usercodeID = "";
835
+            }
836
+            // 调度员
837
+            var ddusercodeID = "";
838
+            var ddusercode_ = $("#yardman").val(); //坐席
839
+            if (ddusercode_ != null) {
840
+                $(ddusercode_).each(function (i, n) {
841
+                    var obj2 = "";
842
+                    obj2 = n + ",";
843
+                    ddusercodeID += obj2;
844
+                });
845
+            } else {
846
+                ddusercodeID = "";
847
+            }
848
+            var workid = $("#wids").val()
849
+            var key = $("#key").val() //=关键字
850
+            var tel = $("#tel").val() //=客户电话
851
+            var name = $("#name").val() //=客户名称
852
+            var usercode = usercodeID //=坐席工号
853
+            var ddusercode = ddusercodeID
854
+            var source = $("#source").val() //=来源&
855
+            var starttime = $("#starttime").val() //=开始时间
856
+            var endtime = $("#endtime").val() //=结束时间
857
+            var deptid = $("#PID").val()
858
+            var type = $("#type").val() //=工单类型
859
+            var bigtype = $("#bigtype").val()
860
+            var smalltype = $("#smalltype").val() //=小类别
861
+            var sourcearea = $("#sourceAreas").val() //区域
862
+            var state = $("#state").val() //=工单状态
863
+            var tab = 10; // 退回待审转办
864
+            var keyid = $("#keyid").val() //=关键词id
865
+
866
+            var url = huayi.config.callcenter_url + "WorkOrder/GetLDDealList?token=" + $.cookie("token");
867
+            url += "&workid=" + workid + "&state=" + state + "&type=" + type + "&tab=" + tab + "&key=" + key +
868
+                "&tel=" +
869
+                tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" +
870
+                source +
871
+                "&starttime=" + starttime + "&endtime=" + endtime + "&deptid=" + deptid + "&sourcearea=" +
872
+                sourcearea +
873
+                "&bigtype=" + bigtype + "&smalltype=" + smalltype + "&keyid=" + keyid + "&jianhang=4" +
874
+                "&isdc=1";
875
+            window.location.href = url;
876
+        })
877
+    </script>
878
+</body>
879
+
880
+</html>

File diff suppressed because it is too large
+ 1010 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/WorkDSZBProvincialPlatform.html


File diff suppressed because it is too large
+ 1152 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/WorkIsproresultProvincialPlatform.html


+ 848 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/expiredWorkOrdersProvincialPlatform.html

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

File diff suppressed because it is too large
+ 1053 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/haveAduitProvincialPlatform.html


File diff suppressed because it is too large
+ 1053 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/haveDoneToAuditProvincialPlatform.html


+ 869 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/toAuditListProvincialPlatform.html

@@ -0,0 +1,869 @@
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>局委退回审核</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="starttime" class="photo x-color laydate-icon"
50
+                                        autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
51
+                                        id="endtime" 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: '#starttime',
192
+                event: 'focus',
193
+                istime: true,
194
+                format: 'YYYY-MM-DD hh:mm:ss'
195
+            });
196
+            laydate({
197
+                elem: '#endtime',
198
+                event: 'focus',
199
+                istime: true,
200
+                format: 'YYYY-MM-DD hh:mm:ss'
201
+            });
202
+
203
+        });
204
+        //关闭录音弹出
205
+        $(".gbly").click(function () {
206
+            $(".lyxz").removeClass("cx");
207
+            $('audio')[0].pause();
208
+        });
209
+
210
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
211
+            $('.success').removeClass('success'); //去除之前选中的行的,选中样式
212
+            $(ele).addClass('success'); //添加当前选中的 success样式用于区别
213
+        });
214
+
215
+        //获取查询信息
216
+        function load() {
217
+            //坐席
218
+            var usercodeID = "";
219
+            var usercode_ = $("#ZX").val(); //坐席
220
+            if (usercode_ != null) {
221
+                $(usercode_).each(function (i, n) {
222
+                    var obj1 = '';
223
+                    obj1 = n + ",";
224
+                    usercodeID += obj1;
225
+                })
226
+            } else {
227
+                usercodeID = ""
228
+            }
229
+            //      	调度员
230
+            var ddusercodeID = "";
231
+            var ddusercode_ = $("#yardman").val(); //坐席
232
+            if (ddusercode_ != null) {
233
+                $(ddusercode_).each(function (i, n) {
234
+                    var obj2 = '';
235
+                    obj2 = n + ",";
236
+                    ddusercodeID += obj2;
237
+                })
238
+            } else {
239
+                ddusercodeID = ""
240
+            }
241
+            //先销毁表格
242
+            $('#orderlist').bootstrapTable('destroy');
243
+            //初始化表格,动态从服务器加载数据
244
+            $("#orderlist").bootstrapTable({
245
+                method: "get", //使用get请求到服务器获取数据
246
+                url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
247
+                contentType: "application/x-www-form-urlencoded",
248
+                striped: true, //表格显示条纹
249
+                pagination: true, //启动分页
250
+                pageSize: 10, //每页显示的记录数
251
+                pageNumber: 1, //当前第几页
252
+                pageList: [10, 20, 50, 100], //记录数可选列表
253
+                search: false, //是否启用查询
254
+                showColumns: false, //显示下拉框勾选要显示的列
255
+                showRefresh: false, //显示刷新按钮
256
+                sidePagination: "server", //表示服务端请求
257
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
258
+                //设置为limit可以获取limit, offset, search, sort, order
259
+                queryParamsType: "undefined",
260
+                queryParams: function queryParams(params) { //设置查询参数
261
+                    var param = {
262
+                        page: params.pageNumber,
263
+                        pagesize: params.pageSize,
264
+                        workid: $("#wids").val(),
265
+                        state: 10, //=工单状态
266
+                        type: $("#type").val(), //=工单类型
267
+                        bigtype: $("#bigtype").val(), //=大类别
268
+                        smalltype: $("#smalltype").val(), //=小类别
269
+                        key: $("#key").val(), //=关键字
270
+                        tel: $("#tel").val(), //=客户电话
271
+                        name: $("#name").val(), //=客户名称
272
+                        usercode: usercodeID, //=坐席工号
273
+                        ddusercode: ddusercodeID,
274
+                        keyid: $("#keyid").val(), //=关键词id
275
+                        source: $("#source").val(), //=来源&
276
+                        starttime: $("#starttime").val(), //=开始时间
277
+                        endtime: $("#endtime").val(), //=结束时间
278
+                        deptid: $("#PID").val(),
279
+                        type: $("#type").val(),
280
+                        tab: 0, //待处理
281
+                        sourcearea: $('#sourceAreas').val(), //区域
282
+                        jianhang: 4, // 多媒体
283
+                        token: $.cookie("token")
284
+                    };
285
+                    return param;
286
+                },
287
+                onLoadSuccess: function (data) { //加载成功时执行
288
+                    //						layer.msg("加载成功");
289
+                    //console.log(data);
290
+                },
291
+                onLoadError: function () { //加载失败时执行
292
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
293
+                }
294
+            });
295
+        }
296
+        //状态
297
+        function States(val, row) {
298
+            var html = '';
299
+            switch (val + '') {
300
+                case '0':
301
+                    html = '新工单';
302
+                    if (row.F_IsReturn == 1) {
303
+                        html = '新工单(回退)';
304
+                    }
305
+                    break;
306
+                case '1':
307
+                    html = '待交办';
308
+                    break;
309
+                case '2':
310
+                    html = '待查收';
311
+                    break;
312
+                case '3':
313
+                    html = '退回审核中';
314
+                    break;
315
+                case '4':
316
+                    html = '办理中';
317
+                    break;
318
+                case '5':
319
+                    html = '延时审核';
320
+                    break;
321
+                case '6':
322
+                    html = '已办理';
323
+                    break;
324
+                case '7':
325
+                    html = '已回访';
326
+                    break;
327
+                case '8':
328
+                    html = '重办中';
329
+                    break;
330
+                case '9':
331
+                    html = '已结案';
332
+                    break;
333
+                case '10':
334
+                    html = '待审核';
335
+                    break;
336
+            }
337
+            return html;
338
+
339
+        }
340
+        //时限
341
+        function OverTime(val, row) {
342
+            if (val == 1) {
343
+                return '<div class="" style="cursor: pointer;">' +
344
+                    '<span class="Greens">' + row.GapTime + '</span>' +
345
+                    '</div>';
346
+            } else if (val == 2) {
347
+                return '<div class="" style="cursor: pointer;">' +
348
+                    '<span class="Yellows">' + row.GapTime + '</span>' +
349
+                    '</div>';
350
+            } else if (val == 3) {
351
+                return '<div class="" style="cursor: pointer;">' +
352
+                    '<span class="Reds">' + row.GapTime + '</span>' +
353
+                    '</div>';
354
+            }
355
+        }
356
+        //办理时限
357
+        function BanTime(val) {
358
+            if (val) {
359
+                var time = val.substring(0, val.indexOf(' '));
360
+                return '<div class="" style="cursor: pointer;">' +
361
+                    '<span>' + time + '</span>' +
362
+                    '</div>';
363
+            }
364
+
365
+        }
366
+        //音频
367
+        function setCode(val) {
368
+            if (val) {
369
+                return '<div class="imgs" style="cursor: pointer;">' +
370
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
371
+                    '</div>';
372
+            } else {
373
+                return '';
374
+            }
375
+        }
376
+
377
+        //编号
378
+        function serialNumber(val, row, index) {
379
+            return index + 1;
380
+        }
381
+
382
+        function GetCont(val) {
383
+            if (val) {
384
+                var str = '<div '
385
+                if (val.length > 10) {
386
+                    str = str + ' title="' + val + '" ';
387
+                    val = val.substr(0, 10) + "...";
388
+                }
389
+                return str + '>' + val + '</div>';
390
+            } else {
391
+                return '';
392
+            }
393
+        }
394
+        //操作
395
+        function Dispose(val, row) {
396
+            var Rows = row.Buttons;
397
+            //          alert(row.F_WorkOrderId);
398
+            var WorkOrderId = row.F_WorkOrderId;
399
+            var html = '';
400
+            if (row.F_WorkState == '1') {
401
+                html += '<a class="xg" onclick="redeploy(\'' + WorkOrderId + '\')">转派&nbsp</a>';
402
+            }
403
+            for (var i = 0; i < Rows.length; i++) {
404
+
405
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
406
+                if (html1) {
407
+                    html1 = html1.replace("data", val);
408
+                }
409
+                html += html1;
410
+
411
+            }
412
+
413
+            return html;
414
+        }
415
+
416
+        //转派
417
+        function redeploy(WorkOrderId) {
418
+            layer.open({
419
+                type: 2,
420
+                content: "../CommonHtml/zhuanpai.html?wid=" + WorkOrderId, //iframe的url,no代表不显示滚动条
421
+                title: '转派',
422
+                area: ['85%', '80%'], //宽高
423
+            });
424
+        }
425
+        //编辑
426
+        function bj(str) {
427
+            layer.open({
428
+                type: 2,
429
+                content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
430
+                title: '编辑工单',
431
+                area: ['96%', '85%'], //宽高
432
+            });
433
+        }
434
+        //删除
435
+        function move(str) {
436
+            layer.confirm('确定删除工单?', {
437
+                btn: ['是', '否'] //按钮
438
+            }, function () {
439
+                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
440
+                    ids: str,
441
+                    token: $.cookie("token")
442
+                }, function (result) {
443
+                    result = JSON.parse(result);
444
+                    if (result.state.toLowerCase() == "success") {
445
+                        layer.msg("删除成功");
446
+                        load();
447
+                    }
448
+                })
449
+            });
450
+        }
451
+        //提交
452
+        function tj(str) {
453
+            layer.confirm('确定要提交工单么?', {
454
+                btn: ['确定', '取消'] //按钮
455
+            }, function () {
456
+                //请求后台数据
457
+                /*发送请求*/
458
+                $.post(huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
459
+                    ids: str,
460
+                    token: $.cookie("token")
461
+                }, function (result) {
462
+                    result = JSON.parse(result);
463
+                    if (result.state.toLowerCase() == "success") {
464
+                        layer.msg("提交成功");
465
+                        load();
466
+                    }
467
+                })
468
+            });
469
+        }
470
+        //交办
471
+        function jb(str) {
472
+            layer.open({
473
+                type: 2,
474
+                content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
475
+                title: '工单交办',
476
+                area: ['87%', '80%'], //宽高
477
+            });
478
+        }
479
+
480
+        //领导批示
481
+        function lader(str) {
482
+            layer.open({
483
+                type: 2,
484
+                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
485
+                title: '领导批示',
486
+                area: ['60%', '80%'], //宽高
487
+            });
488
+        }
489
+        //市长批示
490
+        function city(str) {
491
+            layer.open({
492
+                type: 2,
493
+                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
494
+                title: '领导批示',
495
+                area: ['60%', '80%'], //宽高
496
+            });
497
+        }
498
+        //办理
499
+        function bl(str) {
500
+            layer.open({
501
+                type: 2,
502
+                content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
503
+                title: '办理工单',
504
+                area: ['60%', '80%'], //宽高
505
+            });
506
+        }
507
+        //督办
508
+
509
+        function Supervision(str) {
510
+            layer.open({
511
+                type: 2,
512
+                state: 1,
513
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
514
+                    '&state=1', //iframe的url,no代表不显示滚动条
515
+                title: '督办',
516
+                area: ['60%', '80%'], //宽高
517
+            });
518
+        }
519
+        //不督办
520
+        function ndb(str) {
521
+            layer.open({
522
+                type: 2,
523
+                state: 2,
524
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
525
+                    '&state=2', //iframe的url,no代表不显示滚动条
526
+                title: '不督办',
527
+                area: ['60%', '80%'], //宽高
528
+            });
529
+        }
530
+        //督查
531
+        function Supervision_(str) {
532
+            layer.open({
533
+                type: 2,
534
+                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
535
+                title: '监察',
536
+                area: ['60%', '80%'], //宽高
537
+            });
538
+        }
539
+        //强制结案
540
+        function StrongLawsuit(str) {
541
+            layer.open({
542
+                type: 2,
543
+                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
544
+                title: '强制结案',
545
+                area: ['60%', '80%'], //宽高
546
+            });
547
+        }
548
+        //回退BackDtail
549
+        function BackDtail(str) {
550
+            layer.open({
551
+                type: 2,
552
+                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
553
+                title: '工单回退',
554
+                area: ['60%', '80%'], //宽高
555
+            });
556
+        }
557
+        //查收
558
+        function cs(str) {
559
+            layer.confirm('确定要查收?', {
560
+                btn: ['是', '否'] //按钮
561
+            }, function () {
562
+                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
563
+                    workorderid: str,
564
+                    token: $.cookie("token")
565
+                }, function (result) {
566
+                    result = JSON.parse(result);
567
+                    if (result.state.toLowerCase() == "success") {
568
+                        layer.msg("查收成功");
569
+                        load();
570
+                    }
571
+                })
572
+            });
573
+        }
574
+        //收回
575
+        function sh(str) {
576
+            layer.confirm('确定要回收?', {
577
+                btn: ['是', '否'] //按钮
578
+            }, function () {
579
+                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
580
+                    workorderid: str,
581
+                    token: $.cookie("token")
582
+                }, function (result) {
583
+                    result = JSON.parse(result);
584
+                    if (result.state.toLowerCase() == "success") {
585
+                        layer.msg("回收");
586
+                        load();
587
+                    }
588
+                })
589
+            });
590
+        }
591
+        //强制回收
592
+        function recycles() {
593
+            layer.confirm('确定要强制退回吗?', {
594
+                btn: ['是', '否'] //按钮
595
+            });
596
+        }
597
+        //退回申请
598
+        function th(str) {
599
+            layer.open({
600
+                type: 2,
601
+                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
602
+                title: '申请退回工单',
603
+                area: ['60%', '80%'], //宽高
604
+            });
605
+        }
606
+        //审核退回申请
607
+        function shth(str) {
608
+            layer.open({
609
+                type: 2,
610
+                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
611
+                title: '审核退回申请',
612
+                area: ['60%', '80%'], //宽高
613
+            });
614
+        }
615
+        //办理
616
+        //			function th(str) {
617
+        //				layer.open({
618
+        //					type: 2,
619
+        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
620
+        //					title: '办理工单',
621
+        //					area: ['35%', '30%'], //宽高
622
+        //				});
623
+        //			}
624
+        //申请延时
625
+        function ys(str) {
626
+            layer.open({
627
+                type: 2,
628
+                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
629
+                title: '申请延时',
630
+                area: ['60%', '80%'], //宽高
631
+            });
632
+        }
633
+        //审核申请延时
634
+        function shys(str) {
635
+            layer.open({
636
+                type: 2,
637
+                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
638
+                title: '审核延时申请',
639
+                area: ['60%', '80%'], //宽高
640
+            });
641
+        }
642
+        //诉求回访
643
+        function hf(str) {
644
+            layer.open({
645
+                type: 2,
646
+                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
647
+                title: '工单回访',
648
+                area: ['60%', '80%'], //宽高
649
+            });
650
+        }
651
+        //重办工单
652
+        function cb(str) {
653
+            layer.open({
654
+                type: 2,
655
+                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
656
+                title: '重办工单',
657
+                area: ['60%', '80%'], //宽高
658
+            });
659
+        }
660
+        //审核
661
+        function audit(str) {
662
+            layer.open({
663
+                type: 2,
664
+                content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
665
+                title: '审核',
666
+                area: ['60%', '80%'], //宽高
667
+            });
668
+        }
669
+        //结案
670
+        function Lawsuit(str) {
671
+            layer.open({
672
+                type: 2,
673
+                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
674
+                title: '诉求单结案',
675
+                area: ['60%', '80%'], //宽高
676
+            });
677
+        }
678
+
679
+        $('.Appeal').click(function () {
680
+            layer.open({
681
+                type: 2,
682
+                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
683
+                title: '新增诉求',
684
+                area: ['85%', '80%'], //宽高
685
+            });
686
+        })
687
+        //上传文件
688
+        function upload() {
689
+            if (document.getElementById("upFile").files.length > 0) {
690
+                var formData = new FormData();
691
+                formData.append("upFile", document.getElementById("upFile").files[0]);
692
+                formData.append("token", $.cookie("token"));
693
+                $.ajax({
694
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
695
+                    type: "POST",
696
+                    data: formData,
697
+                    /**
698
+                     *必须false才会自动加上正确的Content-Type
699
+                     */
700
+                    contentType: false,
701
+                    /**
702
+                     * 必须false才会避开jQuery对 formdata 的默认处理
703
+                     * XMLHttpRequest会对 formdata 进行正确的处理
704
+                     */
705
+                    processData: false,
706
+                    success: function (result) {
707
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile")
708
+                            .outerHTML;
709
+                        $("#upFile").change(function () {
710
+                            upload();
711
+                        });
712
+                        var r = $.parseJSON(result);
713
+                        if (r.state.toLowerCase() == "success") {
714
+                            $(".fjnr").text(r.data);
715
+                            $("#scfj").show();
716
+                        }
717
+                    }
718
+                });
719
+            } else {
720
+                layer.confirm('请上传文件!', {
721
+                    btn: ['确定']
722
+                });
723
+            }
724
+        }
725
+        //来源
726
+        function LY(obj) {
727
+            obj.empty();
728
+            obj.append('<option selected="selected" value="">请选择</option>');
729
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
730
+                "token": $.cookie("token"),
731
+                id: 1
732
+            }, function (data) {
733
+                if (data.state.toLowerCase() == "success") {
734
+                    var content = data.data;
735
+                    $(content).each(function (i, n) {
736
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
737
+                            obj);
738
+                    })
739
+                }
740
+            })
741
+        }
742
+        //类别
743
+        function LB(obj) {
744
+            obj.empty();
745
+            obj.append('<option selected="selected" value="">请选择</option>');
746
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
747
+                "token": $.cookie("token"),
748
+                id: 2
749
+            }, function (data) {
750
+                if (data.state.toLowerCase() == "success") {
751
+                    var content = data.data;
752
+                    $(content).each(function (i, n) {
753
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
754
+                            obj);
755
+                    })
756
+                }
757
+            })
758
+        }
759
+        //		主题
760
+        function ZT(obj) {
761
+            obj.empty();
762
+            obj.append('<option selected="selected" value="">请选择</option>');
763
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
764
+                "token": $.cookie("token"),
765
+                id: 3
766
+            }, function (data) {
767
+                if (data.state.toLowerCase() == "success") {
768
+                    var content = data.data;
769
+                    $(content).each(function (i, n) {
770
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
771
+                            obj);
772
+                    })
773
+                }
774
+            })
775
+        }
776
+
777
+
778
+        function tree() {
779
+            $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
780
+                "token": $.cookie("token"),
781
+                //		"pid": pid
782
+            }, function (result) {
783
+                result = $.parseJSON(result);
784
+                $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
785
+            });
786
+        }
787
+        var setting1 = {
788
+            data: {
789
+                key: {
790
+                    name: "F_DeptName"
791
+                },
792
+                simpleData: {
793
+                    enable: true,
794
+                    idKey: "F_DeptId",
795
+                    pIdKey: "F_PartentId",
796
+                    rootPId: 0
797
+                }
798
+            },
799
+            callback: {
800
+                onClick: zTreeOnClick
801
+            }
802
+        };
803
+
804
+        function zTreeOnClick(event, treeId, treeNode) {
805
+            if (treeNode.level >= 1) {
806
+                $('.inps').val(treeNode.F_DeptName);
807
+                $("#PID").val(treeNode.F_DeptId);
808
+                $("#Dpment").val(treeNode.F_DeptName);
809
+                $(".Cleans").show();
810
+            }
811
+
812
+        };
813
+
814
+        $(".exportFile").click(function () {
815
+            var usercode_ = $("#ZX").val(); //坐席
816
+            if (usercode_ != null) {
817
+                $(usercode_).each(function (i, n) {
818
+                    var obj1 = "";
819
+                    obj1 = n + ",";
820
+                    usercodeID += obj1;
821
+                });
822
+            } else {
823
+                usercodeID = "";
824
+            }
825
+            // 调度员
826
+            var ddusercodeID = "";
827
+            var ddusercode_ = $("#yardman").val(); //坐席
828
+            if (ddusercode_ != null) {
829
+                $(ddusercode_).each(function (i, n) {
830
+                    var obj2 = "";
831
+                    obj2 = n + ",";
832
+                    ddusercodeID += obj2;
833
+                });
834
+            } else {
835
+                ddusercodeID = "";
836
+            }
837
+            var workid = $("#wids").val()
838
+            var key = $("#key").val() //=关键字
839
+            var tel = $("#tel").val() //=客户电话
840
+            var name = $("#name").val() //=客户名称
841
+            var usercode = usercodeID //=坐席工号
842
+            var ddusercode = ddusercodeID
843
+            var source = $("#source").val() //=来源&
844
+            var starttime = $("#starttime").val() //=开始时间
845
+            var endtime = $("#endtime").val() //=结束时间
846
+            var deptid = $("#PID").val()
847
+            var type = $("#type").val() //=工单类型
848
+            var bigtype = $("#bigtype").val()
849
+            var smalltype = $("#smalltype").val() //=小类别
850
+            var sourcearea = $("#sourceAreas").val() //区域
851
+            var state = $("#state").val() //=工单状态
852
+            var tab = 0;
853
+            var keyid = $("#keyid").val() //=关键词id
854
+
855
+            var url = huayi.config.callcenter_url + "WorkOrder/GetZXDealList?token=" + $.cookie("token");
856
+            url += "&workid=" + workid + "&state=" + state + "&type=" + type + "&tab=" + tab + "&key=" + key +
857
+                "&tel=" +
858
+                tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" +
859
+                source +
860
+                "&starttime=" + starttime + "&endtime=" + endtime + "&deptid=" + deptid + "&sourcearea=" +
861
+                sourcearea +
862
+                "&bigtype=" + bigtype + "&smalltype=" + smalltype + "&keyid=" + keyid + "&jianhang=4" +
863
+                "&isdc=1";
864
+            window.location.href = url;
865
+        })
866
+    </script>
867
+</body>
868
+
869
+</html>

+ 847 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/toSupervListProvincialPlatform.html

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

+ 3 - 3
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -51,9 +51,9 @@ huayi.config = {
51 51
                 
52 52
                 "<a class='xg' onclick='provincialPlatformSignup(\"data\")' title='省平台签收'>签收</a>", // 省平台签收35
53 53
         		"<a class='xg' onclick='provincialPlatformReturn(\"data\")' title='省平台退回'>退回</a>", // 省平台退回36
54
-                 "<a class='xg' onclick='provincialPlatformApplicationDelay(\"data\",\"1\")' title='省平台申请延时退回'>申请延时退回</a>", // 37省平台退回申请延时
55
-                "<a class='xg' onclick='provincialPlatformApplicationDelay(\"data\",0)' title='省平台申请延时退回'>申请延时</a>", //38 省平台退回申请延时
56
-                "<a class='xg' onclick='provincialPlatformFeedback(\"data\")' title='省平台反馈'>省平台结案</a>", // 省平台反馈39
54
+                "<a class='xg' onclick='provincialPlatformApplicationDelay(\"data\",\"1\")' title='省平台申请延时退回'>申请延时退回</a>", // 37省平台退回申请延时
55
+                "<a class='xg' onclick='provincialPlatformFeedback(\"data\")' title='省平台反馈'>省平台结案</a>", // 省平台反馈38
56
+                "<a class='xg' onclick='provincialPlatformApplicationDelay(\"data\",\"0\")' title='省平台申请延时'>申请延时</a>", //39 省平台退回申请延时
57 57
                 "<a class='xg' onclick='reportServiceWorkOrder(\"data\")' title='服务工单上报'>上报</a>", // 服务工单上报40
58 58
                 
59 59
 			],

+ 85 - 0
WebUI/CallCenterWeb.UI/chatWith.html

@@ -0,0 +1,85 @@
1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="UTF-8">
5
+		<script src="./Script/Common/huayi.load.js"></script>
6
+		<script src="./Script/Common/huayi.config.js"></script>
7
+		<link rel="stylesheet" href="css/init.css" />
8
+		<link rel="stylesheet" href="css/chat.css" />
9
+		<title>聊天窗口</title>
10
+	</head>
11
+	<body>
12
+		<div id="chat">
13
+			<div class="chat_left">
14
+				<ul>
15
+					
16
+				</ul>
17
+			</div>
18
+			<div class="chat_sidebar">
19
+				<div class="pic_card">
20
+					<div class="chat_sidebar_head">
21
+						<img class="ver_middle" src="img/chat_pic.jpg" alt="" width="40" height="40" />
22
+						<p class="chat_name">Coffce</p>
23
+					</div>
24
+					<div class="chat_sidebar_foot">
25
+						<input type="text" class="sidebar_foot_seach" placeholder="search user..." />
26
+					</div>
27
+				</div>
28
+			 	<div class="chat_sidebar_list">
29
+			 		<ul>
30
+			 			<!--<li class="actives">
31
+			 				<img class="ver_middle"  src="img/chat_list1.png" alt="" width="30" height="30"/>
32
+			 				<p class="chat_name">技术-小白</p>
33
+			 			</li>
34
+			 			<li>
35
+			 				<img class="ver_middle"  src="img/chat_list2.jpg" alt="" width="30" height="30"/>
36
+			 				<p class="chat_name">WebPack</p>
37
+			 			</li>-->
38
+			 		</ul>
39
+			 		
40
+			 	</div>
41
+			</div>
42
+			<div class="chat_main">
43
+				<div class="chat_person disnone">
44
+			 		<p class="chat_name"></p>
45
+				</div>
46
+				<div class="main_message">
47
+					<ul class="chatlist_con">
48
+						<!--<li>
49
+							<p class="message_time"><span>10:00</span></p>
50
+							<div class="message_mincon">
51
+				 				<img class="ver_middle"  src="img/chat_list1.png" alt="" width="30" height="30"/>
52
+				 				<div class="message_text">
53
+				 					Hello,这是一个基于Vue + Webpack构建的简单chat示例,聊天记录保存在localStorge。简单演示了Vue的基础特性和webpack配置。
54
+				 				</div>
55
+							</div>
56
+						</li>
57
+						<li>
58
+							<p class="message_time"><span>10:00</span></p>
59
+							<div class="message_mincon self">
60
+				 				<img class="ver_middle"  src="img/chat_pic.jpg" alt="" width="30" height="30"/>
61
+				 				<div class="message_text">
62
+				 					我知道吖
63
+				 				</div>
64
+							</div>
65
+						</li>-->
66
+						
67
+					</ul>
68
+				</div>
69
+				<div class="main_sendMessage disnone">
70
+					<textarea name="" rows="" cols="" placeholder="按Enter 发送" class="send_content"></textarea>
71
+				    
72
+				    <div class="send_btn">
73
+				    	<button class="sendTo">发送(S)</button>
74
+				    </div>
75
+				
76
+				</div>
77
+				
78
+			</div>
79
+			<input type="hidden" class="IsToAll" value="1"/>
80
+			<input type="hidden" class="RoleId" value="0"/>
81
+			<input type="hidden" class="UserId" value="0"/>
82
+		</div>
83
+		<script src="./js/chat.js"></script>
84
+	</body>
85
+</html>

+ 1 - 1
WebUI/CallCenterWeb.UI/login.html

@@ -108,6 +108,7 @@
108 108
 				if (!$.cookie("callcenter_url")) {
109 109
 					$.ajax({
110 110
 						type:"get",
111
+						// url:"http://k100.800100.net/SysConfig/GetConfig",
111 112
 						url: huayi.config.callcenter_url + "Login/GetAuAuthDate",
112 113
 						async:false,
113 114
 						success:function(res){
@@ -125,7 +126,6 @@
125 126
 							    }else{
126 127
 							    	window.location.href = "home.html";
127 128
 							    }
128
-							    
129 129
 							} else {
130 130
 								layer.confirm(res.message, {
131 131
 									icon: 2,

+ 145 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/commonHtml/addReply.html

@@ -0,0 +1,145 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../../Script/Common/huayi.load.js"></script>
7
+		<script src="../../Script/Common/huayi.config.js"></script>
8
+		<link rel="stylesheet"  href="../../css/init.css"/>
9
+		<title>知识库答复</title>
10
+		<style>
11
+			.m-kuang {
12
+				width: 50%;
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px;
19
+				outline: none;
20
+				vertical-align: middle;
21
+			}
22
+			table th {
23
+				width: 20%;
24
+				text-align: right;
25
+				border-top: 0!important;
26
+			}
27
+			table td {
28
+				border-top: 0!important;
29
+			}
30
+			.content {
31
+				margin-top: 15px;
32
+			}
33
+			.selectTwo{
34
+				width: 45%;
35
+				margin-right: 5%;
36
+			}
37
+			#SecondCategoryCode{
38
+				display: none;
39
+			}
40
+		</style>
41
+	</head>
42
+
43
+	<body class="gray-bg">
44
+		<div class="container-fluid wrapper-content animated fadeInRight">
45
+			<div class="content">
46
+				<table class="table">
47
+					<tr>
48
+						<th>
49
+							<b>标题:</b>
50
+						</th>
51
+						<td>
52
+							<input type="text " class="m-kuang zs_t" id="KINFO_KNAME" autocomplete="off" />
53
+						</td>
54
+					</tr>
55
+					<tr>
56
+						<th>生效时间:</th>
57
+	                    <td >
58
+	                        <input type="text" class="m-kuang zs_t" id="KINFO_BEGINDATE" class="" placeholder="请选择时间"/>
59
+	                    </td>
60
+					</tr>
61
+					<tr>
62
+						<th>失效时间:</th>
63
+	                    <td >
64
+	                        <input type="text" class="m-kuang zs_t" id="KINFO_DISABLEDATE" class="" placeholder="请选择时间" />
65
+	                    </td>
66
+					</tr>
67
+					<tr>
68
+						<th>
69
+							<b>内容:</b>
70
+						</th>
71
+						<td>
72
+							<textarea data-adaptheight id="KINFO_KCONTENT" name="content" style="width: 80%;height: 200px;"></textarea>
73
+						</td>
74
+					</tr>
75
+					<tr>
76
+						<td colspan="2" class="text-center">
77
+							<button class="btns tiJiao">提交</button>
78
+						</td>
79
+					</tr>
80
+				</table>
81
+			</div>
82
+
83
+		</div>
84
+
85
+		<script src="../../css/layer/layer.js"></script>
86
+		<script src="../../js/laydate/laydate.js"></script>
87
+		<script>
88
+			var id =helper.request.queryString("id")
89
+			var replyState =helper.request.queryString("replyState")
90
+			$(document).ready(function(){
91
+				if (replyState ==="1") {
92
+					url = "Affairs/kinfo_answer"
93
+				}else if (replyState ==="2"){
94
+					url = "Affairs/kinfo_againanswer"
95
+				}
96
+				console.log(url)
97
+				laydate.render({
98
+					elem: '#KINFO_BEGINDATE',
99
+					theme: '#00a1cb',
100
+					type: 'datetime',
101
+					format: 'yyyy-MM-dd HH:mm:ss'
102
+				});
103
+				laydate.render({
104
+					elem: '#KINFO_DISABLEDATE',
105
+					theme: '#00a1cb',
106
+					type: 'datetime',
107
+					format: 'yyyy-MM-dd HH:mm:ss'
108
+				});
109
+				if (replyState) {
110
+					
111
+				}
112
+			})
113
+			$('.tiJiao').click(function(){
114
+				add()
115
+			});
116
+			
117
+			function add(){
118
+				$.ajax({
119
+					type:"post",
120
+					url:huayi.config.callcenter_url+url,
121
+					async:true,
122
+					dataType:'json',
123
+					data:{
124
+						token:$.cookie("token"),
125
+						id:id,
126
+						KINFO_KNAME:$("#KINFO_KNAME").val(),	//知识标题
127
+						KINFO_KCONTENT:$("#KINFO_KCONTENT").val(), //知识内容
128
+						KINFO_BEGINDATE:$("#KINFO_BEGINDATE").val(),	//生效时间
129
+						KINFO_DISABLEDATE:$("#KINFO_DISABLEDATE").val()//失效时间
130
+					},
131
+					success:function(data){
132
+						if(data.state.toLowerCase()=="success"){
133
+							var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
134
+                    		parent.layer.close(index); //再执行关闭
135
+						  	parent.initTable(id);					 
136
+							parent.layer.msg("添加成功");
137
+						}
138
+					}
139
+				});
140
+			}
141
+		
142
+		</script>
143
+	</body>
144
+
145
+</html>

+ 105 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/commonHtml/refuseReply.html

@@ -0,0 +1,105 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../../Script/Common/huayi.load.js"></script>
7
+		<script src="../../Script/Common/huayi.config.js"></script>
8
+		<link rel="stylesheet"  href="../../css/init.css"/>
9
+		<title>知识库答复</title>
10
+		<style>
11
+			.m-kuang {
12
+				width: 50%;
13
+				background-color: #FFF;
14
+				background-image: none;
15
+				border: 1px solid #ccc;
16
+				border-radius: 1px;
17
+				color: inherit;
18
+				padding: 6px 12px;
19
+				outline: none;
20
+				vertical-align: middle;
21
+			}
22
+			table th {
23
+				width: 20%;
24
+				text-align: right;
25
+				border-top: 0!important;
26
+			}
27
+			table td {
28
+				border-top: 0!important;
29
+			}
30
+			.content {
31
+				margin-top: 15px;
32
+			}
33
+			.selectTwo{
34
+				width: 45%;
35
+				margin-right: 5%;
36
+			}
37
+			#SecondCategoryCode{
38
+				display: none;
39
+			}
40
+		</style>
41
+	</head>
42
+
43
+	<body class="gray-bg">
44
+		<div class="container-fluid wrapper-content animated fadeInRight">
45
+			<div class="content">
46
+				<table class="table">
47
+					
48
+					<tr>
49
+						<th>
50
+							<b>内容:</b>
51
+						</th>
52
+						<td>
53
+							<textarea data-adaptheight id="KINFO_REASON" name="content" style="width: 80%;height: 200px;"></textarea>
54
+						</td>
55
+					</tr>
56
+					<tr>
57
+						<td colspan="2" class="text-center">
58
+							<button class="btns tiJiao">提交</button>
59
+						</td>
60
+					</tr>
61
+				</table>
62
+			</div>
63
+
64
+		</div>
65
+
66
+		<script src="../../css/layer/layer.js"></script>
67
+		
68
+		<script>
69
+			var id =helper.request.queryString("id")
70
+			var url;
71
+			console.log(id)
72
+			$(document).ready(function(){
73
+				
74
+			})
75
+			
76
+			$('.tiJiao').click(function(){
77
+				add()
78
+			});
79
+			
80
+			function add(){
81
+				$.ajax({
82
+					type:"post",
83
+					url:huayi.config.callcenter_url+'Affairs/kinfo_refuse',
84
+					async:true,
85
+					dataType:'json',
86
+					data:{
87
+						token:$.cookie("token"),
88
+						id:id,
89
+						KINFO_REASON:$("#KINFO_REASON").val(),	//拒绝答复原因
90
+					},
91
+					success:function(data){
92
+						if(data.state.toLowerCase()=="success"){
93
+							var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
94
+                    		parent.layer.close(index); //再执行关闭
95
+						  	parent.initTable(id);					 
96
+							parent.layer.msg("拒绝成功");
97
+						}
98
+					}
99
+				});
100
+			}
101
+		
102
+		</script>
103
+	</body>
104
+
105
+</html>

+ 110 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/commonHtml/replyDetail.html

@@ -0,0 +1,110 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <script src="../../Script/Common/huayi.load.js"></script>
6
+    <script src="../../Script/Common/huayi.config.js"></script>
7
+    <title>知识库详情</title>
8
+    <style>
9
+    	.Table{
10
+    		margin-left: 120px;
11
+    		margin-top: 30px;
12
+    		font-size: 14px;
13
+    	}
14
+        .Table tbody tr{
15
+        	line-height: 30px;
16
+        	
17
+        }
18
+    </style>
19
+</head>
20
+<body>
21
+    <div class="container-fluid diff-wrapper">
22
+		<table class="Table" border="0" cellspacing="0" cellpadding="0">
23
+			<tbody>
24
+		        <tr>
25
+					<th>标题:</th>
26
+					<td><span id="KINFO_KNAME"></span></td>
27
+				</tr>
28
+				<tr>
29
+					<th>内容:</th>
30
+					<td><span id="KINFO_KCONTENT"></span></td>
31
+				</tr>
32
+				<tr>
33
+					<th>回复标题:</th>
34
+					<td><span id="ReKINFO_KNAME"></span></td>
35
+				</tr>
36
+				<tr>
37
+					<th>回复内容:</th>
38
+					<td><span id="ReKINFO_KCONTENT"></span></td>
39
+				</tr>
40
+				
41
+				<tr>
42
+					<th>生效时间:</th>
43
+					<td><span id="KINFO_BEGINDATE"></span></td>
44
+				</tr>
45
+				<tr>
46
+					<th>失效时间:</th>
47
+					<td><span id="KINFO_DISABLEDATE"></span></td>
48
+				</tr>
49
+				<tr>
50
+					<th>回复人:</th>
51
+					<td><span id="ReUser"></span></td>
52
+				</tr>
53
+				<tr>
54
+					<th>拒绝答复原因:</th>
55
+					<td><span id="KINFO_REASON"></span></td>
56
+				</tr>
57
+				<tr>
58
+					<th>退回原因:</th>
59
+					<td><span id="ReKINFO_REASON"></span></td>
60
+				</tr>
61
+				<tr>
62
+					<th>状态:</th>
63
+					<td><span id="F_State"></span></td>
64
+				</tr>
65
+				<tr>
66
+					<th>添加时间:</th>
67
+					<td><span id="F_CreateTime"></span></td>
68
+				</tr>
69
+			</tbody>
70
+		</table>
71
+
72
+    </div>
73
+    <script src="../js/common.js"></script>
74
+    <script>
75
+       var id = helper.request.queryString("id")
76
+		$(document).ready(function(){
77
+			getDetail()
78
+		})
79
+		function getDetail(){
80
+			$.ajax({
81
+				type:"get",
82
+				url:huayi.config.callcenter_url+"Affairs/GetKinfo",
83
+				dataType:'json',
84
+				async:false,
85
+				data:{
86
+					id:id	
87
+				},
88
+				success:function(res){
89
+					if(res.state.toLowerCase() === "success"){
90
+						var  dataDetail = res.data
91
+						$("#KINFO_KNAME").text(dataDetail.KINFO_KNAME) //知识库标题
92
+						$("#KINFO_KCONTENT").text(dataDetail.KINFO_KCONTENT)	//知识库内容
93
+						$("#ReKINFO_KNAME").text(dataDetail.ReKINFO_KNAME) //知识库回复标题
94
+						$("#ReKINFO_KCONTENT").text(dataDetail.ReKINFO_KCONTENT)	//知识库回复内容
95
+						$("#KINFO_BEGINDATE").text(dataDetail.KINFO_BEGINDATE) //知识库生效时间
96
+						$("#KINFO_DISABLEDATE").text(dataDetail.KINFO_DISABLEDATE)	//知识库失效时间
97
+						$("#ReUser").text(dataDetail.ReUser) //回复人
98
+						$("#KINFO_REASON").text(dataDetail.KINFO_REASON)	//知识库拒绝答复原因
99
+						$("#ReKINFO_REASON").text(dataDetail.ReKINFO_REASON) //知识库退回原因
100
+						$("#F_State").text(getStateString(dataDetail.F_State))	//状态 
101
+						$("#F_CreateTime").text(dataDetail.F_CreateTime)	//添加时间
102
+					}
103
+				}
104
+			});
105
+		}
106
+{
107
+	
108
+}    </script>
109
+</body>
110
+</html>

+ 30 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/SelectCategoryCode.js

@@ -0,0 +1,30 @@
1
+getDicValueList($("#FistCategoryCode"),38); //工单来源
2
+
3
+$("#FistCategoryCode").change(function(){
4
+	if ($("#FistCategoryCode").val()) {
5
+		$("#SecondCategoryCode").show()
6
+		getDicValueList($("#SecondCategoryCode"),$("#FistCategoryCode").val()); //工单来源
7
+	}else{
8
+		$("#SecondCategoryCode").hide()
9
+		$("#SecondCategoryCode").va('')
10
+	}
11
+})
12
+
13
+function getDicValueList(obj,id) {
14
+	obj.empty();
15
+	obj.append('<option selected="selected" value="">请选择</option>');
16
+	$.getJSON(
17
+		huayi.config.callcenter_url + "KeyValue/GetDicValueList", {
18
+			token: $.cookie("token"),
19
+			pid: id,
20
+		},
21
+		function(data) {
22
+			if(data.state.toLowerCase() == "success") {
23
+				var content = data.data;
24
+				$(content).each(function(i, n) {
25
+					$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
26
+				});
27
+			}
28
+		}
29
+	);
30
+}

+ 25 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/common.js

@@ -0,0 +1,25 @@
1
+// 获取知识库状态
2
+function getStateString(state){
3
+	var str = '';
4
+	switch (Number(state)){
5
+		case 0:
6
+			str =' 新提问'
7
+			break;
8
+		case 1:
9
+			str = ' 已答复'
10
+			break;
11
+		case 2:
12
+			str = ' 拒绝答复'
13
+			break;
14
+		case 3:
15
+			str = ' 已退回'
16
+			break;
17
+		case 4:
18
+			str = ' 重新答复'
19
+			break;
20
+		default:
21
+			
22
+			break;
23
+	}
24
+	return str
25
+}

+ 305 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/knowledgeReply.html

@@ -0,0 +1,305 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<!--<link rel="stylesheet" href="../css/layer/need/layer.css" />-->
9
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+		<link rel="stylesheet" href="../css/init.css" />
11
+		<title>知识库审核</title>
12
+		<style>
13
+			.toolBar {
14
+				padding: 15px 0;
15
+				border-bottom: 1px solid #ccc;
16
+			}
17
+			
18
+			.boxCon table th {
19
+				width: 20%;
20
+			}
21
+			
22
+			.boxCon table td textarea {
23
+				width: 100%;
24
+			}
25
+			
26
+			.inpBox {
27
+				border: 1px solid #a9a9a9;
28
+				height: 27px;
29
+				width: 55%;
30
+				display: inline-block;
31
+				position: relative;
32
+				vertical-align: middle;
33
+			}
34
+			
35
+			.inps1,
36
+			.inps4 {
37
+				width: 100%;
38
+				height: 24px;
39
+				outline: none;
40
+				border: 0;
41
+				border-image-width: 0;
42
+				padding: 0;
43
+				padding-left: 3px;
44
+			}
45
+			
46
+			.changeTitle,
47
+			.changeKey,
48
+			.addTitle,
49
+			.addKey {
50
+				width: 55%;
51
+			}
52
+			
53
+			.xl {
54
+				display: inline-block;
55
+				background: url(../img/dropDown.png) no-repeat;
56
+				height: 100%;
57
+				background-position: center center;
58
+				width: 20px;
59
+				position: absolute;
60
+				right: 0;
61
+				top: 0px;
62
+				background-color: #f7bc8b;
63
+				cursor: pointer;
64
+			}
65
+			
66
+			.xl:hover {
67
+				background-color: #e6d523;
68
+			}
69
+			
70
+			.addTree {
71
+				background: #fff;
72
+				position: absolute;
73
+				width: 100%;
74
+				border: 1px solid darkgrey;
75
+				right: 0;
76
+				top: 26px;
77
+				display: none;
78
+				height: 220px;
79
+				overflow-y: auto;
80
+			}
81
+			
82
+			.treeTable {
83
+				height: 400px;
84
+				/*overflow-y: auto;*/
85
+			}
86
+			
87
+			.tree {
88
+				height: 100%;
89
+			}
90
+			
91
+			.trTitle {
92
+				width: 100%;
93
+				height: 34px;
94
+				line-height: 34px;
95
+				border-bottom: 1px solid #ebebeb;
96
+				color: red;
97
+				font-weight: 700;
98
+				margin-bottom: 15px;
99
+			}
100
+			
101
+			.treeCon {
102
+				border: 1px solid #ebebeb;
103
+				overflow-y: auto;
104
+			}
105
+			
106
+			.ztree li {
107
+				width: 100%;
108
+				overflow: hidden;
109
+				white-space: nowrap;
110
+				text-overflow: ellipsis;
111
+			}
112
+			
113
+			.content {
114
+				width: 270px;
115
+				height: 25px;
116
+				overflow: hidden;
117
+				white-space: nowrap;
118
+				text-overflow: ellipsis;
119
+				text-align: left;
120
+			}
121
+			
122
+			.detail {
123
+				width: 80%;
124
+				display: block;
125
+				margin: 0 auto;
126
+			}
127
+		</style>
128
+	</head>
129
+
130
+	<body class="gray-bg">
131
+		<div class="container-fluid wrapper-content animated fadeInRight">
132
+			<div class="daoHang clearfix">
133
+				<div class="dhLeft">
134
+					<sapn><i class="syIcon"></i>位置:
135
+						<a id="ReIndex">首页</a>&gt;
136
+						<a href="javaScript:;">知识库</a>&gt;
137
+						<a href="" class="nowPosition">知识库答复</a>
138
+					</sapn>
139
+				</div>
140
+				<div class="dhRight">
141
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
142
+				</div>
143
+			</div>
144
+			<div class="toolBar clearfix">
145
+				<div class="toolRight">
146
+					<span>
147
+                    	答复状态:<select name="" id="replyState" class="select_">
148
+                        <option value="-1">全部</option>
149
+                        <option value="0">新提问</option>
150
+                        <option value="1">已答复</option>
151
+                        <option value="2">拒绝答复</option>
152
+                        <option value="3">已退回</option>
153
+                        <option value="4">重新答复</option>
154
+                    </select>
155
+                </span>
156
+					<button class="btns searchGo">搜索</button>
157
+				</div>
158
+
159
+			</div>
160
+			<div class="treeTable clearfix">
161
+
162
+				<div class="tableCon col-md-12">
163
+					<table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
164
+						<thead>
165
+							<tr>
166
+								<th data-checkbox="true" data-align="center"></th>
167
+								<th data-align="center" data-formatter="setCode">编号</th>
168
+								<th data-field="KINFO_KNAME" data-align="left">知识库标题</th>
169
+								<th data-field="KINFO_KCONTENT" data-align="left">知识库内容</th>
170
+								
171
+								<!--<th data-field="ReKINFO_KNAME" data-align="center">知识库回复标题</th>
172
+								<th data-field="ReKINFO_KCONTENT" data-align="left">知识库回复内容</th>
173
+								<th data-field="ReUser" data-align="center">回复人</th>-->
174
+								
175
+								<th data-field="F_State" data-formatter="states" data-align="center">状态</th>
176
+								<th data-field="F_CreateTime" data-align="center">创建时间</th>
177
+								<th data-align="center" data-formatter="caoZuo">操作</th>
178
+							</tr>
179
+						</thead>
180
+						<tbody id="tbody"></tbody>
181
+					</table>
182
+
183
+				</div>
184
+			</div>
185
+
186
+		</div>
187
+		<script src="../css/layer/layer.js"></script>
188
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
189
+		<script src="../js/kindeditor/kindeditor-all-min.js"></script>
190
+		<script src="../js/kindeditor/lang/zh-CN.js"></script>
191
+		<script  src="./js/common.js"></script>
192
+		<script>
193
+			var token = $.cookie("token");
194
+			var table = $('#table1');
195
+			var action = $('#action').val(); //动作
196
+			var isPass = $('#isPass').val(); //是否审核
197
+
198
+			//搜索
199
+			$('.searchGo').click(function() {
200
+				action = $('#action').val();
201
+				isPass = $('#isPass').val();
202
+				initTable(action, isPass);
203
+			})
204
+
205
+			initTable(action, isPass);
206
+
207
+			function initTable(action, isPass) {
208
+				//先销毁表格
209
+				table.bootstrapTable('destroy');
210
+				//初始化表格,动态从服务器加载数据
211
+				table.bootstrapTable({
212
+					method: "get", //使用get请求到服务器获取数据
213
+					url: huayi.config.callcenter_url + "Affairs/GetKinfoList", //获取数据的Servlet地址
214
+					contentType: "application/x-www-form-urlencoded",
215
+					striped: true, //表格显示条纹
216
+					pagination: true, //启动分页
217
+					pageSize: 10, //每页显示的记录数
218
+					pageNumber: 1, //当前第几页
219
+					pageList: [10, 20, 50, 100], //记录数可选列表
220
+					search: false, //是否启用查询
221
+					showColumns: false, //显示下拉框勾选要显示的列
222
+					showRefresh: false, //显示刷新按钮
223
+					sidePagination: "server", //表示服务端请求
224
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
225
+					//设置为limit可以获取limit, offset, search, sort, order
226
+					queryParamsType: "undefined",
227
+					queryParams: function queryParams(params) { //设置查询参数
228
+						var param = {
229
+							page: params.pageNumber,
230
+							pagesize: params.pageSize,
231
+							token: $.cookie("token"),
232
+							state:$("#replyState").val()
233
+						};
234
+						return param;
235
+					},
236
+					onLoadSuccess: function() { //加载成功时执行
237
+						//layer.msg("加载成功");
238
+					},
239
+					onLoadError: function() { //加载失败时执行
240
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
241
+					}
242
+				});
243
+			}
244
+
245
+			function setCode(val, row, index) {
246
+				return index + 1;
247
+			}
248
+
249
+			function states(val) {
250
+				return '<div class="imgs">'+getStateString(val)+'</div>';
251
+			}
252
+
253
+			function caoZuo(val, row) {
254
+				var htm = ''
255
+				if (row.F_State ==0) {
256
+					htm = '<div><button class="btns"  onclick="reply(' + row.F_ID + ')">回复按钮</button>'+
257
+					'<button class="btns"  onclick="refuseReply(' + row.F_ID + ')">拒绝回复</button>'
258
+				} else if(row.F_State ==3){
259
+					htm = '<div><button class="btns"  onclick="reinstate(' + row.F_ID + ')">重新回复</button>'
260
+				}
261
+				htm += '<button class="btns"  onclick="seeConDetail(' + row.F_ID + ')">查看详情</button></div>'
262
+				return htm
263
+			}
264
+			//知识库答复
265
+			function reply(id){
266
+				layer.open({
267
+					type: 2,
268
+					content: "./commonHtml/addReply.html?id="+id+'&replyState=1', //iframe的url,no代表不显示滚动条
269
+					title: '知识库答复',
270
+					area: ['60%', '80%'], //宽高
271
+				});
272
+			}
273
+			//拒绝回复
274
+			function refuseReply(id){
275
+				layer.open({
276
+					type: 2,
277
+					content: "./commonHtml/refuseReply.html?id="+id, //iframe的url,no代表不显示滚动条
278
+					title: '知识库拒绝答复',
279
+					area: ['60%', '80%'], //宽高
280
+				});
281
+			}
282
+			// 重新回复
283
+			function reinstate(id){
284
+				layer.open({
285
+					type: 2,
286
+					content: "./commonHtml/addReply.html?id="+id+'&replyState=2', //iframe的url,no代表不显示滚动条
287
+					title: '知识库重新答复',
288
+					area: ['60%', '80%'], //宽高
289
+				});
290
+			}
291
+
292
+			function seeConDetail(id) {
293
+
294
+				layer.open({
295
+					type: 2,
296
+					content:  "./commonHtml/replyDetail.html?id="+id, //iframe的url,no代表不显示滚动条
297
+					title: '查看内容详情',
298
+					area: ['60%', '70%'], //宽高
299
+				});
300
+				
301
+			}
302
+		</script>
303
+	</body>
304
+
305
+</html>