miaofuhao il y a 6 ans
Parent
commit
1b78172f86
2 fichiers modifiés avec 48 ajouts et 24 suppressions
  1. 2 23
      WebUI/CallCenterWeb.UI/index.html
  2. 46 1
      WebUI/CallCenterWeb.UI/js/index.js

+ 2 - 23
WebUI/CallCenterWeb.UI/index.html

@@ -1035,9 +1035,9 @@
1035 1035
                                     <i class="iconfont fa-5x Logout"></i>
1036 1036
                                     <p>签出</p>
1037 1037
                                 </li>
1038
-                                <li datafun="Turn110" class="hw_show " index="">
1038
+                                <li datafun="TurnSQ" class="hw_show " index="">
1039 1039
                                     <i class="iconfont fa-5x Turn110"></i>
1040
-                                    <p>转110</p>
1040
+                                    <p>转</p>
1041 1041
                                 </li>
1042 1042
                             </ul>
1043 1043
                         </div>
@@ -2004,27 +2004,6 @@
2004 2004
     <script src="./js/hplus.min.js?v=4.1.0"></script>
2005 2005
     <script src="./js/contabs.min.js"></script>
2006 2006
     <script src="./js/chat.js"></script>
2007
-    <script>
2008
-    $(document).ready(function () {	
2009
-    	$.ajax({
2010
-            type: "get",
2011
-            url: huayi.config.callcenter_url + "WorkOrder/GetCityList",
2012
-            async: true,
2013
-            dataType: 'json',
2014
-            data: {
2015
-                token: $.cookie("token"),
2016
-                name:"宁陵县"
2017
-            },
2018
-            success: function (result) {
2019
-                if (result.state.toLowerCase() == "success") {
2020
-                    
2021
-                    var telPhone=result.data[0].F_Phone
2022
-                    $(".hw_show").attr("index",telPhone);
2023
-                }
2024
-            }
2025
-        });
2026
-    })
2027
-    </script>
2028 2007
 </body>
2029 2008
 
2030 2009
 </html>                       

+ 46 - 1
WebUI/CallCenterWeb.UI/js/index.js

@@ -240,7 +240,52 @@ $(document).ready(function () {
240 240
             })
241 241
         }
242 242
     })
243
-
243
+	//一键转市
244
+	function throungh(){
245
+    	$.ajax({
246
+	        type: "get",
247
+	        url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
248
+	        async: true,
249
+	        dataType: 'json',
250
+	        data: {
251
+	            token: $.cookie("token"),
252
+	            phone: $(".hw_show").attr("index")
253
+	        },
254
+	        success: function (result) {
255
+	            if (result.state.toLowerCase() == "success") {
256
+	                var guid = uuid();
257
+	                obj.Type = "Transfer";
258
+	                obj.DestinationNumber = result.data.phone;
259
+	                obj.Header = result.data.fix;
260
+	                obj.TaskType = "0"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
261
+	                obj.TaskPhoneID = ""; //回访的电话ID
262
+	                obj.TaskID = guid; //回访记录编号
263
+	                Send();
264
+	            }
265
+	        }
266
+	    })
267
+    }
268
+	//  获取转接号码
269
+    $(".hw_show").click(function () {
270
+    	$.ajax({
271
+            type: "get",
272
+            url: huayi.config.callcenter_url + "WorkOrder/GetCityList",
273
+            async: true,
274
+            dataType: 'json',
275
+            data: {
276
+                token: $.cookie("token"),
277
+                name:"商丘市"
278
+            },
279
+            success: function (result) {
280
+                if (result.state.toLowerCase() == "success") {
281
+                	debugger
282
+                    var telPhone=result.data[0].F_Phone
283
+                    $(".hw_show").attr("index",telPhone);
284
+                    throungh();
285
+                }
286
+            }
287
+        });
288
+    })
244 289
     //话务相关
245 290
     $("#top-search li").click(function () {
246 291
         if ($(this).find("i").hasClass("active")) {