|
|
@@ -101,8 +101,6 @@ $(document).ready(function() {
|
|
101
|
101
|
}
|
|
102
|
102
|
}
|
|
103
|
103
|
});
|
|
104
|
|
-
|
|
105
|
|
-
|
|
106
|
104
|
//关闭外呼弹屏
|
|
107
|
105
|
$(".closes").click(function() {
|
|
108
|
106
|
$(".WH").removeClass("fadeInDown").addClass("fadeOutUp");
|
|
|
@@ -772,9 +770,17 @@ $(document).ready(function() {
|
|
772
|
770
|
}
|
|
773
|
771
|
///转移
|
|
774
|
772
|
function PhoneCallZY(tel) {
|
|
775
|
|
-
|
|
776
|
|
- var callinphone =$("#ZYNumber").val();
|
|
777
|
|
- Phone.TransOutEx2(5, callinphone, tel, 2, 0, '');
|
|
|
773
|
+ try {
|
|
|
774
|
+ var callinphone =$("#ZYNumber").val();
|
|
|
775
|
+ Phone.TransOutEx2(5, callinphone, tel, 2, 0, '');
|
|
|
776
|
+ console.log(Phone.GetPromptByErrorCode(Phone.TransOutEx2(5, callinphone, tel, 2, 0, '')))
|
|
|
777
|
+ }
|
|
|
778
|
+ catch (e) {
|
|
|
779
|
+ layer.msg(e.message);
|
|
|
780
|
+ console.log(e.message);
|
|
|
781
|
+
|
|
|
782
|
+ }
|
|
|
783
|
+
|
|
778
|
784
|
|
|
779
|
785
|
}
|
|
780
|
786
|
///多方通话
|
|
|
@@ -799,6 +805,17 @@ $(document).ready(function() {
|
|
799
|
805
|
//2014-10-22
|
|
800
|
806
|
becallout = true;
|
|
801
|
807
|
becallcome = false;
|
|
|
808
|
+
|
|
|
809
|
+ //置忙日志
|
|
|
810
|
+ $.get(huayi.config.callcenter_url + 'CallInScreen/AddTelBusyDelgate',{
|
|
|
811
|
+ "token": $.cookie("token")
|
|
|
812
|
+ },function(res){
|
|
|
813
|
+ if(res.state.toLowerCase() == "success") {
|
|
|
814
|
+ $('#callLogid').val(res.data.calllogid);
|
|
|
815
|
+ }
|
|
|
816
|
+ });
|
|
|
817
|
+
|
|
|
818
|
+
|
|
802
|
819
|
}
|
|
803
|
820
|
//座席置闲 2.1.13
|
|
804
|
821
|
function AgentFree() {
|
|
|
@@ -808,6 +825,12 @@ $(document).ready(function() {
|
|
808
|
825
|
//2014-10-22
|
|
809
|
826
|
becallout = false;
|
|
810
|
827
|
becallcome = true;
|
|
|
828
|
+ //置闲日志
|
|
|
829
|
+ $.get(huayi.config.callcenter_url + 'CallInScreen/UpdateTelFreeDelgat',{
|
|
|
830
|
+ calllogid:$('#callLogid').val(),
|
|
|
831
|
+ "token": $.cookie("token")
|
|
|
832
|
+ },function(res){});
|
|
|
833
|
+
|
|
811
|
834
|
return rtn;
|
|
812
|
835
|
}
|
|
813
|
836
|
//保持 2.1.17
|
|
|
@@ -878,7 +901,6 @@ $(document).ready(function() {
|
|
878
|
901
|
function OnPhoneStatusNotify(status) {
|
|
879
|
902
|
|
|
880
|
903
|
var timeno = new Date().getTime();
|
|
881
|
|
-// var _UserNo = document.getElementById('userCode').value;
|
|
882
|
904
|
var _UserNo = $('#userCode').val();
|
|
883
|
905
|
var _CallId = "";
|
|
884
|
906
|
// try {
|
|
|
@@ -888,6 +910,15 @@ $(document).ready(function() {
|
|
888
|
910
|
// alert(_CallId);
|
|
889
|
911
|
}
|
|
890
|
912
|
Phone.QueryCallInfoEx(_CallId);
|
|
|
913
|
+// 添加话务日志
|
|
|
914
|
+ $.get(huayi.config.callcenter_url + 'CallInScreen/AddCallLogs',{
|
|
|
915
|
+ telno:$('#callNumber').val(),
|
|
|
916
|
+ Status:status,
|
|
|
917
|
+ becallcome:becallcome,
|
|
|
918
|
+ hjbh:$('#callId').val()
|
|
|
919
|
+ "token": $.cookie("token")
|
|
|
920
|
+ },function(res){});
|
|
|
921
|
+
|
|
891
|
922
|
/*
|
|
892
|
923
|
0; //振铃
|
|
893
|
924
|
1; //摘机
|
|
|
@@ -1003,10 +1034,6 @@ $(document).ready(function() {
|
|
1003
|
1034
|
}
|
|
1004
|
1035
|
|
|
1005
|
1036
|
//==========================OCX结束===========================================================================================
|
|
1006
|
|
-// $(document).ready(function(){
|
|
1007
|
|
-//
|
|
1008
|
|
-//})
|
|
1009
|
|
-
|
|
1010
|
1037
|
//菜单数字
|
|
1011
|
1038
|
function workcount() {
|
|
1012
|
1039
|
$.getJSON(huayi.config.callcenter_url + 'Index/GetWorkOrderCount', {
|