d123 8 anni fa
parent
commit
db239033ee

+ 416 - 0
CallCenterWeb.UI/OutboundMessage/OutboundAllo.html

@@ -0,0 +1,416 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+		<link href="../css/initialize.css" rel="stylesheet" />
8
+		<link href="../css/Table/table1.css" rel="stylesheet" />
9
+		<script src="../js/jquery.min.js?v=2.1.4"></script>
10
+		<script src="../js/plugins/layer/layer.min.js"></script>
11
+		<script src="../Script/Common/huayi.load.js"></script>
12
+		<script src="../Script/Common/huayi.config.js"></script>
13
+		<title>外呼计划分配</title>
14
+		<style>
15
+			body {
16
+				font-size: 14px;
17
+			}
18
+			
19
+			.tools_box {
20
+				padding: 10px;
21
+				border: 1px solid #EDECFF;
22
+			}
23
+			
24
+			.tools_box div {
25
+				padding-left: 1px;
26
+				font-weight: bold;
27
+			}
28
+			
29
+			.red {
30
+				color: #E43926;
31
+			}
32
+			
33
+			.tools_box span {
34
+				margin-left: 10px;
35
+			}
36
+			
37
+			.tools_box li {
38
+				margin-right: 10px;
39
+			}
40
+			
41
+			#xtable th {
42
+				/*width: 100px;
43
+				padding: 5px 8px 5px 10px;*/
44
+				color: #333;
45
+				font-weight: 700;
46
+				text-align: right;
47
+				background: #f9f9f9;
48
+				border-right: 1px dotted #cccccc;
49
+				border-top: 1px dotted #cccccc;
50
+				border-left: 1px dotted #cccccc;
51
+				width: 100px;
52
+			}
53
+			
54
+			#xtable td {
55
+				padding: 6px 0 5px 10px;
56
+				/*text-align: left;*/
57
+				color: #717171;
58
+				line-height: 200%;
59
+				border-right: 1px dotted #cccccc;
60
+				border-top: 1px dotted #cccccc;
61
+				border-left: 1px dotted #cccccc;
62
+			}
63
+			
64
+			.Num_input {
65
+				width: 50px;
66
+				padding: 5px;
67
+				border-color: #CCCCCC;
68
+			}
69
+			
70
+			.clearfix:after {
71
+				content: "";
72
+				display: block;
73
+				clear: both;
74
+			}
75
+			
76
+			#Submit {
77
+				padding: 0 10px;
78
+				height: 28px;
79
+				line-height: 28px;
80
+				background: #1ab394;
81
+				font-weight: bold;
82
+				color: #fff;
83
+				border-radius: 3px;
84
+				border: 1px solid #AED0EA;
85
+			}
86
+			
87
+			.outline {
88
+				border: 1px solid #21b9bb !important;
89
+			}
90
+			
91
+			.whjh {
92
+				position: absolute;
93
+				top: 43px;
94
+				z-index: 600;
95
+			}
96
+			
97
+			.fixed-table-pagination {
98
+				background: #F9F9F9;
99
+			}
100
+			
101
+			#table1 thead {
102
+				background: #f9f9f9;
103
+			}
104
+			
105
+			#tbodys tr {
106
+				background: #f9f9f9;
107
+			}
108
+			
109
+			.hidens {
110
+				display: none;
111
+			}
112
+			
113
+			#GetWFPList td {
114
+				padding: 8px;
115
+			}
116
+			
117
+			.readOnly {
118
+				background: #CCCCCC;
119
+				color: red;
120
+			}
121
+			
122
+			.daoHang {
123
+				padding: 15px;
124
+			}
125
+			
126
+			.daoHang .dhLeft a {
127
+				font-size: 14px;
128
+				color: #999;
129
+			}
130
+			
131
+			.btns {
132
+				background: #1ab394;
133
+				color: #fff;
134
+				padding: 6px 10px;
135
+				outline: none;
136
+				font-size: 12px;
137
+				margin-left: 15px;
138
+				border: 0;
139
+				border-radius: 3px;
140
+				box-sizing: border-box;
141
+			}
142
+			
143
+			.inputs {
144
+				border: 1px solid #e5e6e7;
145
+				width: 150px;
146
+				padding: 6px 12px;
147
+			}
148
+			.fixed-table-pagination{
149
+				text-align: center;
150
+			}
151
+		</style>
152
+	</head>
153
+
154
+	<body>
155
+		<div class="wrapper wrapper-content animated fadeInRight">
156
+			<div class="daoHang clearfix">
157
+				<div class="dhLeft">
158
+					<sapn><i class="syIcon"></i>位置:
159
+						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
160
+						<a href="javaScript:;">外呼管理</a>&gt;
161
+						<a href="" style="color: #000;">外呼分配</a>
162
+					</sapn>
163
+				</div>
164
+			</div>
165
+			<!--整体table-->
166
+			<div class="row">
167
+				<div class="col-sm-4">
168
+
169
+					<table border="0" cellspacing="3" cellpadding="3" class="clearfix" style="width: 100%;">
170
+						<tr>
171
+							<!--左边-->
172
+							<td style="padding: 0px 2px 5px 2px; float: left; ">
173
+								<!--头部-->
174
+								<div class="tools_box">
175
+									<div>
176
+										<span class="color">外呼分配</span>
177
+									</div>
178
+								</div>
179
+								<div>
180
+									<!--小table-->
181
+									<table id="xtable" border="0" cellspacing="" cellpadding="" style="width: 100%;">
182
+										<tr>
183
+											<th>当前未分配:</th>
184
+											<td>
185
+												<input type="text" class="Num_input" id="Fp_total" readonly="readonly" /> 条
186
+											</td>
187
+										</tr>
188
+										<tr>
189
+											<th>分配坐席:</th>
190
+											<td style="padding: 0;">
191
+												<!--table2-->
192
+												<div style="width: 100%;">
193
+													<table id="zxTab" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
194
+														<thead>
195
+															<tr>
196
+																<th data-checkbox="true" data-align="center"></th>
197
+																<th data-field="UserCode" data-align="center">坐席工号</th>
198
+																<th data-field="UserName" data-align="center">坐席名称</th>
199
+																<th data-field="WWCCount" data-align="center">未执行任务</th>
200
+															</tr>
201
+														</thead>
202
+														<tbody id="tbody">
203
+														</tbody>
204
+													</table>
205
+												</div>
206
+											</td>
207
+										</tr>
208
+										<tr>
209
+											<th>分配策略:</th>
210
+											<td>
211
+
212
+												<div>
213
+													<label for="">按数量平均分配</label>
214
+													<input type="text" class="Num_input Pjfp_input" />条
215
+												</div>
216
+												<div>
217
+													(为选择的坐席分配录入数量的任务)
218
+												</div>
219
+											</td>
220
+										</tr>
221
+										<tr style="border-bottom: 1px dotted #cccccc;text-align: center;">
222
+											<td>
223
+
224
+											</td>
225
+											<td style="text-align: center;">
226
+												<input type="button" name="" id="Submit" value="执行分配" />
227
+											</td>
228
+										</tr>
229
+									</table>
230
+								</div>
231
+							</td>
232
+						</tr>
233
+					</table>
234
+				</div>
235
+				<!--右边-->
236
+				<div class="col-sm-8" style="float: right;">
237
+					<div class="tools_box">
238
+						<div>
239
+							<span>外呼号码</span>
240
+
241
+							<span>&nbsp;关键字:<input class=" inputs" type="text" id="KeyWords" /></span>
242
+							<button class="btns searchGo size-14"> <i class="fa fa-search size-14"></i>&nbsp;搜索</button>
243
+
244
+						</div>
245
+					</div>
246
+					<div>
247
+						<table id="GetWFPList" class="table table-hover table-striped" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true" style="width:100%">
248
+							<thead>
249
+								<tr>
250
+									<th data-checkbox="true" data-align="center"></th>
251
+									<th data-field="F_Phone" data-align="center">号码</th>
252
+									<th data-field="F_CusName" data-align="center">名称</th>
253
+								</tr>
254
+							</thead>
255
+							<tbody id="tbody">
256
+
257
+							</tbody>
258
+						</table>
259
+					</div>
260
+				</div>
261
+			</div>
262
+			<input type="hidden" id="zxNum" />
263
+		</div>
264
+		<script>
265
+			var Arruser; //分配坐席
266
+			var Fpvalue; //分配数量
267
+			var Counts;
268
+			var token = $.cookie("token");
269
+			$(document).ready(function() {
270
+				GetSeatList(); //坐席列表
271
+				GetWFPList(); //右边分配
272
+				$(".searchGo").click(function() {
273
+					GetWFPList();
274
+				})
275
+			});
276
+
277
+			//分配坐席
278
+			function GetSeatList() {
279
+				var $tableLeft1 = $('#zxTab');
280
+				$tableLeft1.bootstrapTable('destroy');
281
+				//初始化表格,动态从服务器加载数据
282
+				$tableLeft1.bootstrapTable({
283
+					method: "get", //使用get请求到服务器获取数据
284
+					url: huayi.config.callcenter_url + "CallOutPlan/GetSeatList",
285
+					striped: true, //表格显示条纹
286
+					pagination: true, //启动分页
287
+					pageSize: 5, //每页显示的记录数
288
+					pageNumber: 1, //当前第几页
289
+					pageList: [5, 20, 50, 100], //记录数可选列表
290
+					search: false, //是否启用查询
291
+					showColumns: false, //显示下拉框勾选要显示的列
292
+					showRefresh: false, //显示刷新按钮
293
+					sidePagination: "server", //表示服务端请求
294
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
295
+					//设置为limit可以获取limit, offset, search, sort, order
296
+					queryParamsType: "undefined",
297
+					queryParams: function queryParams(params) { //设置查询参数
298
+						var param = {
299
+							pageindex: params.pageNumber,
300
+							pagesize: params.pageSize,
301
+							token:token
302
+						};
303
+						return param;
304
+					},
305
+					onLoadSuccess: function(data) { //加载成功时执行
306
+						//		layer.msg("加载成功");
307
+
308
+					},
309
+					onLoadError: function() { //加载失败时执行
310
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
311
+					}
312
+				});
313
+			}
314
+			//提交分配
315
+			$("#Submit").click(function() {
316
+				if(!$('.Pjfp_input').val()) {
317
+					layer.confirm('请输入分配数量', {
318
+						btn: ['确定'] //按钮
319
+					});
320
+					return;
321
+				}
322
+				Arruser = $.map($('#zxTab').bootstrapTable('getSelections'),
323
+					function(row) {
324
+						console.log(row.UserCod);
325
+						return row.UserCode;
326
+					});
327
+				Fpvalue = $('.Pjfp_input').val();
328
+				VisitFPSet(Fpvalue, Arruser);
329
+				//刷新表格
330
+				GetWFPList();
331
+				GetSeatList();
332
+			});
333
+			///未分配列表
334
+			function GetWFPList() {
335
+				var $tableLeft = $('#GetWFPList');
336
+				$tableLeft.bootstrapTable('destroy');
337
+				//初始化表格,动态从服务器加载数据
338
+				$tableLeft.bootstrapTable({
339
+					method: "get", //使用get请求到服务器获取数据
340
+					url: huayi.config.callcenter_url + "CallOutPlan/GetTaskWPF",
341
+					striped: true, //表格显示条纹
342
+					pagination: true, //启动分页
343
+					pageSize: 10, //每页显示的记录数
344
+					pageNumber: 1, //当前第几页
345
+					pageList: [5, 20, 50, 100], //记录数可选列表
346
+					search: false, //是否启用查询
347
+					showColumns: false, //显示下拉框勾选要显示的列
348
+					showRefresh: false, //显示刷新按钮
349
+					sidePagination: "server", //表示服务端请求
350
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
351
+					//设置为limit可以获取limit, offset, search, sort, order
352
+					queryParamsType: "undefined",
353
+					queryParams: function queryParams(params) { //设置查询参数
354
+						var param = {
355
+							pageindex: params.pageNumber,
356
+							pagesize: params.pageSize,
357
+							key: $("#KeyWords").val(),
358
+							token: token
359
+						};
360
+						return param;
361
+					},
362
+					onLoadSuccess: function(data) { //加载成功时执行
363
+						Counts = data.total;
364
+						if(Counts == 0) {
365
+							$("#Fp_total").attr("readOnly", "true").addClass("readOnly");
366
+						} else {
367
+							$("#Fp_total").attr("readOnly", false).removeClass("readOnly");
368
+						}
369
+						$("#Fp_total").val(Counts);
370
+						$('.Pjfp_input').val('');
371
+					},
372
+					onLoadError: function() { //加载失败时执行
373
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
374
+					}
375
+				});
376
+			}
377
+			//限制字符串长度
378
+			function cutContent(val) {
379
+				if(val) {
380
+					var str = '<div '
381
+					if(val.length > 5) {
382
+						str = str + ' title="' + val + '" ';
383
+						val = val.substr(0, 4) + "...";
384
+					}
385
+					return str + '>' + val + '</div>';
386
+				} else {
387
+					return '';
388
+				}
389
+			}
390
+			//分配 请求 
391
+			function VisitFPSet(Fpvalue, Arruser) {
392
+				$.ajax({
393
+					type: "post",
394
+					url: huayi.config.callcenter_url + "CallOutPlan/fpdata",
395
+					dataType: 'json',
396
+					data: {
397
+						fpvalue: Fpvalue,
398
+						arruser: Arruser,
399
+						token: token
400
+					},
401
+					async: true,
402
+					success: function(data) {
403
+						if(data.state == "success") {
404
+							GetSeatList();
405
+							GetWFPList();
406
+							layer.msg("分配成功");
407
+						} else {
408
+							layer.msg("分配失败");
409
+						}
410
+					}
411
+				});
412
+			}
413
+		</script>
414
+	</body>
415
+
416
+</html>

+ 1 - 1
CallCenterWeb.UI/OutboundMessage/OutboundPlan.html

@@ -12,7 +12,7 @@
12 12
 		<link href="../css/animate.min.css" rel="stylesheet">
13 13
 		<link href="../css/style.min862f.css?v=4.1.0" rel="stylesheet">
14 14
 		<link href="../css/layer/need/layer.css" />
15
-		<link rel="stylesheet" href="../css/init.css" />
15
+		<link rel="stylesheet" href="../css/init.css" /><link rel="stylesheet" href="../css/QutboundMessage/QutboundComm.css" />
16 16
 		<link rel="stylesheet" href="../css/QutboundMessage/QutboundComm.css" />
17 17
 		<title>外呼计划</title>
18 18
 	</head>

+ 1 - 65
CallCenterWeb.UI/OutboundMessage/addPlan.html

@@ -4,75 +4,11 @@
4 4
 	<head>
5 5
 		<meta charset="UTF-8">
6 6
 		<script src="../Script/Common/huayi.load.js"></script>
7
-		<script src="../Script/Common/huayi.load.js"></script>
8 7
 		<script src="../Script/Common/huayi.config.js"></script>
9 8
 		<link href="../css/Table/table1.css" rel="stylesheet" />
10 9
 		<link href="../css/init.css" rel="stylesheet" />
10
+		<link rel="stylesheet" href="../css/QutboundMessage/QutboundComm.css" />
11 11
 		<title>增加试题分类</title>
12
-		<style>
13
-			.Content {
14
-				text-align: center;
15
-				padding: 10px;
16
-			}
17
-			
18
-			.btn {
19
-				background: #1ab394;
20
-			}
21
-			
22
-			.Btn_box {
23
-				margin-top: 20px;
24
-				color: #fff;
25
-			}
26
-			
27
-			.Content_ {
28
-				padding-bottom: 10px;
29
-			}
30
-			
31
-			.form_table {
32
-				width: 100%;
33
-			}
34
-			
35
-			.form_table th {
36
-				padding: 5px 8px 5px 0;
37
-				color: #333;
38
-				font-weight: 700;
39
-				text-align: right;
40
-				background: #f9f9f9;
41
-			}
42
-			
43
-			.form_table td {
44
-				padding: 6px 0 5px 10px;
45
-				text-align: left;
46
-				color: #717171;
47
-				line-height: 200%;
48
-				margin-bottom: 20px;
49
-			}
50
-			
51
-			.txtInput {
52
-				width: 50%;
53
-				margin-right: 5px;
54
-				padding: 0 3px 0 3px;
55
-				height: 22px;
56
-				line-height: 22px;
57
-				background: #FAFAFA;
58
-				border: 1px solid #D7D7D7;
59
-				vertical-align: middle;
60
-				font-size: 12px;
61
-			}
62
-			
63
-			#Search {
64
-				color: #1ab394;
65
-			}
66
-			
67
-			.Table_box {
68
-				display: none;
69
-			}
70
-			
71
-			.Btn_box {
72
-				margin-top: 10px;
73
-				text-align: center;
74
-			}
75
-		</style>
76 12
 	</head>
77 13
 
78 14
 	<body>

+ 1 - 61
CallCenterWeb.UI/OutboundMessage/xgPlan.html

@@ -8,70 +8,10 @@
8 8
 		<script src="../Script/Common/huayi.config.js"></script>
9 9
 		<link href="../css/Table/table1.css" rel="stylesheet" />
10 10
 		<link href="../css/init.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="../css/QutboundMessage/QutboundComm.css" />
11 12
 		<title>修改外呼计划</title>
12 13
 		<style>
13
-			.Content {
14
-				text-align: center;
15
-				padding: 10px;
16
-			}
17
-			
18
-			.btn {
19
-				background: #1ab394;
20
-			}
21
-			
22
-			.Btn_box {
23
-				margin-top: 20px;
24
-				color: #fff;
25
-			}
26
-			
27
-			.Content_ {
28
-				padding-bottom: 10px;
29
-			}
30
-			
31
-			.form_table {
32
-				width: 100%;
33
-			}
34
-			
35
-			.form_table th {
36
-				padding: 5px 8px 5px 0;
37
-				color: #333;
38
-				font-weight: 700;
39
-				text-align: right;
40
-				background: #f9f9f9;
41
-			}
42
-			
43
-			.form_table td {
44
-				padding: 6px 0 5px 10px;
45
-				text-align: left;
46
-				color: #717171;
47
-				line-height: 200%;
48
-				margin-bottom: 20px;
49
-			}
50
-			
51
-			.txtInput {
52
-				width: 50%;
53
-				margin-right: 5px;
54
-				padding: 0 3px 0 3px;
55
-				height: 22px;
56
-				line-height: 22px;
57
-				background: #FAFAFA;
58
-				border: 1px solid #D7D7D7;
59
-				vertical-align: middle;
60
-				font-size: 12px;
61
-			}
62 14
 			
63
-			#Search {
64
-				color: #1ab394;
65
-			}
66
-			
67
-			.Table_box {
68
-				display: none;
69
-			}
70
-			
71
-			.Btn_box {
72
-				margin-top: 10px;
73
-				text-align: center;
74
-			}
75 15
 		</style>
76 16
 	</head>
77 17
 

+ 63 - 0
CallCenterWeb.UI/css/QutboundMessage/QutboundComm.css

@@ -61,3 +61,66 @@
61 61
 .operation a{
62 62
 	margin-right: 5px;
63 63
 }
64
+/*增加试题分类*/
65
+	.Content {
66
+				text-align: center;
67
+				padding: 10px;
68
+			}
69
+			
70
+			.btn {
71
+				background: #1ab394;
72
+			}
73
+			
74
+			.Btn_box {
75
+				margin-top: 20px;
76
+				color: #fff;
77
+			}
78
+			
79
+			.Content_ {
80
+				padding-bottom: 10px;
81
+			}
82
+			
83
+			.form_table {
84
+				width: 100%;
85
+			}
86
+			
87
+			.form_table th {
88
+				padding: 5px 8px 5px 0;
89
+				color: #333;
90
+				font-weight: 700;
91
+				text-align: right;
92
+				background: #f9f9f9;
93
+			}
94
+			
95
+			.form_table td {
96
+				padding: 6px 0 5px 10px;
97
+				text-align: left;
98
+				color: #717171;
99
+				line-height: 200%;
100
+				margin-bottom: 20px;
101
+			}
102
+			
103
+			.txtInput {
104
+				width: 50%;
105
+				margin-right: 5px;
106
+				padding: 0 3px 0 3px;
107
+				height: 22px;
108
+				line-height: 22px;
109
+				background: #FAFAFA;
110
+				border: 1px solid #D7D7D7;
111
+				vertical-align: middle;
112
+				font-size: 12px;
113
+			}
114
+			
115
+			#Search {
116
+				color: #1ab394;
117
+			}
118
+			
119
+			.Table_box {
120
+				display: none;
121
+			}
122
+			
123
+			.Btn_box {
124
+				margin-top: 10px;
125
+				text-align: center;
126
+			}

+ 29 - 4
CallCenterWeb.UI/js/OutboundMessage/OutboundPlan.js

@@ -20,7 +20,7 @@ $(document).ready(function() {
20 20
 
21 21
 //搜索功能
22 22
 $(".searchGo").click(function() {
23
-
23
+IndexCategoryGe();
24 24
 });
25 25
 
26 26
 ////左边表格
@@ -55,6 +55,7 @@ function IndexCategoryGe() {
55 55
 			var param = {
56 56
 				pageindex: params.pageNumber,
57 57
 				pagesize: params.pageSize,
58
+				key:$("#KeyWords").val(),
58 59
 				token: token
59 60
 			};
60 61
 			return param;
@@ -74,7 +75,7 @@ function Code(val, row) {
74 75
 	if(val == "0") {
75 76
 		html = '<a index="'+row.F_IsStart+'" onclick="Qd('+row.F_TaskID+','+row.F_IsStart+')">启动</a>';
76 77
 	} else if(val == "1") {
77
-		html = '<a >停止</a>';
78
+		html = '<a  onclick="Tz('+row.F_TaskID+')">停止</a>';
78 79
 	}
79 80
 	return '<div class="operation">' +
80 81
 		'<a  onclick=Amend(' + row.F_TaskID + ')>修改</a>' +
@@ -147,7 +148,7 @@ function Remove(str) {
147 148
 			dataType: 'json',
148 149
 			data: {
149 150
 				taskid: str,
150
-				states:1,
151
+				state:1,
151 152
 				token: $.cookie("token")
152 153
 			},
153 154
 			async: true,
@@ -161,7 +162,31 @@ function Remove(str) {
161 162
 		});
162 163
 	});
163 164
  }
164
-
165
+function Tz(str){
166
+	layer.confirm('确定要停止么?', {
167
+		btn: ['是', '否'] //按钮
168
+	}, function() {
169
+		/*发送请求*/
170
+		$.ajax({
171
+			type: "post",
172
+			url: huayi.config.callcenter_url + "CallOutPlan/EditTaskNum",
173
+			dataType: 'json',
174
+			data: {
175
+				taskid: str,
176
+				state:0,
177
+				token: $.cookie("token")
178
+			},
179
+			async: true,
180
+			success: function(data) {
181
+				if(data.state == "success") {
182
+								IndexCategoryGe();
183
+							layer.msg("停止成功");
184
+						}
185
+				
186
+			}
187
+		});
188
+	});
189
+}
165 190
 ///左边修改功能
166 191
 $(".leftChange ").click(function() {
167 192
 	if(Left_Cids) {