ソースを参照

大屏BUG修复,以及系统增加反应类别搜索,修改回访记录

miaofuhao 1 年間 前
コミット
c3815e1762

+ 2 - 2
WebChartNewest/index.html

@@ -969,7 +969,7 @@
969 969
 								</tr>
970 970
 								<tr>
971 971
 									<td class="infoName">附件</td>
972
-									<td class="contB" id="files" colspan="7" style="text-align: left;">
972
+									<td class="contB filesBox" colspan="7" style="text-align: left;">
973 973
 										<!--<image style="width: 60px;height: 60px;" />
974 974
 										<image style="width: 60px;height: 60px;" />
975 975
 										<image style="width: 60px;height: 60px;" />
@@ -1048,7 +1048,7 @@
1048 1048
 									</tr>
1049 1049
 									<tr>
1050 1050
 										<td class="infoName2">附件</td>
1051
-										<td id="filesSecnod" colspan="7" style="text-align: left;">
1051
+										<td class="filesBox" colspan="7" style="text-align: left;">
1052 1052
 											<!--<image style="width: 60px;height: 60px;" />
1053 1053
 											<image style="width: 60px;height: 60px;" />
1054 1054
 											<image style="width: 60px;height: 60px;" />

+ 2 - 2
WebChartNewest/js/dispatTopic/themeDoubleClick.js

@@ -21,7 +21,7 @@ $(".accept_channel #hotThings").dblclick(function(){
21 21
 		$('.themeBar_wrap').siblings().hide()
22 22
 		$('.bulletFrame').show();
23 23
 		$(".themeBar_wrap").show()
24
-		initHoneline()
24
+		initThemeBar()
25 25
 });
26 26
 $(".backTheme").click(function () {
27 27
 	domM =  'themeBarEle'
@@ -62,7 +62,7 @@ $("#themeBarDownEle").click(function () {
62 62
 //themeBarDownEcharts.on('click', function (params) {
63 63
 //	getThemeStatics();
64 64
 //})
65
-function initHoneline() {
65
+function initThemeBar() {
66 66
 	var secData = [];
67 67
 	console.log(dispatTopicType)
68 68
 	new doAjax({

+ 1 - 0
WebChartNewest/js/second_1.js

@@ -14,6 +14,7 @@ laydate.render({
14 14
 	}
15 15
 });
16 16
 $('.accept_statistics .hotline').click(function (e) {
17
+	domM = 'hotline2'
17 18
 	$('.bulletFrame').show();
18 19
 	$('.hotline_wrap').show();
19 20
 	$('.hotline_wrap').siblings().hide()

+ 5 - 5
WebChartNewest/js/workOrder.js

@@ -299,7 +299,7 @@ function detailHandle(id){
299 299
 	$('.acceptType').text(" ");
300 300
 	$('.isSecrecy').text(" ");
301 301
 	$('.workNo').text(' '); //工单编号
302
-	$('#filesSecnod').html(' '); //工单附件
302
+	$('.filesBox').html(' '); //工单附件
303 303
 	$('.acceptNumber').text(' '); //受理人工号
304 304
 	$('.acceptName').text(' '); //受理人
305 305
 	$('.contacts').text(' '); //来单联系人
@@ -411,7 +411,7 @@ function detailHandle(id){
411 411
 				})
412 412
 				
413 413
 //				$('#files').append(str);
414
-				$('#filesSecnod').append(str);
414
+				$('.filesBox').append(str);
415 415
 			}
416 416
 			
417 417
 		}
@@ -439,7 +439,7 @@ function btn_detail(id) {
439 439
 	$('.acceptType').text(" ");
440 440
 	$('.isSecrecy').text(" ");
441 441
 	$('.workNo').text(' '); //工单编号
442
-	$('#files').html(' '); //工单编号
442
+	$('.filesBox').html(' '); //附件
443 443
 	$('.acceptNumber').text(' '); //受理人工号
444 444
 	$('.acceptName').text(' '); //受理人
445 445
 	$('.contacts').text(' '); //来单联系人
@@ -550,7 +550,7 @@ function btn_detail(id) {
550 550
 					}
551 551
 				})
552 552
 				
553
-				$('#files').append(str);
553
+				$('.filesBox').append(str);
554 554
 			}
555 555
 			
556 556
 		}
@@ -608,7 +608,7 @@ function getClick() {
608 608
 					"<li class='work'><input class='radio' id='work5' name='works' type='radio' checked><div class='relative'>" +
609 609
 					"<span class='circle'></span></div><div class='content'><p >"+v.F_CreateTime+"</p><p onclick=\"messageClick(this, '"+v
610 610
 					.F_Message+"')\">市民已评议</p></div></li>"
611
-				} else  if (v.F_Message.indexOf('设置了分类') === -1||v.F_Message.indexOf('添加了分类') === -1){
611
+				} else  if (v.F_Message.indexOf('设置了分类') === -1&&v.F_Message.indexOf('添加了分类') === -1){
612 612
 					str +=
613 613
 					"<li class='work'><input class='radio' id='work5' name='works' type='radio' checked><div class='relative'>" +
614 614
 					"<span class='circle'></span></div><div class='content'><p >"+v.F_CreateTime+"</p><p>" + v.F_Message+ "</p></div></li>"

+ 222 - 310
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -356,10 +356,9 @@
356 356
 									<td class="text-center" style="min-width:100px;">操作时间</td>
357 357
 									<td class="text-center" style="min-width:100px;">回访号码</td>
358 358
 									<td class="text-center" style="min-width:100px;">录音</td>
359
-									<td class="text-center authority" style="min-width:100px;">操作</td>
360 359
 								</tr>
361 360
 							</theard>
362
-							<tbody class="HGXX">
361
+							<tbody class="HGXX1">
363 362
 							</tbody>
364 363
 						</table>
365 364
 					</div>
@@ -745,6 +744,9 @@
745 744
 				<!--回访信息-->
746 745
 				<div class="complain  DCL">
747 746
 					<div style="width: 100%;padding: 10px;">
747
+						<div class="btn_box visitLimit" style="text-align: right; margin: 5px; display: none;">
748
+				            <button class="btns" onclick="visitHandle()">添加回访记录</button>
749
+				        </div>
748 750
 						<table class="Table" border="" cellspacing="0" cellpadding="0">
749 751
 							<theard>
750 752
 								<tr>
@@ -756,7 +758,7 @@
756 758
 									<td class="text-center" style="min-width:100px;">操作时间</td>
757 759
 									<td class="text-center" style="min-width:100px;">回访号码</td>
758 760
 									<td class="text-center" style="min-width:100px;">录音</td>
759
-									<!-- <td class="text-center authority" style="min-width:100px;">操作</td> -->
761
+									<td class="text-center visitLimit" style="min-width:100px;  display: none">操作</td> 
760 762
 								</tr>
761 763
 							</theard>
762 764
 							<tbody class="HGXX">
@@ -908,7 +910,7 @@
908 910
     	<script src="../js/sm2/sm2.js"></script>
909 911
 		<script src="../js/sm2/decrypt.js"></script>
910 912
 		<script src="../js/WorkOrder/CommonOperation.js"></script>
911
-
913
+		<script src="./js/orderDetail.js"></script>
912 914
 		<script>
913 915
 			var wid = helper.request.queryString("wid");
914 916
 			var check = helper.request.queryString("check");
@@ -1036,26 +1038,215 @@
1036 1038
 					$(".content-wrapper").hide();
1037 1039
 				}
1038 1040
 				
1039
-				//操作
1040
-				function Dispose(val, row,buttons) {
1041
-					var Rows = buttons;
1042
-					var html = "";
1043
-					for(var i = 0; i < Rows.length; i++) {
1044
-						var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
1045
-						if(html1) {
1046
-							html1 = html1.replace("data", val);
1047
-							html1 = html1.replace("isProtect", row.F_IsProtect);
1048
-							html1 = html1.replace("row", row.F_MainDeptId);
1049
-							html1 = html1.replace("state", row.F_WorkState);
1050
-							html1 = html1.replace("zhcxtit", row.F_ComTitle); 
1051
-                            html1 = html1.replace("zhcxcon", row.F_Result); 
1041
+				
1042
+
1043
+				
1044
+				//修改交办意见
1045
+				$('.XGXX').click(function() {
1046
+					var index = $(this).attr('index');
1047
+					layer.open({
1048
+						type: 2,
1049
+						content: "../CommonHtml/XGjiaoban.html?wid=" +
1050
+							index, //iframe的url,no代表不显示滚动条
1051
+						title: '修改交办信息',
1052
+						area: ['48%', '40%'], //宽高
1053
+					});
1054
+
1055
+				})
1056
+				//修改回访意见
1057
+				$(".HFXG").click(function() {
1058
+					var index = $(this).attr('index');
1059
+					layer.open({
1060
+						type: 2,
1061
+						content: "../CommonHtml/XGHF.html?wid=" +
1062
+							index, //iframe的url,no代表不显示滚动条
1063
+						title: '修改回访信息',
1064
+						area: ['58%', '60%'], //宽高
1065
+					});
1066
+				});
1067
+				//领导批示
1068
+				$(".LDPSS").click(function() {
1069
+					var index = $(this).attr('index'); //批示ID
1070
+					var superuser = $(this).attr('superuser'); //批示人
1071
+					var superopinion = $(this).attr("superopinion"); //批示内容
1072
+					var type = $(this).attr("type"); //批示类型
1073
+					layer.open({
1074
+						type: 2,
1075
+						content: "../CommonHtml/LDPS.html?wid=" +
1076
+							index + "&type=" +
1077
+							type, //iframe的url,no代表不显示滚动条
1078
+						title: '修改领导批示信息',
1079
+						area: ['58%', '60%'], //宽高
1080
+					})
1081
+				});
1082
+
1083
+				//修改回退信息
1084
+				$(".HtxxBtn").click(function() {
1085
+					var index = $(this).attr('index');
1086
+					layer.open({
1087
+						type: 2,
1088
+						content: "../CommonHtml/BackDatil.html?wid=" +
1089
+							index + '&tab=0', //iframe的url,no代表不显示滚动条
1090
+						title: '修改回退信息',
1091
+						area: ['58%', '60%'], //宽高
1092
+					})
1093
+				})
1094
+				//修改审核延时
1095
+				$(".LYSSH").click(function() {
1096
+					var index = $(this).attr('index');
1097
+					layer.open({
1098
+						type: 2,
1099
+						content: "../CommonHtml/YSSH.html?wid=" +
1100
+							index, //iframe的url,no代表不显示滚动条
1101
+						title: '修改延时审核',
1102
+						area: ['58%', '60%'], //宽高
1103
+					})
1104
+				})
1105
+				//修改退回审核
1106
+				$(".LTHSH").click(function() {
1107
+					var index = $(this).attr('index');
1108
+					layer.open({
1109
+						type: 2,
1110
+						content: "../CommonHtml/lSHTH.html?wid=" +
1111
+							index, //iframe的url,no代表不显示滚动条
1112
+						title: '修改退回审核',
1113
+						area: ['58%', '60%'], //宽高
1114
+					})
1115
+				})
1116
+
1117
+				//转公开
1118
+				$('.publicTransfer').click(function() {
1119
+					layer.open({
1120
+						content: '是否要转公开?',
1121
+						btn: ['是', '否'],
1122
+						yes: function(index, layero) {
1123
+							$.post(huayi.config.callcenter_url + "WorkOrder/ReleaseWorkOrder", {
1124
+								workorderid: wid, //工单编号
1125
+								isrelease: 1, //(0撤回,1转媒体)
1126
+								isopen: 1,
1127
+								token: $.cookie("token")
1128
+							}, function(result) {
1129
+								var data = JSON.parse(result);
1130
+								if(data.state == "success") {
1131
+									$(".publicTransfer").hide();
1132
+									var index = parent.layer.getFrameIndex(window
1133
+										.name); //先得到当前iframe层的索引
1134
+									parent.layer.close(index); //再执行关闭
1135
+									parent.$('#orderlist').bootstrapTable('refresh');
1136
+									parent.layer.msg("转公开成功");
1137
+								}
1138
+							})
1139
+						}
1140
+					})
1141
+				});
1142
+
1143
+				//转媒体
1144
+				$('.mediaTransfer').click(function() {
1145
+					layer.open({
1146
+						content: '是否要转媒体?',
1147
+						btn: ['是', '否'],
1148
+						yes: function(index, layero) {
1149
+							$.post(huayi.config.callcenter_url + "WorkOrder/MediaWorkOrder", {
1150
+								workorderid: wid, //工单编号
1151
+								isrelease: 1, //(0撤回,1转媒体)
1152
+								token: $.cookie("token")
1153
+							}, function(result) {
1154
+								var data = JSON.parse(result);
1155
+								if(data.state == "success") {
1156
+									$(".mediaTransfer").hide();
1157
+									var index = parent.layer.getFrameIndex(window
1158
+										.name); //先得到当前iframe层的索引
1159
+									parent.layer.close(index); //再执行关闭
1160
+									parent.$('#orderlist').bootstrapTable('refresh');
1161
+									parent.layer.msg("操作成功");
1162
+								}
1163
+							})
1052 1164
 						}
1053
-						html += html1;
1165
+					})
1166
+				});
1167
+
1168
+				// 撤销子工单
1169
+				$('.cancelChildWorkOrder').click(function() {
1170
+					layer.open({
1171
+						content: '是否要撤销?',
1172
+						btn: ['是', '否'],
1173
+						yes: function(index, layero) {
1174
+							$.post(huayi.config.callcenter_url + "WorkOrder/DisassociateWorkOrder", {
1175
+								workorderid: wid, //工单编号
1176
+								token: $.cookie("token")
1177
+							}, function(result) {
1178
+								var data = JSON.parse(result);
1179
+								if(data.state == "success") {
1180
+									$(".cancelChildWorkOrder").hide();
1181
+									var index = parent.layer.getFrameIndex(window
1182
+										.name); //先得到当前iframe层的索引
1183
+									parent.layer.close(index); //再执行关闭
1184
+									parent.$('#orderlist').bootstrapTable('refresh');
1185
+									parent.layer.msg("操作成功");
1186
+								}
1187
+							})
1188
+						}
1189
+					})
1190
+				});
1191
+
1192
+				//修改
1193
+				$(".change").click(function() {
1194
+
1195
+					var str = $("#Change").val();
1196
+					layer.open({
1197
+						type: 2,
1198
+						content: "../CommonHtml/XGwordel.html?wid=" + str, //iframe的url,no代表不显示滚动条
1199
+						title: '修改交办信息',
1200
+						area: ['80%', '80%'], //宽高
1201
+					})
1202
+				})
1203
+				//退回
1204
+				$(".return").click(function() {
1205
+					layer.open({
1206
+						type: 2,
1207
+						content: "../CommonHtml/tuihuisq.html?wid=" + wid, //iframe的url,no代表不显示滚动条
1208
+						title: "申请退回工单",
1209
+						area: ["60%", "80%"], //宽高
1210
+					});
1211
+				})
1212
+
1213
+				$(".applicationDelay").click(function() {
1214
+					layer.open({
1215
+						type: 2,
1216
+						content: "../CommonHtml/Timesq.html?wid=" + wid, //iframe的url,no代表不显示滚动条
1217
+						title: "申请延时",
1218
+						area: ["60%", "80%"], //宽高
1219
+					});
1220
+				})
1221
+				$(".handle").click(function() {
1222
+					layer.open({
1223
+						type: 2,
1224
+						content: "../CommonHtml/banli.html?wid=" + wid + "&isProtect=" +
1225
+							isProtect, //iframe的url,no代表不显示滚动条
1226
+						title: "办理工单",
1227
+						area: ["60%", "80%"], //宽高
1228
+					});
1229
+				})
1230
+			});
1231
+			//操作
1232
+			function Dispose(val, row,buttons) {
1233
+				var Rows = buttons;
1234
+				var html = "";
1235
+				for(var i = 0; i < Rows.length; i++) {
1236
+					var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
1237
+					if(html1) {
1238
+						html1 = html1.replace("data", val);
1239
+						html1 = html1.replace("isProtect", row.F_IsProtect);
1240
+						html1 = html1.replace("row", row.F_MainDeptId);
1241
+						html1 = html1.replace("state", row.F_WorkState);
1242
+						html1 = html1.replace("zhcxtit", row.F_ComTitle); 
1243
+                        html1 = html1.replace("zhcxcon", row.F_Result); 
1054 1244
 					}
1055
-					$(".btnsall").html(html)
1245
+					html += html1;
1056 1246
 				}
1057
-
1058
-				function load(type) {
1247
+				$(".btnsall").html(html)
1248
+			}
1249
+			function load(type) {
1059 1250
 					$.ajax({
1060 1251
 						type: "get",
1061 1252
 						url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew",
@@ -1235,6 +1426,7 @@
1235 1426
 												$list.append($liFile);
1236 1427
 											}
1237 1428
 										})
1429
+										
1238 1430
 										// layer.photos({
1239 1431
 										//     photos: '.FJ',
1240 1432
 										//     anim: 5, //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
@@ -1266,6 +1458,7 @@
1266 1458
 										//             '#layui-layer-photos', pic, layero);
1267 1459
 										//     },
1268 1460
 										// });
1461
+										
1269 1462
 										if(State == 0) {
1270 1463
 											var entryTimeDate = new Date(Date.parse(Data[0]
1271 1464
 												.F_CreateTime));
@@ -1544,21 +1737,14 @@
1544 1737
 											str += '<td class="gallerys">'
1545 1738
 											var FileHtml;
1546 1739
 											$(n.File).each(function(j, m) {
1547
-												if(m.F_FileType == ".jpg" || m
1548
-													.F_FileType ==
1549
-													".png") {
1740
+												if(m.F_FileType == ".jpg" || m.F_FileType ==".png") {
1550 1741
 													FileHtml =
1551 1742
 														'<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
1552
-														m.F_FileUrl + '" alt="' + m
1553
-														.F_FileName +
1554
-														'" fileId="' + m.F_FileId + '">'
1743
+														m.F_FileUrl + '" alt="' + m.F_FileName +'" fileId="' + m.F_FileId + '">'
1555 1744
 												} else {
1556 1745
 													FileHtml +=
1557 1746
 														'<a style="margin-right:5px;" target="view_window" href="' +
1558
-														m.F_FileUrl + '" download="' + m
1559
-														.F_FileUrl + '">' + m.F_FileName
1560
-														.substring(19) + '</a>';
1561
-
1747
+														m.F_FileUrl + '" download="' + m.F_FileUrl + '">' + m.F_FileName.substring(19) + '</a>';
1562 1748
 												}
1563 1749
 												str += FileHtml
1564 1750
 											})
@@ -1802,10 +1988,7 @@
1802 1988
 													".png") {
1803 1989
 													FileHtmls =
1804 1990
 														'<img style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
1805
-														m.F_FileUrl + '" alt="' + m
1806
-														.F_FileName +
1807
-														'" fileId="' + m.F_FileId +
1808
-														'">';
1991
+														m.F_FileUrl + '" alt="' + m.F_FileName +'" fileId="' + m.F_FileId +'">';
1809 1992
 												} else {
1810 1993
 													FileHtmls =
1811 1994
 														'<div><a style="margin-right:5px;" target="view_window" href="' +
@@ -2004,10 +2187,7 @@
2004 2187
 												} else {
2005 2188
 													FileHtml +=
2006 2189
 														'<div><a style="margin-right:5px;" target="view_window" href="' +
2007
-														m.F_FileUrl + '" download="' + m
2008
-														.F_FileName + '">' + m
2009
-														.F_FileName.substring(
2010
-															19) + '</a></div>';
2190
+														m.F_FileUrl + '" download="' + m.F_FileName + '">' + m.F_FileName.substring(19) + '</a></div>';
2011 2191
 												}
2012 2192
 												SJhtmls += FileHtml
2013 2193
 											})
@@ -2066,76 +2246,7 @@
2066 2246
 										$(Ysh).appendTo($(".YSSHS"));
2067 2247
 										break;
2068 2248
 									case '6':
2069
-										//回访信息
2070
-										var htmlss = '';
2071
-										if(result.data.length < 0) {
2072
-											htmlss = '<tr>' +
2073
-												'<td class="text-center">' + n.UserName + '</td>' +
2074
-												'</tr>';
2075
-										} else {
2076
-											$(".HGXX").empty();
2077
-											$(result.data).each(function(i, n) {
2078
-												var a;
2079
-												var b;
2080
-												if(String(n.F_IsSatisfie) === "0") {
2081
-													a = "不满意";
2082
-												} else if(String(n.F_IsSatisfie) == "1") {
2083
-													a = "满意";
2084
-												}
2085
-												if(n.F_Type == 0) {
2086
-													b = "电话";
2087
-												} else if(n.F_Type == 1) {
2088
-													b = "微信";
2089
-												} else if(n.F_Type == 2) {
2090
-													b = "智能回访";
2091
-												} else if(n.F_Type == 3) {
2092
-													b = "网站";
2093
-												} else if(n.F_Type == 4) {
2094
-													b = "微博";
2095
-												} else if(n.F_Type == 5) {
2096
-													b = "信箱";
2097
-												}
2098
-
2099
-												htmlss += '<tr>' +
2100
-													'<td class="text-center">' + (i + 1) +
2101
-													'</td>' +
2102
-													'<td class="text-center">' + n.F_VisitUser +
2103
-													'</td>' +
2104
-													'<td class="text-center">' + b + '</td>' +
2105
-													'<td class="text-center">' + n.F_Result +
2106
-													'</td>' +
2107
-													'<td class="text-center">' + a + '</td>' +
2108
-													'<td class="text-center">' + n
2109
-													.F_CreateTime +
2110
-													'</td>' +
2111
-													'<td class="text-center phoneTitle3"><a href="#">' + encryptPhoneNumber +
2112
-													'</a></td>' +
2113
-													'<td class="text-center">'
2114
-												var audioFile = '';
2115
-												if(n.FilePath) {
2116
-													audioFile += '<div class="imgs">' +
2117
-														'<img src="../img/vice.png" alt="" onclick="recordingFun(this)" item="' +
2118
-														n.FilePath + '" />' +
2119
-														'</div></td>';
2120
-												}
2121
-												htmlss += audioFile + '</tr>'
2122
-											})
2123
-											$(htmlss).appendTo($(".HGXX"));
2124
-											$(".phoneTitle3").click(function() {
2125
-												var isSecret
2126
-												if ($('.MJ').text()=="普通") {
2127
-													isSecret = 1
2128
-												} else{
2129
-													isSecret = 2
2130
-												}
2131
-												layer.open({
2132
-													type: 2,
2133
-													content: "./callerNumber.html?phoneNumber=" + encodeURIComponent(phoneNumber)+"&wid="+wid+"&isSecret="+isSecret+"&type=1", //iframe的url,no代表不显示滚动条
2134
-													title: "回访号码",
2135
-													area: ["40%", "25%"], //宽高
2136
-												});
2137
-											})
2138
-										}
2249
+										detialVisit(result)
2139 2250
 										break;
2140 2251
 									case '7':
2141 2252
 										//督办信息
@@ -2158,8 +2269,7 @@
2158 2269
 													'</td>' +
2159 2270
 													'<td class="text-center">' + n.F_Content +
2160 2271
 													'</td>' +
2161
-													'<td class="text-center">' + n
2162
-													.F_CreateTime +
2272
+													'<td class="text-center">' + n.F_CreateTime +
2163 2273
 													'</td>' +
2164 2274
 													'</tr>';
2165 2275
 											})
@@ -2293,194 +2403,6 @@
2293 2403
 					})
2294 2404
 				}
2295 2405
 
2296
-				//修改交办意见
2297
-				$('.XGXX').click(function() {
2298
-					var index = $(this).attr('index');
2299
-					layer.open({
2300
-						type: 2,
2301
-						content: "../CommonHtml/XGjiaoban.html?wid=" +
2302
-							index, //iframe的url,no代表不显示滚动条
2303
-						title: '修改交办信息',
2304
-						area: ['48%', '40%'], //宽高
2305
-					});
2306
-
2307
-				})
2308
-				//修改回访意见
2309
-				$(".HFXG").click(function() {
2310
-					var index = $(this).attr('index');
2311
-					layer.open({
2312
-						type: 2,
2313
-						content: "../CommonHtml/XGHF.html?wid=" +
2314
-							index, //iframe的url,no代表不显示滚动条
2315
-						title: '修改回访信息',
2316
-						area: ['58%', '60%'], //宽高
2317
-					});
2318
-				});
2319
-				//领导批示
2320
-				$(".LDPSS").click(function() {
2321
-					var index = $(this).attr('index'); //批示ID
2322
-					var superuser = $(this).attr('superuser'); //批示人
2323
-					var superopinion = $(this).attr("superopinion"); //批示内容
2324
-					var type = $(this).attr("type"); //批示类型
2325
-					layer.open({
2326
-						type: 2,
2327
-						content: "../CommonHtml/LDPS.html?wid=" +
2328
-							index + "&type=" +
2329
-							type, //iframe的url,no代表不显示滚动条
2330
-						title: '修改领导批示信息',
2331
-						area: ['58%', '60%'], //宽高
2332
-					})
2333
-				});
2334
-
2335
-				//修改回退信息
2336
-				$(".HtxxBtn").click(function() {
2337
-					var index = $(this).attr('index');
2338
-					layer.open({
2339
-						type: 2,
2340
-						content: "../CommonHtml/BackDatil.html?wid=" +
2341
-							index + '&tab=0', //iframe的url,no代表不显示滚动条
2342
-						title: '修改回退信息',
2343
-						area: ['58%', '60%'], //宽高
2344
-					})
2345
-				})
2346
-				//修改审核延时
2347
-				$(".LYSSH").click(function() {
2348
-					var index = $(this).attr('index');
2349
-					layer.open({
2350
-						type: 2,
2351
-						content: "../CommonHtml/YSSH.html?wid=" +
2352
-							index, //iframe的url,no代表不显示滚动条
2353
-						title: '修改延时审核',
2354
-						area: ['58%', '60%'], //宽高
2355
-					})
2356
-				})
2357
-				//修改退回审核
2358
-				$(".LTHSH").click(function() {
2359
-					var index = $(this).attr('index');
2360
-					layer.open({
2361
-						type: 2,
2362
-						content: "../CommonHtml/lSHTH.html?wid=" +
2363
-							index, //iframe的url,no代表不显示滚动条
2364
-						title: '修改退回审核',
2365
-						area: ['58%', '60%'], //宽高
2366
-					})
2367
-				})
2368
-
2369
-				//转公开
2370
-				$('.publicTransfer').click(function() {
2371
-					layer.open({
2372
-						content: '是否要转公开?',
2373
-						btn: ['是', '否'],
2374
-						yes: function(index, layero) {
2375
-							$.post(huayi.config.callcenter_url + "WorkOrder/ReleaseWorkOrder", {
2376
-								workorderid: wid, //工单编号
2377
-								isrelease: 1, //(0撤回,1转媒体)
2378
-								isopen: 1,
2379
-								token: $.cookie("token")
2380
-							}, function(result) {
2381
-								var data = JSON.parse(result);
2382
-								if(data.state == "success") {
2383
-									$(".publicTransfer").hide();
2384
-									var index = parent.layer.getFrameIndex(window
2385
-										.name); //先得到当前iframe层的索引
2386
-									parent.layer.close(index); //再执行关闭
2387
-									parent.$('#orderlist').bootstrapTable('refresh');
2388
-									parent.layer.msg("转公开成功");
2389
-								}
2390
-							})
2391
-						}
2392
-					})
2393
-				});
2394
-
2395
-				//转媒体
2396
-				$('.mediaTransfer').click(function() {
2397
-					layer.open({
2398
-						content: '是否要转媒体?',
2399
-						btn: ['是', '否'],
2400
-						yes: function(index, layero) {
2401
-							$.post(huayi.config.callcenter_url + "WorkOrder/MediaWorkOrder", {
2402
-								workorderid: wid, //工单编号
2403
-								isrelease: 1, //(0撤回,1转媒体)
2404
-								token: $.cookie("token")
2405
-							}, function(result) {
2406
-								var data = JSON.parse(result);
2407
-								if(data.state == "success") {
2408
-									$(".mediaTransfer").hide();
2409
-									var index = parent.layer.getFrameIndex(window
2410
-										.name); //先得到当前iframe层的索引
2411
-									parent.layer.close(index); //再执行关闭
2412
-									parent.$('#orderlist').bootstrapTable('refresh');
2413
-									parent.layer.msg("操作成功");
2414
-								}
2415
-							})
2416
-						}
2417
-					})
2418
-				});
2419
-
2420
-				// 撤销子工单
2421
-				$('.cancelChildWorkOrder').click(function() {
2422
-					layer.open({
2423
-						content: '是否要撤销?',
2424
-						btn: ['是', '否'],
2425
-						yes: function(index, layero) {
2426
-							$.post(huayi.config.callcenter_url + "WorkOrder/DisassociateWorkOrder", {
2427
-								workorderid: wid, //工单编号
2428
-								token: $.cookie("token")
2429
-							}, function(result) {
2430
-								var data = JSON.parse(result);
2431
-								if(data.state == "success") {
2432
-									$(".cancelChildWorkOrder").hide();
2433
-									var index = parent.layer.getFrameIndex(window
2434
-										.name); //先得到当前iframe层的索引
2435
-									parent.layer.close(index); //再执行关闭
2436
-									parent.$('#orderlist').bootstrapTable('refresh');
2437
-									parent.layer.msg("操作成功");
2438
-								}
2439
-							})
2440
-						}
2441
-					})
2442
-				});
2443
-
2444
-				//修改
2445
-				$(".change").click(function() {
2446
-
2447
-					var str = $("#Change").val();
2448
-					layer.open({
2449
-						type: 2,
2450
-						content: "../CommonHtml/XGwordel.html?wid=" + str, //iframe的url,no代表不显示滚动条
2451
-						title: '修改交办信息',
2452
-						area: ['80%', '80%'], //宽高
2453
-					})
2454
-				})
2455
-				//退回
2456
-				$(".return").click(function() {
2457
-					layer.open({
2458
-						type: 2,
2459
-						content: "../CommonHtml/tuihuisq.html?wid=" + wid, //iframe的url,no代表不显示滚动条
2460
-						title: "申请退回工单",
2461
-						area: ["60%", "80%"], //宽高
2462
-					});
2463
-				})
2464
-
2465
-				$(".applicationDelay").click(function() {
2466
-					layer.open({
2467
-						type: 2,
2468
-						content: "../CommonHtml/Timesq.html?wid=" + wid, //iframe的url,no代表不显示滚动条
2469
-						title: "申请延时",
2470
-						area: ["60%", "80%"], //宽高
2471
-					});
2472
-				})
2473
-				$(".handle").click(function() {
2474
-					layer.open({
2475
-						type: 2,
2476
-						content: "../CommonHtml/banli.html?wid=" + wid + "&isProtect=" +
2477
-							isProtect, //iframe的url,no代表不显示滚动条
2478
-						title: "办理工单",
2479
-						area: ["60%", "80%"], //宽高
2480
-					});
2481
-				})
2482
-			});
2483
-			
2484 2406
 			$(".provincialApplicationDelay").click(function(){
2485 2407
 				provincialPlatformApplicationDelay(wid,0)
2486 2408
 			})
@@ -2586,17 +2508,7 @@
2586 2508
 				});
2587 2509
 			}
2588 2510
 
2589
-			function recordingFun(htmlstr) {
2590
-				var path = $(htmlstr).attr("item");
2591
-				layer.open({
2592
-					type: 2,
2593
-					content: "../CommonHtml/recording.html?path=" + path, //iframe的url,no代表不显示滚动条
2594
-					title: '录音',
2595
-					area: ['30%', '20%'], //宽高
2596
-					maxmin: true,
2597
-					shade: 0
2598
-				});
2599
-			}
2511
+			
2600 2512
 
2601 2513
 			function GetLink(val) {
2602 2514
 				if(val) {

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

@@ -515,7 +515,7 @@
515 515
                             seconds + "秒"
516 516
                         simpleDetailStrStart =
517 517
                             data.deptname +
518
-                            "于时间(" +
518
+//                          "于时间(" +
519 519
                             daysTime +
520 520
                             ")回复:"
521 521
                         $("#situation").val(simpleDetailStrStart);

+ 199 - 0
WebUI/CallCenterWeb.UI/CommonHtml/cpns/detailEditVisit.html

@@ -0,0 +1,199 @@
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 class="Common">
14
+        <table>
15
+            <tr>
16
+                <th class="Importent">
17
+                    回访人:
18
+                </th>
19
+                <td><input type="text" id="visituser" /></td>
20
+                <th>
21
+                    回访方式:
22
+                </th>
23
+                <td>
24
+                    <select class="select_" id="type">
25
+                        <option value="0">电话</option>
26
+                        <option value="1">微信</option>
27
+                        <option value="2">APP</option>
28
+                        <option value="3">网站</option>
29
+                        <option value="4">微博</option>
30
+                        <option value="5">信箱</option>
31
+                    </select>
32
+                </td>
33
+            </tr>
34
+            
35
+            <tr>
36
+                <th class="Importent">回访满意度:</th>
37
+                <td>
38
+                    <input checked="true" type="radio" value="1" name="huifang" />满意
39
+                    <input type="radio" value="0" name="huifang" />不满意
40
+                </td>
41
+            </tr>
42
+            <tr>
43
+                <th class="Importent">回访信息:</th>
44
+                <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
45
+            </tr>
46
+            <tr>
47
+					<th>录音:</th>
48
+					<td colspan="7">
49
+						<div class="fileBox"></div>
50
+						<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
51
+						<input class="input" type="button" value="上传" id="scwj" />
52
+						<input type="hidden" id="file" />
53
+						<span style="color:#FF0000; border: none;">
54
+                        	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
55
+                        </span>
56
+					</td>
57
+				</tr>
58
+        </table>
59
+        <div class="btn_box">
60
+            <button class="btns Closure">提交</button>
61
+        </div>
62
+        <span class="F_ConPhone" style="display: none;"></span>
63
+    </div>
64
+
65
+    <!--<script src="../js/main.js?v=1.5"></script>-->
66
+    <script src="../../js/adjustHeight.js"></script>
67
+    <script src="../../js/guid.js"></script>
68
+    <script src="../../js/sm2/sm2.js"></script>
69
+	<script src="../../js/sm2/decrypt.js"></script>
70
+	<script src="../../Script/Common/huayi.common.js"></script>
71
+    <script>
72
+        var wid = helper.request.queryString("wid");
73
+        var item = helper.request.queryString("item"); 
74
+        var visitId;
75
+
76
+        $(document).ready(function () {
77
+        	if (item) {
78
+        		itemData = JSON.parse(decodeURIComponent(item))
79
+        		loadHF()
80
+        	}
81
+        	
82
+        	
83
+        })
84
+        $('.Closure').click(function () {
85
+            console.log(visitId)
86
+            Closure();
87
+        });
88
+        //上传附件
89
+		$("#scwj").click(function() {
90
+			console.log($("#file").val())
91
+			if ($("#file").val()) {
92
+				layer.msg("只能上传一个录音,如需修改请删除原录音")
93
+			} else if  ($("#file").val() === 0) {
94
+				layer.msg("只能上传一个录音,如需修改请删除原录音")
95
+			} else {
96
+				$("#upFile").trigger("click");
97
+				
98
+			}
99
+			
100
+		})
101
+		$("#upFile").change(function() {
102
+			upload('upFile', '.fileBox', ['mp3'], "#file");
103
+			
104
+		})
105
+		$("#scfj").click(function() {
106
+			$(".fjnr").text("");
107
+			$("#scfj").hide();
108
+		})
109
+        //结案
110
+        function Closure() {
111
+        	var params ={
112
+				visituser: $("#visituser").val(),	//	回访人
113
+            	type: $("#type").val(),	//	回访方式
114
+            	issatisfie: $(' input[name="huifang"]:checked ').val(),	//	满意度
115
+            	id: visitId,	//	回访id
116
+            	result: $("#result").val(),	//	回访情况
117
+            	file: $("#file").val(),	//	回访附件
118
+                token: $.cookie("token")
119
+			}
120
+        	var apiUrl
121
+        	if (visitId) {
122
+        		apiUrl = "WorkOrder/EditVisitInfoByAdmin"
123
+        		params.id = visitId
124
+        	} else{
125
+        		apiUrl = "WorkOrder/AddVisitInfoByAdmin"
126
+        		params.workOrderId = wid
127
+        	}
128
+        	$.ajax({
129
+				type: "post",
130
+				url: huayi.config.callcenter_url + apiUrl,
131
+				dataType: 'json',
132
+				async: true,
133
+				data: params,
134
+				success: function(data) {
135
+					/*验证请求*/
136
+					if(data.state == "success") {
137
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
138
+	                    parent.layer.close(index); //再执行关闭
139
+	                    parent.layer.msg("操作成功");
140
+	                     parent.load('6')
141
+//	                    parent.$('#orderlist').bootstrapTable('refresh');
142
+					}
143
+				}
144
+				
145
+			});
146
+        }
147
+
148
+        //回访
149
+        function loadHF(){
150
+        	console.log(itemData)
151
+        	visitId = itemData.F_Id
152
+        	$("#visituser").val(itemData.F_VisitUser)
153
+        	$("#type").val(itemData.F_Type)
154
+        	$('input[name="huifang"][value="' + itemData.F_IsSatisfie + '"]').prop("checked", "checked"); //1当即办理,0网络转办
155
+        	$("#result").val(itemData.F_Result)
156
+        	if (itemData.File && itemData.File.length>0) {
157
+        		var strs =
158
+					'<span class="files" fiel-num="' + itemData.File[0].F_FileId + 
159
+					'">' +itemData.File[0].F_FileName.substring(19) +
160
+					'<i class="fa fa-remove del_file"></i></span>';
161
+					
162
+				$(strs).appendTo($(".fileBox")).find(".del_file").click(function(event) {
163
+					$(this).parent().remove();
164
+					file_num1();
165
+				});
166
+				file_num1();
167
+        	} else if (itemData.FilePath) {
168
+        		var flieData = itemData.FilePath.split('.')
169
+        		var fialeName = flieData[flieData.length-1]
170
+        		console.log(flieData[flieData.length-1])
171
+        		var strs =
172
+					'<span class="files">' +fialeName +
173
+					'<i class="fa fa-remove del_file"></i></span>';
174
+				$("#file").val(0)
175
+				$(strs).appendTo($(".fileBox")).find(".del_file").click(function(event) {
176
+					$(this).parent().remove();
177
+					file_num1();
178
+				});
179
+        	}
180
+        }
181
+        //上传文件隐藏域值
182
+		function file_num1() {
183
+			var str = "";
184
+			var Str;
185
+			$(".fileBox .files").each(function(j, m) {
186
+				var aa = $(m).attr("fiel-num");
187
+				str += aa + ",";
188
+				Str =
189
+					str.substring(str.length - 1) == "," ?
190
+					str.substring(0, str.length - 1) :
191
+					str;
192
+			});
193
+			$("#file").val(Str);
194
+		}
195
+
196
+    </script>
197
+</body>
198
+
199
+</html>

+ 115 - 0
WebUI/CallCenterWeb.UI/CommonHtml/cpns/复制 detailEditVisit.html

@@ -0,0 +1,115 @@
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
+			.HT {
27
+				display: none;
28
+			}
29
+		</style>
30
+	</head>
31
+
32
+	<body>
33
+		<div class="Common">
34
+			<table>
35
+				 <th class="Importent">回访结果:</th>
36
+                <td>
37
+                    <input checked="true" type="radio" value="1" name="huifang" />满意
38
+                    <input type="radio" value="0" name="huifang" />不满意
39
+                </td>
40
+				
41
+				<tr>
42
+					<th>附件上传:</th>
43
+					<td colspan="7">
44
+						<div class="fileBox"></div>
45
+						<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
46
+						<input class="input" type="button" value="上传" id="scwj" />
47
+						<input type="hidden" id="file" />
48
+						<span style="color:#FF0000; border: none;">
49
+                        	(文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
50
+                        </span>
51
+					</td>
52
+				</tr>
53
+			</table>
54
+			<div class="btn_box">
55
+				<button class="btns">保存</button>
56
+			</div>
57
+		</div>
58
+		<script src="../../css/laydate/laydate.js"></script>
59
+		<script src="../../js/adjustHeight.js"></script>
60
+		<script src="../../Script/Common/huayi.common.js"></script>
61
+		<script>
62
+			var wid = helper.request.queryString("wid");
63
+			var type = helper.request.queryString("type");
64
+			console.log(type)
65
+			$(document).ready(function() {
66
+				XQ();
67
+			})
68
+			//上传附件
69
+			$("#scwj").click(function() {
70
+				$("#upFile").trigger("click");
71
+			})
72
+			$("#upFile").change(function() {
73
+				upload('upFile', '.fileBox', ['png', 'jpg', 'mp3', 'mp4', 'pdf', 'doc', 'docx', 'xls', 'xlsx'], "#file");
74
+			})
75
+			$("#scfj").click(function() {
76
+				$(".fjnr").text("");
77
+				$("#scfj").hide();
78
+			})
79
+			$(".btns").click(function() {
80
+				JA();
81
+			})
82
+			//批示
83
+			function JA() {
84
+				$.post(huayi.config.callcenter_url + 'WorkOrder/EditSuperInfoByAdmin', {
85
+					id: wid,
86
+					type: $("#Types").val(), //(1领导批示 2市长指示)
87
+					superuser: $("#superuser").val(), //批示人&
88
+					superopinion: $('#superopinion').val(), //批示内容&
89
+					files: $("#file").val(), //附件id(多个用英文逗号,隔开
90
+					"token": $.cookie("token")
91
+				}, function(result) {
92
+					result = JSON.parse(result);
93
+					if(result.state.toLowerCase() == "success") {
94
+						parent.parent.layer.closeAll();
95
+						parent.parent.$('#orderlist').bootstrapTable('refresh');
96
+						parent.parent.layer.msg("操作成功!");
97
+					}
98
+				})
99
+			}
100
+
101
+			function XQ() {
102
+				$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrderNew', {
103
+					workorderid: wid,
104
+					type: 6,
105
+					token: $.cookie("token")
106
+				}, function(result) {
107
+					if(result.state.toLowerCase() == "success") {
108
+						console.log(result)
109
+					}
110
+				})
111
+			}
112
+		</script>
113
+	</body>
114
+
115
+</html>

+ 253 - 0
WebUI/CallCenterWeb.UI/CommonHtml/editCategory.html

@@ -0,0 +1,253 @@
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/bootstrap-select.css" />
9
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+		<link rel="stylesheet" href="../css/addappeal.css" />
11
+		<link href="../css/layer/need/layer.css" />
12
+		<link rel="stylesheet" href="../css/init.css" />
13
+		<link rel="stylesheet" href="../js/layui/css/layui.css">
14
+		<script src="../js/laydate/laydate.js"></script>
15
+
16
+		<title>新增诉求工单</title>
17
+		<style>
18
+			.reflectCategory-wrapper {
19
+				position: relative;
20
+			}
21
+			
22
+			.reflectCategoryList-wrapper {
23
+				display: none;
24
+				position: absolute;
25
+				top: 38px;
26
+				z-index: 9999;
27
+				line-height: 32px;
28
+				background: #FFF;
29
+			}
30
+			
31
+			#reflectCategoryList {
32
+				height: 240px;
33
+				background: #FFF;
34
+				border: 1px solid #e5e6e7;
35
+				overflow: auto;
36
+			}
37
+			
38
+			#reflectCategoryList li {
39
+				padding: 0 10px;
40
+				width: 100%;
41
+				line-height: 32px;
42
+			}
43
+			
44
+			#reflectCategoryList li:hover {
45
+				background: #00a1cb;
46
+			}
47
+			
48
+			.bootstrap-select .dropdown-menu {
49
+				height: 360px !important;
50
+			}
51
+			
52
+			.bootstrap-select .dropdown-menu li a span.text {
53
+				color: inherit
54
+			}
55
+		</style>
56
+
57
+	</head>
58
+
59
+	<body>
60
+		<input type="hidden" id="PID" value="" />
61
+		<div class="wrapper wrapper-content animated fadeInRight">
62
+			<div style="padding: 10px" class="tj_content clearFix">
63
+				<div class="Common">
64
+					<table>
65
+						<tr>
66
+							<th class="Importent">反映类别:</th>
67
+							<td class="reflectCategory-wrapper">
68
+								<input type="text" id="reflectCategory" class="form-control" autocomplete="off" />
69
+								<div class="reflectCategoryList-wrapper">
70
+									<ul id="reflectCategoryList">
71
+									</ul>
72
+								</div>
73
+							</td>
74
+						</tr>
75
+					</table>
76
+					<div class="btn_box">
77
+			            <button class="btns BC">提交</button>
78
+			        </div>
79
+				</div>
80
+			</div>
81
+		</div>
82
+		<script src="../js/layui/layui.js"></script>
83
+		<script src="../js/bootstrap-select.js"></script>
84
+		<script src="../js/adjustHeight.js"></script>
85
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
86
+		<script src="../js/ztreeSelect.js"></script>
87
+		<script src="../Script/Common/huayi.common.js"></script>
88
+
89
+		<script>
90
+			var wid = helper.request.queryString("wid");
91
+			console.log(wid)
92
+			$(document).ready(function() {
93
+				getReactionCategory();
94
+
95
+
96
+				$("#reflectCategory").bind("input propertychange", function() {
97
+					$(".layui-dropdown").hide();
98
+					if($("#reflectCategory").val() == "") {
99
+						$(".reflectCategoryList-wrapper").hide();
100
+						return;
101
+					}
102
+					var debounceGetSearchReactionCategory = debounce(getSearchReactionCategory, 500)
103
+					$(".reflectCategoryList-wrapper").show();
104
+					debounceGetSearchReactionCategory($("#reflectCategory").val())
105
+				})
106
+				$("#reflectCategoryList").on("click", "li", function() {
107
+					$(".reflectCategoryList-wrapper").hide();
108
+					$("#reflectCategory").val($(this).attr("indexName"));
109
+					$("#PID").val($(this).attr("index"));
110
+				});
111
+
112
+				
113
+
114
+				$(".BC").click(function() {
115
+					Add();
116
+				});
117
+
118
+
119
+				if(wid) {
120
+					$.ajax({
121
+						type: "get",
122
+						url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew",
123
+						dataType: "json",
124
+						async: false,
125
+						data: {
126
+							workorderid: wid,
127
+							type: 0, // 工单信息
128
+							token: $.cookie("token"),
129
+						},
130
+						success: function(data) {
131
+							if(data.state.toLowerCase() == "success") {
132
+								var Data = data.data.data;
133
+								$("#reflectCategory").val(Data[0].KeyName)
134
+								$("#PID").val(Data[0].F_Key)
135
+
136
+							}
137
+						},
138
+					});
139
+				}
140
+			});
141
+
142
+			///修改工单
143
+			function Add() {
144
+//				if(!$("#PID").val()) {
145
+//					layer.msg("请选择反应类别");
146
+//					return
147
+//				}
148
+
149
+				$.ajax({
150
+					type: "post",
151
+					url: huayi.config.callcenter_url + "WorkOrder/EditCategory",
152
+					dataType: "json",
153
+					async: true,
154
+					data: {
155
+						workorderid: wid,
156
+						keyid: $("#PID").val(), //=关键词id(多个用英文逗号,隔开) keys
157
+						token: $.cookie("token"),
158
+					},
159
+					success: function(data) {
160
+						if(data.state.toLowerCase() == "success") {
161
+							var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
162
+								parent.layer.close(index); //再执行关闭
163
+								parent.$("#orderlist").bootstrapTable("refresh");
164
+								parent.layer.msg(data.message);
165
+						}
166
+					},
167
+				});
168
+				// }
169
+			}
170
+
171
+			
172
+
173
+			function closePage() {
174
+				var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
175
+				parent.layer.close(index); //再执行关闭
176
+				parent.$("#orderlist").bootstrapTable("refresh");
177
+				parent.layer.msg("操作成功");
178
+			}
179
+
180
+			function getReactionCategory(pid = 38) {
181
+				$.get(
182
+					huayi.config.callcenter_url + "Dictionary/GetZTreeNew", {
183
+						token: $.cookie("token"),
184
+						pid: pid,
185
+					},
186
+					function(result) {
187
+						result = $.parseJSON(result);
188
+						var content = JSON.parse(result.data);
189
+						layui.use("dropdown", function() {
190
+							var dropdown = layui.dropdown;
191
+							dropdown.render({
192
+								elem: "#reflectCategory", //可绑定在任意元素中,此处以上述按钮为例
193
+								data: content,
194
+								id: "reflectCategory",
195
+								//菜单被点击的事件
196
+								click: function(obj) {
197
+									$("#reflectCategory").val(obj.title);
198
+									$("#PID").val(obj.id);
199
+								},
200
+							});
201
+						});
202
+					}
203
+				);
204
+			}
205
+
206
+			function getSearchReactionCategory(key) {
207
+				$("#reflectCategoryList").empty();
208
+				$.get(
209
+					huayi.config.callcenter_url + "Dictionary/GetKeyListNew", {
210
+						token: $.cookie("token"),
211
+						key: key,
212
+					},
213
+					function(result) {
214
+						result = $.parseJSON(result);
215
+						if(result.state.toLowerCase() === "success") {
216
+							var content = result.data;
217
+							if(content.length > 0) {
218
+								content.forEach(function(e, i) {
219
+									$(
220
+										"<li index='" +
221
+										e.id +
222
+										"' indexName='" +
223
+										e.name +
224
+										"'>" +
225
+										e.names +
226
+										"</li>"
227
+									).appendTo("#reflectCategoryList");
228
+								});
229
+							} else {
230
+								$("<li index='' indexName=''>没有相关数据</li>").appendTo(
231
+									"#reflectCategoryList"
232
+								);
233
+							}
234
+						}
235
+					}
236
+				);
237
+			}
238
+
239
+			function debounce(fun, delay) {
240
+				return function(args) {
241
+					var that = this;
242
+					var _args = args;
243
+					clearTimeout(fun.id);
244
+					fun.id = setTimeout(function() {
245
+						fun.call(that, _args);
246
+					}, delay);
247
+				};
248
+			}
249
+
250
+		</script>
251
+	</body>
252
+
253
+</html>

+ 177 - 0
WebUI/CallCenterWeb.UI/CommonHtml/js/orderDetail.js

@@ -0,0 +1,177 @@
1
+//回访信息
2
+function detialVisit(result) {
3
+	var html= '';
4
+	var html1 = '';
5
+	var html2 = '';
6
+	var visitRole = ['GLY','ZXLD']
7
+	
8
+	if(result.data.length < 0) {
9
+		html = '<tr>' +
10
+			'<td class="text-center">' + n.UserName + '</td>' +
11
+			'</tr>';
12
+	} else {
13
+		$(".HGXX").empty();
14
+		$(result.data).each(function(i, n) {
15
+			var a;
16
+			var b;
17
+			if(String(n.F_IsSatisfie) === "0") {
18
+				a = "不满意";
19
+			} else if(String(n.F_IsSatisfie) == "1") {
20
+				a = "满意";
21
+			}
22
+			if(n.F_Type == 0) {
23
+				b = "电话";
24
+			} else if(n.F_Type == 1) {
25
+				b = "微信";
26
+			} else if(n.F_Type == 2) {
27
+				b = "智能回访";
28
+			} else if(n.F_Type == 3) {
29
+				b = "网站";
30
+			} else if(n.F_Type == 4) {
31
+				b = "微博";
32
+			} else if(n.F_Type == 5) {
33
+				b = "信箱";
34
+			}
35
+
36
+			html+= '<tr>' +
37
+				'<td class="text-center">' + (i + 1) +
38
+				'</td>' +
39
+				'<td class="text-center">' + n.F_VisitUser +
40
+				'</td>' +
41
+				'<td class="text-center">' + b + '</td>' +
42
+				'<td class="text-center">' + n.F_Result +
43
+				'</td>' +
44
+				'<td class="text-center">' + a + '</td>' +
45
+				'<td class="text-center">' + n.F_CreateTime +
46
+				'</td>' +
47
+				'<td class="text-center phoneTitle3"><a href="#">' + encryptPhoneNumber +
48
+				'</a></td>'
49
+			
50
+			html += '<td class="text-center">'
51
+			var audioFile = '';
52
+			
53
+			console.log(n.File)
54
+			if(n.File && n.File.length>0) {
55
+				audioFile += '<div class="imgs">' +
56
+					'<img src="../img/vice.png" alt="" onclick="recordingFun(this)" item="' +
57
+					n.File[0].F_FileUrl + '" />' +
58
+					'</div>';
59
+			} else if(n.FilePath) {
60
+				audioFile += '<div class="imgs">' +
61
+					'<img src="../img/vice.png" alt="" onclick="recordingFun(this)" item="' +
62
+					n.FilePath + '" />' +
63
+					'</div>';
64
+			}
65
+			html += audioFile
66
+			html1 = html
67
+			html1 +=  '</tr>'
68
+			
69
+			html2 = html
70
+			if (visitRole.indexOf(roleCode)!== -1) {
71
+				$(".visitLimit").show()
72
+				var itemHf = JSON.stringify(n).replace(/"/g, "'")
73
+				html2 += '</td>'
74
+				html2 += '<td class="text-center">' +   
75
+					'<a class="xg" onclick="visitHandle('+itemHf+')" title="修改">修改</a>' +
76
+					"<a class='xg' onclick='deleteVisit(\""+n.F_Id+"\")' title='删除'>删除</a>" +
77
+					'</td>';
78
+			}
79
+			
80
+			html2 +=  '</tr>'
81
+		})
82
+		$(html2).appendTo($(".HGXX"));
83
+		$(html1).appendTo($(".HGXX1"));
84
+		
85
+
86
+		
87
+		$(".phoneTitle3").click(function() {
88
+			var isSecret
89
+			if($('.MJ').text() == "普通") {
90
+				isSecret = 1
91
+			} else {
92
+				isSecret = 2
93
+			}
94
+			layer.open({
95
+				type: 2,
96
+				content: "./callerNumber.html?phoneNumber=" + encodeURIComponent(phoneNumber) + "&wid=" + wid + "&isSecret=" + isSecret + "&type=1", //iframe的url,no代表不显示滚动条
97
+				title: "回访号码",
98
+				area: ["40%", "25%"], //宽高
99
+			});
100
+		})
101
+	}
102
+}
103
+
104
+//var title =item?'编辑':'添加'
105
+//var contentUrl=item?"./addOrEditUser.html?item="+encodeURIComponent(JSON.stringify(item)):"./addOrEditUser.html"
106
+function visitHandle(item) {
107
+	var title =item?'编辑回访记录':'添加回访记录'
108
+	var contentUrl
109
+	var visitUrl = "./cpns/detailEditVisit.html?wid="+wid
110
+	if (item) {
111
+		contentUrl = visitUrl+"&item="+encodeURIComponent(JSON.stringify(item))
112
+	} else {
113
+		contentUrl = visitUrl
114
+	}
115
+	layer.open({
116
+		type: 2,
117
+		content: contentUrl,
118
+		title: title,
119
+		area: ["80%", "60%"], //宽高
120
+	});
121
+}
122
+function deleteVisit (id) {
123
+	layer.confirm(
124
+        "确定删除?", {
125
+            btn: ["是", "否"], //按钮
126
+        },
127
+        function () {
128
+            $.post(
129
+                huayi.config.callcenter_url +
130
+                "WorkOrder/DeleteVisitInfoByAdmin", {
131
+                    id: id,
132
+                    token: $.cookie("token"),
133
+                },
134
+                function (result) {
135
+                    result = JSON.parse(result);
136
+                    if (result.state.toLowerCase() == "success") {
137
+                        layer.msg("删除成功");
138
+                        load('6')
139
+                    }
140
+                }
141
+            );
142
+        }
143
+    );
144
+//	layer.confirm(
145
+//      "确定删除?", {
146
+//          btn: ["是", "否"], //按钮
147
+//      },
148
+//      function () {
149
+//      	console.log('删除')
150
+//      	$.ajax({
151
+//             	type:'post',
152
+//             	dataType: 'json',
153
+//             	url:huayi.config.callcenter_url + "DeleteVisitInfoByAdmin",
154
+//             	async:true,
155
+//             	success:function(data){
156
+//             		if(data.state == "success") {
157
+//						layer.msg("删除成功");
158
+//						load('6')
159
+//             		}
160
+//             	}
161
+//     		});
162
+//      }
163
+//  );
164
+}
165
+function recordingFun(htmlstr) {
166
+	var path = $(htmlstr).attr("item");
167
+	layer.open({
168
+		type: 2,
169
+		content: "../CommonHtml/recording.html?path=" + path, //iframe的url,no代表不显示滚动条
170
+		title: '录音',
171
+		area: ['30%', '20%'], //宽高
172
+		maxmin: true,
173
+		shade: 0
174
+	});
175
+}
176
+
177
+

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

@@ -12,12 +12,13 @@ huayi.config = {
12 12
 	//	translation_socket:"ws://192.168.8.7:8081",
13 13
 	
14 14
 	
15
-//	videoSocket_url: "wss://12345rx.zwfw.anyang.gov.cn:65512", //docking.zwfw.anyang.gov.cn 
16
-//	sip_ip:"12345sp.zwfw.anyang.gov.cn",
17
-//	sip_password_:"1234", 
18
-//	ws_uri_:"wss://12345sp2.zwfw.anyang.gov.cn:7443",
19
-
20
-//	contact_uri:"@12345sp2.zwfw.anyang.gov.cn;transport=wss",  //
15
+	videoSocket_url: "wss://12345rx.zwfw.anyang.gov.cn:65512", //docking.zwfw.anyang.gov.cn 
16
+	
17
+	sip_ip:"12345sp.zwfw.anyang.gov.cn",
18
+	sip_password_:"1234", 
19
+	ws_uri_:"wss://12345sp2.zwfw.anyang.gov.cn:7443",
20
+	contact_uri:"@12345sp2.zwfw.anyang.gov.cn;transport=wss",  //
21
+	
21 22
 //	socket_ip: "192.168.1.10",
22 23
 //	socket_port: "9002",
23 24
 //	ws_uri_: "ws://192.168.1.10:5066", //端口  
@@ -34,11 +35,11 @@ huayi.config = {
34 35
 //	ws_uri_:"wss://12345sp1.jbdu.cn:7443",
35 36
 //	contact_uri:"@12345sp1.jbdu.cn;transport=wss",
36 37
 
37
-	videoSocket_url: "ws://192.168.1.9:9002", //docking.zwfw.anyang.gov.cn 
38
-	sip_ip:"192.168.1.9",
39
-	sip_password_:"123456", 
40
-	ws_uri_:"ws://192.168.1.9:5066",
41
-	contact_uri:"@192.168.1.9;transport=ws",
38
+//	videoSocket_url: "ws://192.168.1.9:9002", //docking.zwfw.anyang.gov.cn 
39
+//	sip_ip:"192.168.1.9",
40
+//	sip_password_:"123456", 
41
+//	ws_uri_:"ws://192.168.1.9:5066",
42
+//	contact_uri:"@192.168.1.9;transport=ws",
42 43
 	
43 44
     menuworktime: 30000, //菜单工单数量刷新间隔
44 45
     indextime: 60000*30, //首页报表刷新间隔
@@ -115,6 +116,7 @@ huayi.config = {
115 116
           "<a class='xg' onclick='audioAddReplyThird(\"data\",\"isProtect\")' title='审核三级单位追加回复'>审核追加回复</a>", //70 审核三级单位追加回复
116 117
           "<a class='xg' onclick='addReplyThird(\"data\")' title='三级单位追加回复'>追加回复</a>", //71 三级单位追加回复
117 118
           "<a class='xg' onclick='reschedule(\"data\")' title='转调度'>转调度</a>", //72 转调度
119
+           "<a class='xg' onclick='editCategory (\"data\")' title='修改反应类别'>修改反应类别</a>", //72 转调度
118 120
          
119 121
          
120 122
     ],

+ 10 - 2
WebUI/CallCenterWeb.UI/commonWorderList/js/orderListOperation.js

@@ -33,7 +33,6 @@ function move(str) {
33 33
                 function (result) {
34 34
                     result = JSON.parse(result);
35 35
                     if (result.state.toLowerCase() == "success") {
36
-                        debugger;
37 36
                         layer.msg("删除成功");
38 37
                         $("#orderlist").bootstrapTable("refresh");
39 38
                     }
@@ -950,4 +949,13 @@ function addReplyThird(str,isProtect){
950 949
 		title: "办理工单",
951 950
 		area: ["100%", "80%"], //宽高
952 951
 	});
953
-}
952
+}
953
+// 修改反应类别73
954
+function editCategory(str){
955
+	layer.open({
956
+		type: 2,
957
+		content: "../CommonHtml/editCategory.html?wid=" + str , // iframe的url,no代表不显示滚动条
958
+		title: "修改反应类别",
959
+		area: ["60%", "50%"], //宽高
960
+	});
961
+}

+ 10 - 1
WebUI/CallCenterWeb.UI/js/WorkOrder/orderListOperation.js

@@ -890,4 +890,13 @@ function reschedule(data) {
890 890
 		area: ["30%", "50%"], //宽高
891 891
 		shade: 0,
892 892
 	});
893
-}
893
+}
894
+// 修改反应类别73
895
+function editCategory(str){
896
+	layer.open({
897
+		type: 2,
898
+		content: "../CommonHtml/editCategory.html?wid=" + str , // iframe的url,no代表不显示滚动条
899
+		title: "修改反应类别",
900
+		area: ["60%", "50%"], //宽高
901
+	});
902
+}

+ 1 - 1
WebUI/CallCenterWeb.UI/js/index.js

@@ -261,7 +261,7 @@ $(document).ready(function() {
261 261
 				$(".settingMobile").val(result.data.user.F_Mobile);
262 262
 				$(".settingTelephone").val(result.data.user.F_Telephone);
263 263
 				if(result.data.user.F_SeatFlag) {
264
-					Connect();
264
+//					Connect();
265 265
 					if($.cookie("code") == "spdbzy") {
266 266
 						layer.open({
267 267
 							type: 2,