|
|
@@ -79,26 +79,6 @@ $(document).ready(function() {
|
|
79
|
79
|
}
|
|
80
|
80
|
}
|
|
81
|
81
|
});
|
|
82
|
|
- // //知识库查询
|
|
83
|
|
- // $(".searIcon").click(function () {
|
|
84
|
|
- // loadZSK();
|
|
85
|
|
- // })
|
|
86
|
|
- // //历史记录查询
|
|
87
|
|
- // $(".searchbtn").click(function () {
|
|
88
|
|
- // loadOld();
|
|
89
|
|
- // })
|
|
90
|
|
- // //新增记录
|
|
91
|
|
- // $(".addjl").click(function () {
|
|
92
|
|
- // var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
|
|
93
|
|
- // if (type == '3') {
|
|
94
|
|
- // $(".addgd").show();
|
|
95
|
|
- // $(".tbold").hide();
|
|
96
|
|
- // } else if (type == '1') {
|
|
97
|
|
- // $(".zxbg").show();
|
|
98
|
|
- // $(".tbold").hide();
|
|
99
|
|
- //
|
|
100
|
|
- // }
|
|
101
|
|
- // })
|
|
102
|
82
|
//关闭外呼弹屏
|
|
103
|
83
|
$(".closes").click(function() {
|
|
104
|
84
|
$(".WH").removeClass("fadeInDown").addClass("fadeOutUp");
|
|
|
@@ -142,10 +122,6 @@ $(document).ready(function() {
|
|
142
|
122
|
|
|
143
|
123
|
}
|
|
144
|
124
|
});
|
|
145
|
|
-
|
|
146
|
|
- // obj.Type = $("#hidwhtype").val();
|
|
147
|
|
- // obj.DestinationNumber = $("#Result").val();
|
|
148
|
|
- // Send();
|
|
149
|
125
|
}
|
|
150
|
126
|
})
|
|
151
|
127
|
//外呼弹屏数字键盘样式
|
|
|
@@ -172,13 +148,6 @@ $(document).ready(function() {
|
|
172
|
148
|
$(".img").addClass("hidens");
|
|
173
|
149
|
}
|
|
174
|
150
|
})
|
|
175
|
|
- ////上传头像
|
|
176
|
|
- //$(".yhtx").click(function () {
|
|
177
|
|
- // $("#upFile").trigger("click");
|
|
178
|
|
- //})
|
|
179
|
|
- //$("#upFile").change(function () {
|
|
180
|
|
- // uploadtx();
|
|
181
|
|
- //})
|
|
182
|
151
|
//外呼电话列表
|
|
183
|
152
|
$(".bg_title li").click(function() {
|
|
184
|
153
|
$(this).addClass("lactive").siblings().removeClass("lactive");
|
|
|
@@ -205,12 +174,6 @@ $(document).ready(function() {
|
|
205
|
174
|
$(".col-sm-3").mouseleave(function() {
|
|
206
|
175
|
$(".ztree").parent().hide();
|
|
207
|
176
|
})
|
|
208
|
|
- //$("#zrbm").change(function () {
|
|
209
|
|
- // getRY($("#zrid"), $("#zrbm").val());
|
|
210
|
|
- //})
|
|
211
|
|
- //$("#clbm").change(function () {
|
|
212
|
|
- // getRY($("#clid"), $("#clbm").val());
|
|
213
|
|
- //})
|
|
214
|
177
|
//创建投诉工单
|
|
215
|
178
|
$(".addts").click(function() {
|
|
216
|
179
|
var marketName = $("#marketName").val();
|
|
|
@@ -269,75 +232,6 @@ $(document).ready(function() {
|
|
269
|
232
|
workcount();
|
|
270
|
233
|
}, huayi.config.menuworktime);
|
|
271
|
234
|
|
|
272
|
|
- // //客户资料
|
|
273
|
|
- // $('.khzl tbody>tr>td input').attr('readonly', true);
|
|
274
|
|
- // $('.save').hide();
|
|
275
|
|
- // $('.cancel').hide();
|
|
276
|
|
- // $('.edit').click(function () {
|
|
277
|
|
- // $('.save').show();
|
|
278
|
|
- // $('.cancel').show();
|
|
279
|
|
- // $('.edit').hide();
|
|
280
|
|
- // $('.khzl tbody>tr>td input').attr('readonly', false);
|
|
281
|
|
- // $('.khzl tbody>tr>td input').css('border-bottom', "1px solid #b3b3b3");
|
|
282
|
|
- // $(".testInput2").show();
|
|
283
|
|
- // $(".testInput1").css('display', "block");
|
|
284
|
|
- // $(".ldpamter").hide();
|
|
285
|
|
- // $(".ldlocation").hide();
|
|
286
|
|
- // })
|
|
287
|
|
- // $('.cancel').click(function () {
|
|
288
|
|
- // $('.khzl tbody>tr>td input').attr('readonly', true);
|
|
289
|
|
- // $('.khzl tbody>tr>td input').css('border', "0");
|
|
290
|
|
- // $('.save').hide();
|
|
291
|
|
- // $('.cancel').hide();
|
|
292
|
|
- // $('.edit').show();
|
|
293
|
|
- // $('.testInput2').attr('display', none);;
|
|
294
|
|
- // $(".testInput1").hide();
|
|
295
|
|
- // $(".ldpamter").show();
|
|
296
|
|
- // $(".ldlocation").show();
|
|
297
|
|
- // })
|
|
298
|
|
- //保存客户
|
|
299
|
|
- // $(".save").click(function () {
|
|
300
|
|
- // $('.edit').show();
|
|
301
|
|
- // $('.save').hide();
|
|
302
|
|
- // $('.cancel').hide();
|
|
303
|
|
- // $('.khzl tbody>tr>td input').css('border', "0");
|
|
304
|
|
- // var khid = $("#khid").val();
|
|
305
|
|
- // var khmc = $(".khmc").val();
|
|
306
|
|
- // var tel1 = $(".ldtel1").val();
|
|
307
|
|
- // var testInput2=$("#testInput2").val();
|
|
308
|
|
- // var ldlocation=$("#testInput1").val();
|
|
309
|
|
- // if (!khmc) {
|
|
310
|
|
- // layer.confirm('请输入客户名称!', {
|
|
311
|
|
- // btn: ['确定']
|
|
312
|
|
- // });
|
|
313
|
|
- // return;
|
|
314
|
|
- // }
|
|
315
|
|
- // $.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
|
|
316
|
|
- // id: khid,
|
|
317
|
|
- // name: khmc,
|
|
318
|
|
- // province:ldlocation,//省份
|
|
319
|
|
- // customerindustry:testInput2,//来电单位
|
|
320
|
|
- // mobile:tel1,
|
|
321
|
|
- // "token": $.cookie("token")
|
|
322
|
|
- // }, function (result) {
|
|
323
|
|
- // result = $.parseJSON(result);
|
|
324
|
|
- // if (result.state.toLowerCase() == "success") {
|
|
325
|
|
- // $("#khid").val(result.data);
|
|
326
|
|
- // $("#tskh").val(khmc);
|
|
327
|
|
- // layer.msg("保存成功");
|
|
328
|
|
- // $('.save').hide();
|
|
329
|
|
- // $('.cancel').hide();
|
|
330
|
|
- // $('.edit').show();
|
|
331
|
|
- // $("#marketName").val(khmc);
|
|
332
|
|
- // $("#marketTel").val(tel1);
|
|
333
|
|
- // $("#lddepr").val(testInput2);
|
|
334
|
|
- // $("#callCustomer").val(khmc);//客户姓名
|
|
335
|
|
- // $("#Tel").val(tel1);//联系电话
|
|
336
|
|
- // $("#lddep").val(testInput2);//来电单位
|
|
337
|
|
- // }
|
|
338
|
|
- // })
|
|
339
|
|
- // })
|
|
340
|
|
-
|
|
341
|
235
|
//关闭录音弹出
|
|
342
|
236
|
$(".setwin").click(function() {
|
|
343
|
237
|
$(".t-shade").removeClass("cx");
|
|
|
@@ -519,10 +413,6 @@ $(document).ready(function() {
|
|
519
|
413
|
var note3 = $("#note3").val();
|
|
520
|
414
|
//callid
|
|
521
|
415
|
var callid = $("#hidCallID").val();
|
|
522
|
|
- // var tskh = $("#zxr_").val(); //联系:
|
|
523
|
|
- // var tsdh = $("#zxdh_").val(); //咨询电话
|
|
524
|
|
- // var cont = $("#zxnr_").val(); //咨询内容
|
|
525
|
|
- // var clcont = $("#clnr_").val(); //内容
|
|
526
|
416
|
var type = "1";
|
|
527
|
417
|
if(!callCustomer) {
|
|
528
|
418
|
layer.confirm('请输入姓名!', {
|
|
|
@@ -586,10 +476,6 @@ $(document).ready(function() {
|
|
586
|
476
|
result = $.parseJSON(result);
|
|
587
|
477
|
if(result.state.toLowerCase() == "success") {
|
|
588
|
478
|
loadOld();
|
|
589
|
|
- // $("#zxr_").val(''); //咨询人:
|
|
590
|
|
- // $("#zxdh_").val(''); //咨询电话
|
|
591
|
|
- // $("#zxnr_").val(''); //咨询内容
|
|
592
|
|
- // $("#clnr_").val(''); //内容
|
|
593
|
479
|
$("#callCustomer").val('');
|
|
594
|
480
|
//来电号码
|
|
595
|
481
|
$("#Tel").val('');
|
|
|
@@ -712,17 +598,6 @@ function GetDealState(val) {
|
|
712
|
598
|
|
|
713
|
599
|
function GetStateName(val) {
|
|
714
|
600
|
var str = '';
|
|
715
|
|
- //switch (val + '') {
|
|
716
|
|
- // case '0':
|
|
717
|
|
- // str = "待指派";
|
|
718
|
|
- // break;
|
|
719
|
|
- // case '1':
|
|
720
|
|
- // str = "处理中";
|
|
721
|
|
- // break;
|
|
722
|
|
- // case '2':
|
|
723
|
|
- // str = "已完结";
|
|
724
|
|
- // break;
|
|
725
|
|
- //}
|
|
726
|
601
|
switch(val + '') {
|
|
727
|
602
|
case '0':
|
|
728
|
603
|
str = "待处理";
|
|
|
@@ -1096,8 +971,10 @@ function loadMenu() {
|
|
1096
|
971
|
|
|
1097
|
972
|
////跳转
|
|
1098
|
973
|
function Jumps() {
|
|
1099
|
|
- //window.parent.frames[ "iframe0"].location.reload();
|
|
1100
|
974
|
$("iframe:visible")[0].src = "widgets.html"
|
|
|
975
|
+ $(".J_menuTab").eq(0).addClass("active").text('首页');
|
|
|
976
|
+ $(".J_menuTab").eq(0).attr("data-id", 'widgets.html');
|
|
|
977
|
+ $(".J_mainContent .J_iframe0").attr("data-id", "widgets.html");
|
|
1101
|
978
|
}
|
|
1102
|
979
|
// $.getJSON(huayi.config.callcenter_url + 'Customer/GetCustomerByTel', {
|
|
1103
|
980
|
//// "tel": $(".hidTel").val(),
|