|
|
@@ -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")) {
|