Browse Source

3.4.0需求修改

miaofuhao 2 years ago
parent
commit
e6320461fc

+ 1 - 150
WebChartNewest/css/index.css

@@ -1033,157 +1033,7 @@ input::-webkit-input-placeholder{
1033 1033
 	top: -17px;
1034 1034
 	z-index: 8;
1035 1035
 }
1036
-/* 坐席监控 */
1037
-.zx_cont{
1038
-	width: 64.7%;
1039
-	float: left;
1040
-	margin-right: 20px;
1041
-	padding: 10px;
1042
-	background-color:#072e86;
1043
-	position: relative;
1044
-}
1045
-.zx_charts{
1046
-	width: 33%;
1047
-	float: left;
1048
-	/* background-color: #072e86; */
1049
-}
1050
-.zx_cont .zx_state span i {
1051
-	display: inline-block;
1052
-	width: 20px;
1053
-	height: 21px;
1054
-	vertical-align: middle;
1055
-	margin-right: 10px;
1056
-	background: url(../image/second/zuoxiIcon.png) no-repeat;
1057
-}
1058
-.zx_cont .zx_state{
1059
-	background-color: #064695;
1060
-	/*width: 680px;*/
1061
-	display: inline-block;
1062
-	padding: 13px 10px;
1063
-	margin-left: 50px;
1064
-}
1065
-.zx_cont .zx_state span{
1066
-	margin-right: 16px;
1067
-	font-size: 16px;
1068
-	color: #fff;
1069
-}
1070
-.zx_btn{
1071
-	position: absolute;
1072
-	top: 13px;
1073
-	right: 47px;
1074
-}
1075
-.zx_btn button{
1076
-	outline: none;
1077
-    border: none;
1078
-    padding: 10px 15px;
1079
-    font-size: 16px;
1080
-    color: #fff;
1081
-    border-radius: 5px;
1082
-    background-color: #064695;
1083
-    margin-right: 7px;
1084
-}
1085
-.dis {
1086
-	background: #989898;
1087
-}
1088
-.hc {
1089
-background-position: 0 0 !important;
1090
-}
1091
-
1092
-.ml {
1093
-background-position: 0 -24px !important;
1094
-}
1095
-
1096
-.kx {
1097
-background-position: 0 -68px !important;
1098
-}
1099
-
1100
-.zl {
1101
-background-position: 0 -93px !important;
1102
-}
1103
-
1104
-.qc {
1105
-background-position: 0 -116px !important;
1106
-}
1107
-
1108
-.lx {
1109
-	background-position: 0 -138px !important;
1110
-}
1111
-
1112
-.hh {
1113
-	background-position: 0 -46px !important;
1114
-}
1115 1036
 
1116
-.zx_people{
1117
-	padding: 20px 15px;
1118
-	height: 623px;
1119
-	overflow-y: auto;
1120
-}
1121
-.zx_people li{
1122
-	width: 13%;
1123
-    text-align: center;
1124
-    float: left;
1125
-    cursor: pointer;
1126
-	margin-bottom: 40px;
1127
-    margin-right: 35px;
1128
-}
1129
-.zx_people li i{
1130
-	display: none;
1131
-}
1132
-.zx_people li > div{
1133
-	width: 100%;
1134
-    position: relative;
1135
-}
1136
-.bg_person{
1137
-	background: url(../image/second/callIcon.png)no-repeat;
1138
-    width: 55px;
1139
-    height: 55px;
1140
-	background-size: 100% 100%;
1141
-    text-align: -webkit-center;
1142
-    background-position: center center;
1143
-    margin: 0 auto;
1144
-	background-color: #06256b;
1145
-	margin-bottom: 3px;
1146
-}
1147
-.people_list p{
1148
-	margin-bottom: 5px im !important;
1149
-}
1150
-.people_list i{
1151
-	display: block;
1152
-    height: 22px;
1153
-    width: 20px;
1154
-    background: url(../image/second/zuoxiIcon.png) no-repeat;
1155
-    position: absolute;
1156
-    right: 20px;
1157
-    top: -6px;
1158
-}
1159
-.dg {
1160
-	background: url(../image/second/zuoxidaogang.png) no-repeat !important;
1161
-	background-size: 100% 100% !important; 
1162
-}
1163
-.people_list div div{
1164
-	float: left;
1165
-}
1166
-.zx_bz,.zx_hw{
1167
-	text-align: center;
1168
-	background-image: url(../image/second/titlt_icon.png);
1169
-	background-position: center;
1170
-	background-repeat:  no-repeat;
1171
-	margin: 10px 0;
1172
-	font-size: 20px;
1173
-	color: #fff;
1174
-}
1175
-.g-num{
1176
-	/* font-weight: 600; */
1177
-	color: #fff;
1178
-}
1179
-.g-name{
1180
-	/* color: #fff; */
1181
-	color: #fff;
1182
-    position: absolute;
1183
-    width: 116px;
1184
-    bottom: -75px;
1185
-    left: 10px;
1186
-}
1187 1037
 .zx_charts h3{
1188 1038
 	color: #fff;
1189 1039
 	font-size: 20px;
@@ -1222,3 +1072,4 @@ background-position: 0 -116px !important;
1222 1072
 }
1223 1073
 
1224 1074
 
1075
+

+ 158 - 0
WebChartNewest/css/newSeats.css

@@ -0,0 +1,158 @@
1
+/* 坐席监控 */
2
+.zx_cont{
3
+	width: 64.7%;
4
+	float: left;
5
+	margin-right: 20px;
6
+	padding: 10px;
7
+	background-color:#072e86;
8
+	position: relative;
9
+}
10
+.seatBox{
11
+	position: relative;
12
+}
13
+.zx_charts{
14
+	width: 33%;
15
+	float: left;
16
+	/* background-color: #072e86; */
17
+}
18
+.zx_cont .zx_state span i {
19
+	display: inline-block;
20
+	width: 20px;
21
+	height: 21px;
22
+	vertical-align: middle;
23
+	margin-right: 10px;
24
+	background: url(../image/second/zuoxiIcon.png) no-repeat;
25
+}
26
+.zx_cont .zx_state{
27
+	background-color: #064695;
28
+	/*width: 680px;*/
29
+	display: inline-block;
30
+	padding: 13px 10px;
31
+	margin-left: 50px;
32
+}
33
+.zx_cont .zx_state span{
34
+	margin-right: 16px;
35
+	font-size: 16px;
36
+	color: #fff;
37
+}
38
+.zx_btn{
39
+	position: absolute;
40
+	top: 13px;
41
+	right: 47px;
42
+}
43
+.zx_btn button{
44
+	outline: none;
45
+    border: none;
46
+    padding: 10px 15px;
47
+    font-size: 16px;
48
+    color: #fff;
49
+    border-radius: 5px;
50
+    background-color: #064695;
51
+    margin-right: 7px;
52
+}
53
+.dis {
54
+	background: #989898;
55
+}
56
+.hc {
57
+background-position: 0 0 !important;
58
+}
59
+
60
+.ml {
61
+background-position: 0 -24px !important;
62
+}
63
+
64
+.kx {
65
+background-position: 0 -68px !important;
66
+}
67
+
68
+.zl {
69
+background-position: 0 -93px !important;
70
+}
71
+
72
+.qc {
73
+background-position: 0 -116px !important;
74
+}
75
+
76
+.lx {
77
+	background-position: 0 -138px !important;
78
+}
79
+
80
+.hh {
81
+	background-position: 0 -46px !important;
82
+}
83
+
84
+.zx_people{
85
+	padding: 20px 15px;
86
+	height: 623px;
87
+	overflow-y: auto;
88
+}
89
+.zx_people li dl {
90
+	overflow: hidden;
91
+	padding: 15px 0px;
92
+}
93
+.zx_people li dl dt{
94
+	width: 13%;
95
+    text-align: center;
96
+    float: left;
97
+    cursor: pointer;
98
+	margin-bottom: 40px;
99
+    margin-right: 35px;
100
+}
101
+.zx_people li i{
102
+	display: none;
103
+}
104
+.bg_person{
105
+	background: url(../image/second/callIcon.png)no-repeat;
106
+    width: 55px;
107
+    height: 55px;
108
+	background-size: 100% 100%;
109
+    text-align: -webkit-center;
110
+    background-position: center center;
111
+    margin: 0 auto;
112
+	background-color: #06256b;
113
+	margin-bottom: 3px;
114
+}
115
+.people_list p{
116
+	margin-bottom: 5px !important;
117
+}
118
+.people_list i{
119
+	display: block;
120
+    height: 22px;
121
+    width: 20px;
122
+    background: url(../image/second/zuoxiIcon.png) no-repeat;
123
+    position: absolute;
124
+    right: 20px;
125
+    top: -6px;
126
+}
127
+.dg {
128
+	background: url(../image/second/zuoxidaogang.png) no-repeat !important;
129
+	background-size: 100% 100% !important; 
130
+}
131
+.zx_bz,.zx_hw{
132
+	text-align: center;
133
+	background-image: url(../image/second/titlt_icon.png);
134
+	background-position: center;
135
+	background-repeat:  no-repeat;
136
+	margin: 10px 0;
137
+	font-size: 20px;
138
+	color: #fff;
139
+}
140
+.g-num{
141
+	color: #fff;
142
+	position: absolute;
143
+    left: 0;
144
+    top: -5px;
145
+}
146
+.g-name{
147
+	color: #fff;
148
+    width: 116px;
149
+}
150
+.group_btn {
151
+	display: inline-block;
152
+    padding: 7px 15px;
153
+    color: #FFF;
154
+    border-radius: 5px;
155
+    background: #00c4ff;
156
+    margin-left: 32px;
157
+    margin-bottom: 20px;
158
+}

+ 20 - 12
WebChartNewest/index.html

@@ -15,6 +15,7 @@
15 15
 	<link rel="stylesheet" href="./css/workProcedure.css">
16 16
 	<link rel="stylesheet" href="./css/map.css">
17 17
 	<link rel="stylesheet" href="./css/laydate/need/laydate.css">
18
+	<link rel="stylesheet" href="./css/newSeats.css" />
18 19
 </head>
19 20
 
20 21
 <body>
@@ -639,18 +640,23 @@
639 640
 					</div>
640 641
 					<h3 class="zx_bz">话务坐席</h3>
641 642
 					<ul class="zx_people">
642
-						<li class="people_list ">
643
-							<div>
644
-								<div style="margin-right: 3px;">
645
-									<span class="g-num">8000</span>
646
-								</div>
647
-								<div>
648
-									<div class="bg_person"></div>
649
-									<p><span class="g-name">罗雪琪(供暖)</span> </p>
650
-									<i class="lx" zx_item="0" xl_item="0"></i>
651
-								</div>
652
-							</div>
653
-						</li>
643
+						<!--<li class="people_list"> 
644
+							<div class="group_btn">A组</div>
645
+							<dl>
646
+								<dt>
647
+									<div>
648
+										<div style="margin-right: 3px;">
649
+											<span class="g-num">8000</span>
650
+										</div>
651
+										<div>
652
+											<div class="bg_person"></div>
653
+											<p><span class="g-name">罗雪琪(供暖)</span> </p>
654
+											<i class="lx" zx_item="0" xl_item="0"></i>
655
+										</div>
656
+									</div>
657
+								</dt>
658
+							</dl>
659
+						</li>-->
654 660
 					</ul>
655 661
 					<!-- <h3 class="zx_hw">话务坐席</h3> -->
656 662
 				</div>
@@ -912,5 +918,7 @@
912 918
 <script src="js/trafficData.js"></script>
913 919
 <!--2023-06-01 切换年月日-->
914 920
 <script src="js/newAdd/timetype.js"></script>
921
+<!-- 2023-06-06 坐席监控修改 -->
922
+<script src="js/newSeats.js"></script>
915 923
 
916 924
 </html>

+ 111 - 98
WebChartNewest/js/index.js

@@ -2025,104 +2025,117 @@ $('#traffic').click(function () {
2025 2025
 	}
2026 2026
 })
2027 2027
 //坐席
2028
-$('#timeTraffic').click(function (e) {
2029
-	let zxNum = Math.floor(Math.random() * 10000 + 10000)
2030
-	let user;
2031
-	$('.bulletFrame').show();
2032
-	if ($('.bulletFrame').css('display') == 'block') {
2033
-		$('.body').css('opacity', '0.4')
2034
-	}
2035
-	$('.seatMonitor').show();
2036
-	$('.seatMonitor').siblings().hide()
2037
-	//坐席列表展示 GetSeatflagList
2038
-	$.getJSON(huayi.config.callcenter_url + 'SeatMonitoring/GetSeatGroupList', {}, function (res) {
2039
-		user = res.data
2040
-		if (res.state.toLowerCase() == "success") {
2041
-			let str = ''
2042
-			res.data.forEach(function (v, n) {
2043
-				if (v.F_WorkNumber != 8071 && v.F_WorkNumber != 8069 && v.F_WorkNumber != 8062) {
2044
-					var objSeat = {}
2045
-					objSeat.groupID =v.F_SeartGroupID
2046
-					objSeat.agentID =v.F_WorkNumber
2047
-					seatData.push(objSeat)
2048
-					str += '<li class="people_list ' + v.F_WorkNumber + 
2049
-					' "><div><div style="margin-right: 3px;"><span class="g-num">' + v.F_WorkNumber +
2050
-					'</span></div><div ><div class="bg_person"></div><p><span class="g-name">' + v.F_UserName+
2051
-					'</span> </p><i class="lx" zxGroup="'+v.F_SeartGroupID+'"  zx_item="0" xl_item="0"></i></div></div></li>'
2052
-				}
2053
-			})
2054
-			$('.zx_people').html(str)
2055
-		}
2056
-	})
2057
-	//实时话务统计
2058
-	new doAjax({
2059
-		url: huayi.config.callcenter_url + "/InfoNew/GetHWTypeCount24ByNow",
2060
-		data: {},
2061
-		callBack: function (res) {
2062
-			getRealTimeTraffi(res.data.hours, res.data.hrcount[0], res.data.hccount[0])
2063
-		}
2064
-	});
2065
-	//开始坐席监控
2066
-	$('.star_btn').click(function (e) {
2067
-		obj.AgentID = zxNum;
2068
-//		var a
2069
-		$(user).each(function (i, n) {
2070
-			obj.Type = "SubScribe";
2071
-			obj.SubParmer = n.F_WorkNumber * 1;
2072
-			obj.AgentExten = 1
2073
-			obj.SubType = "0";//根据工号订阅坐席状态
2074
-			Send();
2075
-			obj.SubType = "1";//根据工号订阅线路状态
2076
-			Send();
2077
-		})
2078
-//		obj.Type = "SubScribe";
2079
-//		obj.SubParmer = 8002 * 1;
2080
-//		obj.AgentExten = 1
2081
-//		obj.SubType = "0";//根据工号订阅坐席状态
2082
-//		Send();
2028
+//$('#timeTraffic').click(function (e) {
2029
+//	let zxNum = Math.floor(Math.random() * 10000 + 10000)
2030
+//	let user;
2031
+//	$('.bulletFrame').show();
2032
+//	if ($('.bulletFrame').css('display') == 'block') {
2033
+//		$('.body').css('opacity', '0.4')
2034
+//	}
2035
+//	$('.seatMonitor').show();
2036
+//	$('.seatMonitor').siblings().hide()
2037
+//	//坐席列表展示 GetSeatflagList
2038
+//	$.getJSON(huayi.config.callcenter_url + 'SeatMonitoring/GetSeatGroupList', {}, function (res) {
2039
+//		user = res.data
2040
+//		if (res.state.toLowerCase() == "success") {
2041
+//			let str = ''
2042
+//			res.data.forEach(function (v, n) {
2043
+//				if (v.F_WorkNumber != 8071 && v.F_WorkNumber != 8069 && v.F_WorkNumber != 8062) {
2044
+////					var objSeat = {}
2045
+////					objSeat.groupID =v.F_SeartGroupID
2046
+////					objSeat.agentID =v.F_WorkNumber
2047
+////					seatData.push(objSeat) 
2048
+//					str +='<li>' 
2049
+//					if(v["坐席"]&&v["坐席"].length>0){
2050
+//						str += '<div class="group_btn">'+ v.F_Value+'组</div><dl>'
2051
+//						v["坐席"].forEach(function(m,n){
2052
+//							str += '<dt><div><div style="margin-right: 3px;"><span class="g-num">'+m.F_UserCode+
2053
+//								'</span></div><div><div class="bg_person"></div><p><span class="g-name">'+m.F_UserName+
2054
+//								'</span></p><i class="lx" zx_item="0" xl_item="0"></i></div></div></dt>'
2055
+//						})
2056
+//						str += '</dl>'
2057
+//					}
2058
+//					str += '</li>'
2059
+////					str += '<li class="people_list ' + v.F_WorkNumber + 
2060
+////					' "><div><div style="margin-right: 3px;"><span class="g-num">' + v.F_WorkNumber +
2061
+////					'</span></div><div ><div class="bg_person"></div><p><span class="g-name">' 
2062
+////					+ v.F_UserName+'</span> </p><i class="lx" zxGroup="'+v.F_SeartGroupID+
2063
+////					'"  zx_item="0" xl_item="0"></i></div></div></li>'
2064
+//				}
2065
+//			})
2066
+//			
2067
+//			$('.zx_people').html(str)
2068
+//		}
2069
+//	})
2070
+//	//实时话务统计
2071
+//	new doAjax({
2072
+//		url: huayi.config.callcenter_url + "/InfoNew/GetHWTypeCount24ByNow",
2073
+//		data: {},
2074
+//		callBack: function (res) {
2075
+//			getRealTimeTraffi(res.data.hours, res.data.hrcount[0], res.data.hccount[0])
2076
+//		}
2077
+//	});
2078
+//	//开始坐席监控
2079
+//	$('.star_btn').click(function (e) {
2080
+//		obj.AgentID = zxNum;
2081
+////		var a
2082
+//		$(user).each(function (i, n) {
2083
+//			obj.Type = "SubScribe";
2084
+//			obj.SubParmer = n.F_WorkNumber * 1;
2085
+//			obj.AgentExten = 1
2086
+//			obj.SubType = "0";//根据工号订阅坐席状态
2087
+//			Send();
2088
+//			obj.SubType = "1";//根据工号订阅线路状态
2089
+//			Send();
2090
+//		})
2091
+////		obj.Type = "SubScribe";
2092
+////		obj.SubParmer = 8002 * 1;
2093
+////		obj.AgentExten = 1
2094
+////		obj.SubType = "0";//根据工号订阅坐席状态
2095
+////		Send();
2096
+//////		obj.SubType = "1";//根据工号订阅线路状态
2097
+//////		Send();
2098
+////		obj.Type = "SubScribe";
2099
+////		obj.SubParmer = 8003 * 1;
2100
+////		obj.AgentExten = 1
2101
+////		obj.SubType = "0";//根据工号订阅坐席状态
2102
+////		Send();
2083 2103
 ////		obj.SubType = "1";//根据工号订阅线路状态
2084 2104
 ////		Send();
2085
-//		obj.Type = "SubScribe";
2086
-//		obj.SubParmer = 8003 * 1;
2087
-//		obj.AgentExten = 1
2088
-//		obj.SubType = "0";//根据工号订阅坐席状态
2089
-//		Send();
2090
-//		obj.SubType = "1";//根据工号订阅线路状态
2091
-//		Send();
2092
-		e.stopPropagation()
2093
-	})
2094
-	//关闭坐席监控
2095
-	$('.stop_btn').click(function (e) {
2096
-		$(user).each(function (i, n) {
2097
-			top.obj.Type = "SubScribeCancel";
2098
-			top.obj.SubParmer = "-1";
2099
-			top.obj.SubType = "0";//根据工号取消订阅坐席状态
2100
-			top.Send();
2101
-			top.obj.SubType = "1";//根据工号取消订阅线路状态
2102
-			top.Send();
2103
-		})
2104
-		e.stopPropagation()
2105
-	})
2106
-	//关闭坐席页面时结束坐席监控
2107
-	$('.close_zxicon').click(function (e) {
2108
-		$('.bulletFrame').hide();
2109
-		$('.bulletFrameT').hide();
2110
-		if ($('.bulletFrame').css('display') == 'none') {
2111
-			$('.body').css('opacity', '1')
2112
-		}
2113
-		if ($('.bulletFrameT').css('display') == 'none') {
2114
-			$('.body').css('opacity', '1')
2115
-		}
2116
-		$(user).each(function (i, n) {
2117
-			top.obj.Type = "SubScribeCancel";
2118
-			top.obj.SubParmer = "-1";
2119
-			top.obj.SubType = "0";//根据工号取消订阅坐席状态
2120
-			top.Send();
2121
-			top.obj.SubType = "1";//根据工号取消订阅线路状态
2122
-			top.Send();
2123
-		})
2124
-		e.stopPropagation()
2125
-	})
2126
-	e.stopPropagation()
2127
-})
2105
+//		e.stopPropagation()
2106
+//	})
2107
+//	//关闭坐席监控
2108
+//	$('.stop_btn').click(function (e) {
2109
+//		$(user).each(function (i, n) {
2110
+//			top.obj.Type = "SubScribeCancel";
2111
+//			top.obj.SubParmer = "-1";
2112
+//			top.obj.SubType = "0";//根据工号取消订阅坐席状态
2113
+//			top.Send();
2114
+//			top.obj.SubType = "1";//根据工号取消订阅线路状态
2115
+//			top.Send();
2116
+//		})
2117
+//		e.stopPropagation()
2118
+//	})
2119
+//	//关闭坐席页面时结束坐席监控
2120
+//	$('.close_zxicon').click(function (e) {
2121
+//		$('.bulletFrame').hide();
2122
+//		$('.bulletFrameT').hide();
2123
+//		if ($('.bulletFrame').css('display') == 'none') {
2124
+//			$('.body').css('opacity', '1')
2125
+//		}
2126
+//		if ($('.bulletFrameT').css('display') == 'none') {
2127
+//			$('.body').css('opacity', '1')
2128
+//		}
2129
+//		$(user).each(function (i, n) {
2130
+//			top.obj.Type = "SubScribeCancel";
2131
+//			top.obj.SubParmer = "-1";
2132
+//			top.obj.SubType = "0";//根据工号取消订阅坐席状态
2133
+//			top.Send();
2134
+//			top.obj.SubType = "1";//根据工号取消订阅线路状态
2135
+//			top.Send();
2136
+//		})
2137
+//		e.stopPropagation()
2138
+//	})
2139
+//	e.stopPropagation()
2140
+//})
2128 2141
 

+ 25 - 18
WebChartNewest/js/main.js

@@ -202,7 +202,6 @@ function Connect() {
202 202
 		heartCheck.reset().start();
203 203
 		var myDate = new Date();
204 204
 		data = JSON.parse(evt.data)[0];
205
-//		console.log(JSON.stringify(data))
206 205
 		if (data.Type == "GetAgentDetail") {
207 206
 			distributionData[0].value = data.WaiteCallCount;
208 207
 			distributionData[1].value = data.AgentOnlineCount
@@ -353,6 +352,7 @@ function SubScribeCancelBack() {
353 352
 //班长监测返回状态
354 353
 //坐席状态
355 354
 function AgentStateBack(data) {
355
+//	console.log(data)
356 356
 	var sts = "";
357 357
 	switch (data.State) {
358 358
 		case "0": sts = "lx"; break;//离线
@@ -376,25 +376,32 @@ function AgentStateBack(data) {
376 376
 			$(".zxtp i").removeClass().addClass(sts);
377 377
 		}
378 378
 	}
379
-//	if(data.State === "2"){
379
+	if(data.State === "2"){
380 380
 //		console.log(data.AgentID,data.State,data.Group,)
381
-//	}
382
-	$(".people_list").each(function(){
383
-		if($(this).find("i").attr("class")==='lx'){
384
-			if ($(this).find("i").attr("zxGroup")==data.Group) {
385
-				$(this).show()
386
-				$(this).find("i").show()
387
-				$(this).find("i").removeClass().addClass("dg");
388
-			}
389
-			if($(this).find("i").attr("class")==='lx'){
390
-				$(this).find("i").hide()
391
-			}
392
-		}else{
393
-			$(this).find("i").show()
394
-		}
381
+	}
382
+	$(".people_list dl dt").each(function(){
383
+//		console.log($(this).find("i").attr("zxGroup"))
384
+//		if($(this).find("i").attr("class")==='lx'){
385
+////			console.log($(this).find("i").attr("zxGroup"))
386
+////			console.log(data.AgentID,$(this).find("i").attr("zxGroup"))
387
+//			if ($(this).find("i").attr("zxGroup")==data.Group) {
388
+//				$(this).show()
389
+//				$(this).find("i").show()
390
+//				$(this).find("i").removeClass().addClass("dg");
391
+//				console.log($(this).find("i").attr("zxGroup"))
392
+//			}
393
+//			if($(this).find("i").attr("class")==='lx'){
394
+//				$(this).find("i").hide()
395
+//			}
396
+//		}else{
397
+//			$(this).find("i").show()
398
+//		}
399
+//		$(this).find("i").removeClass().addClass("dg");
400
+		$(this).find("i").show()
401
+		
395 402
 	})
396
-	
397
-	$(document.getElementsByClassName('people_list')[locationNum]).before($('.' + data.AgentID))
403
+//	$(".people_list dl dt").eq(0).before($('.' + data.AgentID))
404
+//	$(document.getElementsByClassName('seatList')[locationNum]).before($('.' + data.AgentID))
398 405
 }
399 406
 //线路状态
400 407
 function LineStateBack(data) {

+ 92 - 0
WebChartNewest/js/newSeats.js

@@ -0,0 +1,92 @@
1
+//坐席
2
+$('#timeTraffic').click(function (e) {
3
+	let zxNum = Math.floor(Math.random() * 10000 + 10000)
4
+	let userAway = [];
5
+	$('.bulletFrame').show();
6
+	if ($('.bulletFrame').css('display') == 'block') {
7
+		$('.body').css('opacity', '0.4')
8
+	}
9
+	$('.seatMonitor').show();
10
+	$('.seatMonitor').siblings().hide()
11
+	//坐席列表展示 GetSeatflagList
12
+	$.getJSON(huayi.config.callcenter_url + 'SeatMonitoring/GetSeatGroupList', {}, function (res) {
13
+		if (res.state.toLowerCase() == "success") {
14
+			let str = ''
15
+			res.data.forEach(function (v, n) {
16
+				if (v.F_WorkNumber != 8071 && v.F_WorkNumber != 8069 && v.F_WorkNumber != 8062) {
17
+					str +='<li class="people_list">' 
18
+					if(v["坐席"]&&v["坐席"].length>0){
19
+						str += '<div class="group_btn">'+ v.F_Value+'组</div><dl>'
20
+						v["坐席"].forEach(function(m,n){
21
+							str += '<dt  class="seatList '+ m.F_WorkNumber +
22
+								'"><div class="seatBox"><div style="margin-right: 3px;"><span class="g-num">'+m.F_UserCode+
23
+								'</span></div><div><div class="bg_person"></div><p><span class="g-name">'+m.F_UserName+
24
+								'</span></p><i class="dg" zxGroup="'+m.F_UserCode+ 
25
+								'" zx_item="0" xl_item="0"></i></div></div></dt>'
26
+							userAway.push(m.F_UserCode)
27
+						})
28
+						str += '</dl>'
29
+					}
30
+					str += '</li>'
31
+				}
32
+			})
33
+			console.log(userAway)
34
+			$('.zx_people').html(str)
35
+		}
36
+	})
37
+	//实时话务统计
38
+	new doAjax({
39
+		url: huayi.config.callcenter_url + "/InfoNew/GetHWTypeCount24ByNow",
40
+		data: {},
41
+		callBack: function (res) {
42
+			getRealTimeTraffi(res.data.hours, res.data.hrcount[0], res.data.hccount[0])
43
+		}
44
+	});
45
+	//开始坐席监控
46
+	$('.star_btn').click(function (e) {
47
+		obj.AgentID = zxNum;
48
+		$(userAway).each(function (i, n) {
49
+			obj.Type = "SubScribe";
50
+			obj.SubParmer = n * 1;
51
+			obj.AgentExten = 1
52
+			obj.SubType = "0";//根据工号订阅坐席状态
53
+			Send();
54
+			obj.SubType = "1";//根据工号订阅线路状态
55
+			Send();
56
+		})
57
+		e.stopPropagation()
58
+	})
59
+	//关闭坐席监控
60
+	$('.stop_btn').click(function (e) {
61
+		$(userAway).each(function (i, n) {
62
+			top.obj.Type = "SubScribeCancel";
63
+			top.obj.SubParmer = "-1";
64
+			top.obj.SubType = "0";//根据工号取消订阅坐席状态
65
+			top.Send();
66
+			top.obj.SubType = "1";//根据工号取消订阅线路状态
67
+			top.Send();
68
+		})
69
+		e.stopPropagation()
70
+	})
71
+	//关闭坐席页面时结束坐席监控
72
+	$('.close_zxicon').click(function (e) {
73
+		$('.bulletFrame').hide();
74
+		$('.bulletFrameT').hide();
75
+		if ($('.bulletFrame').css('display') == 'none') {
76
+			$('.body').css('opacity', '1')
77
+		}
78
+		if ($('.bulletFrameT').css('display') == 'none') {
79
+			$('.body').css('opacity', '1')
80
+		}
81
+		$(userAway).each(function (i, n) {
82
+			top.obj.Type = "SubScribeCancel";
83
+			top.obj.SubParmer = "-1";
84
+			top.obj.SubType = "0";//根据工号取消订阅坐席状态
85
+			top.Send();
86
+			top.obj.SubType = "1";//根据工号取消订阅线路状态
87
+			top.Send();
88
+		})
89
+		e.stopPropagation()
90
+	})
91
+	e.stopPropagation()
92
+})

+ 2 - 353
WebUI/CallCenterWeb.UI/Business/WorkDC.html

@@ -188,6 +188,7 @@
188 188
     <script src="../js/zTree/jquery.ztree.core.js"></script>
189 189
     <script src="../js/search/screen.js"></script>
190 190
     <script src="../js/WorkOrder/WorkOrderList.js"></script>
191
+    <script src="./js/secondaryUnit.js"></script>
191 192
 
192 193
     <script>
193 194
         var wid = helper.request.queryString("states");
@@ -459,359 +460,7 @@
459 460
             return html;
460 461
         }
461 462
 
462
-        //查看详情
463
-        function ckxq(str) {
464
-            layer.open({
465
-                type: 2,
466
-                // content: "../CommonHtml/WorkDatil.html?wid=" + str +
467
-                // "&workOrderType=todo", //iframe的url,no代表不显示滚动条
468
-                content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
469
-
470
-                title: "工单详情",
471
-                area: ["100%", "100%"], //宽高
472
-            });
473
-        }
474
-        //编辑
475
-        function bj(str) {
476
-            layer.open({
477
-                type: 2,
478
-                content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
479
-                title: "审核工单",
480
-                area: ["96%", "80%"], //宽高
481
-            });
482
-        }
483
-        //删除
484
-        function move(str) {
485
-            layer.confirm(
486
-                "确定删除工单?", {
487
-                    btn: ["是", "否"], //按钮
488
-                },
489
-                function () {
490
-                    $.post(
491
-                        huayi.config.callcenter_url +
492
-                        "WorkOrder/DelWorkOrder", {
493
-                            ids: str,
494
-                            token: $.cookie("token"),
495
-                        },
496
-                        function (result) {
497
-                            result = JSON.parse(result);
498
-                            if (result.state.toLowerCase() == "success") {
499
-                                layer.msg("删除成功");
500
-                                load();
501
-                            }
502
-                        }
503
-                    );
504
-                }
505
-            );
506
-        }
507
-        //提交
508
-        function tj(str) {
509
-            layer.confirm(
510
-                "确定要提交工单么?", {
511
-                    btn: ["确定", "取消"], //按钮
512
-                },
513
-                function () {
514
-                    //请求后台数据
515
-                    /*发送请求*/
516
-                    $.post(
517
-                        huayi.config.callcenter_url +
518
-                        "WorkOrder/SubmitWorkOrder", {
519
-                            ids: str,
520
-                            token: $.cookie("token"),
521
-                        },
522
-                        function (result) {
523
-                            result = JSON.parse(result);
524
-                            if (result.state.toLowerCase() == "success") {
525
-                                layer.msg("提交成功");
526
-                                load();
527
-                            }
528
-                        }
529
-                    );
530
-                }
531
-            );
532
-        }
533
-        //交办
534
-        function jb(str) {
535
-            layer.open({
536
-                type: 2,
537
-                content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
538
-                title: "工单交办",
539
-                area: ["87%", "80%"], //宽高
540
-            });
541
-        }
542
-        //领导批示
543
-        function lader(str) {
544
-            layer.open({
545
-                type: 2,
546
-                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
547
-                title: "领导批示",
548
-                area: ["60%", "80%"], //宽高
549
-            });
550
-        }
551
-        //市长批示
552
-        function city(str) {
553
-            layer.open({
554
-                type: 2,
555
-                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
556
-                title: "领导批示",
557
-                area: ["60%", "80%"], //宽高
558
-            });
559
-        }
560
-        //办理
561
-        function bl(str, isProtect,isSPT) {
562
-            layer.open({
563
-                type: 2,
564
-                content: "../CommonHtml/banli.html?wid=" +
565
-                    str +
566
-                    "&isProtect=" +
567
-                    isProtect+
568
-                    "&isSPT="+
569
-                    isSPT, //iframe的url,no代表不显示滚动条
570
-                title: "办理工单",
571
-                area: ["60%", "80%"], //宽高
572
-            });
573
-        }
574
-        //派单
575
-        function pd(str) {
576
-            layer.open({
577
-                type: 2,
578
-                content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
579
-                title: "派单",
580
-                area: ["87%", "80%"], //宽高
581
-            });
582
-        }
583
-        //督办
584
-
585
-        function Supervision(str) {
586
-            layer.open({
587
-                type: 2,
588
-                content: "../CommonHtml/Supervision_.html?wid=" +
589
-                    str +
590
-                    "&type=1", //iframe的url,no代表不显示滚动条
591
-                title: "督办",
592
-                area: ["60%", "80%"], //宽高
593
-            });
594
-        }
595
-
596
-        //督查
597
-        function Supervision_(str) {
598
-            layer.open({
599
-                type: 2,
600
-                content: "../CommonHtml/Supervision_.html?wid=" +
601
-                    str +
602
-                    "&type=2", //iframe的url,no代表不显示滚动条
603
-                title: "监察",
604
-                area: ["60%", "80%"], //宽高
605
-            });
606
-        }
607
-        //强制结案
608
-        function StrongLawsuit(str) {
609
-            layer.open({
610
-                type: 2,
611
-                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
612
-                title: "强制结案",
613
-                area: ["60%", "80%"], //宽高
614
-            });
615
-        }
616
-        //回退BackDtail
617
-        function BackDtail(str) {
618
-            layer.open({
619
-                type: 2,
620
-                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
621
-                title: "工单回退",
622
-                area: ["60%", "80%"], //宽高
623
-            });
624
-        }
625
-        //查收
626
-        function cs(str) {
627
-            $.post(
628
-                huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
629
-                    workorderid: str,
630
-                    token: $.cookie("token"),
631
-                },
632
-                function (result) {
633
-                    result = JSON.parse(result);
634
-                    if (result.state.toLowerCase() == "success") {
635
-                        layer.msg("查收成功");
636
-                        load();
637
-                    }
638
-                }
639
-            );
640
-        }
641
-        //收回
642
-        function sh(str) {
643
-            layer.confirm(
644
-                "确定要回收?", {
645
-                    btn: ["是", "否"], //按钮
646
-                },
647
-                function () {
648
-                    $.post(
649
-                        huayi.config.callcenter_url +
650
-                        "WorkOrder/TakeBackWorkOrder", {
651
-                            workorderid: str,
652
-                            token: $.cookie("token"),
653
-                        },
654
-                        function (result) {
655
-                            result = JSON.parse(result);
656
-                            if (result.state.toLowerCase() == "success") {
657
-                                layer.msg("回收");
658
-                                load();
659
-                            }
660
-                        }
661
-                    );
662
-                }
663
-            );
664
-        }
665
-
666
-        //撤回
667
-        function withdraw(str) {
668
-            layer.confirm(
669
-                "确定要撤回吗?", {
670
-                    btn: ["是", "否"], //按钮
671
-                },
672
-                function () {
673
-                    $.post(
674
-                        huayi.config.callcenter_url +
675
-                        "WorkOrder/WithdrawWorkOrder", {
676
-                            workorderid: str,
677
-                            token: $.cookie("token"),
678
-                        },
679
-                        function (result) {
680
-                            result = JSON.parse(result);
681
-                            if (result.state.toLowerCase() == "success") {
682
-                                layer.msg("撤回成功");
683
-                                load();
684
-                            }
685
-                        }
686
-                    );
687
-                }
688
-            );
689
-        }
690
-        //退回申请
691
-        function th(str) {
692
-            layer.open({
693
-                type: 2,
694
-                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
695
-                title: "申请退回工单",
696
-                area: ["60%", "80%"], //宽高
697
-            });
698
-        }
699
-        //审核退回申请
700
-        function shth(str) {
701
-            layer.open({
702
-                type: 2,
703
-                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
704
-                title: "审核退回申请",
705
-                area: ["60%", "80%"], //宽高
706
-            });
707
-        }
708
-        //办理
709
-        //			function th(str) {
710
-        //				layer.open({
711
-        //					type: 2,
712
-        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
713
-        //					title: '办理工单',
714
-        //					area: ['35%', '30%'], //宽高
715
-        //				});
716
-        //			}
717
-        //处理审核
718
-        function auditdeal(str) {
719
-            layer.open({
720
-                type: 2,
721
-                content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
722
-                title: "处理审核",
723
-                area: ["80%", "80%"], //宽高
724
-            });
725
-        }
726
-        //转督办
727
-        function zdb(str) {
728
-            layer.confirm(
729
-                "确定督办吗?", {
730
-                    btn: ["是", "否"], //按钮
731
-                },
732
-                function () {
733
-                    $.post(
734
-                        huayi.config.callcenter_url +
735
-                        "WorkOrder/RemindWorkOrder", {
736
-                            workorderid: str,
737
-                            type: 1,
738
-                            state: 0,
739
-                            token: $.cookie("token"),
740
-                        },
741
-                        function (result) {
742
-                            result = JSON.parse(result);
743
-                            if (result.state.toLowerCase() == "success") {
744
-                                layer.msg("操作成功");
745
-                                load();
746
-                            }
747
-                        }
748
-                    );
749
-                }
750
-            );
751
-        }
752
-        //申请延时
753
-        function ys(str) {
754
-            layer.open({
755
-                type: 2,
756
-                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
757
-                title: "申请延时",
758
-                area: ["60%", "80%"], //宽高
759
-            });
760
-        }
761
-        //审核申请延时
762
-        function shys(str) {
763
-            layer.open({
764
-                type: 2,
765
-                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
766
-                title: "审核延时申请",
767
-                area: ["60%", "80%"], //宽高
768
-            });
769
-        }
770
-        //诉求回访
771
-        function hf(str) {
772
-            layer.open({
773
-                type: 2,
774
-                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
775
-                title: "工单回访",
776
-                area: ["60%", "80%"], //宽高
777
-            });
778
-        }
779
-        //重办工单
780
-        function cb(str) {
781
-            layer.open({
782
-                type: 2,
783
-                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
784
-                title: "重办工单",
785
-                area: ["60%", "80%"], //宽高
786
-            });
787
-        }
788
-        //结案
789
-        function Lawsuit(str) {
790
-            layer.open({
791
-                type: 2,
792
-                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
793
-                title: "诉求单结案",
794
-                area: ["60%", "80%"], //宽高
795
-            });
796
-        }
797
-        //退回
798
-        function returnRedo(str) {
799
-            layer.open({
800
-                type: 2,
801
-                content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
802
-                title: "退回",
803
-                area: ["60%", "80%"], //宽高
804
-            });
805
-        }
806
-
807
-        $(".Appeal").click(function () {
808
-            layer.open({
809
-                type: 2,
810
-                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
811
-                title: "新增诉求",
812
-                area: ["85%", "80%"], //宽高
813
-            });
814
-        });
463
+        
815 464
         //来源
816 465
         function LY(obj) {
817 466
             obj.empty();

+ 2 - 297
WebUI/CallCenterWeb.UI/Business/WorkDC_EJ.html

@@ -178,7 +178,7 @@
178 178
     <script src="../js/zTree/jquery.ztree.core.js"></script>
179 179
     <script src="../js/search/screen.js"></script>
180 180
     <script src="../js/WorkOrder/WorkOrderList.js"></script>
181
-
181
+	<script src="./js/tertiaryUnit.js"></script>
182 182
     <script>
183 183
         var wid = helper.request.queryString("states");
184 184
         var exportParams; // 导出参数
@@ -424,302 +424,7 @@
424 424
             return html;
425 425
         }
426 426
 
427
-        //查看详情
428
-        function ckxq(str) {
429
-            layer.open({
430
-                type: 2,
431
-                content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
432
-                title: '工单详情',
433
-                area: ['100%', '100%'], //宽高
434
-            });
435
-        }
436
-        //编辑
437
-        function bj(str) {
438
-            layer.open({
439
-                type: 2,
440
-                content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
441
-                title: '编辑工单',
442
-                area: ['96%', '80%'], //宽高
443
-            });
444
-        }
445
-        //删除
446
-        function move(str) {
447
-            layer.confirm('确定删除工单?', {
448
-                btn: ['是', '否'] //按钮
449
-            }, function () {
450
-                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
451
-                    ids: str,
452
-                    token: $.cookie("token")
453
-                }, function (result) {
454
-                    result = JSON.parse(result);
455
-                    if (result.state.toLowerCase() == "success") {
456
-                        layer.msg("删除成功");
457
-                        load();
458
-                    }
459
-                })
460
-            });
461
-        }
462
-        //提交
463
-        function tj(str) {
464
-            layer.confirm('确定要提交工单么?', {
465
-                btn: ['确定', '取消'] //按钮
466
-            }, function () {
467
-                //请求后台数据
468
-                /*发送请求*/
469
-                $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
470
-                    ids: str,
471
-                    token: $.cookie("token")
472
-                }, function (result) {
473
-                    result = JSON.parse(result);
474
-                    if (result.state.toLowerCase() == "success") {
475
-                        layer.msg("提交成功");
476
-                        load();
477
-                    }
478
-                })
479
-            });
480
-        }
481
-        //交办
482
-        function jb(str) {
483
-            layer.open({
484
-                type: 2,
485
-                content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
486
-                title: '工单交办',
487
-                area: ['87%', '80%'], //宽高
488
-            });
489
-        }
490
-        //领导批示
491
-        function lader(str) {
492
-            layer.open({
493
-                type: 2,
494
-                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
495
-                title: '领导批示',
496
-                area: ['60%', '80%'], //宽高
497
-            });
498
-        }
499
-        //市长批示
500
-        function city(str) {
501
-            layer.open({
502
-                type: 2,
503
-                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
504
-                title: '领导批示',
505
-                area: ['60%', '80%'], //宽高
506
-            });
507
-        }
508
-        //办理
509
-        function bl(str, isProtect) {
510
-            layer.open({
511
-                type: 2,
512
-                content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
513
-                    isProtect, //iframe的url,no代表不显示滚动条
514
-                title: '办理工单',
515
-                area: ['90%', '80%'], //宽高
516
-            });
517
-        }
518
-        //派单
519
-        function pd(str) {
520
-            layer.open({
521
-                type: 2,
522
-                content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
523
-                title: '派单',
524
-                area: ['87%', '80%'], //宽高
525
-            });
526
-        }
527
-        //督办
528
-
529
-        function Supervision(str) {
530
-            layer.open({
531
-                type: 2,
532
-                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
533
-                title: '督办',
534
-                area: ['60%', '80%'], //宽高
535
-            });
536
-        }
537
-
538
-        //督查
539
-        function Supervision_(str) {
540
-            layer.open({
541
-                type: 2,
542
-                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
543
-                title: '监察',
544
-                area: ['60%', '80%'], //宽高
545
-            });
546
-        }
547
-        //强制结案
548
-        function StrongLawsuit(str) {
549
-            layer.open({
550
-                type: 2,
551
-                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
552
-                title: '强制结案',
553
-                area: ['60%', '80%'], //宽高
554
-            });
555
-        }
556
-        //回退BackDtail
557
-        function BackDtail(str) {
558
-            layer.open({
559
-                type: 2,
560
-                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
561
-                title: '工单回退',
562
-                area: ['60%', '80%'], //宽高
563
-            });
564
-        }
565
-        //查收
566
-        function cs(str) {
567
-            layer.confirm('确定要查收?', {
568
-                btn: ['是', '否'] //按钮
569
-            }, function () {
570
-                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
571
-                    workorderid: str,
572
-                    token: $.cookie("token")
573
-                }, function (result) {
574
-                    result = JSON.parse(result);
575
-                    if (result.state.toLowerCase() == "success") {
576
-                        layer.msg("查收成功");
577
-                        load();
578
-                    }
579
-                })
580
-            });
581
-        }
582
-        //收回
583
-        function sh(str) {
584
-            layer.confirm('确定要回收?', {
585
-                btn: ['是', '否'] //按钮
586
-            }, function () {
587
-                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
588
-                    workorderid: str,
589
-                    token: $.cookie("token")
590
-                }, function (result) {
591
-                    result = JSON.parse(result);
592
-                    if (result.state.toLowerCase() == "success") {
593
-                        layer.msg("回收");
594
-                        load();
595
-                    }
596
-                })
597
-            });
598
-        }
599
-        //强制回收
600
-        function recycles() {
601
-            layer.confirm('确定要强制退回吗?', {
602
-                btn: ['是', '否'] //按钮
603
-            });
604
-        }
605
-        //退回申请
606
-        function th(str) {
607
-            layer.open({
608
-                type: 2,
609
-                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
610
-                title: '申请退回工单',
611
-                area: ['60%', '80%'], //宽高
612
-            });
613
-        }
614
-        //审核退回申请
615
-        function shth(str) {
616
-            layer.open({
617
-                type: 2,
618
-                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
619
-                title: '审核退回申请',
620
-                area: ['60%', '80%'], //宽高
621
-            });
622
-        }
623
-        //办理
624
-        //			function th(str) {
625
-        //				layer.open({
626
-        //					type: 2,
627
-        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
628
-        //					title: '办理工单',
629
-        //					area: ['35%', '30%'], //宽高
630
-        //				});
631
-        //			}
632
-
633
-        //签收
634
-        function sign(str) {
635
-            layer.confirm('确定要签收?', {
636
-                btn: ['是', '否'] //按钮
637
-            }, function () {
638
-                $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
639
-                    workorderid: str,
640
-                    token: $.cookie("token")
641
-                }, function (result) {
642
-                    result = JSON.parse(result);
643
-                    if (result.state.toLowerCase() == "success") {
644
-                        layer.msg("签收成功");
645
-                        load();
646
-                    }
647
-                })
648
-            });
649
-        }
650
-        //拒收
651
-        function refuse(str) {
652
-
653
-            layer.open({
654
-                type: 2,
655
-                content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
656
-                title: '拒收',
657
-                area: ['60%', '80%'], //宽高
658
-            });
659
-        }
660
-        //申请延时
661
-        function ys(str) {
662
-            layer.open({
663
-                type: 2,
664
-                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
665
-                title: '申请延时',
666
-                area: ['60%', '80%'], //宽高
667
-            });
668
-        }
669
-        //审核申请延时
670
-        function shys(str) {
671
-            layer.open({
672
-                type: 2,
673
-                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
674
-                title: '审核延时申请',
675
-                area: ['60%', '80%'], //宽高
676
-            });
677
-        }
678
-        //诉求回访
679
-        function hf(str) {
680
-            layer.open({
681
-                type: 2,
682
-                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
683
-                title: '工单回访',
684
-                area: ['60%', '80%'], //宽高
685
-            });
686
-        }
687
-        //重办工单
688
-        function cb(str) {
689
-            layer.open({
690
-                type: 2,
691
-                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
692
-                title: '重办工单',
693
-                area: ['60%', '80%'], //宽高
694
-            });
695
-        }
696
-        //结案
697
-        function Lawsuit(str) {
698
-            layer.open({
699
-                type: 2,
700
-                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
701
-                title: '诉求单结案',
702
-                area: ['60%', '80%'], //宽高
703
-            });
704
-        }
705
-        //退回
706
-        function returnRedoThreeLevel(str) {
707
-            layer.open({
708
-                type: 2,
709
-                content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
710
-                title: "退回",
711
-                area: ["60%", "80%"], //宽高
712
-            });
713
-        }
714
-
715
-        $('.Appeal').click(function () {
716
-            layer.open({
717
-                type: 2,
718
-                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
719
-                title: '新增诉求',
720
-                area: ['85%', '80%'], //宽高
721
-            });
722
-        })
427
+       
723 428
         //来源
724 429
         function LY(obj) {
725 430
             obj.empty();

+ 2 - 298
WebUI/CallCenterWeb.UI/Business/WorkDC_EJDelayed.html

@@ -179,7 +179,7 @@
179 179
     <script src="../js/zTree/jquery.ztree.core.js"></script>
180 180
     <script src="../js/search/screen.js"></script>
181 181
     <script src="../js/WorkOrder/WorkOrderList.js"></script>
182
-
182
+	<script src="./js/tertiaryUnit.js"></script>
183 183
     <script>
184 184
         var wid = helper.request.queryString("states");
185 185
         var exportParams; // 导出参数
@@ -391,7 +391,6 @@
391 391
                 return '';
392 392
             }
393 393
         }
394
-
395 394
         //编号
396 395
         function serialNumber(val, row, index) {
397 396
             return index + 1;
@@ -426,302 +425,7 @@
426 425
             return html;
427 426
         }
428 427
 
429
-        //查看详情
430
-        function ckxq(str) {
431
-            layer.open({
432
-                type: 2,
433
-                content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
434
-                title: '工单详情',
435
-                area: ['100%', '100%'], //宽高
436
-            });
437
-        }
438
-        //编辑
439
-        function bj(str) {
440
-            layer.open({
441
-                type: 2,
442
-                content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
443
-                title: '编辑工单',
444
-                area: ['96%', '80%'], //宽高
445
-            });
446
-        }
447
-        //删除
448
-        function move(str) {
449
-            layer.confirm('确定删除工单?', {
450
-                btn: ['是', '否'] //按钮
451
-            }, function () {
452
-                $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
453
-                    ids: str,
454
-                    token: $.cookie("token")
455
-                }, function (result) {
456
-                    result = JSON.parse(result);
457
-                    if (result.state.toLowerCase() == "success") {
458
-                        layer.msg("删除成功");
459
-                        load();
460
-                    }
461
-                })
462
-            });
463
-        }
464
-        //提交
465
-        function tj(str) {
466
-            layer.confirm('确定要提交工单么?', {
467
-                btn: ['确定', '取消'] //按钮
468
-            }, function () {
469
-                //请求后台数据
470
-                /*发送请求*/
471
-                $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
472
-                    ids: str,
473
-                    token: $.cookie("token")
474
-                }, function (result) {
475
-                    result = JSON.parse(result);
476
-                    if (result.state.toLowerCase() == "success") {
477
-                        layer.msg("提交成功");
478
-                        load();
479
-                    }
480
-                })
481
-            });
482
-        }
483
-        //交办
484
-        function jb(str) {
485
-            layer.open({
486
-                type: 2,
487
-                content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
488
-                title: '工单交办',
489
-                area: ['87%', '80%'], //宽高
490
-            });
491
-        }
492
-        //领导批示
493
-        function lader(str) {
494
-            layer.open({
495
-                type: 2,
496
-                content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
497
-                title: '领导批示',
498
-                area: ['60%', '80%'], //宽高
499
-            });
500
-        }
501
-        //市长批示
502
-        function city(str) {
503
-            layer.open({
504
-                type: 2,
505
-                content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
506
-                title: '领导批示',
507
-                area: ['60%', '80%'], //宽高
508
-            });
509
-        }
510
-        //办理
511
-        function bl(str, isProtect) {
512
-            layer.open({
513
-                type: 2,
514
-                content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
515
-                    isProtect, //iframe的url,no代表不显示滚动条
516
-                title: '办理工单',
517
-                area: ['90%', '80%'], //宽高
518
-            });
519
-        }
520
-        //派单
521
-        function pd(str) {
522
-            layer.open({
523
-                type: 2,
524
-                content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
525
-                title: '派单',
526
-                area: ['87%', '80%'], //宽高
527
-            });
528
-        }
529
-        //督办
530
-
531
-        function Supervision(str) {
532
-            layer.open({
533
-                type: 2,
534
-                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
535
-                title: '督办',
536
-                area: ['60%', '80%'], //宽高
537
-            });
538
-        }
539
-
540
-        //督查
541
-        function Supervision_(str) {
542
-            layer.open({
543
-                type: 2,
544
-                content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
545
-                title: '监察',
546
-                area: ['60%', '80%'], //宽高
547
-            });
548
-        }
549
-        //强制结案
550
-        function StrongLawsuit(str) {
551
-            layer.open({
552
-                type: 2,
553
-                content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
554
-                title: '强制结案',
555
-                area: ['60%', '80%'], //宽高
556
-            });
557
-        }
558
-        //回退BackDtail
559
-        function BackDtail(str) {
560
-            layer.open({
561
-                type: 2,
562
-                content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
563
-                title: '工单回退',
564
-                area: ['60%', '80%'], //宽高
565
-            });
566
-        }
567
-        //查收
568
-        function cs(str) {
569
-            layer.confirm('确定要查收?', {
570
-                btn: ['是', '否'] //按钮
571
-            }, function () {
572
-                $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
573
-                    workorderid: str,
574
-                    token: $.cookie("token")
575
-                }, function (result) {
576
-                    result = JSON.parse(result);
577
-                    if (result.state.toLowerCase() == "success") {
578
-                        layer.msg("查收成功");
579
-                        load();
580
-                    }
581
-                })
582
-            });
583
-        }
584
-        //收回
585
-        function sh(str) {
586
-            layer.confirm('确定要回收?', {
587
-                btn: ['是', '否'] //按钮
588
-            }, function () {
589
-                $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
590
-                    workorderid: str,
591
-                    token: $.cookie("token")
592
-                }, function (result) {
593
-                    result = JSON.parse(result);
594
-                    if (result.state.toLowerCase() == "success") {
595
-                        layer.msg("回收");
596
-                        load();
597
-                    }
598
-                })
599
-            });
600
-        }
601
-        //强制回收
602
-        function recycles() {
603
-            layer.confirm('确定要强制退回吗?', {
604
-                btn: ['是', '否'] //按钮
605
-            });
606
-        }
607
-        //退回申请
608
-        function th(str) {
609
-            layer.open({
610
-                type: 2,
611
-                content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
612
-                title: '申请退回工单',
613
-                area: ['60%', '80%'], //宽高
614
-            });
615
-        }
616
-        //审核退回申请
617
-        function shth(str) {
618
-            layer.open({
619
-                type: 2,
620
-                content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
621
-                title: '审核退回申请',
622
-                area: ['60%', '80%'], //宽高
623
-            });
624
-        }
625
-        //办理
626
-        //			function th(str) {
627
-        //				layer.open({
628
-        //					type: 2,
629
-        //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
630
-        //					title: '办理工单',
631
-        //					area: ['35%', '30%'], //宽高
632
-        //				});
633
-        //			}
634
-
635
-        //签收
636
-        function sign(str) {
637
-            layer.confirm('确定要签收?', {
638
-                btn: ['是', '否'] //按钮
639
-            }, function () {
640
-                $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
641
-                    workorderid: str,
642
-                    token: $.cookie("token")
643
-                }, function (result) {
644
-                    result = JSON.parse(result);
645
-                    if (result.state.toLowerCase() == "success") {
646
-                        layer.msg("签收成功");
647
-                        load();
648
-                    }
649
-                })
650
-            });
651
-        }
652
-        //拒收
653
-        function refuse(str) {
654
-
655
-            layer.open({
656
-                type: 2,
657
-                content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
658
-                title: '拒收',
659
-                area: ['60%', '80%'], //宽高
660
-            });
661
-        }
662
-        //申请延时
663
-        function ys(str) {
664
-            layer.open({
665
-                type: 2,
666
-                content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
667
-                title: '申请延时',
668
-                area: ['60%', '80%'], //宽高
669
-            });
670
-        }
671
-        //审核申请延时
672
-        function shys(str) {
673
-            layer.open({
674
-                type: 2,
675
-                content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
676
-                title: '审核延时申请',
677
-                area: ['60%', '80%'], //宽高
678
-            });
679
-        }
680
-        //诉求回访
681
-        function hf(str) {
682
-            layer.open({
683
-                type: 2,
684
-                content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
685
-                title: '工单回访',
686
-                area: ['60%', '80%'], //宽高
687
-            });
688
-        }
689
-        //重办工单
690
-        function cb(str) {
691
-            layer.open({
692
-                type: 2,
693
-                content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
694
-                title: '重办工单',
695
-                area: ['60%', '80%'], //宽高
696
-            });
697
-        }
698
-        //结案
699
-        function Lawsuit(str) {
700
-            layer.open({
701
-                type: 2,
702
-                content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
703
-                title: '诉求单结案',
704
-                area: ['60%', '80%'], //宽高
705
-            });
706
-        }
707
-        //退回
708
-        function returnRedoThreeLevel(str) {
709
-            layer.open({
710
-                type: 2,
711
-                content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
712
-                title: "退回",
713
-                area: ["60%", "80%"], //宽高
714
-            });
715
-        }
716
-
717
-        $('.Appeal').click(function () {
718
-            layer.open({
719
-                type: 2,
720
-                content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
721
-                title: '新增诉求',
722
-                area: ['85%', '80%'], //宽高
723
-            });
724
-        })
428
+       
725 429
         //来源
726 430
         function LY(obj) {
727 431
             obj.empty();

+ 363 - 0
WebUI/CallCenterWeb.UI/Business/js/secondaryUnit.js

@@ -0,0 +1,363 @@
1
+//查看详情
2
+function ckxq(str) {
3
+	layer.open({
4
+		type: 2,
5
+		// content: "../CommonHtml/WorkDatil.html?wid=" + str +
6
+		// "&workOrderType=todo", //iframe的url,no代表不显示滚动条
7
+		content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
8
+
9
+		title: "工单详情",
10
+		area: ["100%", "100%"], //宽高
11
+	});
12
+}
13
+//编辑
14
+function bj(str) {
15
+	layer.open({
16
+		type: 2,
17
+		content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
18
+		title: "审核工单",
19
+		area: ["96%", "80%"], //宽高
20
+	});
21
+}
22
+//删除
23
+function move(str) {
24
+	layer.confirm(
25
+		"确定删除工单?", {
26
+			btn: ["是", "否"], //按钮
27
+		},
28
+		function() {
29
+			$.post(
30
+				huayi.config.callcenter_url +
31
+				"WorkOrder/DelWorkOrder", {
32
+					ids: str,
33
+					token: $.cookie("token"),
34
+				},
35
+				function(result) {
36
+					result = JSON.parse(result);
37
+					if(result.state.toLowerCase() == "success") {
38
+						layer.msg("删除成功");
39
+						load();
40
+					}
41
+				}
42
+			);
43
+		}
44
+	);
45
+}
46
+//提交
47
+function tj(str) {
48
+	layer.confirm(
49
+		"确定要提交工单么?", {
50
+			btn: ["确定", "取消"], //按钮
51
+		},
52
+		function() {
53
+			//请求后台数据
54
+			/*发送请求*/
55
+			$.post(
56
+				huayi.config.callcenter_url +
57
+				"WorkOrder/SubmitWorkOrder", {
58
+					ids: str,
59
+					token: $.cookie("token"),
60
+				},
61
+				function(result) {
62
+					result = JSON.parse(result);
63
+					if(result.state.toLowerCase() == "success") {
64
+						layer.msg("提交成功");
65
+						load();
66
+					}
67
+				}
68
+			);
69
+		}
70
+	);
71
+}
72
+//交办
73
+function jb(str) {
74
+	layer.open({
75
+		type: 2,
76
+		content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
77
+		title: "工单交办",
78
+		area: ["87%", "80%"], //宽高
79
+	});
80
+}
81
+//领导批示
82
+function lader(str) {
83
+	layer.open({
84
+		type: 2,
85
+		content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
86
+		title: "领导批示",
87
+		area: ["60%", "80%"], //宽高
88
+	});
89
+}
90
+//市长批示
91
+function city(str) {
92
+	layer.open({
93
+		type: 2,
94
+		content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
95
+		title: "领导批示",
96
+		area: ["60%", "80%"], //宽高
97
+	});
98
+}
99
+//办理
100
+function bl(str, isProtect, isSPT) {
101
+	layer.open({
102
+		type: 2,
103
+		content: "../CommonHtml/banli.html?wid=" +
104
+			str +
105
+			"&isProtect=" +
106
+			isProtect +
107
+			"&isSPT=" +
108
+			isSPT, //iframe的url,no代表不显示滚动条
109
+		title: "办理工单",
110
+		area: ["60%", "80%"], //宽高
111
+	});
112
+}
113
+//派单
114
+function pd(str) {
115
+	layer.open({
116
+		type: 2,
117
+		content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
118
+		title: "派单",
119
+		area: ["87%", "80%"], //宽高
120
+	});
121
+}
122
+//督办
123
+
124
+function Supervision(str) {
125
+	layer.open({
126
+		type: 2,
127
+		content: "../CommonHtml/Supervision_.html?wid=" +
128
+			str +
129
+			"&type=1", //iframe的url,no代表不显示滚动条
130
+		title: "督办",
131
+		area: ["60%", "80%"], //宽高
132
+	});
133
+}
134
+
135
+//督查
136
+function Supervision_(str) {
137
+	layer.open({
138
+		type: 2,
139
+		content: "../CommonHtml/Supervision_.html?wid=" +
140
+			str +
141
+			"&type=2", //iframe的url,no代表不显示滚动条
142
+		title: "监察",
143
+		area: ["60%", "80%"], //宽高
144
+	});
145
+}
146
+//强制结案
147
+function StrongLawsuit(str) {
148
+	layer.open({
149
+		type: 2,
150
+		content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
151
+		title: "强制结案",
152
+		area: ["60%", "80%"], //宽高
153
+	});
154
+}
155
+//回退BackDtail
156
+function BackDtail(str) {
157
+	layer.open({
158
+		type: 2,
159
+		content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
160
+		title: "工单回退",
161
+		area: ["60%", "80%"], //宽高
162
+	});
163
+}
164
+//查收
165
+function cs(str) {
166
+	$.post(
167
+		huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
168
+			workorderid: str,
169
+			token: $.cookie("token"),
170
+		},
171
+		function(result) {
172
+			result = JSON.parse(result);
173
+			if(result.state.toLowerCase() == "success") {
174
+				layer.msg("查收成功");
175
+				load();
176
+			}
177
+		}
178
+	);
179
+}
180
+//收回
181
+function sh(str) {
182
+	layer.confirm(
183
+		"确定要回收?", {
184
+			btn: ["是", "否"], //按钮
185
+		},
186
+		function() {
187
+			$.post(
188
+				huayi.config.callcenter_url +
189
+				"WorkOrder/TakeBackWorkOrder", {
190
+					workorderid: str,
191
+					token: $.cookie("token"),
192
+				},
193
+				function(result) {
194
+					result = JSON.parse(result);
195
+					if(result.state.toLowerCase() == "success") {
196
+						layer.msg("回收");
197
+						load();
198
+					}
199
+				}
200
+			);
201
+		}
202
+	);
203
+}
204
+
205
+//撤回
206
+function withdraw(str) {
207
+	layer.confirm(
208
+		"确定要撤回吗?", {
209
+			btn: ["是", "否"], //按钮
210
+		},
211
+		function() {
212
+			$.post(
213
+				huayi.config.callcenter_url +
214
+				"WorkOrder/WithdrawWorkOrder", {
215
+					workorderid: str,
216
+					token: $.cookie("token"),
217
+				},
218
+				function(result) {
219
+					result = JSON.parse(result);
220
+					if(result.state.toLowerCase() == "success") {
221
+						layer.msg("撤回成功");
222
+						load();
223
+					}
224
+				}
225
+			);
226
+		}
227
+	);
228
+}
229
+//退回申请
230
+function th(str) {
231
+	layer.open({
232
+		type: 2,
233
+		content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
234
+		title: "申请退回工单",
235
+		area: ["60%", "80%"], //宽高
236
+	});
237
+}
238
+//审核退回申请
239
+function shth(str) {
240
+	layer.open({
241
+		type: 2,
242
+		content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
243
+		title: "审核退回申请",
244
+		area: ["60%", "80%"], //宽高
245
+	});
246
+}
247
+//办理
248
+//			function th(str) {
249
+//				layer.open({
250
+//					type: 2,
251
+//					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
252
+//					title: '办理工单',
253
+//					area: ['35%', '30%'], //宽高
254
+//				});
255
+//			}
256
+//处理审核
257
+function auditdeal(str) {
258
+	layer.open({
259
+		type: 2,
260
+		content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
261
+		title: "处理审核",
262
+		area: ["80%", "80%"], //宽高
263
+	});
264
+}
265
+//转督办
266
+function zdb(str) {
267
+	layer.confirm(
268
+		"确定督办吗?", {
269
+			btn: ["是", "否"], //按钮
270
+		},
271
+		function() {
272
+			$.post(
273
+				huayi.config.callcenter_url +
274
+				"WorkOrder/RemindWorkOrder", {
275
+					workorderid: str,
276
+					type: 1,
277
+					state: 0,
278
+					token: $.cookie("token"),
279
+				},
280
+				function(result) {
281
+					result = JSON.parse(result);
282
+					if(result.state.toLowerCase() == "success") {
283
+						layer.msg("操作成功");
284
+						load();
285
+					}
286
+				}
287
+			);
288
+		}
289
+	);
290
+}
291
+//申请延时
292
+function ys(str) {
293
+	layer.open({
294
+		type: 2,
295
+		content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
296
+		title: "申请延时",
297
+		area: ["60%", "80%"], //宽高
298
+	});
299
+}
300
+
301
+//审核申请延时
302
+function shys(str) {
303
+	layer.open({
304
+		type: 2,
305
+		content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
306
+		title: "审核延时申请",
307
+		area: ["60%", "80%"], //宽高
308
+	});
309
+}
310
+//审核申请延时
311
+function shysThree(str) {
312
+	layer.open({
313
+		type: 2,
314
+		content: "../CommonHtml/shtime.html?wid=" + str+'&auditInfoType=4', //iframe的url,no代表不显示滚动条
315
+		title: "审核延时申请",
316
+		area: ["60%", "80%"], //宽高
317
+	});
318
+}
319
+//诉求回访
320
+function hf(str) {
321
+	layer.open({
322
+		type: 2,
323
+		content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
324
+		title: "工单回访",
325
+		area: ["60%", "80%"], //宽高
326
+	});
327
+}
328
+//重办工单
329
+function cb(str) {
330
+	layer.open({
331
+		type: 2,
332
+		content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
333
+		title: "重办工单",
334
+		area: ["60%", "80%"], //宽高
335
+	});
336
+}
337
+//结案
338
+function Lawsuit(str) {
339
+	layer.open({
340
+		type: 2,
341
+		content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
342
+		title: "诉求单结案",
343
+		area: ["60%", "80%"], //宽高
344
+	});
345
+}
346
+//退回
347
+function returnRedo(str) {
348
+	layer.open({
349
+		type: 2,
350
+		content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
351
+		title: "退回",
352
+		area: ["60%", "80%"], //宽高
353
+	});
354
+}
355
+
356
+$(".Appeal").click(function() {
357
+	layer.open({
358
+		type: 2,
359
+		content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
360
+		title: "新增诉求",
361
+		area: ["85%", "80%"], //宽高
362
+	});
363
+});

+ 306 - 0
WebUI/CallCenterWeb.UI/Business/js/tertiaryUnit.js

@@ -0,0 +1,306 @@
1
+ //查看详情
2
+ function ckxq(str) {
3
+ 	layer.open({
4
+ 		type: 2,
5
+ 		content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
6
+ 		title: '工单详情',
7
+ 		area: ['100%', '100%'], //宽高
8
+ 	});
9
+ }
10
+ //编辑
11
+ function bj(str) {
12
+ 	layer.open({
13
+ 		type: 2,
14
+ 		content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
15
+ 		title: '编辑工单',
16
+ 		area: ['96%', '80%'], //宽高
17
+ 	});
18
+ }
19
+ //删除
20
+ function move(str) {
21
+ 	layer.confirm('确定删除工单?', {
22
+ 		btn: ['是', '否'] //按钮
23
+ 	}, function() {
24
+ 		$.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
25
+ 			ids: str,
26
+ 			token: $.cookie("token")
27
+ 		}, function(result) {
28
+ 			result = JSON.parse(result);
29
+ 			if(result.state.toLowerCase() == "success") {
30
+ 				layer.msg("删除成功");
31
+ 				load();
32
+ 			}
33
+ 		})
34
+ 	});
35
+ }
36
+ //提交
37
+ function tj(str) {
38
+ 	layer.confirm('确定要提交工单么?', {
39
+ 		btn: ['确定', '取消'] //按钮
40
+ 	}, function() {
41
+ 		//请求后台数据
42
+ 		/*发送请求*/
43
+ 		$.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
44
+ 			ids: str,
45
+ 			token: $.cookie("token")
46
+ 		}, function(result) {
47
+ 			result = JSON.parse(result);
48
+ 			if(result.state.toLowerCase() == "success") {
49
+ 				layer.msg("提交成功");
50
+ 				load();
51
+ 			}
52
+ 		})
53
+ 	});
54
+ }
55
+ //交办
56
+ function jb(str) {
57
+ 	layer.open({
58
+ 		type: 2,
59
+ 		content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
60
+ 		title: '工单交办',
61
+ 		area: ['87%', '80%'], //宽高
62
+ 	});
63
+ }
64
+ //领导批示
65
+ function lader(str) {
66
+ 	layer.open({
67
+ 		type: 2,
68
+ 		content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
69
+ 		title: '领导批示',
70
+ 		area: ['60%', '80%'], //宽高
71
+ 	});
72
+ }
73
+ //市长批示
74
+ function city(str) {
75
+ 	layer.open({
76
+ 		type: 2,
77
+ 		content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
78
+ 		title: '领导批示',
79
+ 		area: ['60%', '80%'], //宽高
80
+ 	});
81
+ }
82
+ //办理
83
+ function bl(str, isProtect) {
84
+ 	layer.open({
85
+ 		type: 2,
86
+ 		content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
87
+ 			isProtect, //iframe的url,no代表不显示滚动条
88
+ 		title: '办理工单',
89
+ 		area: ['90%', '80%'], //宽高
90
+ 	});
91
+ }
92
+ //派单
93
+ function pd(str) {
94
+ 	layer.open({
95
+ 		type: 2,
96
+ 		content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
97
+ 		title: '派单',
98
+ 		area: ['87%', '80%'], //宽高
99
+ 	});
100
+ }
101
+ //督办
102
+
103
+ function Supervision(str) {
104
+ 	layer.open({
105
+ 		type: 2,
106
+ 		content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
107
+ 		title: '督办',
108
+ 		area: ['60%', '80%'], //宽高
109
+ 	});
110
+ }
111
+
112
+ //督查
113
+ function Supervision_(str) {
114
+ 	layer.open({
115
+ 		type: 2,
116
+ 		content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
117
+ 		title: '监察',
118
+ 		area: ['60%', '80%'], //宽高
119
+ 	});
120
+ }
121
+ //强制结案
122
+ function StrongLawsuit(str) {
123
+ 	layer.open({
124
+ 		type: 2,
125
+ 		content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
126
+ 		title: '强制结案',
127
+ 		area: ['60%', '80%'], //宽高
128
+ 	});
129
+ }
130
+ //回退BackDtail
131
+ function BackDtail(str) {
132
+ 	layer.open({
133
+ 		type: 2,
134
+ 		content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
135
+ 		title: '工单回退',
136
+ 		area: ['60%', '80%'], //宽高
137
+ 	});
138
+ }
139
+ //查收
140
+ function cs(str) {
141
+ 	layer.confirm('确定要查收?', {
142
+ 		btn: ['是', '否'] //按钮
143
+ 	}, function() {
144
+ 		$.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
145
+ 			workorderid: str,
146
+ 			token: $.cookie("token")
147
+ 		}, function(result) {
148
+ 			result = JSON.parse(result);
149
+ 			if(result.state.toLowerCase() == "success") {
150
+ 				layer.msg("查收成功");
151
+ 				load();
152
+ 			}
153
+ 		})
154
+ 	});
155
+ }
156
+ //收回
157
+ function sh(str) {
158
+ 	layer.confirm('确定要回收?', {
159
+ 		btn: ['是', '否'] //按钮
160
+ 	}, function() {
161
+ 		$.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
162
+ 			workorderid: str,
163
+ 			token: $.cookie("token")
164
+ 		}, function(result) {
165
+ 			result = JSON.parse(result);
166
+ 			if(result.state.toLowerCase() == "success") {
167
+ 				layer.msg("回收");
168
+ 				load();
169
+ 			}
170
+ 		})
171
+ 	});
172
+ }
173
+ //强制回收
174
+ function recycles() {
175
+ 	layer.confirm('确定要强制退回吗?', {
176
+ 		btn: ['是', '否'] //按钮
177
+ 	});
178
+ }
179
+ //退回申请
180
+ function th(str) {
181
+ 	layer.open({
182
+ 		type: 2,
183
+ 		content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
184
+ 		title: '申请退回工单',
185
+ 		area: ['60%', '80%'], //宽高
186
+ 	});
187
+ }
188
+ //审核退回申请
189
+ function shth(str) {
190
+ 	layer.open({
191
+ 		type: 2,
192
+ 		content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
193
+ 		title: '审核退回申请',
194
+ 		area: ['60%', '80%'], //宽高
195
+ 	});
196
+ }
197
+ //办理
198
+ //			function th(str) {
199
+ //				layer.open({
200
+ //					type: 2,
201
+ //					content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
202
+ //					title: '办理工单',
203
+ //					area: ['35%', '30%'], //宽高
204
+ //				});
205
+ //			}
206
+
207
+ //签收
208
+ function sign(str) {
209
+ 	layer.confirm('确定要签收?', {
210
+ 		btn: ['是', '否'] //按钮
211
+ 	}, function() {
212
+ 		$.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
213
+ 			workorderid: str,
214
+ 			token: $.cookie("token")
215
+ 		}, function(result) {
216
+ 			result = JSON.parse(result);
217
+ 			if(result.state.toLowerCase() == "success") {
218
+ 				layer.msg("签收成功");
219
+ 				load();
220
+ 			}
221
+ 		})
222
+ 	});
223
+ }
224
+ //拒收
225
+ function refuse(str) {
226
+
227
+ 	layer.open({
228
+ 		type: 2,
229
+ 		content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
230
+ 		title: '拒收',
231
+ 		area: ['60%', '80%'], //宽高
232
+ 	});
233
+ }
234
+ //申请延时
235
+ function ys(str) {
236
+ 	layer.open({
237
+ 		type: 2,
238
+ 		content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
239
+ 		title: '申请延时',
240
+ 		area: ['60%', '80%'], //宽高
241
+ 	});
242
+ }
243
+   //审核申请延时
244
+ function ysThree(str) {
245
+ 	layer.open({
246
+ 		type: 2,
247
+ 		content: "../CommonHtml/Timesq.html?wid=" + str+'&level=3', //iframe的url,no代表不显示滚动条
248
+ 		title: '审核延时申请',
249
+ 		area: ['60%', '80%'], //宽高
250
+ 	});
251
+ }
252
+ //审核申请延时
253
+ function shys(str) {
254
+ 	layer.open({
255
+ 		type: 2,
256
+ 		content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
257
+ 		title: '审核延时申请',
258
+ 		area: ['60%', '80%'], //宽高
259
+ 	});
260
+ }
261
+
262
+ //诉求回访
263
+ function hf(str) {
264
+ 	layer.open({
265
+ 		type: 2,
266
+ 		content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
267
+ 		title: '工单回访',
268
+ 		area: ['60%', '80%'], //宽高
269
+ 	});
270
+ }
271
+ //重办工单
272
+ function cb(str) {
273
+ 	layer.open({
274
+ 		type: 2,
275
+ 		content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
276
+ 		title: '重办工单',
277
+ 		area: ['60%', '80%'], //宽高
278
+ 	});
279
+ }
280
+ //结案
281
+ function Lawsuit(str) {
282
+ 	layer.open({
283
+ 		type: 2,
284
+ 		content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
285
+ 		title: '诉求单结案',
286
+ 		area: ['60%', '80%'], //宽高
287
+ 	});
288
+ }
289
+ //退回
290
+ function returnRedoThreeLevel(str) {
291
+ 	layer.open({
292
+ 		type: 2,
293
+ 		content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
294
+ 		title: "退回",
295
+ 		area: ["60%", "80%"], //宽高
296
+ 	});
297
+ }
298
+
299
+ $('.Appeal').click(function() {
300
+ 	layer.open({
301
+ 		type: 2,
302
+ 		content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
303
+ 		title: '新增诉求',
304
+ 		area: ['85%', '80%'], //宽高
305
+ 	});
306
+ })

+ 603 - 0
WebUI/CallCenterWeb.UI/Business/workDelayedAudit.html

@@ -0,0 +1,603 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8" />
6
+    <title>待办事项</title>
7
+    <script src="../Script/Common/huayi.load.js"></script>
8
+    <script src="../Script/Common/huayi.config.js"></script>
9
+    <link rel="stylesheet" href="../css/bootstrap-select.css" />
10
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+    <link rel="stylesheet" href="../css/init.css" />
12
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
13
+    <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
14
+</head>
15
+
16
+<body class="gray-bg">
17
+    <div class="wrapper wrapper-content animated fadeInRight">
18
+        <div class="daoHang clearfix">
19
+            <div class="dhLeft">
20
+                <sapn>
21
+                    <i class="syIcon"></i>位置:
22
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
23
+                    <a href="javaScript:;">办理单位</a>&gt;
24
+                    <a href="" class="nowPosition">待办事项</a>
25
+                </sapn>
26
+            </div>
27
+            <div class="dhRight">
28
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
29
+            </div>
30
+        </div>
31
+        <div style="padding: 10px" class="tj_content clearFix">
32
+            <div style="padding: 10px" class="tj_content clearFix">
33
+                <div>
34
+                    <span>【搜索信息】</span>
35
+                    <div class="box_content">
36
+                        <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
37
+                            <tr>
38
+                                <th>工单来源:</th>
39
+                                <td>
40
+                                    <select class="form-control" id="source">
41
+                                    </select>
42
+                                </td>
43
+                                <th>来电号码:</th>
44
+                                <td>
45
+                                    <input type="text" id="tel" class="form-control" />
46
+                                </td>
47
+                                <th>录入时间:</th>
48
+                                <td colspan="3">
49
+                                    <input type="text" id="starttime" class="photo x-color laydate-icon"
50
+                                        autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
51
+                                        id="endtime" class="photo x-color laydate-icon" autocomplete="off"
52
+                                        style="height: 35px;" />
53
+                                </td>
54
+                            </tr>
55
+                            <tr>
56
+                                <th>事项编号:</th>
57
+                                <td>
58
+                                    <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
59
+                                </td>
60
+                                <th><span class="nameJustified">来电人:</span></th>
61
+                                <td>
62
+                                    <input type="text" id="name" class="form-control" />
63
+                                </td>
64
+                                <th><span class="nameJustified">关键字:</span></th>
65
+                                <td>
66
+                                    <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
67
+                                    <botton class="btns Seach">搜索</botton>
68
+                                </td>
69
+                            </tr>
70
+                            <tr>
71
+                                <!-- <th>受话坐席:</th>
72
+                                <td>
73
+                                    <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
74
+                                        data-live-search="true">
75
+                                        <option value="">请选择坐席</option>
76
+                                    </select>
77
+                                </td>
78
+                                <th><span class="nameJustified">审核员:</span></th>
79
+                                <td>
80
+                                    <select id="yardman" name="select" class="selectpicker show-tick form-control"
81
+                                        multiple data-live-search="true">
82
+                                        <option value="">请选择调度员</option>
83
+                                    </select>
84
+                                </td> -->
85
+                            </tr>
86
+                            <tr>
87
+                                <th>承办单位:</th>
88
+                                <td style="position: relative;">
89
+                                    <div class="inpBox">
90
+                                        <input type="text" class="inps" />
91
+                                        <i class="Cleans  fa fa-close"></i>
92
+                                        <i class="xl xl_one"></i>
93
+                                        <div class="addTree xlAdd">
94
+                                            <ul id="addTreeDemo" class="ztree"></ul>
95
+                                        </div>
96
+                                    </div>
97
+                                    <div class="selDpart1">
98
+                                        <ul id="sponsor">
99
+                                        </ul>
100
+                                    </div>
101
+                                </td>
102
+                                <th>来电类型:</th>
103
+                                <td>
104
+                                    <select class="form-control" id="type">
105
+                                    </select>
106
+                                </td>
107
+                                <th>反映区域:</th>
108
+                                <td>
109
+                                    <select name="" id="sourceAreas" class="form-control Min-width">
110
+                                    </select>
111
+                                    <botton class="btns exportFile">导出</botton>
112
+                                </td>
113
+                            </tr>
114
+                            <tr>
115
+                            	<th>省平台编号:</th>
116
+                                <td>
117
+                                    <input type="text" placeholder="输入工单号" id="strworkorderid" class="form-control" />
118
+                                </td>
119
+                            </tr>
120
+                        </table>
121
+                    </div>
122
+                </div>
123
+                <div>
124
+                    <div style="width: 100%; padding: 10px">
125
+                        <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
126
+                            data-pagination="true">
127
+                            <thead>
128
+                                <tr>
129
+                                    <th data-formatter="serialNumber" data-align="center">
130
+                                        序号
131
+                                    </th>
132
+                                    <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
133
+                                        工单单号
134
+                                    </th>
135
+                                    <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
136
+                                        诉求标题
137
+                                    </th>
138
+                                    <th data-field="DeptName" data-align="center">
139
+                                        承办单位
140
+                                    </th>
141
+                                    <!-- <th data-field="OtherDeptName" data-align="center">
142
+                                        协办单位
143
+                                    </th> -->
144
+                                    <!-- <th data-field="UserName" data-align="center">
145
+                                        受理人
146
+                                    </th> -->
147
+                                    <th data-field="F_WorkState" data-align="center" data-formatter="States">
148
+                                        办理状态
149
+                                    </th>
150
+                                    <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
151
+                                    <th data-field="OverState" data-formatter="OverTime" data-align="center">
152
+                                        时限
153
+                                    </th>
154
+                                    <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
155
+                                        办理时限
156
+                                    </th>
157
+                                    <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
158
+                                        操作
159
+                                    </th>
160
+                                </tr>
161
+                            </thead>
162
+                            <tbody class="list"></tbody>
163
+                        </table>
164
+                    </div>
165
+                </div>
166
+            </div>
167
+        </div>
168
+
169
+        <!--下载框-->
170
+        <div class="t-shade lyxz">
171
+            <div class="shade_k">
172
+                <div class="shade_title">
173
+                    <span>录音播放与下载<srong class="cknum"></srong></span>
174
+                    <span class="setwin gbly"><a>x</a></span>
175
+                </div>
176
+                <div class="shade_content">
177
+                    <div class="Ly_box audiojs"></div>
178
+                </div>
179
+            </div>
180
+        </div>
181
+        <input type="hidden" id="PID" />
182
+        <input type="hidden" id="Dpment" />
183
+    </div>
184
+    <script src="../js/layui/layui.js"></script>
185
+    <script src="../js/bootstrap-select.js"></script>
186
+    <script src="../css/laydate/laydate.js"></script>
187
+    <script src="../My97DatePicker/WdatePicker.js"></script>
188
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
189
+    <script src="../js/search/screen.js"></script>
190
+    <script src="../js/WorkOrder/WorkOrderList.js"></script>
191
+    <script src="./js/secondaryUnit.js"></script>
192
+
193
+    <script>
194
+        var level = helper.request.queryString("level");
195
+        var tab
196
+        var exportParams; // 导出参数
197
+
198
+        $(document).ready(function () {
199
+        	if (level==="1"||level==="2") {
200
+        		tab = 9
201
+        	} else{
202
+        		tab = 8
203
+        	}
204
+            load();
205
+            laydate.skin("blue");
206
+            laydate({
207
+                elem: "#starttime",
208
+                event: "focus",
209
+                istime: true,
210
+                format: 'YYYY-MM-DD hh:mm:ss'
211
+            });
212
+            laydate({
213
+                elem: "#endtime",
214
+                event: "focus",
215
+                istime: true,
216
+                format: 'YYYY-MM-DD hh:mm:ss'
217
+            });
218
+        });
219
+        //关闭录音弹出
220
+        $(".gbly").click(function () {
221
+            $(".lyxz").removeClass("cx");
222
+            $("audio")[0].pause();
223
+        });
224
+
225
+        $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
226
+            $(".success").removeClass("success"); //去除之前选中的行的,选中样式
227
+            $(ele).addClass("success"); //添加当前选中的 success样式用于区别
228
+        });
229
+
230
+        //获取查询信息
231
+        function load() {
232
+            //坐席
233
+            var usercodeID = "";
234
+            var usercode_ = $("#ZX").val(); //坐席
235
+            if (usercode_ != null) {
236
+                $(usercode_).each(function (i, n) {
237
+                    var obj1 = "";
238
+                    obj1 = n + ",";
239
+                    usercodeID += obj1;
240
+                });
241
+            } else {
242
+                usercodeID = "";
243
+            }
244
+            //      	调度员
245
+            var ddusercodeID = "";
246
+            var ddusercode_ = $("#yardman").val(); //坐席
247
+            if (ddusercode_ != null) {
248
+                $(ddusercode_).each(function (i, n) {
249
+                    var obj2 = "";
250
+                    obj2 = n + ",";
251
+                    ddusercodeID += obj2;
252
+                });
253
+            } else {
254
+                ddusercodeID = "";
255
+            }
256
+            //先销毁表格
257
+            $("#orderlist").bootstrapTable("destroy");
258
+            //初始化表格,动态从服务器加载数据
259
+            $("#orderlist").bootstrapTable({
260
+                method: "get", //使用get请求到服务器获取数据
261
+                url: huayi.config.callcenter_url + "WorkOrder/GetEJDWDealList", //获取数据的Servlet地址
262
+                contentType: "application/x-www-form-urlencoded",
263
+                striped: true, //表格显示条纹
264
+                pagination: true, //启动分页
265
+                pageSize: 10, //每页显示的记录数
266
+                pageNumber: 1, //当前第几页
267
+                pageList: [10, 20, 50, 100], //记录数可选列表
268
+                search: false, //是否启用查询
269
+                showColumns: false, //显示下拉框勾选要显示的列
270
+                showRefresh: false, //显示刷新按钮
271
+                sidePagination: "server", //表示服务端请求
272
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
273
+                //设置为limit可以获取limit, offset, search, sort, order
274
+                queryParamsType: "undefined",
275
+                queryParams: function queryParams(params) {
276
+                    //设置查询参数
277
+                    var param = {
278
+                        page: params.pageNumber,
279
+                        pagesize: params.pageSize,
280
+                        workid: $("#wids").val(),
281
+                        state: $("#state").val(), //=工单状态
282
+                        type: $("#type").val(), //=工单类型
283
+                        bigtype: $("#bigtype").val(), //=大类别
284
+                        smalltype: $("#smalltype").val(), //=小类别
285
+                        key: $("#key").val(), //=关键字
286
+                        tel: $("#tel").val(), //=客户电话
287
+                        name: $("#name").val(), //=客户名称
288
+                        usercode: usercodeID, //=坐席工号
289
+                        ddusercode: ddusercodeID,
290
+                        keyid: $("#keyid").val(), //=关键词i d
291
+                        source: $("#source").val(), //=来源&
292
+                        starttime: $("#starttime").val(), //=开始时间
293
+                        endtime: $("#endtime").val(), //=结束时间
294
+                        deptid: $("#PID").val(),
295
+                        type: $("#type").val(),
296
+                        tab: tab, //待处理
297
+                        distribute: 0,
298
+                        sourcearea: $("#sourceAreas").val(), //区域
299
+                        strworkorderid:$("#strworkorderid").val().replace(/\s+/g, ""),
300
+                        // isys: 0, // 未延时待办理
301
+                        token: $.cookie("token"),
302
+                    };
303
+                    // 导出参数
304
+                    exportParams = param;
305
+                    return param;
306
+                },
307
+                onLoadSuccess: function (data) {
308
+                    //加载成功时执行
309
+                    //						layer.msg("加载成功");
310
+                    //console.log(data);
311
+                },
312
+                onLoadError: function () {
313
+                    //加载失败时执行
314
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
315
+                },
316
+            });
317
+        }
318
+        //状态
319
+        function States(val, row) {
320
+            var html = "";
321
+            switch (val + "") {
322
+                case "0":
323
+                    html = "新工单";
324
+                    if (row.F_IsReturn == 1) {
325
+                        html = "新工单(回退)";
326
+                    }
327
+                    break;
328
+                case "1":
329
+                    html = "待审核";
330
+                    break;
331
+                case "2":
332
+                    html = '<span style="color:#FF0000;">待查收</span>';
333
+                    break;
334
+                case "3":
335
+                    html = "退回审核中";
336
+                    break;
337
+                case "4":
338
+                    html = "办理中";
339
+                    break;
340
+                case "5":
341
+                    html = "延时审核";
342
+                    break;
343
+                case "6":
344
+                    html = "待审核";
345
+                    break;
346
+                case "7":
347
+                    html = "已回访";
348
+                    break;
349
+                case "8":
350
+                    if (String(row.F_Identification) === "0") {
351
+                        html = "重置转发";
352
+                    } else if (String(row.F_Identification) === "1") {
353
+                        html = "退回重办";
354
+                    } else {
355
+                        html = "重办中";
356
+                    }
357
+                    break;
358
+                case "9":
359
+                    html = "已结案";
360
+                    break;
361
+                case "10":
362
+                    html = "待审核";
363
+                    break;
364
+                case "11":
365
+                    html = "重办待交办";
366
+                    break;
367
+                case "12":
368
+                    html = "待审核";
369
+                    break;
370
+                case "13":
371
+                    html = "待督办";
372
+                    break;
373
+            }
374
+            return html;
375
+        }
376
+        //时限
377
+        function OverTime(val, row) {
378
+            if (val == 1) {
379
+                return (
380
+                    '<div class="" style="cursor: pointer;">' +
381
+                    '<span class="Greens">' +
382
+                    row.GapTime +
383
+                    "</span>" +
384
+                    "</div>"
385
+                );
386
+            } else if (val == 2) {
387
+                return (
388
+                    '<div class="" style="cursor: pointer;">' +
389
+                    '<span class="Yellows">' +
390
+                    row.GapTime +
391
+                    "</span>" +
392
+                    "</div>"
393
+                );
394
+            } else if (val == 3) {
395
+                return (
396
+                    '<div class="" style="cursor: pointer;">' +
397
+                    '<span class="Reds">' +
398
+                    row.GapTime +
399
+                    "</span>" +
400
+                    "</div>"
401
+                );
402
+            }
403
+        }
404
+        //办理时限
405
+        function BanTime(val) {
406
+            if (val) {
407
+                var time = val.substring(0, val.indexOf(" "));
408
+                return (
409
+                    '<div class="" style="cursor: pointer;">' +
410
+                    "<span>" +
411
+                    time +
412
+                    "</span>" +
413
+                    "</div>"
414
+                );
415
+            }
416
+        }
417
+        //音频
418
+        function setCode(val) {
419
+            if (val) {
420
+                return (
421
+                    '<div class="imgs" style="cursor: pointer;">' +
422
+                    '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
423
+                    val +
424
+                    '" />' +
425
+                    "</div>"
426
+                );
427
+            } else {
428
+                return "";
429
+            }
430
+        }
431
+
432
+        //编号
433
+        function serialNumber(val, row, index) {
434
+            return index + 1;
435
+        }
436
+
437
+
438
+        function GetCont(val) {
439
+            if (val) {
440
+                var str = "<div ";
441
+                if (val.length > 10) {
442
+                    str = str + ' title="' + val + '" ';
443
+                    val = val.substr(0, 10) + "...";
444
+                }
445
+                return str + ">" + val + "</div>";
446
+            } else {
447
+                return "";
448
+            }
449
+        }
450
+        //操作
451
+        function Dispose(val, row) {
452
+            var Rows = row.Buttons;
453
+            var html = "";
454
+            for (var i = 0; i < Rows.length; i++) {
455
+                var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
456
+                if (html1) {
457
+                    html1 = html1.replace("data", val);
458
+                    html1 = html1.replace("isProtect", row.F_IsProtect);
459
+                    html1 = html1.replace("row", row.F_MainDeptId);
460
+                    html1 = html1.replace("isSPT", row.SourceName);
461
+                }
462
+                html += html1;
463
+            }
464
+            return html;
465
+        }
466
+
467
+        
468
+        //来源
469
+        function LY(obj) {
470
+            obj.empty();
471
+            obj.append(
472
+                '<option selected="selected" value="">请选择</option>'
473
+            );
474
+            $.getJSON(
475
+                huayi.config.callcenter_url +
476
+                "Dictionary/GetDicValueListById", {
477
+                    token: $.cookie("token"),
478
+                    id: 1,
479
+                },
480
+                function (data) {
481
+                    if (data.state.toLowerCase() == "success") {
482
+                        var content = data.data;
483
+                        $(content).each(function (i, n) {
484
+                            $(
485
+                                "<option value='" +
486
+                                n.F_ValueId +
487
+                                "'>" +
488
+                                n.F_Value +
489
+                                "</option>"
490
+                            ).appendTo(obj);
491
+                        });
492
+                    }
493
+                }
494
+            );
495
+        }
496
+        //类别
497
+        function LB(obj) {
498
+            obj.empty();
499
+            obj.append(
500
+                '<option selected="selected" value="">请选择</option>'
501
+            );
502
+            $.getJSON(
503
+                huayi.config.callcenter_url +
504
+                "Dictionary/GetDicValueListById", {
505
+                    token: $.cookie("token"),
506
+                    id: 2,
507
+                },
508
+                function (data) {
509
+                    if (data.state.toLowerCase() == "success") {
510
+                        var content = data.data;
511
+                        $(content).each(function (i, n) {
512
+                            $(
513
+                                "<option value='" +
514
+                                n.F_ValueId +
515
+                                "'>" +
516
+                                n.F_Value +
517
+                                "</option>"
518
+                            ).appendTo(obj);
519
+                        });
520
+                    }
521
+                }
522
+            );
523
+        }
524
+        //		主题
525
+        function ZT(obj) {
526
+            obj.empty();
527
+            obj.append(
528
+                '<option selected="selected" value="">请选择</option>'
529
+            );
530
+            $.getJSON(
531
+                huayi.config.callcenter_url +
532
+                "Dictionary/GetDicValueListById", {
533
+                    token: $.cookie("token"),
534
+                    id: 3,
535
+                },
536
+                function (data) {
537
+                    if (data.state.toLowerCase() == "success") {
538
+                        var content = data.data;
539
+                        $(content).each(function (i, n) {
540
+                            $(
541
+                                "<option value='" +
542
+                                n.F_ValueId +
543
+                                "'>" +
544
+                                n.F_Value +
545
+                                "</option>"
546
+                            ).appendTo(obj);
547
+                        });
548
+                    }
549
+                }
550
+            );
551
+        }
552
+
553
+        function tree() {
554
+            $.get(
555
+                huayi.config.callcenter_url + "Department/GetDeptList", {
556
+                    token: $.cookie("token"),
557
+                    //		"pid": pid
558
+                },
559
+                function (result) {
560
+                    result = $.parseJSON(result);
561
+                    $.fn.zTree.init(
562
+                        $("#addTreeDemo"),
563
+                        setting1,
564
+                        result.data
565
+                    ); //实例化树形图
566
+                }
567
+            );
568
+        }
569
+        var setting1 = {
570
+            data: {
571
+                key: {
572
+                    name: "F_DeptName",
573
+                },
574
+                simpleData: {
575
+                    enable: true,
576
+                    idKey: "F_DeptId",
577
+                    pIdKey: "F_PartentId",
578
+                    rootPId: 0,
579
+                },
580
+            },
581
+            callback: {
582
+                onClick: zTreeOnClick,
583
+            },
584
+        };
585
+
586
+        function zTreeOnClick(event, treeId, treeNode) {
587
+            $(".inps").val(treeNode.F_DeptName);
588
+            $("#PID").val(treeNode.F_DeptId);
589
+            $("#Dpment").val(treeNode.F_DeptName);
590
+            $(".Cleans").show();
591
+        }
592
+
593
+        // 导出文件
594
+        $(".exportFile").click(function() {
595
+            exportParams.isdc = 1;
596
+            console.log(exportParams)
597
+            exportFileFun("WorkOrder/GetDWDealList", exportParams)
598
+        })
599
+
600
+    </script>
601
+</body>
602
+
603
+</html>

+ 8 - 1
WebUI/CallCenterWeb.UI/CommonHtml/Timesq.html

@@ -45,7 +45,9 @@
45 45
         <script>
46 46
             var nowTime=new Date();
47 47
             var wid = helper.request.queryString("wid");
48
+             var level = helper.request.queryString("level");
48 49
             var roleCode = $.cookie("code")
50
+            var apiUrl
49 51
 //          laydate.skin("blue");
50 52
 //          if (roleCode == "GLY" || roleCode == "ZXLD") {
51 53
 //              laydate({
@@ -62,6 +64,11 @@
62 64
 //              });
63 65
 //          }
64 66
             $(document).ready(function () {
67
+            	if (level==="3") {
68
+            		apiUrl = 'WorkOrder/EJDelayWorkOrder'
69
+            	}else{
70
+            		apiUrl = 'WorkOrder/DelayWorkOrder'
71
+            	}
65 72
                 $(".btns").click(function () {
66 73
                     if ($("#reason").val() == "") {
67 74
                         layer.msg("申请原因不为空");
@@ -73,7 +80,7 @@
73 80
             //批示
74 81
             function JA() {
75 82
                 $.post(
76
-                    huayi.config.callcenter_url + "WorkOrder/DelayWorkOrder",
83
+                    huayi.config.callcenter_url + apiUrl,
77 84
                     {
78 85
                         workorderid: wid,
79 86
                         reason: $("#reason").val(),

+ 16 - 3
WebUI/CallCenterWeb.UI/CommonHtml/shTime.html

@@ -54,8 +54,21 @@
54 54
                 event: 'focus'
55 55
             });
56 56
             var wid = helper.request.queryString("wid");
57
-             var type;
57
+            var auditInfoType =  helper.request.queryString("auditInfoType");
58
+            var auditUrl,type,InfoType
58 59
 			$(document).ready(function() {
60
+				if (auditInfoType) {
61
+					InfoType = 4
62
+					if ($.cookie("code") === "WLDW") {
63
+						auditUrl ='WorkOrder/DWAuditDelayWorkOrder'
64
+					}else{
65
+						auditUrl ='WorkOrder/DDAuditDelayWorkOrder'
66
+					}
67
+					
68
+				}else{
69
+					InfoType = 2
70
+					auditUrl = "WorkOrder/AuditDelayWorkOrder"
71
+				}
59 72
 				HQ();
60 73
 				$(".Agree").click(function(){
61 74
 					type=1;
@@ -68,7 +81,7 @@
68 81
 			})
69 82
 			//批示
70 83
 			function JA() {
71
-				$.post(huayi.config.callcenter_url + 'WorkOrder/AuditDelayWorkOrder', {
84
+				$.post(huayi.config.callcenter_url +auditUrl, {
72 85
 					workorderid: wid,
73 86
 					reason:$("#reason").val(),
74 87
 					newlimittime:$("#endtime").val(),
@@ -90,7 +103,7 @@
90 103
 			function HQ(){
91 104
 				$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAuditInfo', {
92 105
 					workorderid:wid,
93
-					type:2,
106
+					type:InfoType,
94 107
 					"token": $.cookie("token")
95 108
 				}, function(result) {
96 109
 //					result = JSON.parse(result);

+ 10 - 1
WebUI/CallCenterWeb.UI/ReportForm/seatefficiencyStatistics.html

@@ -77,6 +77,15 @@
77 77
 			var columnsArray = [];
78 78
 			var columnsWidth = 100
79 79
 			var apiUrl = "TotalTel/SeatsEfficiency"
80
+			var zxSelectObj = {
81
+				id:'ZX',
82
+				apiUrl:'SeatMonitoring/GetList',
83
+				params:{
84
+					group:$("#userGroup").val()
85
+				},
86
+				selectValue:'F_UserCode',
87
+				selectName:'F_UserName'
88
+			}
80 89
 			$(document).ready(function() {
81 90
 				laydate.render({
82 91
 					elem: '#startTimes',
@@ -92,7 +101,7 @@
92 101
 			        }
93 102
 				});
94 103
 				initTable()
95
-				ZX($("#ZX"));
104
+				selectCommon(zxSelectObj)
96 105
 			})
97 106
 			function dataParam() {
98 107
 				var stime,etime

+ 152 - 156
WebUI/CallCenterWeb.UI/ReportForm/seaterMY.html

@@ -1,166 +1,162 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 
4
-<head>
5
-    <meta charset="UTF-8">
6
-    <title>坐席接听满意度统计</title>
7
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
-    <script src="../Script/Common/huayi.load.js"></script>
9
-    <script src="../Script/Common/huayi.config.js"></script>
10
-    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
-    <link href="../css/reportCommon/Search.css" rel="stylesheet">
12
-	<link href="../css/reportCommon/common.css" rel="stylesheet">
13
-    <link href="../css/WorkOrder/Search.css" rel="stylesheet">
14
-    <link rel="stylesheet" href="../css/bootstrap-select.css" />
15
-    <link href="../css/init.css" rel="stylesheet" />
16
-    <script src="../css/laydate/laydate.js"></script>
17
-    <script src="../js/bootstrap-select.js"></script>
18
-    <script src="../My97DatePicker/WdatePicker.js"></script>
19
-	<style>
20
-		.seach-box ul {
21
-		    overflow: inherit;
22
-		}
23
-	</style>
24
-</head>
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>坐席接听满意度统计</title>
7
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+		<script src="../Script/Common/huayi.load.js"></script>
9
+		<script src="../Script/Common/huayi.config.js"></script>
10
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+		<link href="../css/reportCommon/Search.css" rel="stylesheet">
12
+		<link href="../css/reportCommon/common.css" rel="stylesheet">
13
+		<link href="../css/WorkOrder/Search.css" rel="stylesheet">
14
+		<link rel="stylesheet" href="../css/bootstrap-select.css" />
15
+		<link href="../css/init.css" rel="stylesheet" />
16
+		<script src="../css/laydate/laydate.js"></script>
17
+		<script src="../js/bootstrap-select.js"></script>
18
+		<script src="../My97DatePicker/WdatePicker.js"></script>
19
+		<style>
20
+			.seach-box ul {
21
+				overflow: inherit;
22
+			}
23
+			.seach-box ul li ul li{
24
+				float: none;
25
+				width: 100%;
26
+				display: block;
27
+			}
28
+		</style>
29
+	</head>
25 30
 
26
-<body class="gray-bg">
27
-    <div class="wrapper wrapper-content animated fadeInRight">
28
-        <div class="daoHang clearfix">
29
-            <div class="dhLeft">
30
-                <sapn>
31
-                    <i class="syIcon"></i>位置:
32
-                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
33
-                    <a href="javaScript:;">报表管理</a>&gt;
34
-                    <a href="" class="nowPosition">坐席接听满意度统计</a>
35
-                </sapn>
36
-            </div>
37
-            <div class="dhRight">
38
-                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
39
-            </div>
40
-        </div>
31
+	<body class="gray-bg">
32
+		<div class="wrapper wrapper-content animated fadeInRight">
33
+			<div class="daoHang clearfix">
34
+				<div class="dhLeft">
35
+					<sapn>
36
+						<i class="syIcon"></i>位置:
37
+						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
38
+						<a href="javaScript:;">报表管理</a>&gt;
39
+						<a href="" class="nowPosition">坐席接听满意度统计</a>
40
+					</sapn>
41
+				</div>
42
+				<div class="dhRight">
43
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
44
+				</div>
45
+			</div>
41 46
 
42
-        <div class="Content_box">
43
-            <!--待处理/-->
44
-            <div class="complain Shows">
45
-                <div class="th-box">
46
-                    <div class="th-bar">
47
-                        <div class="seach-box">
48
-                            <ul>
49
-                                <li>
50
-                                    创建时间:
51
-                                    <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
52
-                                    <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
53
-                                </li>
54
-                                
55
-                                <li style="width: 300px;">
56
-									<div style="width: 100px">选择坐席:</div>
57
-									<select  id="userGroup" name="select" class="selectpicker show-tick form-control" com style="width: 150px;" data-live-search="true">
58
-										<option value="">请选择坐席</option>
59
-									</select>
60
-								</li>
61
-                                <li style="width: 300px;">
62
-									<div style="width: 100px">选择坐席:</div>
63
-									<select  id="ZX" name="select" class="selectpicker show-tick form-control" com style="width: 150px;" data-live-search="true">
64
-										<option value="">请选择坐席</option>
65
-									</select>
66
-								</li>
67
-                                <li>
68
-                                    <a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
69
-                                    <a class="sc_btn btns export">导出</a>
70
-                                </li>
71
-                                <li><span class="text-danger"
72
-                                        style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
73
-                            </ul>
74
-                        </div>
75
-                    </div>
76
-                </div>
77
-                <div style="width: 100%;padding: 10px;">
78
-                    <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
79
-                        data-pagination="true">
80
-                        <thead>
81
-                            <tr>
82
-                                <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
83
-                                <th data-field="username" data-align="center">坐席姓名</th>
84
-                                <th data-field="count" data-align="center">接听量</th>
85
-                                <th data-field="satisfiedcount" data-align="center">满意量</th>
86
-                                <th data-field="normalcount" data-align="center">一般量</th>
87
-                                <th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
88
-                                <th data-field="satisfiedrate" data-align="center">满意度</th>
89
-                            </tr>
90
-                        </thead>
91
-                    </table>
92
-                </div>
93
-            </div>
47
+			<div class="Content_box">
48
+				<!--待处理/-->
49
+				<div class="complain Shows">
50
+					<div class="th-box">
51
+						<div class="th-bar">
52
+							<div class="seach-box">
53
+								<ul>
54
+									<li>
55
+										创建时间:
56
+										<input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
57
+										<input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
58
+									</li>
94 59
 
95
-        </div>
96
-    </div>
97
-	<script src="../js/reportCommon/common.js"></script>
98
-    <script>
99
-			
100
-        $(document).ready(function () {
101
-            laydate.skin('blue');
102
-            laydate({
103
-                elem: '#startTimes',
104
-                event: 'focus',
105
-                istime: true,
106
-                format: 'YYYY-MM-DD hh:mm:ss'
107
-            });
60
+									<li style="width: 340px;">
61
+										<div style="width: 100px;word-break: normal;">选择坐席组:</div>
62
+										<div style="width: 220px">
63
+											<select id="userGroup" name="select" class="selectpicker show-tick form-control" com style="width: 150px !important;" data-live-search="true">
64
+											<option value="">请选择坐席</option>
65
+										</select>
66
+										</div>
67
+										
68
+									</li>
69
+									<li style="width: 320px;">
70
+										<div style="width: 100px">选择坐席:</div>
71
+										<div style="width: 220px">
72
+											<select id="ZX" name="select" class="selectpicker show-tick form-control" com data-live-search="true">
73
+												<option value="">请选择坐席</option>
74
+											</select>
75
+										</div>
76
+										
77
+									</li>
78
+									<li>
79
+										<a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
80
+										<a class="sc_btn btns export">导出</a>
81
+									</li>
82
+									<li><span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
83
+								</ul>
84
+							</div>
85
+						</div>
86
+					</div>
87
+					<div style="width: 100%;padding: 10px;">
88
+						<table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
89
+							<thead>
90
+								<tr>
91
+									<th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
92
+									<th data-field="username" data-align="center">坐席姓名</th>
93
+									<th data-field="count" data-align="center">接听量</th>
94
+									<th data-field="satisfiedcount" data-align="center">满意量</th>
95
+									<th data-field="normalcount" data-align="center">一般量</th>
96
+									<th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
97
+									<th data-field="satisfiedrate" data-align="center">满意度</th>
98
+								</tr>
99
+							</thead>
100
+						</table>
101
+					</div>
102
+				</div>
108 103
 
109
-            laydate({
110
-                elem: '#endTimes',
111
-                event: 'focus',
112
-                istime: true,
113
-                format: 'YYYY-MM-DD hh:mm:ss'
114
-            });
115
-            ZX($("#ZX"));
116
-//          userGroup($("#userGroup"));
117
-            
118
-            initTable();
119
-        })
104
+			</div>
105
+		</div>
106
+		<script src="../js/reportCommon/common.js"></script>
107
+		<script>
108
+			var apiUrl = 'TalkTime/GetUserSatisfied'
109
+			var zxSelectObj = {
110
+				id:'ZX',
111
+				apiUrl:'SeatMonitoring/GetList',
112
+				params:{
113
+					group:$("#userGroup").val()
114
+				},
115
+				selectValue:'F_UserCode',
116
+				selectName:'F_UserName'
117
+			}
118
+			var groupSelectObj = {
119
+				id:'userGroup',
120
+				apiUrl:'InfoNew/GetDicValueListById',
121
+				params:{
122
+					id:2522
123
+				},
124
+				selectValue:'F_Value',
125
+				selectName:'F_Value'
126
+			}
127
+			$(document).ready(function() {
128
+				laydate.skin('blue');
129
+				laydate({
130
+					elem: '#startTimes',
131
+					event: 'focus',
132
+					istime: true,
133
+					format: 'YYYY-MM-DD hh:mm:ss'
134
+				});
120 135
 
121
-        function initTable() {
122
-            $.ajax({
123
-                url: huayi.config.callcenter_url + 'TalkTime/GetUserSatisfied',
124
-                type: 'get',
125
-                data: {
126
-                    start: $("#startTimes").val(),
127
-                    end: $("#endTimes").val(),
128
-                    usercode: $("#ZX").val(),
129
-                    token: $.cookie("token")
130
-                },
131
-                dataType: "json",
132
-                async: true,
133
-                success: function (returnValue) {
134
-                    //异步获取数据
135
-                    var resultData1 = returnValue.data.UserSatisfiedReport;
136
-                    $('#workorderlist').bootstrapTable('load', resultData1);
137
-                }
138
-            });
139
-            $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
140
-                striped: true
141
-            });
142
-        }
143
-
144
-        //序号
145
-        function serialNumber(val, row, index) {
146
-            return index + 1;
147
-        }
148
-
149
-        //代办搜索
150
-        $(".db").click(function () {
151
-            initTable();
152
-        })
153
-        //导出
154
-        $('.export').click(function () {
155
-            dcexcel(this);
156
-        })
157
-
158
-        function dcexcel(obj) {
159
-            var url = huayi.config.callcenter_url + "TalkTime/GetUserSatisfied?token=" + $.cookie("token");
160
-            url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&isExport=true";
161
-            obj.href = url;
162
-        }
163
-    </script>
164
-</body>
136
+				laydate({
137
+					elem: '#endTimes',
138
+					event: 'focus',
139
+					istime: true,
140
+					format: 'YYYY-MM-DD hh:mm:ss'
141
+				});
142
+				selectCommon(zxSelectObj)
143
+				selectCommon(groupSelectObj)
144
+				initTable();
145
+			})
146
+			$("#userGroup").change(function(){
147
+				selectCommon(zxSelectObj)
148
+			})
149
+			function dataParam() {
150
+				var obj = {
151
+					start: $("#startTimes").val(),
152
+					end: $("#endTimes").val(),
153
+					usergroup:$("#userGroup").val(),
154
+					usercode: $("#ZX").val(),
155
+					token: $.cookie("token")
156
+				};
157
+				return obj
158
+			}
159
+		</script>
160
+	</body>
165 161
 
166 162
 </html>

+ 16 - 1
WebUI/CallCenterWeb.UI/ReportForm/sittingMonthWork.html

@@ -18,6 +18,11 @@
18 18
 			.th-inner{
19 19
 				white-space: normal !important;
20 20
 			}
21
+			.seach-box ul li ul li{
22
+				float: none;
23
+				width: 100%;
24
+				display: block;
25
+			}
21 26
 		</style>
22 27
 	</head>
23 28
 
@@ -79,9 +84,19 @@
79 84
 		</div>
80 85
 		<script src="../js/reportCommon/common.js"></script>
81 86
 		<script>
87
+			
82 88
 			var columnsArray = [];
83 89
 			var columnsWidth
84 90
 			var apiUrl = "TotalTel/IncomingConnection"
91
+			var zxSelectObj = {
92
+				id:'ZX',
93
+				apiUrl:'SeatMonitoring/GetList',
94
+				params:{
95
+					group:$("#userGroup").val()
96
+				},
97
+				selectValue:'F_UserCode',
98
+				selectName:'F_UserName'
99
+			}
85 100
 			$(document).ready(function() {
86 101
 				laydate.render({
87 102
 					elem: '#startTimes',
@@ -89,7 +104,7 @@
89 104
 					type: 'month'
90 105
 				});
91 106
 				initTable()
92
-				ZX($("#ZX"));
107
+				selectCommon(zxSelectObj)
93 108
 			})
94 109
 			function dataParam() {
95 110
 				var obj = {

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

@@ -3,11 +3,11 @@
3 3
 }
4 4
 huayi.config = {
5 5
 	callcenter_url: "http://192.168.8.9:1042/",//生产环境
6
-//  socket_ip: "192.168.8.7", //ip
6
+    socket_ip: "192.168.8.7", //ip
7 7
 //  callcenter_url: "https://docking.zwfw.anyang.gov.cn:8999/", //生产环境
8 8
 	translation_socket:"ws://125.45.12.102:12233",
9 9
 	videoSocket_url: "wss://12345sp2.zwfw.anyang.gov.cn:8082", //docking.zwfw.anyang.gov.cn
10
-    socket_ip: "125.45.12.123", //ip
10
+//  socket_ip: "125.45.12.123", //ip
11 11
     socket_port: "8081", //端口
12 12
 	sip_ip:"12345sp.zwfw.anyang.gov.cn",
13 13
 	sip_password_:"123456", 
@@ -74,6 +74,8 @@ huayi.config = {
74 74
         "<a class='xg' onclick='replyMultimedia(\"data\")' title='回复'>回复</a>", // 多媒体回复
75 75
         "<a class='xg' onclick='auditAll(\"data\")' title='审核'>审核</a>", // 多媒体回复
76 76
         "<a class='xg' onclick='rePush(\"data\")' title='重推'>重推</a>", // 多媒体回复
77
+         "<a class='xg' onclick='ysThree(\"data\")' title='延时申请'>延时申请</a>", // 三级单位延时申请
78
+         "<a class='xg' onclick='shysThree(\"data\")' title='延时审核'>延时审核</a>", //延时审核
77 79
          
78 80
     ],
79 81
     kapArr: [

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

@@ -308,6 +308,7 @@
308 308
                 </table>
309 309
             </div>
310 310
         </div>
311
+        
311 312
         <div style="width: 100%;padding: 10px;">
312 313
             <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
313 314
                 <thead>
@@ -747,7 +748,6 @@
747 748
 	                return '<a class="xg" onclick="ckxq(\'' + val + '\')" title="点击查看工单详情">' + val + '</a>';
748 749
 	            }
749 750
         	}
750
-            
751 751
         }
752 752
        
753 753
        function formatBusinessType(val, row){

+ 31 - 0
WebUI/CallCenterWeb.UI/TelCall/css/search.css

@@ -0,0 +1,31 @@
1
+.th-box {
2
+    width: 100%;
3
+    padding: 5px;
4
+    border-bottom: 1px solid #e7eaec;
5
+}
6
+#sqzx th {
7
+    padding: 5px 8px 5px 0;
8
+    text-align: center;
9
+    width: 6%;
10
+}
11
+#sqzx td {
12
+    padding: 6px 0 5px 10px;
13
+    width: 18%;
14
+}
15
+.sc_btn {
16
+	width: 100px;
17
+	color: #fff;
18
+	font-size: 12px;
19
+	margin-left: 15px;
20
+	box-sizing: border-box;
21
+	background: #00a1cb;
22
+	padding: 6px 10px;
23
+	outline: none;
24
+	border-width: 0px;
25
+	border-style: initial;
26
+	border-color: initial;
27
+	border-image: initial;
28
+	border-radius: 3px;
29
+	margin-top: 5px;
30
+	text-align: center;
31
+}

+ 249 - 0
WebUI/CallCenterWeb.UI/TelCall/unCallBackRecord.html

@@ -0,0 +1,249 @@
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
+    <link rel="stylesheet" href="./css/search.css" />
10
+    <title>工单列表</title>
11
+    
12
+</head>
13
+
14
+<body>
15
+    <div class="wrapper wrapper-content animated fadeInRight">
16
+    	<div class="daoHang clearfix">
17
+            <div class="dhLeft">
18
+                <sapn>
19
+                	<i class="syIcon"></i>位置:
20
+                	<a href="javaScript:;" id="ReIndex">首页</a>&gt;
21
+                	<a href="javaScript:;">话务管理</a>&gt;
22
+                	<a href="" class="nowPosition">未回拨记录</a>
23
+                </sapn>
24
+            </div>
25
+            <div class="dhRight">
26
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
27
+            </div>
28
+        </div>
29
+        <div class="th-box">
30
+            <div class="box_content">
31
+                <table id="sqzx" style="width: 100%" border="0">
32
+                    <tbody>
33
+                        <tr>
34
+                        	<th>电话号码:</th>
35
+                            <td><input id="tel" class="form-control" type="text" /></td>
36
+                            <th>电话类别:</th>
37
+                            <td>
38
+                                <select class="form-control" id="phoneType">
39
+                                    <option value="">请选择</option>
40
+                                </select>
41
+                            </td>
42
+                            <td colspan="3">
43
+                                <a class="sc_btn Ss">搜索</a>
44
+                            </td>
45
+                        </tr>
46
+                    </tbody>
47
+                </table>
48
+            </div>
49
+        </div>
50
+        <div style="width: 100%;padding: 10px;">
51
+            <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
52
+                <thead>
53
+                    <tr>
54
+                        <th data-field="" data-align="center" data-formatter="Code">编号</th>
55
+                        <th data-field="CallNumber" data-align="center" data-formatter="formatterCallNum">电话号码</th>
56
+                        <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
57
+                        <th data-field="CallState" data-formatter="states" data-align="center">呼叫状态</th>
58
+                        <th data-field="UserCode" data-align="center">坐席工号</th>
59
+                        <th data-field="UserName1" data-align="center">坐席姓名</th>
60
+                        <th data-field="BeginTime" data-align="center">开始时间</th>
61
+                        <th data-field="TalkStartTime" data-align="center">通话开始时间</th>
62
+                        <th data-field="TalkEndTime" data-align="center">通话结束时间</th>
63
+                        <th data-field="EndTime" data-align="center">结束时间</th>
64
+                        <th data-field="CallNumber" data-align="center" data-formatter="operationFormatter">操作</th>
65
+                    </tr>
66
+                </thead>
67
+                <tbody class="list"></tbody>
68
+            </table>
69
+        </div>
70
+    </div>
71
+    <script src="../js/guid.js"></script>
72
+    <script>
73
+        var callId = helper.request.queryString("callId");
74
+        $(document).ready(function () {
75
+            load();
76
+             // 电话类别
77
+            getPhoneType($("#phoneType"));
78
+        });
79
+        //搜索  
80
+        $(".Ss").click(function () {
81
+            load();
82
+        });
83
+        //获取查询信息
84
+        function load() {
85
+            //先销毁表格
86
+            $('#orderlist').bootstrapTable('destroy');
87
+            //初始化表格,动态从服务器加载数据
88
+            $("#orderlist").bootstrapTable({
89
+                method: "get", //使用get请求到服务器获取数据
90
+                url: huayi.config.callcenter_url + "Callrecords/GetCallBackList", //获取数据的Servlet地址
91
+                contentType: "application/x-www-form-urlencoded",
92
+                striped: true, //表格显示条纹
93
+                pagination: true, //启动分页
94
+                pageSize: 10, //每页显示的记录数
95
+                pageNumber: 1, //当前第几页
96
+                pageList: [10, 20, 50, 100], //记录数可选列表
97
+                search: false, //是否启用查询
98
+                showColumns: false, //显示下拉框勾选要显示的列
99
+                showRefresh: false, //显示刷新按钮
100
+                sidePagination: "server", //表示服务端请求
101
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
102
+                //设置为limit可以获取limit, offset, search, sort, order
103
+                queryParamsType: "undefined",
104
+                queryParams: function queryParams(params) { //设置查询参数
105
+                    var param = {
106
+                        page: params.pageNumber,
107
+                        pagesize: params.pageSize,
108
+                        phone:$("#tel").val(),
109
+                        phoneType:$("#phoneType").val(),
110
+                        token: $.cookie("token")
111
+                    };
112
+                    return param;
113
+                },
114
+                responseHandler: function (res) {
115
+                    return {
116
+                        "total": res.total,
117
+                        "rows": res.rows,
118
+                    }
119
+                },
120
+                onLoadSuccess: function (data) { //加载成功时执行
121
+                },
122
+                onLoadError: function () { //加载失败时执行
123
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
124
+                }
125
+            });
126
+        }
127
+        //音频
128
+        function setCode(val) {
129
+            if (val) {
130
+                return '<div class="imgs">' +
131
+                    '<img src="../img/vice.png" alt="" onclick="helper.luyin.view(this)" item="' + val + '" />' +
132
+                    '</div>';
133
+            } else {
134
+                return '';
135
+            }
136
+        }
137
+        //编号
138
+        function Code(val, row, index) {
139
+            return index + 1;
140
+        }
141
+        // 电话号码
142
+        function formatterCallNum(val, row) {
143
+            var phoneNumber
144
+            if (val.length === 12) {
145
+                phoneNumber = val.slice(1)
146
+            } else if (val.length === 13) {
147
+                phoneNumber = val.slice(2)
148
+            } else {
149
+                phoneNumber = val
150
+            }
151
+            if (phoneNumber) {
152
+	            return '<a class="operation" onclick="backDial(\'' + phoneNumber + '\',\'' + row.CallId +'\')" title="">'+
153
+	            '<img src="../img/phones.png" style="display:inline-block"></img>'+phoneNumber+'</a>'
154
+            }
155
+        }
156
+		function states(val, row) {
157
+            if (val == 0) {
158
+                if (row.CallType == 0 && !row.UserCode) {
159
+                    return '<div class="imgs">主动放弃</div>';
160
+                } else {
161
+                    return '<div class="imgs">未接通</div>';
162
+                }
163
+            } else if (val == 1) {
164
+                return '<div class="imgs">已接通</div>';
165
+            } else if (val == 2) {
166
+                return '<div class="imgs">接通未达</div>';
167
+            }
168
+        }
169
+		// 操作
170
+        function operationFormatter(val) {
171
+        	// CallType ===0呼入    row.CallState ===0 未接通
172
+        	if (val) {
173
+	            return '<a class="operation" onclick="updateCallback(\'' + val + '\')" title="">无需回拨</a>'
174
+            }
175
+        }
176
+		function  updateCallback(phone){
177
+			$.ajax({
178
+		        type: "get",
179
+		        url: huayi.config.callcenter_url + "Callrecords/UpdateCallbackid",
180
+		        async: true,
181
+		        dataType: "json",
182
+		        data: {
183
+		            token: $.cookie("token"),
184
+		            phone:phone,
185
+		            type:1
186
+		        },
187
+		        success: function (result) {
188
+		            if (result.state.toLowerCase() == "success") {
189
+		            	load();
190
+		            }
191
+		        },
192
+		    });
193
+		}
194
+		// 外呼
195
+        function backDial(phoneNumber, callId) {
196
+            $.ajax({
197
+                type: "get",
198
+                url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
199
+                async: true,
200
+                dataType: "json",
201
+                data: {
202
+                    token: $.cookie("token"),
203
+                    phone: phoneNumber,
204
+                },
205
+                success: function (result) {
206
+                    if (result.state.toLowerCase() == "success") {
207
+                    	top.callbackState = true
208
+                        var guid = uuid();
209
+                        top.obj.Type = "MakeCall";
210
+                        top.obj.DestinationNumber = result.data.phone;
211
+                        top.obj.Header = result.data.fix;
212
+                        top.obj.TaskType = "2"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
213
+                        top.obj.TaskPhoneID = callId; //回访的电话ID
214
+                        top.obj.TaskID = guid; //回访记录编号
215
+                        top.obj.Callee = phoneNumber; //被叫号码
216
+                        top.obj.Caller = $.cookie("extno"); //操作人分机号
217
+                        top.Send();
218
+                    }
219
+                },
220
+            });
221
+        }
222
+		 //电话类别
223
+        function getPhoneType(obj) {
224
+            obj.empty();
225
+            $("<option value=''>请选择</option>").appendTo(obj);
226
+            $.ajax({
227
+                type: "get",
228
+                url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
229
+                dataType: "json",
230
+                async: true,
231
+                data: {
232
+                    "token": $.cookie("token"),
233
+                    id: 2498,
234
+                },
235
+                success: function (data) {
236
+                    if (data.state.toLowerCase() == "success") {
237
+                        var content = data.data;
238
+                        $(content).each(function (i, n) {
239
+                            $("<option value='" + n.F_Value + "'>" + n.F_Remark + "</option>")
240
+                                .appendTo(obj);
241
+                        })
242
+                    }
243
+                }
244
+            });
245
+        }
246
+    </script>
247
+</body>
248
+
249
+</html>

+ 1 - 0
WebUI/CallCenterWeb.UI/YeWu/specialExamination.html

@@ -106,6 +106,7 @@
106 106
 					}
107 107
 				});
108 108
 				tree()
109
+				
109 110
 				initTable()
110 111
 			})
111 112
 

+ 50 - 7
WebUI/CallCenterWeb.UI/YeWu/treatmentEffeciency.html

@@ -23,7 +23,11 @@
23 23
 			.th-inner {
24 24
 				white-space: normal !important;
25 25
 			}
26
-			
26
+			.seach-box ul li ul li{
27
+				float: none;
28
+				width: 100%;
29
+				display: block;
30
+			}
27 31
 		</style>
28 32
 	</head>
29 33
 
@@ -69,9 +73,12 @@
69 73
 										</div>
70 74
 									</div>
71 75
 								</li>
72
-								<li>
73
-                                    来源:
74
-                                    <select class="select_" id="source"></select>
76
+								<li style="width: 320px;display: flex;">
77
+                                   <div style="width: 100px;line-height: 34px;">选择来源:</div>
78
+                                    <div  style="width: 220px">
79
+                                    	<select name="select_" id="source"  class="selectpicker show-tick form-control" com data-live-search="true"></select>
80
+                                    </div>
81
+                                    
75 82
                                 </li>
76 83
 								<li>
77 84
 									<a class="sc_btn btns db">搜索</a>
@@ -96,13 +103,23 @@
96 103
 			</div>
97 104
 		</div>
98 105
 		<input type="hidden" id="PID" />
99
-		<script src="../js/zTree/jquery.ztree.core.js"></script>
100 106
 		<script src="../js/reportCommon/common.js"></script>
107
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
108
+		
101 109
 		<script>
102 110
 			var columnsArray = [];
103 111
 			var columnsWidth
104 112
 			var iscbdw =1
105 113
 			var apiUrl = "WorkOrderReport/GetProcessingEfficiency"
114
+			var zxSelectObj = {
115
+				id:'source',
116
+				apiUrl:'Dictionary/GetDicValueListById',
117
+				params:{
118
+					id: 1
119
+				},
120
+				selectValue:'F_ValueId',
121
+				selectName:'F_Value'
122
+			}
106 123
 			$(document).ready(function() {
107 124
 				laydate.render({
108 125
 					elem: '#startTimes',
@@ -117,9 +134,9 @@
117 134
 						$(".layui-laydate-footer [lay-type='date'].laydate-btns-time").click();
118 135
 					}
119 136
 				});
120
-				LY($("#source"));
121 137
 				tree()
122 138
 				initTable()
139
+				selectCommon(zxSelectObj)
123 140
 			})
124 141
 			$('.ul_tab li').click(function() {
125 142
 				$(this).addClass("active").siblings().removeClass("active");
@@ -133,7 +150,6 @@
133 150
 					tree()
134 151
 					apiUrl = "WorkOrderReport/GetSJProcessingEfficiency";
135 152
 				}
136
-				
137 153
 				initTable();
138 154
 			})
139 155
 			function dataParam() {
@@ -151,6 +167,33 @@
151 167
 				};
152 168
 				return obj
153 169
 			}
170
+//			function selectCommon(obj){
171
+//				params = Object.assign(obj.params,{
172
+//						token: $.cookie("token"),
173
+//				})
174
+//				$.getJSON(
175
+//					huayi.config.callcenter_url + obj.apiUrl,params ,
176
+//					function(data) {
177
+//						if(data.state.toLowerCase() == "success") {
178
+//							var content = data.data;
179
+//							$("<option value=''>请选择</option>").appendTo($("#"+obj.id));
180
+//							$(content).each(function(i, n) {
181
+//								$(
182
+//									"<option value='" +
183
+//									n[obj.selectValue] +
184
+//									"'>" +
185
+//									n[obj.selectName] +
186
+//									"</option>"
187
+//								).appendTo($("#"+obj.id));
188
+//							});
189
+//							$("#"+obj.id).selectpicker({
190
+//								noneSelectedText: "请选择", //默认显示内容
191
+//							});
192
+//							$("#"+obj.id).selectpicker("refresh");
193
+//						}
194
+//					}
195
+//				);
196
+//			}
154 197
 		</script>
155 198
 	</body>
156 199
 

+ 0 - 146
WebUI/CallCenterWeb.UI/js/commonReport/common.js

@@ -1,146 +0,0 @@
1
-//代办搜索
2
-$(".db").click(function() {
3
-	initTable()
4
-})
5
-//导出
6
-$('.export').click(function() {
7
-	var params = dataParam()
8
-	params.isdc = 1;
9
-	exportFileFun(apiUrl, params)
10
-})
11
-$("#workorderlist").on("click-row.bs.table", function(e, row, ele) {
12
-	$('.success').removeClass('success'); //去除之前选中的行的,选中样式
13
-	$(ele).addClass('success'); //添加当前选中的 success样式用于区别
14
-});
15
-function initTable() {
16
-	$.ajax({
17
-		url: huayi.config.callcenter_url + apiUrl,
18
-		type: 'get',
19
-		data: dataParam(),
20
-		dataType: "json",
21
-		async: true,
22
-		success: function(data) {
23
-			if(data.data[0]) {
24
-				columnsArray = []
25
-				var result = data.data[0]
26
-				var key = Object.keys(result)
27
-				for(var i = 0; i < key.length; i++) {
28
-					var title = key[i];
29
-					var obj = {
30
-						title: title,
31
-						align: 'center',
32
-						field: title //这里循环时field是bean的属性,动态数据加载,这里是个坑  我的bean是两层嵌套的,得按列数来查里面一层的beanList的第几个。这里这样写达不到效果,是个大坑
33
-					}
34
-					if (columnsWidth) {
35
-						obj.width = columnsWidth
36
-					}
37
-					columnsArray.push(obj);
38
-				}
39
-				$('#workorderlist').bootstrapTable('destroy');
40
-				$('#workorderlist').bootstrapTable({
41
-					columns: columnsArray,
42
-					data: data.data
43
-				});
44
-			}
45
-		}
46
-	});
47
-}
48
-// 导出列表
49
-function exportFileFun(api, params) {
50
-	var url = huayi.config.callcenter_url + api;
51
-	if(typeof(params) !== "object") {
52
-		return
53
-	}
54
-	// 分页为空
55
-	Object.keys(params).forEach(function(key, index) {
56
-		if(index === 0) {
57
-			url += `?${key}=${params[key]}`
58
-		} else {
59
-			url += `&${key}=${params[key]}`
60
-		}
61
-	})
62
-	window.location.href = url;
63
-}
64
-function dataParam() {
65
-	var obj = {
66
-		date: $("#startTimes").val(),
67
-		usercode: $("#ZX").val(),
68
-		token: $.cookie("token")
69
-	};
70
-	return obj
71
-}
72
-function selectMultiple(obj) {
73
-	var maindeptId = "";
74
-	var maindeptId_ = obj.val(); //坐席
75
-	if(maindeptId_ != null) {
76
-		$(maindeptId_).each(function(i, n) {
77
-			var obj2 = '';
78
-			obj2 = n + ",";
79
-			maindeptId += obj2;
80
-		})
81
-		maindeptId = maindeptId.substring(0, maindeptId.length - 1)
82
-	} else {
83
-		maindeptId = ""
84
-	}
85
-	return maindeptId
86
-}
87
-///坐席
88
-function ZX(obj) {
89
-	obj.empty();
90
-	$.getJSON(
91
-		huayi.config.callcenter_url + "UserAccount/GetSeatList", {
92
-			token: $.cookie("token"),
93
-		},
94
-		function(data) {
95
-			if(data.state.toLowerCase() == "success") {
96
-				var content = data.data;
97
-				$(
98
-					"<option value=''>请选择</option>"
99
-				).appendTo(obj);
100
-				$(content).each(function(i, n) {
101
-					$(
102
-						"<option value='" +
103
-						n.F_UserCode +
104
-						"'>" +
105
-						n.F_UserName +
106
-						"</option>"
107
-					).appendTo(obj);
108
-				});
109
-				obj.selectpicker({
110
-					noneSelectedText: "请选择", //默认显示内容
111
-				});
112
-				obj.selectpicker("refresh");
113
-			}
114
-		}
115
-	);
116
-}
117
-///坐席组
118
-function userGroup(obj) {
119
-	obj.empty();
120
-	$.getJSON(
121
-		huayi.config.callcenter_url + "InfoNew/GetDicValueListById", {
122
-			token: $.cookie("token"),
123
-		},
124
-		function(data) {
125
-			if(data.state.toLowerCase() == "success") {
126
-				var content = data.data;
127
-				$(
128
-					"<option value=''>请选择</option>"
129
-				).appendTo(obj);
130
-				$(content).each(function(i, n) {
131
-					$(
132
-						"<option value='" +
133
-						n.F_UserCode +
134
-						"'>" +
135
-						n.F_UserName +
136
-						"</option>"
137
-					).appendTo(obj);
138
-				});
139
-				obj.selectpicker({
140
-					noneSelectedText: "请选择", //默认显示内容
141
-				});
142
-				obj.selectpicker("refresh");
143
-			}
144
-		}
145
-	);
146
-}

+ 42 - 23
WebUI/CallCenterWeb.UI/js/main.js

@@ -139,6 +139,12 @@ function Connect() {
139 139
                 }
140 140
             } else {
141 141
                 if (rlt == false) {
142
+                	switch (data.Type.toLowerCase()) {
143
+                    //case "heart": HeartBack(); break;//心跳
144
+                    case "makecall":
145
+                        MakeCallBackFalse();
146
+                        break; //签入
147
+                    }
142 148
                     //layer.confirm('操作失败!', {
143 149
                     //    btn: ['确定'] 
144 150
                     //});
@@ -449,6 +455,7 @@ function LineStateAgentBack(data) {
449 455
 		} else {
450 456
 			$(".SayFree").addClass("active");
451 457
 		}
458
+		
452 459
 //      $(".SayBusy").addClass("active");
453 460
         $(".MakeCall").addClass("active");
454 461
         $(".td-call").hide();
@@ -576,30 +583,44 @@ function MakeCallBack() {
576 583
     $('.satisfactionEvaluation').addClass("active");
577 584
     if (callbackState) {
578 585
     	if (String(obj.TaskType) === "2") {
579
-	        $.ajax({
580
-	            type: "get",
581
-	            url: huayi.config.callcenter_url + "Callrecords/UpdateCallbackid",
582
-	            async: true,
583
-	            dataType: "json",
584
-	            data: {
585
-	                token: $.cookie("token"),
586
-	                callid: $.cookie("makeCallId"),  //当前呼出通话的id
587
-	                phone:obj.Callee,
588
-	                p_callid: obj.TaskPhoneID,  //当前呼入的电话id
589
-	            },
590
-	            success: function (result) {
591
-	                if (result.state.toLowerCase() == "success") {
592
-	                	obj.TaskType=""
593
-	                	callbackState =false
594
-	                	if ($("iframe:visible").attr("data-id") == "./TelCall/CallRecord.html") {
595
-					        window.frames[$("iframe:visible").attr("name")].initTable();
596
-					    }
597
-	                }
598
-	            },
599
-	        });
586
+    		updateCallback(1)
587
+	    }
588
+    }
589
+}
590
+function MakeCallBackFalse(){
591
+	if (callbackState) {
592
+    	if (String(obj.TaskType) === "2") {
593
+	        updateCallback(0)
600 594
 	    }
601 595
     }
602 596
 }
597
+function  updateCallback(type){
598
+	console.log($.cookie("makeCallId"))
599
+	$.ajax({
600
+        type: "get",
601
+        url: huayi.config.callcenter_url + "Callrecords/UpdateCallbackid",
602
+        async: true,
603
+        dataType: "json",
604
+        data: {
605
+            token: $.cookie("token"),
606
+            callid: $.cookie("makeCallId"),  //当前呼出通话的id
607
+            phone:obj.Callee,
608
+            p_callid: obj.TaskPhoneID,  //当前呼入的电话id
609
+            type:type
610
+        },
611
+        success: function (result) {
612
+            if (result.state.toLowerCase() == "success") {
613
+            	obj.TaskType=""
614
+            	callbackState =false
615
+            	if ($("iframe:visible").attr("data-id") == "./TelCall/CallRecord.html") {
616
+			        window.frames[$("iframe:visible").attr("name")].initTable();
617
+			    } else if ($("iframe:visible").attr("data-id") == "./TelCall/unCallBackRecord.html"){
618
+			    	window.frames[$("iframe:visible").attr("name")].load();
619
+			    }
620
+            }
621
+        },
622
+    });
623
+}
603 624
 
604 625
 //默认记忆上次是否签入,是否置忙置闲 0表示已签入 空闲,1表示签入置忙,2表示签出 
605 626
 function SetStateCookie(state) {
@@ -751,9 +772,7 @@ function backstageQueue(data) {
751 772
 }
752 773
 //录音返回
753 774
 function RecordPathBack(data) {
754
-
755 775
     $.cookie("makeCallId", data.CallID); 
756
-    
757 776
 }
758 777
 
759 778
 //在线坐席信息

+ 10 - 42
WebUI/CallCenterWeb.UI/js/reportCommon/common.js

@@ -81,65 +81,33 @@ function selectMultiple(obj) {
81 81
 	}
82 82
 	return maindeptId
83 83
 }
84
-//来源
85
-function LY(obj) {
86
-	obj.empty();
87
-	obj.append(
88
-		'<option selected="selected" value="">请选择</option>'
89
-	);
90
-	$.getJSON(
91
-		huayi.config.callcenter_url +
92
-		"Dictionary/GetDicValueListById", {
84
+function selectCommon(obj){
85
+	params = Object.assign(obj.params,{
93 86
 			token: $.cookie("token"),
94
-			id: 1,
95
-		},
96
-		function(data) {
97
-			if(data.state.toLowerCase() == "success") {
98
-				var content = data.data;
99
-				$(content).each(function(i, n) {
100
-					$(
101
-						"<option value='" +
102
-						n.F_ValueId +
103
-						"'>" +
104
-						n.F_Value +
105
-						"</option>"
106
-					).appendTo(obj);
107
-				});
108
-			}
109
-		}
110
-	);
111
-}
112
-///坐席
113
-function ZX(obj) {
114
-	obj.empty();
87
+	})
115 88
 	$.getJSON(
116
-		huayi.config.callcenter_url + "UserAccount/GetSeatList", {
117
-			token: $.cookie("token"),
118
-		},
89
+		huayi.config.callcenter_url + obj.apiUrl,params ,
119 90
 		function(data) {
120 91
 			if(data.state.toLowerCase() == "success") {
121 92
 				var content = data.data;
122
-				$(
123
-					"<option value=''>请选择</option>"
124
-				).appendTo(obj);
93
+				$("<option value=''>请选择</option>").appendTo($("#"+obj.id));
125 94
 				$(content).each(function(i, n) {
126 95
 					$(
127 96
 						"<option value='" +
128
-						n.F_UserCode +
97
+						n[obj.selectValue] +
129 98
 						"'>" +
130
-						n.F_UserName +
99
+						n[obj.selectName] +
131 100
 						"</option>"
132
-					).appendTo(obj);
101
+					).appendTo($("#"+obj.id));
133 102
 				});
134
-				obj.selectpicker({
103
+				$("#"+obj.id).selectpicker({
135 104
 					noneSelectedText: "请选择", //默认显示内容
136 105
 				});
137
-				obj.selectpicker("refresh");
106
+				$("#"+obj.id).selectpicker("refresh");
138 107
 			}
139 108
 		}
140 109
 	);
141 110
 }
142
-
143 111
 //下拉框开始
144 112
 $(".Closed").click(function() {
145 113
 	$(".ckxq").addClass("Hidens");