miaofuhao 6 gadi atpakaļ
vecāks
revīzija
ab47aceaf0
2 mainītis faili ar 50 papildinājumiem un 25 dzēšanām
  1. 4 24
      WebUI/CallCenterWeb.UI/index.html
  2. 46 1
      WebUI/CallCenterWeb.UI/js/index.js

+ 4 - 24
WebUI/CallCenterWeb.UI/index.html

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