|
|
@@ -113,6 +113,16 @@
|
|
113
|
113
|
overflow-y: auto;
|
|
114
|
114
|
}
|
|
115
|
115
|
|
|
|
116
|
+ .boxCon1 {
|
|
|
117
|
+ width: 100%;
|
|
|
118
|
+ min-height: 100px;
|
|
|
119
|
+ background: #fff;
|
|
|
120
|
+ text-align: center;
|
|
|
121
|
+ padding: 10px 15px;
|
|
|
122
|
+ height: auto;
|
|
|
123
|
+ overflow-y: auto;
|
|
|
124
|
+ }
|
|
|
125
|
+
|
|
116
|
126
|
.model {
|
|
117
|
127
|
position: fixed;
|
|
118
|
128
|
top: 0;
|
|
|
@@ -126,6 +136,19 @@
|
|
126
|
136
|
display: none;
|
|
127
|
137
|
}
|
|
128
|
138
|
|
|
|
139
|
+ .model1 {
|
|
|
140
|
+ position: fixed;
|
|
|
141
|
+ top: 0;
|
|
|
142
|
+ right: 0;
|
|
|
143
|
+ bottom: 0;
|
|
|
144
|
+ left: 0;
|
|
|
145
|
+ height: 100%;
|
|
|
146
|
+ width: 100%;
|
|
|
147
|
+ background: rgba(0, 0, 0, 0.48);
|
|
|
148
|
+ z-index: 100;
|
|
|
149
|
+ display: none;
|
|
|
150
|
+ }
|
|
|
151
|
+
|
|
129
|
152
|
.tab-content {
|
|
130
|
153
|
text-align: left;
|
|
131
|
154
|
height: 200px;
|
|
|
@@ -164,11 +187,11 @@
|
|
164
|
187
|
</div>
|
|
165
|
188
|
<form class="container-fluid2" enctype="multipart/form-data">
|
|
166
|
189
|
<div class="row-fluid clearfix">
|
|
167
|
|
- <div class="bjleft col-md-6">
|
|
|
190
|
+ <div class="bjleft col-md-6" style="height:444px;">
|
|
168
|
191
|
<div class="bj-title">
|
|
169
|
192
|
<i class="fa fa-user"></i> 基本信息
|
|
170
|
193
|
</div>
|
|
171
|
|
- <div class="bjCon">
|
|
|
194
|
+ <div class="bjCon" style="height:444px;">
|
|
172
|
195
|
<table style="width: 100%;">
|
|
173
|
196
|
<tr>
|
|
174
|
197
|
<th>所属类别:</th>
|
|
|
@@ -189,11 +212,17 @@
|
|
189
|
212
|
<tr>
|
|
190
|
213
|
<th>通知内容:</th>
|
|
191
|
214
|
<td>
|
|
192
|
|
- <textarea class="tzCon" name="TaskContent" rows="2" cols=""></textarea>
|
|
|
215
|
+ <textarea class="tzCon" name="TaskContent" rows="2" cols="" id="TaskContent"></textarea>
|
|
193
|
216
|
<span>(必填)</span>
|
|
194
|
217
|
</td>
|
|
195
|
218
|
</tr>
|
|
196
|
219
|
<tr>
|
|
|
220
|
+ <th>试听通知:</th>
|
|
|
221
|
+ <td>
|
|
|
222
|
+ <button class="btns try_listen" style="padding: 3px 10px;" type="button"><i class="fa fa-volume-up" style="margin-right: 5px;"></i>试听</button>
|
|
|
223
|
+ </td>
|
|
|
224
|
+ </tr>
|
|
|
225
|
+ <tr>
|
|
197
|
226
|
<th>执行方式:</th>
|
|
198
|
227
|
<td>
|
|
199
|
228
|
<div class="radio-inline ">
|
|
|
@@ -230,7 +259,7 @@
|
|
230
|
259
|
<div class="bj-title">
|
|
231
|
260
|
<i class="fa fa-calendar"></i> 发送时间
|
|
232
|
261
|
</div>
|
|
233
|
|
- <div class="bjCon ">
|
|
|
262
|
+ <div class="bjCon" style="height:444px;">
|
|
234
|
263
|
<table style="width: 100%;">
|
|
235
|
264
|
<tr>
|
|
236
|
265
|
<th>开始日期:</th>
|
|
|
@@ -337,6 +366,28 @@
|
|
337
|
366
|
</div>
|
|
338
|
367
|
</div>
|
|
339
|
368
|
|
|
|
369
|
+ <div class="model1">
|
|
|
370
|
+ <div class="box">
|
|
|
371
|
+ <div class="btop clearfix">
|
|
|
372
|
+ <p class="btl">试听通知</p>
|
|
|
373
|
+ <p class="btr closeaddListen"><i class="fa fa-remove"></i></p>
|
|
|
374
|
+ </div>
|
|
|
375
|
+
|
|
|
376
|
+ <div class="boxCon1">
|
|
|
377
|
+ <table style="width: 40%; margin:0 auto;">
|
|
|
378
|
+ <tr>
|
|
|
379
|
+ <th>请添加试听号码:</th>
|
|
|
380
|
+ <td>
|
|
|
381
|
+ <input type="text" class="tzTitle" name="listenphone" id="listenphone" /><span>(必填)</span>
|
|
|
382
|
+ </td>
|
|
|
383
|
+ </tr>
|
|
|
384
|
+ </table>
|
|
|
385
|
+ <p style="text-align: center; padding: 20px 0;">
|
|
|
386
|
+ <button class="btns tryListen" type="button">加入试听队列</button>
|
|
|
387
|
+ </p>
|
|
|
388
|
+ </div>
|
|
|
389
|
+ </div>
|
|
|
390
|
+ </div>
|
|
340
|
391
|
</form>
|
|
341
|
392
|
</div>
|
|
342
|
393
|
<script src="../js/jquery.form.min.js"></script>
|
|
|
@@ -434,95 +485,140 @@
|
|
434
|
485
|
$('.addcbtr').click(function () {
|
|
435
|
486
|
$('.addCall').hide();
|
|
436
|
487
|
})
|
|
|
488
|
+ $('.try_listen').click(function () {
|
|
|
489
|
+ $('.model1').show()
|
|
|
490
|
+ })
|
|
|
491
|
+ $('.closeaddListen').click(function () {
|
|
|
492
|
+ $('#listenphone').val('');
|
|
|
493
|
+ $('.model1').hide()
|
|
|
494
|
+ })
|
|
|
495
|
+ $('.tryListen').click(function () {
|
|
|
496
|
+ $.ajax({
|
|
|
497
|
+ type: "get",
|
|
|
498
|
+ url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
|
|
|
499
|
+ async: true,
|
|
|
500
|
+ dataType: 'json',
|
|
|
501
|
+ data: {
|
|
|
502
|
+ token: $.cookie("token"),
|
|
|
503
|
+ phone: $('#listenphone').val()
|
|
|
504
|
+ },
|
|
|
505
|
+ success: function (result) {
|
|
|
506
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
507
|
+ var fix = result.data.fix;
|
|
|
508
|
+ $.ajax({
|
|
|
509
|
+ type: "get",
|
|
|
510
|
+ url: huayi.config.callcenter_url + "CallPlan/TryListen",
|
|
|
511
|
+ async: true,
|
|
|
512
|
+ dataType: 'json',
|
|
|
513
|
+ data: {
|
|
|
514
|
+ token: $.cookie("token"),
|
|
|
515
|
+ phone: $('#listenphone').val(),
|
|
|
516
|
+ text: $('#TaskContent').val(),
|
|
|
517
|
+ fix: fix
|
|
|
518
|
+ },
|
|
|
519
|
+ success: function (res) {
|
|
|
520
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
521
|
+ layer.msg(res.message);
|
|
|
522
|
+ $('#listenphone').val('');
|
|
|
523
|
+ $('.model1').hide()
|
|
|
524
|
+ }
|
|
|
525
|
+ }
|
|
|
526
|
+
|
|
|
527
|
+ });
|
|
|
528
|
+ }
|
|
|
529
|
+ }
|
|
|
530
|
+ });
|
|
|
531
|
+ })
|
|
|
532
|
+
|
|
437
|
533
|
LB($('.leiBie'))
|
|
438
|
534
|
loadContent($('.voicetempid'));
|
|
439
|
|
- })
|
|
440
|
|
- $('.sureCun').click(function () {
|
|
441
|
|
- if ($('.tzTitle').val() == '') {
|
|
442
|
|
- layer.confirm('请输入标题!', {
|
|
443
|
|
- btn: ['确定']
|
|
444
|
|
- });
|
|
445
|
|
- return;
|
|
446
|
|
- } else if ($('.tzCon').val() == '') {
|
|
447
|
|
- layer.confirm('请输入内容!', {
|
|
448
|
|
- btn: ['确定']
|
|
449
|
|
- });
|
|
450
|
|
- return;
|
|
451
|
|
- } else if ($('.failCount').val() == '') {
|
|
452
|
|
- layer.confirm('请输入失败次数!', {
|
|
453
|
|
- btn: ['确定']
|
|
454
|
|
- });
|
|
455
|
|
- return;
|
|
456
|
|
- } else if ($('input[name="IsExcuteNow"]:checked').val() == 'false') {
|
|
457
|
|
- if ($('#usestrTime1').val() == '') {
|
|
458
|
|
- layer.confirm('请选择开始时间段1!', {
|
|
459
|
|
- btn: ['确定']
|
|
460
|
|
- });
|
|
461
|
|
- return;
|
|
462
|
|
- } else if ($('#useendTime1').val() == '') {
|
|
463
|
|
- layer.confirm('请选择结束时间段1!', {
|
|
|
535
|
+
|
|
|
536
|
+ $('.sureCun').click(function () {
|
|
|
537
|
+ if ($('.tzTitle').val() == '') {
|
|
|
538
|
+ layer.confirm('请输入标题!', {
|
|
464
|
539
|
btn: ['确定']
|
|
465
|
540
|
});
|
|
466
|
541
|
return;
|
|
467
|
|
- } else if ($('#usestrTime2').val() == '') {
|
|
468
|
|
- layer.confirm('请选择开始时间段2!', {
|
|
|
542
|
+ } else if ($('.tzCon').val() == '') {
|
|
|
543
|
+ layer.confirm('请输入内容!', {
|
|
469
|
544
|
btn: ['确定']
|
|
470
|
545
|
});
|
|
471
|
546
|
return;
|
|
472
|
|
- } else if ($('#useendTime2').val() == '') {
|
|
473
|
|
- layer.confirm('请选择结束时间段2!', {
|
|
|
547
|
+ } else if ($('.failCount').val() == '') {
|
|
|
548
|
+ layer.confirm('请输入失败次数!', {
|
|
474
|
549
|
btn: ['确定']
|
|
475
|
550
|
});
|
|
476
|
551
|
return;
|
|
477
|
|
- }
|
|
478
|
|
- formSubmit();
|
|
479
|
|
- } else {
|
|
480
|
|
- formSubmit();
|
|
481
|
|
- }
|
|
482
|
|
-
|
|
483
|
|
- })
|
|
484
|
|
- $('.queren').click(function () {
|
|
485
|
|
- $('.drfs').show();
|
|
486
|
|
- if ($('#import_from_telnos').hasClass('active')) {
|
|
487
|
|
- ImportType = 4;//文件导入
|
|
488
|
|
- $('.drfs').html('选择Excel导入');
|
|
489
|
|
- } else if ($('#import_from_hmd').hasClass('active')) {
|
|
490
|
|
- ImportType = 2;//号段导入
|
|
491
|
|
- haoma = $('.haoDuan').val();
|
|
492
|
|
- $('.drfs').html('选择文本导入');
|
|
493
|
|
- } else if ($('#import_from_file').hasClass('active')) {
|
|
494
|
|
- ImportType = 1;//号码列表导入
|
|
495
|
|
- haoma = $('.haomaList').val();
|
|
496
|
|
- $('.drfs').html('选择文件导入');
|
|
497
|
|
- }
|
|
498
|
|
- console.log(ImportType);
|
|
499
|
|
- $("#importtype").val(ImportType);
|
|
500
|
|
- $('.addCall').hide();
|
|
501
|
|
- })
|
|
502
|
|
- $('.return').click(function () {
|
|
503
|
|
- top.$("iframe:visible")[0].src = "VoiceNotification/tongZhiChaXun.html";
|
|
504
|
|
- });
|
|
505
|
|
- function formSubmit() {
|
|
506
|
|
- $(".container-fluid2")
|
|
507
|
|
- .attr("method", "post")
|
|
508
|
|
- .attr("action", huayi.config.callcenter_url + "Callplan/CreateOrUpdate")
|
|
509
|
|
- .attr("enctype", "multipart/form-data");
|
|
510
|
|
-
|
|
511
|
|
- $(".container-fluid2").ajaxSubmit({
|
|
512
|
|
- dataType: "json",
|
|
513
|
|
- data: { token: $.cookie("token") },
|
|
514
|
|
- success: function (res) {
|
|
515
|
|
- if (res.state == "success") {
|
|
516
|
|
- top.$("iframe:visible")[0].src = "VoiceNotification/tongZhiChaXun.html";
|
|
517
|
|
- } else {
|
|
518
|
|
- layer.msg(res.message);
|
|
|
552
|
+ } else if ($('input[name="IsExcuteNow"]:checked').val() == 'false') {
|
|
|
553
|
+ if ($('#usestrTime1').val() == '') {
|
|
|
554
|
+ layer.confirm('请选择开始时间段1!', {
|
|
|
555
|
+ btn: ['确定']
|
|
|
556
|
+ });
|
|
|
557
|
+ return;
|
|
|
558
|
+ } else if ($('#useendTime1').val() == '') {
|
|
|
559
|
+ layer.confirm('请选择结束时间段1!', {
|
|
|
560
|
+ btn: ['确定']
|
|
|
561
|
+ });
|
|
|
562
|
+ return;
|
|
|
563
|
+ } else if ($('#usestrTime2').val() == '') {
|
|
|
564
|
+ layer.confirm('请选择开始时间段2!', {
|
|
|
565
|
+ btn: ['确定']
|
|
|
566
|
+ });
|
|
|
567
|
+ return;
|
|
|
568
|
+ } else if ($('#useendTime2').val() == '') {
|
|
|
569
|
+ layer.confirm('请选择结束时间段2!', {
|
|
|
570
|
+ btn: ['确定']
|
|
|
571
|
+ });
|
|
|
572
|
+ return;
|
|
519
|
573
|
}
|
|
|
574
|
+ formSubmit();
|
|
|
575
|
+ } else {
|
|
|
576
|
+ formSubmit();
|
|
|
577
|
+ }
|
|
520
|
578
|
|
|
|
579
|
+ })
|
|
|
580
|
+ $('.queren').click(function () {
|
|
|
581
|
+ $('.drfs').show();
|
|
|
582
|
+ if ($('#import_from_telnos').hasClass('active')) {
|
|
|
583
|
+ ImportType = 4;//文件导入
|
|
|
584
|
+ $('.drfs').html('选择Excel导入');
|
|
|
585
|
+ } else if ($('#import_from_hmd').hasClass('active')) {
|
|
|
586
|
+ ImportType = 2;//号段导入
|
|
|
587
|
+ haoma = $('.haoDuan').val();
|
|
|
588
|
+ $('.drfs').html('选择文本导入');
|
|
|
589
|
+ } else if ($('#import_from_file').hasClass('active')) {
|
|
|
590
|
+ ImportType = 1;//号码列表导入
|
|
|
591
|
+ haoma = $('.haomaList').val();
|
|
|
592
|
+ $('.drfs').html('选择文件导入');
|
|
521
|
593
|
}
|
|
|
594
|
+ console.log(ImportType);
|
|
|
595
|
+ $("#importtype").val(ImportType);
|
|
|
596
|
+ $('.addCall').hide();
|
|
|
597
|
+ })
|
|
|
598
|
+ $('.return').click(function () {
|
|
|
599
|
+ top.$("iframe:visible")[0].src = "VoiceNotification/tongZhiChaXun.html";
|
|
522
|
600
|
});
|
|
523
|
|
- }
|
|
|
601
|
+ function formSubmit() {
|
|
|
602
|
+ $(".container-fluid2")
|
|
|
603
|
+ .attr("method", "post")
|
|
|
604
|
+ .attr("action", huayi.config.callcenter_url + "Callplan/CreateOrUpdate")
|
|
|
605
|
+ .attr("enctype", "multipart/form-data");
|
|
|
606
|
+
|
|
|
607
|
+ $(".container-fluid2").ajaxSubmit({
|
|
|
608
|
+ dataType: "json",
|
|
|
609
|
+ data: { token: $.cookie("token") },
|
|
|
610
|
+ success: function (res) {
|
|
|
611
|
+ if (res.state == "success") {
|
|
|
612
|
+ top.$("iframe:visible")[0].src = "VoiceNotification/tongZhiChaXun.html";
|
|
|
613
|
+ } else {
|
|
|
614
|
+ layer.msg(res.message);
|
|
|
615
|
+ }
|
|
524
|
616
|
|
|
|
617
|
+ }
|
|
|
618
|
+ });
|
|
|
619
|
+ }
|
|
525
|
620
|
|
|
|
621
|
+ });
|
|
526
|
622
|
</script>
|
|
527
|
623
|
</body>
|
|
528
|
624
|
|