d123 vor 8 Jahren
Ursprung
Commit
46da4d70a5

+ 48 - 6
CallCenterWeb.UI/OutboundMessage/LookMessage.html

@@ -123,6 +123,9 @@
123 123
 				margin-left: 0;
124 124
 				position: relative;
125 125
 			}
126
+			.wrapper{
127
+				margin-bottom: 20px;
128
+			}
126 129
 		</style>
127 130
 	</head>
128 131
 
@@ -139,7 +142,7 @@
139 142
 							<label for="">姓名:</label><span class="Name_">18839115206</span>
140 143
 						</li>
141 144
 						<li>
142
-							<label for="">电话号码:</label><span class="Phone_"></span>
145
+							<label for="">电话号码:</label><a class="CallOut" id="CallOut"><span class="Phone_"></span><img  src="../img/Phones.png" alt="" /></a>
143 146
 						</li>
144 147
 
145 148
 					</ul>
@@ -175,7 +178,7 @@
175 178
 				<div>
176 179
 						<ul style="padding-left: 0;" class="title_ul">
177 180
 							<li>
178
-								<label for="">问卷名称</label><span class="Title">5555555555555555</span>
181
+								<label for="">问卷名称</label><span class="Title"></span>
179 182
 							</li>
180 183
 							<li>
181 184
 								<label for="">问卷名称</label><span class="F_Remark"></span>
@@ -186,15 +189,17 @@
186 189
 						</ul>
187 190
 					</div>
188 191
 			</div>
189
-			<div class="content_5  clearfix">
192
+			<div class="content_5  clearfix" style="text-align: center;">
190 193
 				<div>
191
-					<button class="Ce">提交</button>
194
+					<button class="Ce btns">提交</button>
192 195
 					<input type="hidden" id="F_CusID"/>
193 196
 					<input type="hidden" id="F_Id"/>
197
+					<input type="hidden" id="F_TaskId"/>
198
+					<input type="hidden" id="TelCode" value="" />
194 199
 				</div>
195 200
 			</div>
196 201
 		</div>
197
-		
202
+		<script src="../js/guid.js"></script>
198 203
 		<script>
199 204
 			var wid = helper.request.queryString("Str");
200 205
 			console.log(wid);
@@ -206,8 +211,44 @@
206 211
 				$("#sc_btns").click(function() {
207 212
 					initTable();
208 213
 				})
214
+				
215
+				$(".CallOut").click(function(event) {
216
+				    if ($(".Phone_").text()) {
217
+				        calloutopt($(".Phone_").text());
218
+				    }
219
+				});
209 220
 			})
221
+           //外呼
222
+           function calloutopt(telphone)
223
+			{
224
+			    event.stopPropagation();
225
+			    if (telphone) {
226
+			        $.ajax({
227
+			            type: "get",
228
+			            url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
229
+			            async: true,
230
+			            dataType: 'json',
231
+			            data: {
232
+			                token: $.cookie("token"),
233
+			                phone: telphone
234
+			            },
235
+			            success: function (result) {
236
+			                if (result.state.toLowerCase() == "success") {
237
+			                    var guid = uuid();
238
+			                    $("#TelCode").val(guid);
239
+			                    top.obj.Type = "MakeCall";
240
+			                    top.obj.DestinationNumber = result.data.phone;
241
+			                    top.obj.Header = result.data.fix;
242
+			                    top.obj.TaskType = "3"; //0:拨号外呼;1:95005回访外呼;2:电销老客户回访外呼;3:电销新客户回访外呼
243
+			                    top.obj.TaskPhoneID = $("#TelID").val(); //回访的电话ID
244
+			                    top.obj.TaskID = guid; //回访记录编号
245
+			                    top.Send();
246
+			                }
210 247
 
248
+			            }
249
+			        });
250
+			    }
251
+			}
211 252
 			//详情查看
212 253
 			function XQ(wid) {
213 254
 				console.log(wid);
@@ -227,6 +268,7 @@
227 268
 						$(".Phone_").text(Count.taskModel.F_Phone);
228 269
 						$("#F_CusID").val(Count.taskModel.F_CusID);
229 270
 						$("#F_Id").val(Count.taskModel.F_Id);
271
+						$("#F_TaskId").val(Count.taskModel.F_TaskId);
230 272
 						var pid = Count.paperid;
231 273
 						WJ(pid)
232 274
 
@@ -403,7 +445,7 @@
403 445
 					url: huayi.config.callcenter_url + "CallOutPlan/Answers",
404 446
 					dataType: 'json',
405 447
 					data: {
406
-						taskid: wid,//任务ID
448
+						taskid: $("#F_TaskId").val(),//任务ID
407 449
 						custelid:$("#F_Id").val(),//客户电话ID
408 450
 						cusid:$("#F_CusID").val(),//客户档案ID
409 451
 					ans:ans,//答案,数组形式["15_20_单选选项内容","17_25|36|58_复选选项内容1|选项内容2|选项内容3","30_0_问答题"]

+ 348 - 0
CallCenterWeb.UI/OutboundMessage/LookMessages.html

@@ -0,0 +1,348 @@
1
+<!DOCTYPE html>
2
+<html>
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 href="../css/Table/table1.css" rel="stylesheet" />
11
+		<link href="../css/init.css" rel="stylesheet" />
12
+		<style>
13
+			table td {
14
+				word-break: break-all;
15
+				word-wrap: break-word;
16
+			}
17
+			
18
+			table th {
19
+				min-width: 120px;
20
+			}
21
+			
22
+			.size-14 {
23
+				font-size: 14px!important;
24
+			}
25
+			
26
+			.shark_content_title {
27
+				font-size: 14px;
28
+				height: 30px;
29
+				line-height: 20px;
30
+				border-bottom: 1px solid #CCCCCC;
31
+				margin-bottom: 5px;
32
+				margin-top: 5px;
33
+			}
34
+			
35
+			.content_2 li {
36
+				width: 24%;
37
+				margin-bottom: 10px;
38
+			}
39
+			
40
+			.content_3 li {
41
+				width: 24%;
42
+				margin-bottom: 10px;
43
+			}
44
+			
45
+			#tbr {
46
+				border: 1px solid #ccc;
47
+			}
48
+			
49
+			#tbr td {
50
+				padding: 10px;
51
+				padding: 6px 0 5px 10px;
52
+				color: #717171;
53
+				line-height: 200%;
54
+				border-top: 1px dotted #cccccc;
55
+			}
56
+			
57
+			#tbr th {
58
+				border-right: 1px dotted #cccccc;
59
+				border-top: 1px dotted #cccccc;
60
+				background: #f9f9f9;
61
+				text-align: right;
62
+			}
63
+			
64
+			.Back {
65
+				background-color: #f5f5f5;
66
+			}
67
+			
68
+			label {
69
+				margin-right: 10px;
70
+			}
71
+			
72
+			.Phone_Text ul {
73
+				padding-left: 0;
74
+			}
75
+			
76
+			.Phone_Text li {
77
+				width: 50%;
78
+			}
79
+			
80
+			.Phone_Text label {
81
+				width: 60px;
82
+			}
83
+			
84
+			.Qus_box li {
85
+				list-style: none;
86
+				border: 1px solid #ccc;
87
+				border-bottom: none;
88
+				float: none;
89
+			}
90
+			
91
+			.Qus_box {
92
+				padding-left: 0!important;
93
+			}
94
+			
95
+			.Qus_box div {
96
+				padding: 10px;
97
+				border-bottom: 1px solid #ccc;
98
+			}
99
+			
100
+			.title_ul {
101
+				padding-left: 0;
102
+				margin-bottom: 0;
103
+			}
104
+			
105
+			.title_ul li {
106
+				border: 1px solid #ccc;
107
+				float: none;
108
+			}
109
+			
110
+			.title_ul li label {
111
+				border-right: 1px solid #ccc;
112
+				line-height: 30px;
113
+				margin: 0;
114
+				padding: 10px;
115
+			}
116
+			
117
+			.checkbox input[type=checkbox] {
118
+				margin-top: 0;
119
+				margin-left: 0;
120
+				position: relative;
121
+			}
122
+			
123
+			.radio input[type=radio] {
124
+				margin-top: 0;
125
+				margin-left: 0;
126
+				position: relative;
127
+			}
128
+			
129
+			.wrapper {
130
+				margin-bottom: 20px;
131
+			}
132
+		</style>
133
+	</head>
134
+
135
+	<body class="gray-bg">
136
+		<div class="wrapper clearfix">
137
+			<div class="content_1 clearfix">
138
+				<div class="shark_content_title clearfix">
139
+					<span>电话信息</span>
140
+
141
+				</div>
142
+				<div class="clearfix Phone_Text clearfix">
143
+					<ul class="clearfix">
144
+						<li>
145
+							<label for="">姓名:</label><span class="Name_">18839115206</span>
146
+						</li>
147
+						<li>
148
+							<label for="">电话号码:</label><span class="Phone_"></span>
149
+						</li>
150
+
151
+					</ul>
152
+				</div>
153
+			</div>
154
+			<div class="content_2  clearfix ">
155
+				<div class="shark_content_title clearfix">
156
+					<span>呼叫结果</span>
157
+
158
+				</div>
159
+				<div>
160
+					<ul class="clearfix" id="Tgetruset">
161
+
162
+					</ul>
163
+				</div>
164
+			</div>
165
+			<div class="content_3 clearfix ">
166
+				<div class="shark_content_title clearfix">
167
+					<span>用户反馈</span>
168
+
169
+				</div>
170
+				<div>
171
+					<ul class="clearfix" id="Tg">
172
+
173
+					</ul>
174
+				</div>
175
+			</div>
176
+			<div class="content_4  clearfix ">
177
+				<div class="shark_content_title clearfix">
178
+					<span>问卷信息</span>
179
+
180
+				</div>
181
+				<div>
182
+					<ul style="padding-left: 0;" class="title_ul">
183
+						<li>
184
+							<label for="">问卷名称</label><span class="Title"></span>
185
+						</li>
186
+						<li>
187
+							<label for="">问卷名称</label><span class="F_Remark"></span>
188
+						</li>
189
+					</ul>
190
+					<ul class="Qus_box">
191
+
192
+					</ul>
193
+				</div>
194
+			</div>
195
+		</div>
196
+
197
+		<script>
198
+			var wid = helper.request.queryString("Str");
199
+			console.log(wid);
200
+			$(document).ready(function() {
201
+				GetHJJG();
202
+				GetYHFK();
203
+				XQ(wid);
204
+				
205
+			
206
+			})
207
+
208
+			//详情查看
209
+			function XQ(wid) {
210
+				console.log(wid);
211
+				$.ajax({
212
+					type: "get",
213
+					url: huayi.config.callcenter_url + "CallOutPlan/GetTaskTelInfo",
214
+					dataType: 'json',
215
+					data: {
216
+						id: wid,
217
+						token: $.cookie("token")
218
+					},
219
+					async: true,
220
+					success: function(data) {
221
+						var Count = data.data;
222
+						console.log(Count.taskModel);
223
+						$(".Name_").text(Count.taskModel.F_CusName);
224
+						$(".Phone_").text(Count.taskModel.F_Phone);
225
+						$(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
226
+						$(' input[name="checks"][value="' + Count.taskModel.F_YHFKId + '"]').prop("checked", "checked");
227
+						$('.Title').text(Count.paperModel.F_Title);
228
+						$(".F_Remark").text(Count.paperModel.F_Remark);
229
+						//循环填表
230
+						var html = '';
231
+						var Questions = Count.paperModel.F_Questions;
232
+						
233
+						for(var i = 0; i < Questions.length; i++) {
234
+								var questype = Questions[i].questype;
235
+								var quesanswers = Questions[i].quesanswers;
236
+								var Quesid = Questions[i].quesid;
237
+								html += '<li class="" name="ltype' + Quesid + '" >';
238
+								html += '<div class="Back">';
239
+								html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
240
+								html += '</div>';
241
+								//判断类型
242
+								if(questype == 2) {
243
+									//选项
244
+									if(Questions[i].quesitems.length > 0) { //单选
245
+										html += '<div class="radio" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
246
+										var quesitems = Questions[i].quesitems;
247
+										for(var j = 0; j < quesitems.length; j++) {
248
+											html += '<label style="font-weight: normal;">'
249
+											html += '' + (j + 1) + '.';
250
+											var chk='';
251
+											if(quesanswers==quesitems[j].itemid){
252
+												chk='checked="checked"';
253
+											//html += '<input type="radio" checked="checked" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
254
+											}
255
+												html += '<input type="radio" '+chk+' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
256
+											
257
+										}
258
+										html += '</div>'
259
+										html += '</li>'
260
+									}
261
+								} else if(questype == 1) {
262
+									//问答题
263
+									
264
+									html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
265
+									html += '<textarea class="Wds" "index="' + Questions[i].quesid + '"name="" rows="" cols="" style="width: 100%;">'+quesanswers+'</textarea>'
266
+									html += '</div>'
267
+
268
+								} else {
269
+									if(Questions[i].quesitems.length > 0) { //多选
270
+
271
+										html += '<div class="checkbox" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
272
+										var quesitems = Questions[i].quesitems;
273
+										for(var j = 0; j < quesitems.length; j++) {
274
+											html += '<label style="font-weight: normal;">'
275
+											html += '' + (j + 1) + '.';
276
+											 var arr=quesanswers.split('|'); 
277
+											 var chk='';
278
+											for(var k = 0; k < arr.length; k++){
279
+												chk='';
280
+												if(arr[k]==quesitems[j].itemid){
281
+													chk='checked="checked"';
282
+													break;
283
+												}
284
+											}
285
+											html += '<input type="checkbox" '+chk+' index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
286
+											//html += '<input type="checkbox" index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
287
+										}
288
+										html += '</div>'
289
+
290
+										html += '</li >';
291
+									}
292
+								}
293
+
294
+							}
295
+						$(html).appendTo(".Qus_box");
296
+					}
297
+				});
298
+			}
299
+			//获取呼叫结果
300
+			function GetHJJG() {
301
+				$.ajax({
302
+					type: "get",
303
+					url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
304
+					dataType: 'json',
305
+					data: {
306
+						flag: 'HJJG',
307
+						token: $.cookie("token")
308
+					},
309
+					async: true,
310
+					success: function(data) {
311
+						var Count = data.data;
312
+						$("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
313
+						for(var i = 0; i < Count.length; i++) {
314
+							$("<li><label for=''><input type='radio' name='check' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
315
+							appendTo($("#Tgetruset"));
316
+
317
+						}
318
+					}
319
+				});
320
+			}
321
+
322
+			
323
+			//用户反馈
324
+			function GetYHFK() {
325
+				$.ajax({
326
+					type: "get",
327
+					url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
328
+					dataType: 'json',
329
+					data: {
330
+						flag: 'YHFK',
331
+						token: $.cookie("token")
332
+					},
333
+					async: true,
334
+					success: function(data) {
335
+						var Count = data.data;
336
+						$("<option value=''>--全部--</option>").appendTo($("#selhjjg"));
337
+						for(var i = 0; i < Count.length; i++) {
338
+							$("<li><label for=''><input type='radio' name='checks' value='" + Count[i].F_DictionaryValueId + "' /></label>" + Count[i].F_Name + "</li>").
339
+							appendTo($("#Tg"));
340
+						}
341
+					}
342
+				});
343
+			}
344
+		</script>
345
+
346
+	</body>
347
+
348
+</html>

+ 3 - 7
CallCenterWeb.UI/OutboundMessage/MyTask.html

@@ -35,7 +35,7 @@
35 35
                     <ul>
36 36
                         <li>关键字:<input class="photo x-color" type="text" id="key" /></li>
37 37
                         <li>
38
-                            <a class="sc_btn  Block" id="sc_btns ">搜索</a>
38
+                            <a class="sc_btn  Block" id="sc_btns">搜索</a>
39 39
                         </li>
40 40
                     </ul>
41 41
                 </div>
@@ -106,7 +106,7 @@
106 106
 ///操作
107 107
 
108 108
      function Code(val,row){
109
-     	return'<div><a onclick="XX('+row.F_Id+')">查看</a></div>'
109
+     	return'<div><a onclick="XX('+row.F_Id+')">'+row.F_Phone+'</a></div>'
110 110
    
111 111
      }
112 112
      //详情
@@ -120,11 +120,7 @@
120 120
 	});
121 121
       }
122 122
 //
123
-var ans=[];
124
-$('#tbr tbody tr .Back').each(function(){
125
-	var ID=$(this).attr("indexs");
126
-  console.log(ID);
127
-})
123
+
128 124
     </script>
129 125
 
130 126
 </body>

+ 20 - 6
CallCenterWeb.UI/OutboundMessage/MyTaskResult.html

@@ -25,7 +25,7 @@
25 25
     <div class="wrapper wrapper-content animated fadeInRight">
26 26
     	 <div class="daoHang clearfix">
27 27
 				<div class="dhLeft" >
28
-					<sapn><i class="syIcon"></i>位置:<a href="javaScript:;"  class="indexreturn">首页</a>&gt;<a href="javaScript:;">外呼计划</a>&gt;<a href="" style="color: #000;">我的任务</a></sapn>
28
+					<sapn><i class="syIcon"></i>位置:<a href="javaScript:;"  class="indexreturn">首页</a>&gt;<a href="javaScript:;">外呼计划</a>&gt;<a href="" style="color: #000;">我的任务结果</a></sapn>
29 29
 				</div>
30 30
 			</div>
31 31
         <div class="th-box">
@@ -41,7 +41,7 @@
41 41
                         <select name="" class="photo" id="yhfkid"></select>
42 42
                         </li>
43 43
                         <li>
44
-                            <a class="sc_btn  Block" id="sc_btns ">搜索</a>
44
+                            <a class="sc_btn  Block" id="sc_btns">搜索</a>
45 45
                         </li>
46 46
                     </ul>
47 47
                 </div>
@@ -52,9 +52,10 @@
52 52
                 <thead>
53 53
                     <tr>
54 54
                         <th data-field="state" data-checkbox="true"></th>
55
-                        <th data-field="F_Phone" data-align="center">来电号码</th>
55
+                        <th data-field="F_Phone" data-align="center"data-formatter="Code">号码</th>
56 56
                         <th data-field="F_UserName" data-align="center">分配坐席</th>
57 57
                         <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
58
+                        <th data-field="F_YHFKName" data-align="center">用户反馈</th>
58 59
                     </tr>
59 60
                 </thead>
60 61
                 <tbody id="tbody"></tbody>
@@ -68,9 +69,10 @@
68 69
         	initTable();
69 70
         	GetHJJG() ;//呼叫结果
70 71
         	GetYHFK();//用户反馈
71
-            /*搜索*/
72 72
             $("#sc_btns").click(function () {
73
+            	
73 74
                 initTable();
75
+                
74 76
             })
75 77
         })
76 78
         function initTable() {
@@ -136,7 +138,6 @@ function GetHJJG() {
136 138
 	});
137 139
 }
138 140
 //用户反馈
139
-       //获取呼叫结果
140 141
 function GetYHFK() {
141 142
 	$.ajax({
142 143
 		type: "get",
@@ -158,7 +159,20 @@ function GetYHFK() {
158 159
 		}
159 160
 	});
160 161
 }
161
-
162
+ function Code(val,row){
163
+     	return'<div><a onclick="XX('+row.F_Id+')">'+row.F_Phone+'</a></div>'
164
+   
165
+     }
166
+  //详情
167
+      function XX(str){
168
+      	console.log(str);
169
+      	  	 		layer.open({
170
+		type: 2,
171
+		content: "../OutboundMessage/LookMessages.html?Str="+str, //iframe的url,no代表不显示滚动条
172
+		title: '任务信息',
173
+		area: ['40%', '65%'], //宽高
174
+	});
175
+      }
162 176
     </script>
163 177
 
164 178
 </body>

+ 202 - 0
CallCenterWeb.UI/OutboundMessage/TaskResult.html

@@ -0,0 +1,202 @@
1
+<!DOCTYPE html>
2
+<html>
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 href="../css/Table/table1.css" rel="stylesheet" />
11
+    <link href="../css/init.css" rel="stylesheet" />
12
+    <style>
13
+        table td {
14
+            word-break: break-all;
15
+            word-wrap: break-word;
16
+        }
17
+
18
+        table th {
19
+            min-width: 120px;
20
+        }
21
+    </style>
22
+</head>
23
+
24
+<body class="gray-bg">
25
+    <div class="wrapper wrapper-content animated fadeInRight">
26
+    	 <div class="daoHang clearfix">
27
+				<div class="dhLeft" >
28
+					<sapn><i class="syIcon"></i>位置:<a href="javaScript:;"  class="indexreturn">首页</a>&gt;<a href="javaScript:;">外呼计划</a>&gt;<a href="" style="color: #000;">任务结果</a></sapn>
29
+				</div>
30
+			</div>
31
+        <div class="th-box">
32
+            <div class="th-bar">
33
+               
34
+                <div class="seach-box ">
35
+                    <ul>
36
+                        <li>关键字:<input class="photo x-color" type="text" id="key" /></li>
37
+                        <li>呼叫结果:
38
+                        <select name="" class="photo" id="hjjgid"></select>
39
+                        </li>
40
+                        <li>用户反馈:
41
+                        <select name="" class="photo" id="yhfkid"></select>
42
+                        </li>
43
+                        <li>坐席:
44
+                        <select name="" class="photo" id="zx"></select>
45
+                        </li>
46
+                        <li>
47
+                            <a class="sc_btn  Block" id="sc_btns">搜索</a>
48
+                        </li>
49
+                    </ul>
50
+                </div>
51
+            </div>
52
+        </div>
53
+        <div style="width: 100%;padding: 10px;">
54
+            <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
55
+                <thead>
56
+                    <tr>
57
+                        <th data-field="state" data-checkbox="true"></th>
58
+                        <th data-field="F_Phone" data-align="center"data-formatter="Code">号码</th>
59
+                        <th data-field="F_UserName" data-align="center">分配坐席</th>
60
+                        <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
61
+                        <th data-field="F_YHFKName" data-align="center">用户反馈</th>
62
+                    </tr>
63
+                </thead>
64
+                <tbody id="tbody"></tbody>
65
+            </table>
66
+        </div>
67
+    </div>
68
+
69
+    <script>
70
+        
71
+        $(document).ready(function () {
72
+        	initTable();
73
+        	GetHJJG() ;//呼叫结果
74
+        	GetYHFK();//用户反馈
75
+            $("#sc_btns").click(function () {
76
+            	
77
+                initTable();
78
+                
79
+            })
80
+            //坐席
81
+            $.ajax({
82
+		type: "get",
83
+		url: huayi.config.callcenter_url + "UserAccount/GetSeatList",
84
+		dataType: 'json',
85
+		async: true,
86
+		data: {
87
+			token: $.cookie("token")
88
+		},
89
+		success: function(data) {
90
+			var Count = data.data;
91
+			$("<option value=''>--全部--</option>").appendTo($("#zx"));
92
+			for(var i = 0; i < Count.length; i++) {
93
+				//console.log(Count[i].F_UserName);
94
+				$("<option value='" + Count[i].F_UserId + "'>" + Count[i].F_UserName + "</option>").appendTo($("#zx"));
95
+			}
96
+		}
97
+	});
98
+        })
99
+        function initTable() {
100
+            //先销毁表格
101
+            $('#list').bootstrapTable('destroy');
102
+            //初始化表格,动态从服务器加载数据
103
+            $("#list").bootstrapTable({
104
+                method: "get",  //使用get请求到服务器获取数据
105
+                url: huayi.config.callcenter_url + "CallOutPlan/GetResultList", //获取数据的Servlet地址
106
+                striped: true,  //表格显示条纹
107
+                pagination: true, //启动分页
108
+                pageSize: 10,  //每页显示的记录数
109
+                pageNumber: 1, //当前第几页
110
+                pageList: [10, 20, 50, 100],  //记录数可选列表
111
+                search: false,  //是否启用查询
112
+                showColumns: false,  //显示下拉框勾选要显示的列
113
+                showRefresh: false,  //显示刷新按钮
114
+                sidePagination: "server", //表示服务端请求
115
+                //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
116
+                //设置为limit可以获取limit, offset, search, sort, order
117
+                queryParamsType: "undefined",
118
+                queryParams: function queryParams(params) {   //设置查询参数
119
+                    var param = {
120
+                        pageindex: params.pageNumber,
121
+                        pagesize: params.pageSize,
122
+                        key: $("#key").val(),
123
+                      	 hjjgid:$("#hjjgid").val(),//呼叫结果ID
124
+						yhfkid:$("#yhfkid").val(), //用户反馈ID
125
+						userid:$("#zx").val(),
126
+                        token: $.cookie("token")
127
+                    };
128
+                    return param;
129
+                },
130
+                onLoadSuccess: function () {  //加载成功时执行
131
+                    //layer.msg("加载成功");
132
+                },
133
+                onLoadError: function () {  //加载失败时执行
134
+                    //layer.msg("加载数据失败", { time: 1500, icon: 2 });
135
+                }
136
+            });
137
+        }
138
+
139
+
140
+       //获取呼叫结果
141
+function GetHJJG() {
142
+	$.ajax({
143
+		type: "get",
144
+		url: huayi.config.callcenter_url +"Dictionary/GetDicValueListByFlag",
145
+		dataType: 'json',
146
+		data: {
147
+			flag: 'HJJG',
148
+			token: $.cookie("token")
149
+		},
150
+		async: true,
151
+		success: function(data) {
152
+			var Count = data.data;
153
+			$("<option value=''>--全部--</option>").appendTo($("#hjjgid"));
154
+			for(var i = 0; i < Count.length; i++) {
155
+				console.log(Count[i].F_UserName);
156
+				$("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#hjjgid"));
157
+				
158
+			}
159
+		}
160
+	});
161
+}
162
+//用户反馈
163
+function GetYHFK() {
164
+	$.ajax({
165
+		type: "get",
166
+		url: huayi.config.callcenter_url +"Dictionary/GetDicValueListByFlag",
167
+		dataType: 'json',
168
+		data: {
169
+			flag: 'YHFK',
170
+			token: $.cookie("token")
171
+		},
172
+		async: true,
173
+		success: function(data) {
174
+			var Count = data.data;
175
+			$("<option value=''>--全部--</option>").appendTo($("#yhfkid"));
176
+			for(var i = 0; i < Count.length; i++) {
177
+				console.log(Count[i].F_UserName);
178
+				$("<option value='" + Count[i].F_DictionaryValueId + "'>" + Count[i].F_Name + "</option>").appendTo($("#yhfkid"));
179
+				
180
+			}
181
+		}
182
+	});
183
+}
184
+ function Code(val,row){
185
+     	return'<div><a onclick="XX('+row.F_Id+')">'+row.F_Phone+'</a></div>'
186
+   
187
+     }
188
+  //详情
189
+      function XX(str){
190
+      	console.log(str);
191
+      	  	 		layer.open({
192
+		type: 2,
193
+		content: "../OutboundMessage/LookMessages.html?Str="+str, //iframe的url,no代表不显示滚动条
194
+		title: '任务信息',
195
+		area: ['40%', '65%'], //宽高
196
+	});
197
+      }
198
+    </script>
199
+
200
+</body>
201
+
202
+</html>

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

@@ -123,7 +123,7 @@
123 123
 					pageSize: 5, //每页显示的记录数
124 124
 					pageNumber: 1, //当前第几页
125 125
 					pageList: [5, 20, 50, 100], //记录数可选列表
126
-					search: false, //是否启用查询
126
+					search:false, //是否启用查询
127 127
 					showColumns: false, //显示下拉框勾选要显示的列
128 128
 					showRefresh: false, //显示刷新按钮
129 129
 					sidePagination: "server", //表示服务端请求