Explorar el Código

外呼计划增加了清空号码;问卷设置,我的任务,我的任务结果,任务结果;增加了试题的说明,展示;

fanlongfei %!s(int64=7) %!d(string=hace) años
padre
commit
8a3ce85e6a

+ 17 - 11
CallCenterWeb.UI/OutboundMessage/LookMessage.html

@@ -9,7 +9,7 @@
9 9
 		<script src="../Script/Common/huayi.config.js"></script>
10 10
 		<link href="../css/Table/table1.css" rel="stylesheet" />
11 11
 		<link href="../css/init.css" rel="stylesheet" />
12
-		<link rel="stylesheet" type="text/css" href="../css/lookMsg.css"/>
12
+		<link rel="stylesheet" type="text/css" href="../css/lookMsg.css" />
13 13
 	</head>
14 14
 
15 15
 	<body class="gray-bg">
@@ -131,7 +131,7 @@
131 131
 				});
132 132
 			});
133 133
 			//获取乡镇下拉
134
-			function getCountry(){
134
+			function getCountry() {
135 135
 				$.ajax({
136 136
 					type: "get",
137 137
 					url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
@@ -144,7 +144,7 @@
144 144
 					success: function(data) {
145 145
 						var res = data.data;
146 146
 						for(var i = 0; i < res.length; i++) {
147
-							$('<option value="'+ res[i].F_DictionaryValueId +'">'+ res[i].F_Name +'</option>').appendTo($("#country"));
147
+							$('<option value="' + res[i].F_DictionaryValueId + '">' + res[i].F_Name + '</option>').appendTo($("#country"));
148 148
 						}
149 149
 					}
150 150
 				});
@@ -172,7 +172,7 @@
172 172
 								top.obj.Header = result.data.fix;
173 173
 								top.obj.TaskType = "1"; //0:拨号外呼;1:问卷外呼;
174 174
 								top.obj.TaskPhoneID = $("#F_Id").val(); //回访的电话ID
175
-							    //top.obj.TaskID = guid; //回访记录编号
175
+								//top.obj.TaskID = guid; //回访记录编号
176 176
 								top.obj.TaskID = $("#F_TaskId").val()
177 177
 								top.Send();
178 178
 							}
@@ -212,7 +212,7 @@
212 212
 					}
213 213
 				});
214 214
 			}
215
-			
215
+
216 216
 			//获取呼叫结果
217 217
 			function GetHJJG() {
218 218
 				$.ajax({
@@ -300,11 +300,11 @@
300 300
 							hjjgid: $('input[name="check"]:checked').val(), //呼叫结果ID
301 301
 							//yhfkid: $('input[name="checks"]:checked').val(), //用户反馈ID
302 302
 							yhfkid: 0, //用户反馈ID
303
-							telphone: $('#Phone_').text(),//电话号码, 
304
-							name: $('#Name_').val(),//姓名, 
305
-							phone: $('#callNum').val(),//固定号码, 
306
-							countryid: $('#country').val(),//乡镇id, 
307
-							address: $('#address').val(),//地址
303
+							telphone: $('#Phone_').text(), //电话号码, 
304
+							name: $('#Name_').val(), //姓名, 
305
+							phone: $('#callNum').val(), //固定号码, 
306
+							countryid: $('#country').val(), //乡镇id, 
307
+							address: $('#address').val(), //地址
308 308
 							token: $.cookie("token")
309 309
 						},
310 310
 						async: true,
@@ -343,9 +343,15 @@
343 343
 							for(var i = 0; i < Questions.length; i++) {
344 344
 								var questype = Questions[i].questype;
345 345
 								var Quesid = Questions[i].quesid;
346
+								var quesremark = Questions[i].quesremark; //试题说明
347
+								if(quesremark) {
348
+									quesremark = ' 【' + quesremark + '】';
349
+								} else {
350
+									quesremark = "";
351
+								}
346 352
 								html += '<li class="" name="ltype' + Quesid + '" >';
347 353
 								html += '<div class="Back ">';
348
-								html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
354
+								html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + quesremark + ' </h3>';
349 355
 								html += '</div>';
350 356
 								//判断类型
351 357
 								if(questype == 2) {

+ 18 - 13
CallCenterWeb.UI/OutboundMessage/LookMessages.html

@@ -9,7 +9,7 @@
9 9
 		<script src="../Script/Common/huayi.config.js"></script>
10 10
 		<link href="../css/Table/table1.css" rel="stylesheet" />
11 11
 		<link href="../css/init.css" rel="stylesheet" />
12
-		<link rel="stylesheet" type="text/css" href="../css/lookMsg.css"/>
12
+		<link rel="stylesheet" type="text/css" href="../css/lookMsg.css" />
13 13
 	</head>
14 14
 
15 15
 	<body class="gray-bg">
@@ -118,18 +118,17 @@
118 118
 						var Count = data.data;
119 119
 						$("#Name_").text(Count.taskModel.F_CusName);
120 120
 						$("#Phone_").text(Count.taskModel.F_Telephone);
121
-						$('#callNum').text(Count.taskModel.F_Phone);//固定号码, 
122
-						$('#country').text(Count.taskModel.F_City);//乡镇 
123
-						$('#address').text(Count.taskModel.F_Address);//地址
124
-						
121
+						$('#callNum').text(Count.taskModel.F_Phone); //固定号码, 
122
+						$('#country').text(Count.taskModel.F_City); //乡镇 
123
+						$('#address').text(Count.taskModel.F_Address); //地址
124
+
125 125
 						$(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
126 126
 						$(' input[name="checks"][value="' + Count.taskModel.F_YHFKId + '"]').prop("checked", "checked");
127 127
 						$('.Title').text(Count.paperModel.F_Title);
128 128
 						$("#F_Remark").text(Count.paperModel.F_Remark);
129 129
 						$("#startText").text(Count.paperModel.F_StartText);
130 130
 						$("#endText").text(Count.paperModel.F_EndText);
131
-						
132
-						
131
+
133 132
 						//循环填表
134 133
 						var html = '';
135 134
 						var Questions = Count.paperModel.F_Questions;
@@ -138,9 +137,15 @@
138 137
 							var questype = Questions[i].questype;
139 138
 							var quesanswers = Questions[i].quesanswers;
140 139
 							var Quesid = Questions[i].quesid;
140
+							var quesremark = Questions[i].quesremark; //试题说明
141
+							if(quesremark) {
142
+								quesremark = ' 【' + quesremark + '】';
143
+							} else {
144
+								quesremark = "";
145
+							}
141 146
 							html += '<li class="" name="ltype' + Quesid + '" >';
142 147
 							html += '<div class="Back">';
143
-							html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
148
+							html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + quesremark + ' </h3>';
144 149
 							html += '</div>';
145 150
 							//判断类型
146 151
 							if(questype == 2) {
@@ -222,13 +227,13 @@
222 227
 						var Count = data.data;
223 228
 						for(var i = 0; i < Count.length; i++) {
224 229
 							var listItem = '<li>' +
225
-									'<input disabled id="listR_' + i + '" type="radio" name="check" value="' + Count[i].F_DictionaryValueId + '" />' +
226
-									'<label for="listR_' + i + '">' + Count[i].F_Name + '</label>' +
227
-									'</li>';
230
+								'<input disabled id="listR_' + i + '" type="radio" name="check" value="' + Count[i].F_DictionaryValueId + '" />' +
231
+								'<label for="listR_' + i + '">' + Count[i].F_Name + '</label>' +
232
+								'</li>';
228 233
 
229
-								$(listItem).appendTo($("#Tgetruset"));
234
+							$(listItem).appendTo($("#Tgetruset"));
230 235
 						}
231
-						
236
+
232 237
 					}
233 238
 				});
234 239
 			}

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

@@ -40,10 +40,10 @@
40 40
 						<thead>
41 41
 							<tr>
42 42
 								<th data-field="checkbox" data-align="center" data-formatter="setCode"></th>
43
-								<th data-align="center" data-field="F_IsStart" data-formatter="Type">状态</th>
44
-								<th data-align="center" data-field="F_TaskName">计划名称</th>
45
-								<th data-align="center" data-field="F_TaskRemark">说明</th>
46
-								<th data-align="center" data-field="F_IsStart" data-formatter="Code">操作</th>
43
+								<th data-align="center" data-width="100" data-field="F_IsStart" data-formatter="Type">状态</th>
44
+								<th data-align="center" data-width="200" data-field="F_TaskName">计划名称</th>
45
+								<th data-align="center" data-width="200" data-field="F_TaskRemark">说明</th>
46
+								<th data-align="center" data-width="200" data-field="F_IsStart" data-formatter="Code">操作</th>
47 47
 							</tr>
48 48
 						</thead>
49 49
 						<tbody>
@@ -54,7 +54,7 @@
54 54
 					<h4 class="Title_box">外呼号码</h4>
55 55
 					<div class="anniu ">
56 56
 						<button class="Dr btns size-14"><i class="fa fa-plus size-14"></i>号码导入</button>
57
-						<button class="RemoveDr btns size-14"><i class="fa fa-remove  size-14"></i>清空号码</button>
57
+						<button class="RemoveDr btns size-14"><i class="fa fa-remove  size-14"></i>批量删除</button>
58 58
 
59 59
 					</div>
60 60
 					<table id="tb2">

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

@@ -64,6 +64,7 @@
64 64
 
65 65
 .operation a {
66 66
 	margin-right: 5px;
67
+	display: inline-block;
67 68
 }
68 69
 
69 70
 

+ 26 - 1
CallCenterWeb.UI/js/OutboundMessage/OutboundPlan.js

@@ -76,6 +76,7 @@ function Code(val, row) {
76 76
 		'<a  onclick=Amend(' + row.F_TaskID + ')>修改</a>' +
77 77
 		'' + html + '' +
78 78
 		'<a  onclick=Remove(' + row.F_TaskID + ')>删除</a>' +
79
+		'<a  onclick=btn_deletes(' + row.F_TaskID + ')>清空号码</a>' +
79 80
 		'</div>'
80 81
 
81 82
 }
@@ -108,9 +109,33 @@ function Amend(str) {
108 109
 		area: ['40%', '45%'], //宽高
109 110
 	});
110 111
 }
112
+
113
+//清空计划下的号码
114
+function btn_deletes(tid){
115
+	layer.confirm('您确定要清空当前计划下的号码吗?', {
116
+		btn: ['是', '否'] //按钮
117
+	}, function() {
118
+		$.ajax({
119
+			type: "post",
120
+			url: huayi.config.callcenter_url + "CallOutPlan/DeletesTaskTel",
121
+			dataType: 'json',
122
+			data: {
123
+				id: tid,//任务id
124
+				token: token
125
+			},
126
+			async: true,
127
+			success: function(data) {
128
+				layer.msg("清空号码成功");
129
+				IndexCategoryGe();
130
+				Right(tid);
131
+			}
132
+		});
133
+	});
134
+}
135
+
111 136
 //删除功能
112 137
 function Remove(str) {
113
-	layer.confirm('确定删除?', {
138
+	layer.confirm('确定删除当前计划吗?', {
114 139
 		btn: ['是', '否'] //按钮
115 140
 	}, function() {
116 141
 		/*发送请求*/

+ 7 - 2
CallCenterWeb.UI/js/Questions/QuestionSetting.js

@@ -217,10 +217,15 @@ function XQ(Left_Cids) {
217 217
 				for(var i = 0; i < Questions.length; i++) {
218 218
 					var questype = Questions[i].questype;
219 219
 					var Quesid = Questions[i].quesid;
220
-					console.log(Questions[i]);
220
+					var quesremark = Questions[i].quesremark;//试题说明
221
+					if(quesremark){
222
+						quesremark = ' 【' + quesremark  +'】';
223
+					}else{
224
+						quesremark = "";
225
+					}
221 226
 					html += '<li >';
222 227
 					html += '<div class="Back">';
223
-					html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + ' </h3>';
228
+					html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + quesremark + ' </h3>';
224 229
 					html += '</div>';
225 230
 					//判断类型
226 231
 					if(questype == 2) { //问答题