Просмотр исходного кода

外呼需要检查是否在工作时间内
外呼不管成功与否都得更新呼叫状态
通话记录列表字段调整

yuqian лет назад: 8
Родитель
Сommit
c7bebde5bd

+ 3 - 2
CallCenterWeb.UI/TelCall/CallRecord.html

@@ -317,8 +317,9 @@
317 317
                         <!--<th data-field="IsDeal" data-formatter="isDeal" data-align="center">是否处理</th>-->
318 318
                         <th data-field="UserCode" data-align="center">坐席工号</th>
319 319
                         <th data-field="UserName" data-align="center">坐席姓名</th>
320
-                        <th data-field="ParentName" data-align="center">所属公司</th>
321
-                        <th data-field="F_DeptName" data-align="center">分类</th>
320
+                        <th data-field="CompanyName" data-align="center">所属公司</th>
321
+                        <th data-field="CategoryName" data-align="center">分类</th>
322
+                        <th data-field="ChannelName" data-align="center">渠道名称</th>
322 323
                         <th data-field="BeginTime" data-align="center">开始时间</th>
323 324
                         <th data-field="RingStartTime" data-align="center">振铃开始时间</th>
324 325
                         <th data-field="TalkStartTime" data-align="center">通话开始时间</th>

+ 9 - 7
CallCenterWeb.UI/clickcall/Details.html

@@ -390,16 +390,18 @@
390 390
                                                     top.Send();
391 391
                                                     $(".WH").addClass("hidens");
392 392
                                                 }
393
-
394
-                                                //更新外呼号码状态
395
-                                                $.ajax({
396
-                                                    type: "post", url: huayi.config.callcenter_url + "CallPlan/UpdateCallState",
397
-                                                    dataType: "json", data: { id: id },
398
-                                                    success: function (res) { }
399
-                                                })
400 393
                                             }
401 394
                                         });
402 395
                                     }
396
+
397
+
398
+                                    //更新外呼号码状态
399
+                                    $.ajax({
400
+                                        type: "post", url: huayi.config.callcenter_url + "CallPlan/UpdateCallState",
401
+                                        dataType: "json", data: { id: id },
402
+                                        success: function (res) { }
403
+                                    })
404
+
403 405
                                 }
404 406
                             });
405 407
 

+ 38 - 26
CallCenterWeb.UI/js/index.js

@@ -297,16 +297,28 @@
297 297
                 success: function (result) {
298 298
                     //                		result = $.parseJSON(result);
299 299
                     if (result.state.toLowerCase() == "success") {
300
-                        var guid = uuid();
301
-                        obj.Type = $("#hidwhtype").val();
302
-                        obj.DestinationNumber = result.data.phone;
303
-                        obj.Header = result.data.fix;
304
-                        obj.TaskType = "0"; //0:拨号外呼;1:95005回访外呼;2:电销回访外呼
305
-                        obj.TaskPhoneID = ""; //回访的电话ID
306
-                        obj.TaskID = guid; //回访记录编号
307
-                        Send();
308
-                        $('#Result').val('');
309
-                        $(".WH").addClass("hidens");
300
+                        $.ajax({
301
+                            type: "get",
302
+                            url: huayi.config.callcenter_url + "Workcalendar/GetIsOnDutyTime",
303
+                            async: true,
304
+                            dataType: 'json',
305
+                            data: { token: $.cookie("token") },
306
+                            success: function () {
307
+                                if (result.state.toLowerCase() == "success") {
308
+                                    var guid = uuid();
309
+                                    obj.Type = $("#hidwhtype").val();
310
+                                    obj.DestinationNumber = result.data.phone;
311
+                                    obj.Header = result.data.fix;
312
+                                    obj.TaskType = "0"; //0:拨号外呼;1:95005回访外呼;2:电销回访外呼
313
+                                    obj.TaskPhoneID = ""; //回访的电话ID
314
+                                    obj.TaskID = guid; //回访记录编号
315
+                                    Send();
316
+                                    $('#Result').val('');
317
+                                    $(".WH").addClass("hidens");
318
+                                }
319
+                            }
320
+                        });
321
+
310 322
                     }
311 323
 
312 324
                 }
@@ -695,13 +707,13 @@ function uploadtx() {
695 707
             type: "POST",
696 708
             data: formData,
697 709
             /**
698
-			 *必须false才会自动加上正确的Content-Type
699
-			 */
710
+             *必须false才会自动加上正确的Content-Type
711
+             */
700 712
             contentType: false,
701 713
             /**
702
-			 * 必须false才会避开jQuery对 formdata 的默认处理
703
-			 * XMLHttpRequest会对 formdata 进行正确的处理
704
-			 */
714
+             * 必须false才会避开jQuery对 formdata 的默认处理
715
+             * XMLHttpRequest会对 formdata 进行正确的处理
716
+             */
705 717
             processData: false,
706 718
             success: function (result) {
707 719
                 document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
@@ -828,8 +840,8 @@ function GetCallState(val) {
828 840
 function setCode(val) {
829 841
     if (val) {
830 842
         return '<div class="imgs" style="cursor: pointer;">' +
831
-			'<img src="./img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
832
-			'</div>';
843
+            '<img src="./img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
844
+            '</div>';
833 845
     } else {
834 846
         return '';
835 847
     }
@@ -885,14 +897,14 @@ function loadZSK() {
885 897
             $(".ldcr-bottom .detail-con ul").empty();
886 898
             $(result.data).each(function (i, n) {
887 899
                 var html = '<li>' +
888
-					'   <div class="zhishi-title clearfix">' +
889
-					'	    <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
890
-					'	    <em >' + n.F_CreateOn + '</em>' +
891
-					'   </div>' +
892
-					'   <div class="explancon">' +
893
-					n.F_Content +
894
-					'   </div>' +
895
-					'</li>';
900
+                    '   <div class="zhishi-title clearfix">' +
901
+                    '	    <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
902
+                    '	    <em >' + n.F_CreateOn + '</em>' +
903
+                    '   </div>' +
904
+                    '   <div class="explancon">' +
905
+                    n.F_Content +
906
+                    '   </div>' +
907
+                    '</li>';
896 908
                 $(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function (event) {
897 909
                     event.stopPropagation();
898 910
                     if ($(this).hasClass("active")) {
@@ -1217,7 +1229,7 @@ var r = $("#inputImage");
1217 1229
 if (window.FileReader) {
1218 1230
     r.change(function () {
1219 1231
         var e, i = new FileReader,
1220
-			t = this.files;
1232
+            t = this.files;
1221 1233
         if (t.length && (e = t[0], /^image\/\w+$/.test(e.type))) {
1222 1234
             i.readAsDataURL(e);
1223 1235
             i.onload = function () {