liuzhihui 2 years ago
parent
commit
161de41aae

+ 1 - 1
WebUI/CallCenterWeb.UI/Appeal/integratedQuery.html

@@ -567,7 +567,7 @@
567 567
                     html1 = html1.replace("isProtect", row.F_IsProtect);
568 568
                     html1 = html1.replace("row", row.F_MainDeptId);
569 569
                     html1 = html1.replace("zhcxtit", row.F_ComTitle); 
570
-                    html1 = html1.replace("zhcxcon", row.F_ComContent);                                     
570
+                    html1 = html1.replace("zhcxcon", row.F_Result);                                     
571 571
                 }
572 572
                 html += html1;
573 573
             }

+ 2 - 2
WebUI/CallCenterWeb.UI/Business/WorkXJDWTH.html

@@ -798,9 +798,9 @@
798 798
         function Refuse(str) {
799 799
             layer.open({
800 800
                 type: 2,
801
-                content: "../CommonHtml/refuse.html?wid=" + str, //iframe的url,no代表不显示滚动条
801
+                content: "../CommonHtml/refuseList.html?wid=" + str, //iframe的url,no代表不显示滚动条
802 802
                 title: "拒绝",
803
-                area: ["60%", "80%"], //宽高
803
+                area: ["80%", "80%"], //宽高
804 804
             });
805 805
         }
806 806
 

+ 1 - 1
WebUI/CallCenterWeb.UI/Business/haveDoneToAudit.html

@@ -469,7 +469,7 @@
469 469
                     html1 = html1.replace("isProtect", row.F_IsProtect);
470 470
                     html1 = html1.replace("row", row.F_MainDeptId);
471 471
                     html1 = html1.replace("zhcxtit", row.F_ComTitle); 
472
-                    html1 = html1.replace("zhcxcon", row.F_ComContent);
472
+                    html1 = html1.replace("zhcxcon", row.F_Result);
473 473
                 }
474 474
                 bl
475 475
                 html += html1;

+ 1 - 1
WebUI/CallCenterWeb.UI/Business/integratedQuery.html

@@ -567,7 +567,7 @@
567 567
                     html1 = html1.replace("isProtect", row.F_IsProtect);
568 568
                     html1 = html1.replace("row", row.F_MainDeptId);
569 569
                     html1 = html1.replace("zhcxtit", row.F_ComTitle); 
570
-                    html1 = html1.replace("zhcxcon", row.F_ComContent);                                     
570
+                    html1 = html1.replace("zhcxcon", row.F_Result);                                     
571 571
                 }
572 572
                 html += html1;
573 573
             }

+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeal.html

@@ -648,7 +648,7 @@
648 648
 								$(".F_WorkState").val(Data[0].F_WorkState)
649 649
 								$("#isYingshang").val(Data[0].F_IsBusiness)
650 650
 								var cusPhone = decryptFn(Data[0].F_CusPhoneShow)
651
-								var conPhone = decryptFn(Data[0].F_ConPhoneShow)
651
+								var conPhone = decryptFn(Data[0].F_ConPhoneShow || Data[0].F_CusPhoneShow)
652 652
 								$("#cusname").val(Data[0].F_CusName);
653 653
 								$("#cusphone").val(cusPhone);
654 654
 								$("#conphone").val(conPhone);

+ 13 - 3
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -1020,7 +1020,7 @@
1020 1020
 							html1 = html1.replace("row", row.F_MainDeptId);
1021 1021
 							html1 = html1.replace("state", row.F_WorkState);
1022 1022
 							html1 = html1.replace("zhcxtit", row.F_ComTitle); 
1023
-                            html1 = html1.replace("zhcxcon", row.F_ComContent); 
1023
+                            html1 = html1.replace("zhcxcon", row.F_Result); 
1024 1024
 						}
1025 1025
 						html += html1;
1026 1026
 					}
@@ -1132,13 +1132,13 @@
1132 1132
 												$(".F_ConPhone").hide()												
1133 1133
 											} else {
1134 1134
 												$(".F_CusPhone").text(decryptFn(Data[0].F_CusPhoneShow))
1135
-												$(".F_ConPhone").text(decryptFn(Data[0].F_ConPhoneShow));
1135
+												$(".F_ConPhone").text(decryptFn(Data[0].F_ConPhoneShow || Data[0].F_CusPhoneShow));
1136 1136
 												$(".phoneTitle").unbind("click");
1137 1137
 												$(".phoneTitle2").unbind("click");
1138 1138
 												
1139 1139
 											}
1140 1140
 											phoneNumber = decryptFn(Data[0].F_CusPhoneShow)
1141
-											phoneNumber2 = decryptFn(Data[0].F_ConPhoneShow)
1141
+											phoneNumber2 = decryptFn(Data[0].F_ConPhoneShow || Data[0].F_CusPhoneShow)
1142 1142
 											
1143 1143
 										} else {
1144 1144
 											$(".phoneTitle").unbind("click");
@@ -2619,6 +2619,16 @@
2619 2619
 					shade: 0,
2620 2620
 				});
2621 2621
 			}
2622
+			//重办工单
2623
+            function cb(str) {
2624
+                layer.open({
2625
+                    type: 2,
2626
+                    content: "../CommonHtml/AddAppeal.html?wid=" + str +
2627
+                        "&workType=cb", //iframe的url,no代表不显示滚动条
2628
+                    title: "重办工单",
2629
+                    area: ["95%", "95%"], //宽高
2630
+                });
2631
+            }
2622 2632
 
2623 2633
 			function redeploy(WorkOrderId) {
2624 2634
 				layer.open({

+ 2 - 1
WebUI/CallCenterWeb.UI/CommonHtml/XGbanli.html

@@ -101,7 +101,7 @@
101 101
     <script src="../Script/Common/huayi.common.js"></script>
102 102
     <script>
103 103
         var wid = helper.request.queryString("wid");
104
-
104
+        var fid = helper.request.queryString("fid");
105 105
         $(document).ready(function () {
106 106
             XQ()
107 107
             $('.BC').click(function () {
@@ -112,6 +112,7 @@
112 112
             function JA() {
113 113
                 $.post(huayi.config.callcenter_url + 'WorkOrder/EditDealWorkOrder', {
114 114
                     workorderid: wid,
115
+                    feedbackid: fid,
115 116
                     result: $('#assignedopinion').val(), //交办意见
116 117
                     flies: $("#file").val(),
117 118
                     token: $.cookie("token")

+ 2 - 2
WebUI/CallCenterWeb.UI/CommonHtml/handle.html

@@ -188,7 +188,7 @@
188 188
                 <tr>
189 189
                     <th style=" text-align: center;">交办单位:</th>
190 190
                     <td colspan="2" style="width: 200px;">
191
-                        <select id="jbSelect" name="select" class="selectpicker show-tick  form-control"
191
+                        <select id="jbSelect" name="select" multiple="multiple" class="selectpicker show-tick  form-control"
192 192
                             data-live-search="true">
193 193
                         </select>
194 194
                     </td>
@@ -543,7 +543,7 @@
543 543
                 //return
544 544
                 $.post(huayi.config.callcenter_url + 'WorkOrder/SplitWorkOrder', {
545 545
                     workorderid: wid,
546
-                    maindeptid: $("#jbSelect").val(), //承办单位
546
+                    maindeptid: $("#jbSelect").val().join(','), //承办单位
547 547
                     otherdeptids: xbSelectID, //协办单位
548 548
                     assignedopinion: $('#assignedopinion').val(), //交办意见
549 549
                     state: State,

+ 44 - 26
WebUI/CallCenterWeb.UI/CommonHtml/processing_audit.html

@@ -71,10 +71,10 @@
71 71
                 <input type="hidden" id="ID" />
72 72
             </tr> -->
73 73
         </table>
74
-        <div class="btn_box">
74
+        <!--<div class="btn_box">
75 75
             <button class="btns BC">同意</button>
76 76
             <button class="btns Submit">拒绝</button>
77
-        </div>
77
+        </div>-->
78 78
     </div>
79 79
     <script src="../css/laydate/laydate.js"></script>
80 80
     <script src="../js/adjustHeight.js"></script>
@@ -82,6 +82,7 @@
82 82
         var wid = helper.request.queryString("wid");
83 83
         var State;
84 84
         var a = $("#ID").val()
85
+        var nid = '';
85 86
         Detail();
86 87
         $(document).ready(function () {
87 88
             //				HGXX();
@@ -98,24 +99,24 @@
98 99
                 $(".fjnr").text("");
99 100
                 $("#scfj").hide();
100 101
             })
101
-            $('.BC').click(function () {
102
-                // if ($("#reason").val() == "") {
103
-                //     layer.msg("请填写审核意见");
104
-                // } else {
105
-                State = 1;
106
-                JA();
107
-                // }
108
-
109
-            })
110
-            $('.Submit').click(function () {
111
-                layer.open({
112
-                    type: 2,
113
-                    content: "./processing_refuse.html?wid=" + wid + "&backid=" +
114
-                        ccc, //iframe的url,no代表不显示滚动条
115
-                    title: "拒绝",
116
-                    area: ["60%", "80%"], //宽高
117
-                });
118
-            })
102
+//          $('.BC').click(function () {
103
+//              // if ($("#reason").val() == "") {
104
+//              //     layer.msg("请填写审核意见");
105
+//              // } else {
106
+//              State = 1;
107
+//              JA();
108
+//              // }
109
+//
110
+//          })
111
+//          $('.Submit').click(function () {
112
+//              layer.open({
113
+//                  type: 2,
114
+//                  content: "./processing_refuse.html?wid=" + wid + "&backid=" +
115
+//                      ccc, //iframe的url,no代表不显示滚动条
116
+//                  title: "拒绝",
117
+//                  area: ["60%", "80%"], //宽高
118
+//              });
119
+//          })
119 120
         });
120 121
         //审批意见
121 122
         function JA() {
@@ -123,7 +124,7 @@
123 124
                 workorderid: wid,
124 125
                 // reason: $('#reason').val(), //办理内容
125 126
                 state: State,
126
-                backid: ccc,
127
+                backid: nid,
127 128
                 token: $.cookie("token")
128 129
             }, function (result) {
129 130
                 result = JSON.parse(result);
@@ -292,12 +293,14 @@
292 293
                                 //         19) + '</a></div>';
293 294
                                 temp1 += FileHtml;
294 295
                             })
295
-                            if(i == ejbldata.length-1){
296
+                            if(n.F_IsAudit == 0){
296 297
                             	temp1 += "</td>" +
297 298
                                 '<td class="text-center authority"><button class="btns edit" index="' +
298 299
                                 n
299
-                                .F_WorkOrderId + '">修改</button></td>' +
300
-                                '</tr>'
300
+                                .F_Id + '">修改</button>'
301
+                                temp1 += '<button class="btns BC" index="' + n.F_Id + '">同意</button>'
302
+                                temp1 += '<button class="btns Submit" index="' + n.F_Id + '">拒绝</button></td></tr>'
303
+                                
301 304
                             }                          
302 305
                             ccc = n.F_Id;
303 306
                         });
@@ -313,12 +316,27 @@
313 316
                             var index = $(this).attr('index');
314 317
                             layer.open({
315 318
                                 type: 2,
316
-                                content: "../CommonHtml/XGbanli.html?wid=" +
317
-                                    index, //iframe的url,no代表不显示滚动条
319
+                                content: "../CommonHtml/XGbanli.html?wid=" + wid+"&fid="+index, //iframe的url,no代表不显示滚动条
318 320
                                 title: '修改办理结果',
319 321
                                 area: ['60%', '55%'], //宽高
320 322
                             });
321 323
                         })
324
+	                    $('.BC').click(function () {
325
+	                    	var index = $(this).attr('index');
326
+	                    	nid = index;
327
+			                State = 1;
328
+			                JA();			
329
+			            })
330
+			            $('.Submit').click(function () {
331
+			            	var index = $(this).attr('index');
332
+			                layer.open({
333
+			                    type: 2,
334
+			                    content: "./processing_refuse.html?wid=" + wid + "&backid=" +
335
+			                        index, //iframe的url,no代表不显示滚动条
336
+			                    title: "拒绝",
337
+			                    area: ["60%", "80%"], //宽高
338
+			                });
339
+			            })
322 340
                     }
323 341
                 }
324 342
             })

+ 7 - 3
WebUI/CallCenterWeb.UI/CommonHtml/refuse.html

@@ -14,7 +14,7 @@
14 14
     <div class="Common">
15 15
         <table>
16 16
             <tr>
17
-                <th class="Importent">拒绝原因:</th>
17
+                <th class="Importent">原因:</th>
18 18
                 <td colspan="2">
19 19
                     <textarea data-adaptheight id="refuseReason" name="" rows="" cols=""></textarea>
20 20
                 </td>
@@ -28,10 +28,12 @@
28 28
     <script src="../js/adjustHeight.js"></script>
29 29
     <script>
30 30
         var wid = helper.request.queryString("wid");
31
+        var fid = helper.request.queryString("fid"); 
32
+        var state = helper.request.queryString("state");
31 33
         $(document).ready(function () {
32 34
             $(".btns").click(function () {
33 35
                 if ($("#refuseReason").val() == "") {
34
-                    layer.msg("拒绝原因不为空");
36
+                    layer.msg("原因不为空");
35 37
                 } else {
36 38
                     JA();
37 39
                 }
@@ -42,6 +44,8 @@
42 44
             $.post(
43 45
                 huayi.config.callcenter_url + "WorkOrder/RejectWorkOrder", {
44 46
                     workorderid: wid,
47
+                    nextinfoid: fid,
48
+                    state: state,
45 49
                     reason: $("#refuseReason").val(),
46 50
                     token: $.cookie("token"),
47 51
                 },
@@ -57,7 +61,7 @@
57 61
                             var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
58 62
                             parent.layer.close(index); //再执行关闭
59 63
                             parent.$("#orderlist").bootstrapTable("refresh");
60
-                            parent.layer.msg("拒绝成功");
64
+                            parent.layer.msg("操作成功");
61 65
                         }
62 66
                     }
63 67
                 }

+ 271 - 0
WebUI/CallCenterWeb.UI/CommonHtml/refuseList.html

@@ -0,0 +1,271 @@
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 href="../css/layer/need/layer.css" />
9
+    <link rel="stylesheet" href="../css/init.css" />
10
+    <title>办理工单</title>
11
+    <style>
12
+        .input {
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
+        }
20
+
21
+        .fjnr {
22
+            padding: 0 !important;
23
+            border: none !important;
24
+        }
25
+
26
+        .HGXX td {
27
+            padding: 8px;
28
+        }
29
+    </style>
30
+</head>
31
+
32
+<body>
33
+    <div class="Common" style="padding: 10px;">
34
+        <table class="table" border="" cellspacing="0" cellpadding="0"
35
+            style="border: 1px solid #e7eaec; text-align: center;">
36
+            <theard>
37
+				<tr>
38
+					<td class="text-center" style="width:60px;">次数</td>
39
+					<td class="text-center" style="width:114px;">交办时间</td>
40
+					<td class="text-center" style="width:114px;">办理时限</td>
41
+					<td class="text-center" style="min-width:80px;">承办单位</td>
42
+					<td class="text-center" style="min-width:80px;">协办单位</td>
43
+					<td class="text-center" style="min-width: 200px;">交办意见</td>
44
+					<td class="text-center" style="min-width:100px;">拒收原因</td>
45
+					<td class="text-center" style="min-width:80px;">附件</td>
46
+					 <td class="text-center authority" style="min-width: 100px;">操作</td> 
47
+				</tr>
48
+			</theard>
49
+            <tbody class="EJJBXX" style="border-top: none; padding: 8px;">
50
+            </tbody>
51
+        </table>
52
+    </div>
53
+	<script src="../js/jquery-photo-gallery/jquery.photo.gallery.js"></script>
54
+    <script src="../css/laydate/laydate.js"></script>
55
+    <script src="../js/adjustHeight.js"></script>
56
+    <script>
57
+        var wid = helper.request.queryString("wid");
58
+        var State;
59
+        var a = $("#ID").val()
60
+        getDetail();
61
+//      Detail();
62
+//          Hove();
63
+        $(document).ready(function () {
64
+            //上传附件
65
+            $("#scwj").click(function () {
66
+                $("#upFile").trigger("click");
67
+            })
68
+            $("#upFile").change(function () {
69
+                upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");					               
70
+            })
71
+            $("#scfj").click(function () {
72
+                $(".fjnr").text("");
73
+                $("#scfj").hide();
74
+            })
75
+//          $('.BC').click(function () {
76
+//              // if ($("#reason").val() == "") {
77
+//              //     layer.msg("请填写审核意见");
78
+//              // } else {
79
+//              State = 1;
80
+//              JA();
81
+//              // }
82
+//
83
+//          })
84
+//          $('.Submit').click(function () {
85
+//              layer.open({
86
+//                  type: 2,
87
+//                  content: "./processing_refuse.html?wid=" + wid + "&backid=" +
88
+//                      ccc, //iframe的url,no代表不显示滚动条
89
+//                  title: "拒绝",
90
+//                  area: ["60%", "80%"], //宽高
91
+//              });
92
+//          })
93
+        });
94
+        //审批意见
95
+//      function JA() {
96
+//          $.post(huayi.config.callcenter_url + 'WorkOrder/AuditSplitWorkOrder', {
97
+//              workorderid: wid,
98
+//              // reason: $('#reason').val(), //办理内容
99
+//              state: State,
100
+//              backid: ccc,
101
+//              token: $.cookie("token")
102
+//          }, function (result) {
103
+//              result = JSON.parse(result);
104
+//              if (result.state.toLowerCase() == "success") {
105
+//                  var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
106
+//                  parent.layer.close(index); //再执行关闭
107
+//                  parent.$('#orderlist').bootstrapTable('refresh');
108
+//                  parent.layer.msg("处理成功");
109
+//              }
110
+//          })
111
+//      }
112
+
113
+        // 获取详情
114
+        function getDetail() {
115
+            $.ajax({
116
+                type: "get",
117
+                url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
118
+                dataType: 'json',
119
+                async: false,
120
+                data: {
121
+                    workorderid: wid,
122
+                    type: 1,
123
+                    token: $.cookie("token")
124
+                },
125
+                success: function (result) {
126
+                    var content = result.data;
127
+                    if (result.state.toLowerCase() == "success") {
128
+                    	var ejjbxx = '';
129
+						$(".EJJBXX").empty();
130
+						$(result.data.ejjbdata).each(function(j, n) {
131
+							if(n.F_IsSure != 3){
132
+								return;
133
+							}
134
+							var OtherDeptName = n.OtherDeptName == null ? '-' :
135
+								n
136
+								.OtherDeptName;
137
+							ejjbxx += '<tr><td class="text-center">' + (j + 1) + '</td>' +
138
+								'<td class="text-center">' + n.F_CreateTime +
139
+								'</td>' +
140
+								'<td class="text-center">' + n.F_LimitTime +
141
+								'</td>' +
142
+								'<td class="text-center">' + n.DeptName +
143
+								'</td>' +
144
+								'<td class="text-center">' + OtherDeptName +
145
+								'</td>' +
146
+								'<td class="text-center">' + n
147
+								.F_AssignedOpinion +
148
+								'</td>' +'<td class="text-center">' + n
149
+								.F_Remark +
150
+								'</td>';
151
+							ejjbxx += '<td class="gallerys">'
152
+							var FileHtml;
153
+							$(n.File).each(function(j, m) {
154
+								if(m.F_FileType == ".jpg" || m
155
+									.F_FileType == ".png") {
156
+									FileHtml =
157
+										'<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
158
+										m.F_FileUrl + '" alt="' + m
159
+										.F_FileName +
160
+										'" fileId="' + m.F_FileId + '">'
161
+								} else {
162
+									FileHtml =
163
+										'<div><a style="margin-right:5px;" target="view_window" href="' +
164
+										m.F_FileUrl + '" download="' + m
165
+										.F_FileName + '">' + m
166
+										.F_FileName.substring(19) + '</a></div>'
167
+								}
168
+								ejjbxx += FileHtml;
169
+							})
170
+							ejjbxx += "</td>" +
171
+                                '<td class="text-center authority"><button class="btns refusedit" index="' +
172
+                                n.F_Id + '">拒绝</button>' +
173
+                                '<button class="btns tongyiedit" index="' +
174
+                                n.F_Id + '">同意</button></td>' +
175
+                                '</tr>'
176
+						})
177
+						$(ejjbxx).appendTo($('.EJJBXX'));
178
+                    }
179
+                }     
180
+            })
181
+        }
182
+        $('.refusedit').click(function(){
183
+        	var index = $(this).attr('index');
184
+        	layer.open({
185
+                type: 2,
186
+                content: "./refuse.html?wid=" + wid+"&fid="+index+"&state=1", //iframe的url,no代表不显示滚动条
187
+                title: "拒绝",
188
+                area: ["60%", "80%"], //宽高
189
+            });
190
+        })
191
+        $('.tongyiedit').click(function(){
192
+        	var index = $(this).attr('index');
193
+        	layer.open({
194
+                type: 2,
195
+                content: "./refuse.html?wid=" + wid+"&fid="+index+"&state=0", //iframe的url,no代表不显示滚动条
196
+                title: "同意",
197
+                area: ["60%", "80%"], //宽高
198
+            });
199
+        })
200
+
201
+        //	判断附件
202
+//      function Hove() {
203
+//          $(document).on("mouseover mouseout", '.tiaozhuan', function (event) {
204
+//              if (event.type == "mouseover") {
205
+//                  //鼠标悬浮
206
+//                  var miao = $(this).attr("href");
207
+//                  if (miao == "") {
208
+//                      $(this).removeAttr("href");
209
+//                      $(this).removeAttr("download");
210
+//                      $(this).html("")
211
+//                  } else {
212
+//                      $(this).attr("href");
213
+//                      $(this).attr("download");
214
+//                  }
215
+//              } else if (event.type == "mouseout") {
216
+//                  //鼠标离开
217
+//              }
218
+//          })
219
+//
220
+//      }
221
+        //草稿详情
222
+//      function Detail() {
223
+//          $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
224
+//              workorderid: wid,
225
+//              type: 2,
226
+//              token: $.cookie("token")
227
+//          }, function (result) {
228
+//              if (result.state.toLowerCase() == "success") {
229
+//                  if (result.data.length > 0) {
230
+//                      $("#dealman").val(result.data[0].F_DealUser);
231
+//                      $('#result').val(result.data[0].F_Result);
232
+//                      a = result.data[0].F_Id;
233
+//                  };
234
+//              }
235
+//          })
236
+//      }
237
+        //清除
238
+        function Clean() {
239
+            $("#startTime").val(''),
240
+                $('#assignedopinion').val('')
241
+        }
242
+        // 关闭页面
243
+        function closePage() {
244
+            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
245
+            parent.layer.close(index); //再执行关闭
246
+            parent.$('#orderlist').bootstrapTable('refresh');
247
+        }
248
+
249
+        function viewImage(file) {
250
+            var json = {
251
+                "title": "", //相册标题
252
+                "id": 1, //相册id
253
+                "start": 0, //初始显示的图片序号,默认0
254
+                "data": [ //相册包含的图片,数组格式
255
+                    {
256
+                        "alt": $(file).attr("alt"),
257
+                        "pid": $(file).attr("fileId"), //图片id
258
+                        "src": $(file).attr("src"), //原图地址
259
+                        "thumb": "" //缩略图地址
260
+                    }
261
+                ]
262
+            }
263
+            layer.photos({
264
+                photos: json,
265
+                anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
266
+            });
267
+        }
268
+    </script>
269
+</body>
270
+
271
+</html>

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

@@ -51,7 +51,7 @@ huayi.config = {
51 51
         "<a class='xg' onclick='bhcb(\"data\")' title='驳回重办'>驳回重办</a>", //重办
52 52
         "<a class='xg' onclick='lzjd(\"data\")' title='履职界定'>履职界定</a>", //履职界定
53 53
         "<a class='xg' onclick='jdsh(\"data\")' title='界定审核 '>界定审核</a>", //界定审核
54
-        "<a class='xg' onclick='Refuse(\"data\")' title='拒绝'>拒绝</a>", //拒绝
54
+        "<a class='xg' onclick='Refuse(\"data\")' title='拒绝'>审核</a>", //拒绝
55 55
         "<a class='xg' onclick='returnRedo(\"data\")' title='退回'>退回</a>", //退回
56 56
         "<a class='xg' onclick='messagesUrge(\"data\")' title='催办'>催办</a>", //催办
57 57
         "<a class='xg' onclick='returnRedoThreeLevel(\"data\")' title='退回'>退回</a>", //退回

+ 15 - 1
WebUI/CallCenterWeb.UI/TelCall/CallRecord.html

@@ -303,6 +303,10 @@
303 303
                                     <option value="4">市长信箱</option>
304 304
                                 </select>
305 305
                             </td>
306
+                            <th><span>工单编号:</span></th>
307
+                            <td>
308
+                                <input id="worknumber" class="form-control" type="text" />
309
+                            </td>
306 310
                         </tr>
307 311
                     </tbody>
308 312
                 </table>
@@ -585,6 +589,7 @@
585 589
                         param.callback = $("#callback").val(); // 是否回拨
586 590
                        	param.myd = $("#myd").val()
587 591
                        	param.Business = $("#Business").val()
592
+                       	param.workOrderId = $("#worknumber").val()
588 593
                        	
589 594
                     } else if (stype == '2') {
590 595
                         param.usercode = $("#ss_seat").val();
@@ -604,6 +609,8 @@
604 609
                         param.callback = $("#callback").val(); // 是否回拨
605 610
                        	param.myd = $("#myd").val()
606 611
                        	param.Business = $("#Business").val()
612
+                       	param.workOrderId = $("#worknumber").val()
613
+                       	
607 614
                     }
608 615
                     return param;
609 616
                 },
@@ -859,6 +866,12 @@
859 866
         }
860 867
         // 外呼
861 868
         function backDial(phoneNumber, callId) {
869
+        	layer.open({
870
+                type: 2,
871
+                content: "./callbackRecordOldList.html?phoneNumber=" + phoneNumber, //iframe的url,no代表不显示滚动条
872
+                title: '历史工单和记录',
873
+                area: ['100%', '100%'], //宽高
874
+            });
862 875
         	console.log(phoneNumber)
863 876
             $.ajax({
864 877
                 type: "get",
@@ -987,13 +1000,14 @@
987 1000
             var phoneType = $("#phoneType").val();
988 1001
             var islike = $("#islike").val(); // 查询类型
989 1002
             var notconnected = $("#notconnected").val(); // 未接通
1003
+            var workOrderId = $("#worknumber").val()
990 1004
                         
991 1005
             var url = huayi.config.callcenter_url + "Callrecords/GetList?token=" + $.cookie("token") +
992 1006
                 "&isdc=1";
993 1007
             url += "&usercode=" + usercode + "&phone=" + phone + "&starttime=" + starttime + "&endtime=" +
994 1008
                 endtime + "&callstate=" + callstate + "&calltype=" + calltype + "&type=" + type +
995 1009
                 "&actiontype=" + actiontype + "&tasktype=" + tasktype + "&extnumber=" + extnumber +
996
-                "&phoneType=" + phoneType + "&islike=" + islike + "&notconnected=" + notconnected;
1010
+                "&phoneType=" + phoneType + "&islike=" + islike + "&notconnected=" + notconnected+"&workOrderId="+ workOrderId;
997 1011
             window.location.href = url;
998 1012
         })
999 1013
 

+ 307 - 0
WebUI/CallCenterWeb.UI/TelCall/callbackRecordOldList.html

@@ -0,0 +1,307 @@
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
+	</head>
11
+
12
+	<body>
13
+		<div>
14
+			<div style="width: 100%;padding: 10px;">
15
+				<p style="margin-top: 10px;font-weight: bold;">历史记录:</p>
16
+				<table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
17
+					<thead>
18
+						<tr>
19
+							<th data-field="" data-align="center" data-formatter="Code">编号</th>
20
+							<th data-field="CallNumber">电话号码</th>
21
+							<th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
22
+							<th data-field="UserName">坐席姓名</th>
23
+							<th data-field="TalkStartTime">通话开始时间</th>
24
+							<th data-field="WorkOrderId" data-align="center" data-formatter="formatWorkOrderNum">工单号</th>
25
+						</tr>
26
+					</thead>
27
+					<tbody class="list"></tbody>
28
+				</table>
29
+				<p style="margin-top: 10px;font-weight: bold;">历史工单:</p>
30
+				<table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
31
+					<thead>
32
+						<tr>
33
+							<th data-field="" data-align="center" data-formatter="Code">编号</th>
34
+							<th data-field="F_WorkOrderId" data-formatter="GetLink" data-width="120px">工单编号</th>
35
+							<th data-field="F_CreateTime" data-width="100px">创建时间</th>
36
+							<th data-field="F_ComContent" data-formatter="formatterResult">工单内容</th>
37
+							<th data-field="F_Result" data-formatter="formatterResult">处理内容</th>
38
+							<th data-field="F_WorkState" data-formatter="historyOrderStates">工单状态</th>
39
+							<th data-field="F_SubWorkorder1" data-formatter="GetLinkAll">子工单</th>
40
+							<!--<th data-field="F_WorkOrderId" data-formatter="historyOrderOperation">操作</th>-->
41
+
42
+						</tr>
43
+					</thead>
44
+					<tbody class="list"></tbody>
45
+				</table>
46
+			</div>
47
+			<!--<div style="text-align: center;">
48
+            <button class="btns exportFile">导出</button>
49
+        </div>-->
50
+		</div>
51
+		<script src="../js/sm2/sm2.js"></script>
52
+		<script src="../js/sm2/decrypt.js"></script>
53
+		<script>
54
+			var phoneNumber = helper.request.queryString("phoneNumber");
55
+			$(document).ready(function() {
56
+				load();
57
+			});
58
+			//获取查询信息
59
+			function load() {
60
+				$("#oldlist").bootstrapTable("destroy");
61
+				//初始化表格,动态从服务器加载数据
62
+				$("#oldlist").bootstrapTable({
63
+					method: "get", //使用get请求到服务器获取数据
64
+					url: huayi.config.callcenter_url + "CallInScreen/GetOldList", //获取数据的Servlet地址
65
+					contentType: "application/x-www-form-urlencoded",
66
+					striped: true, //表格显示条纹
67
+					pagination: true, //启动分页
68
+					pageSize: 5, //每页显示的记录数
69
+					pageNumber: 1, //当前第几页
70
+					pageList: [5, 10], //记录数可选列表
71
+					search: false, //是否启用查询
72
+					showColumns: false, //显示下拉框勾选要显示的列
73
+					showRefresh: false, //显示刷新按钮
74
+					sidePagination: "server", //表示服务端请求
75
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
76
+					//设置为limit可以获取limit, offset, search, sort, order
77
+					queryParamsType: "undefined",
78
+					queryParams: function queryParams(params) {
79
+						//设置查询参数
80
+						var param = {
81
+							page: params.pageNumber,
82
+							pagesize: params.pageSize,
83
+							tel: phoneNumber,
84
+							//							starttime: $("#old_startTime").val(),
85
+							//							endtime: $("#old_endTime").val(),
86
+							token: $.cookie("token"),
87
+						};
88
+						return param;
89
+					},
90
+					onLoadSuccess: function() {
91
+						//加载成功时执行
92
+						//layer.msg("加载成功");
93
+					},
94
+					onLoadError: function() {
95
+						//加载失败时执行
96
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
97
+					},
98
+				});
99
+				$("#orderlist").bootstrapTable("destroy");
100
+				//初始化表格,动态从服务器加载数据
101
+				$("#orderlist").bootstrapTable({
102
+					method: "get", //使用get请求到服务器获取数据
103
+					url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
104
+					contentType: "application/x-www-form-urlencoded",
105
+					striped: true, //表格显示条纹
106
+					pagination: true, //启动分页
107
+					pageSize: 5, //每页显示的记录数
108
+					pageNumber: 1, //当前第几页
109
+					pageList: [5, 10], //记录数可选列表
110
+					search: false, //是否启用查询
111
+					showColumns: false, //显示下拉框勾选要显示的列
112
+					showRefresh: false, //显示刷新按钮
113
+					sidePagination: "server", //表示服务端请求
114
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
115
+					//设置为limit可以获取limit, offset, search, sort, order
116
+					queryParamsType: "undefined",
117
+					queryParams: function queryParams(params) {
118
+						//设置查询参数
119
+						var param = {
120
+							page: params.pageNumber,
121
+							pagesize: params.pageSize,
122
+							islike: 0,
123
+							tel: phoneNumber,
124
+							//				starttime: $("#con_startTime").val(),
125
+							//				endtime: $("#con_endTime").val(),
126
+							token: $.cookie("token"),
127
+						};
128
+						return param;
129
+					},
130
+					onLoadSuccess: function() {
131
+						//加载成功时执行
132
+						//layer.msg("加载成功");
133
+					},
134
+					onLoadError: function() {
135
+						//加载失败时执行
136
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
137
+					},
138
+				});
139
+			}
140
+
141
+			//音频
142
+			function setCode(val) {
143
+				if(val) {
144
+					return '<div class="imgs">' +
145
+						'<img src="../img/vice.png" alt="" onclick="helper.luyin.view(this)" item="' + val + '" />' +
146
+						'</div>';
147
+				} else {
148
+					return '';
149
+				}
150
+			}
151
+
152
+			function GetCallState(val) {
153
+				if(val == "1") {
154
+					return "已接通";
155
+				} else {
156
+					return "未接通";
157
+				}
158
+			}
159
+
160
+			//编号
161
+			function Code(val, row, index) {
162
+				return index + 1;
163
+			}
164
+
165
+			function GetLink(val) {
166
+				if(val) {
167
+					return "<a onclick=\"ckxq('" + val + "')\" style='word-break: break-all;'>" + val + "</a>";
168
+				} else {
169
+					return "";
170
+				}
171
+			}
172
+
173
+			function formatWorkOrderNum(val, row) {
174
+
175
+				if(val) {
176
+					return '<a class="xg" onclick="ckxq(\'' + val + '\')" title="点击查看工单详情">' + val + '</a>';
177
+				}
178
+
179
+			}
180
+
181
+			function GetLinkAll(val) {
182
+				if(val) {
183
+					var arr = val.split(",")
184
+					var str = ""
185
+					arr.forEach(function(v, i) {
186
+						str += "<a onclick=\"ckxq('" + v + "')\" style='word-break: break-all;'>" + v + "</a>,"
187
+					})
188
+					str += str.slice(0, -1);
189
+					return str;
190
+				} else {
191
+					return "";
192
+				}
193
+			}
194
+
195
+			function ckxq(str) {
196
+				layer.open({
197
+					type: 2,
198
+					content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
199
+					title: "工单详情",
200
+					area: ["80%", "80%"], //宽高
201
+				});
202
+			}
203
+
204
+			function phoneTableHtml(val, row) {
205
+				return '<a onclick="phoneTableClick(this ,\'' + row.CallNumberShow + '\')"> ' + val + '</a>'
206
+			}
207
+
208
+			function formatterResult(val) {
209
+				if(val) {
210
+					//  	+ ' title="' + val + '" ';
211
+					var strResult = val;
212
+					if(strResult.length > 20) {
213
+						strResult = strResult.substring(0, 20) + "...";
214
+					}
215
+					strResult = "<div title='" + val + "'>" + strResult + "</div>"
216
+					return strResult;
217
+				}
218
+			}
219
+			// 电话号码
220
+			//      function formatterCallNum(val, row) {
221
+			//          var phoneNumber
222
+			//          if (val.length === 12) {
223
+			//              phoneNumber = val.slice(1)
224
+			//          } else if (val.length === 13) {
225
+			//              phoneNumber = val.slice(2)
226
+			//          } else {
227
+			//              phoneNumber = val
228
+			//          }
229
+			//          return phoneNumber;
230
+			//      }
231
+			// 历史工单状态
232
+			function historyOrderStates(val, row) {
233
+				var html = "";
234
+				switch(val + "") {
235
+					case "0":
236
+						html = "新工单";
237
+						if(row.F_IsReturn == 1) {
238
+							html = "新工单(回退)";
239
+						}
240
+						break;
241
+					case "1":
242
+						html = "待交办";
243
+						break;
244
+					case "2":
245
+						html = '<span style="color:#FF0000;">待查收</span>';
246
+						break;
247
+					case "3":
248
+						html = "退回审核中";
249
+						break;
250
+					case "4":
251
+						html = "办理中";
252
+						break;
253
+					case "5":
254
+						html = "延时审核";
255
+						break;
256
+					case "6":
257
+						if(row.F_IsProtect === 2 || row.F_IsProtect === 3) {
258
+							html = "已办未果";
259
+						} else {
260
+							html = "已办理";
261
+						}
262
+						break;
263
+					case "7":
264
+						html = "已回访";
265
+						break;
266
+					case "8":
267
+						if(row.F_Identification === 0) {
268
+							html = "重置转发";
269
+						} else if(row.F_Identification === 1) {
270
+							html = "退回重办";
271
+						} else {
272
+							html = "重办中";
273
+						}
274
+						break;
275
+					case "9":
276
+						html = "已结案";
277
+						break;
278
+					case "10":
279
+						html = "待审核";
280
+						break;
281
+					case "11":
282
+						html = "重办待交办";
283
+						break;
284
+					case "13":
285
+						html = "重办驳回";
286
+						break;
287
+				}
288
+				return html;
289
+			}
290
+
291
+			function states(val, row) {
292
+				if(val == 0) {
293
+					if(row.CallType == 0 && !row.UserCode) {
294
+						return '<div class="imgs">主动放弃</div>';
295
+					} else {
296
+						return '<div class="imgs">未接通</div>';
297
+					}
298
+				} else if(val == 1) {
299
+					return '<div class="imgs">已接通</div>';
300
+				} else if(val == 2) {
301
+					return '<div class="imgs">接通未达</div>';
302
+				}
303
+			}
304
+		</script>
305
+	</body>
306
+
307
+</html>

+ 2 - 2
WebUI/CallCenterWeb.UI/css/personal.css

@@ -14,7 +14,7 @@
14 14
             display: none;
15 15
         }
16 16
         .personal {
17
-            width: 600px;
17
+            width: 800px;
18 18
 		    margin: 0 auto;
19 19
 		    font-size: 14px;
20 20
 		    position: absolute;
@@ -105,7 +105,7 @@
105 105
         }
106 106
 
107 107
         .grzl {
108
-            font-size: 14px;
108
+            font-size: 16px;
109 109
             border: 0;
110 110
             width: 80%;
111 111
             margin: 35px auto;

+ 2 - 2
WebUI/CallCenterWeb.UI/js/WorkOrder/CommonOperation.js

@@ -196,7 +196,7 @@ function ys(str) {
196 196
 function hf(str) {
197 197
 	layer.open({
198 198
 		type: 2,
199
-		content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
199
+		content: "../CommonHtml/auditBack.html?wid=" + str, //iframe的url,no代表不显示滚动条
200 200
 		title: '工单回访',
201 201
 		area: ['60%', '80%'], //宽高
202 202
 	});
@@ -407,7 +407,7 @@ function jdsh(str) {
407 407
 function Refuse(str) {
408 408
 	layer.open({
409 409
 		type: 2,
410
-		content: "../CommonHtml/refuse.html?wid=" + str, //iframe的url,no代表不显示滚动条
410
+		content: "../CommonHtml/refuseList.html?wid=" + str, //iframe的url,no代表不显示滚动条
411 411
 		title: "拒绝",
412 412
 		area: ["60%", "80%"], //宽高
413 413
 	});

+ 48 - 0
WebUI/CallCenterWeb.UI/js/WorkOrder/WorkOrderList.js

@@ -429,3 +429,51 @@ function ysShi(str){
429 429
         shade: 0,
430 430
     });
431 431
 }
432
+//审核通过
433
+function approved(str) {
434
+	layer.confirm('确认审核通过吗?', {
435
+		btn: ['是', '否'] //	按钮
436
+	}, function() {
437
+
438
+		layer.confirm('是否发送短信?', {
439
+			btn: ['是', '否'] //	按钮
440
+		}, function() {
441
+			toExamineWorkOrder(str, 1)
442
+		}, function() {
443
+			toExamineWorkOrder(str, 0)
444
+		});
445
+
446
+	});
447
+}
448
+//审核不通过
449
+function auditFailed(str) {
450
+	layer.open({
451
+		type: 2,
452
+		content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
453
+		title: "审核不通过",
454
+		area: ["50%", "50%"], //宽高
455
+	});
456
+}
457
+function toExamineWorkOrder(str, issmsAudit) {
458
+	$.post(huayi.config.callcenter_url + 'WorkOrder/ToExamineWorkOrder', {
459
+		workorderid: str,
460
+		nexttype: 0, // 0审核通过 1审核不通过 2审核通过转办
461
+		issms: issmsAudit,
462
+		"token": $.cookie("token")
463
+	}, function(result) {
464
+		result = JSON.parse(result);
465
+		if(result.state.toLowerCase() == "success") {
466
+			layer.msg("操作成功");
467
+			$("#orderlist").bootstrapTable('refresh');
468
+		}
469
+	})
470
+}
471
+//审核通过转办
472
+function approvedComplaint(str) {
473
+	layer.open({
474
+		type: 2,
475
+		content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=2", //iframe的url,no代表不显示滚动条
476
+		title: "审核通过转办",
477
+		area: ["50%", "50%"], //宽高
478
+	});
479
+}