zhangshuangnan %!s(int64=7) %!d(string=před) roky
rodič
revize
b4a10f94c3
1 změnil soubory, kde provedl 24 přidání a 6 odebrání
  1. 24 6
      CallCenterWeb.UI/js/newtx.js

+ 24 - 6
CallCenterWeb.UI/js/newtx.js

767
 							var CallId = IVRSelKey;
767
 							var CallId = IVRSelKey;
768
 							  var NowCallerPhoneCode = Phone.CallInfoEx_Ani;
768
 							  var NowCallerPhoneCode = Phone.CallInfoEx_Ani;
769
 							  	//获取呼叫编号callId
769
 							  	//获取呼叫编号callId
770
-									$.get(huayi.config.callcenter_url + 'CallInScreen/GetCallIdByPhone',{
771
-										telphone:NowCallerPhoneCode,
770
+//									$.get(huayi.config.callcenter_url + 'CallInScreen/GetCallIdByPhone',{
771
+//										telphone:NowCallerPhoneCode,
772
+//										"token": $.cookie("token")
773
+//									}, function (res) {
774
+//									    res = JSON.parse(res);
775
+//									    if (res.state == "success") {
776
+//											$('#callId').val(res.data.CallId);
777
+//											$('#BusinessType').val(res.data.BusinessType);
778
+//											updateCallLogs(NowCallerPhoneCode,status,becallcome)
779
+//										}
780
+//									});
781
+									$.ajax({
782
+										type:"get",
783
+										url:huayi.config.callcenter_url + 'CallInScreen/GetCallIdByPhone',
784
+										async:false,
785
+										dataType:'json',
786
+										data:{
787
+											telphone:NowCallerPhoneCode,
772
 										"token": $.cookie("token")
788
 										"token": $.cookie("token")
773
-									}, function (res) {
774
-									    res = JSON.parse(res);
789
+										},
790
+										success:function(res){
791
+//											res = JSON.parse(res);
775
 									    if (res.state == "success") {
792
 									    if (res.state == "success") {
793
+									    	console.log('获取callId'+res.data.CallId)
776
 											$('#callId').val(res.data.CallId);
794
 											$('#callId').val(res.data.CallId);
777
 											$('#BusinessType').val(res.data.BusinessType);
795
 											$('#BusinessType').val(res.data.BusinessType);
778
 											updateCallLogs(NowCallerPhoneCode,status,becallcome)
796
 											updateCallLogs(NowCallerPhoneCode,status,becallcome)
779
 										}
797
 										}
798
+										}
780
 									});
799
 									});
781
 						}catch (e) {
800
 						}catch (e) {
782
 
801
 
795
 							Phone.QueryCallInfoEx(_CallId);
814
 							Phone.QueryCallInfoEx(_CallId);
796
 							var telphone = Phone.CallInfoEx_Ani;
815
 							var telphone = Phone.CallInfoEx_Ani;
797
 							if(becallcome) {
816
 							if(becallcome) {
798
-								console.log($('#callId').val());
817
+								console.log('zlzl前'+$('#callId').val());
799
 								updateZL($('#callId').val());
818
 								updateZL($('#callId').val());
800
 							    Form_callCommingCaller(telphone, $('#callId').val(),$('#BusinessType').val());
819
 							    Form_callCommingCaller(telphone, $('#callId').val(),$('#BusinessType').val());
801
 							}
820
 							}
839
 				}
858
 				}
840
                 //更新振铃事件
859
                 //更新振铃事件
841
 				function updateZL(callids){
860
 				function updateZL(callids){
842
-				   
843
 				    $.get(huayi.config.callcenter_url + 'CallInScreen/UpdateZL', {
861
 				    $.get(huayi.config.callcenter_url + 'CallInScreen/UpdateZL', {
844
 				        callid: callids,
862
 				        callid: callids,
845
 				        "token": $.cookie("token")
863
 				        "token": $.cookie("token")