ソースを参照

试听,自动回访

yuqian 8 年 前
コミット
c772962bf4
共有3 個のファイルを変更した278 個の追加78 個の削除を含む
  1. 5 0
      .gitignore
  2. 172 76
      WebUI/CallCenterWeb.UI/VoiceNotification/addTongZhi.html
  3. 101 2
      WebUI/CallCenterWeb.UI/VoiceNotification/changeTongZhi.html

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
1
+################################################################################
2
+# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。
3
+################################################################################
4
+
5
+/WebUI/CallCenterWeb.UI/js/kindeditor/upload/image/20171106

+ 172 - 76
WebUI/CallCenterWeb.UI/VoiceNotification/addTongZhi.html

@@ -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
 

+ 101 - 2
WebUI/CallCenterWeb.UI/VoiceNotification/changeTongZhi.html

@@ -113,6 +113,17 @@
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
+
126
+
116 127
         .model {
117 128
             position: fixed;
118 129
             top: 0;
@@ -126,6 +137,20 @@
126 137
             display: none;
127 138
         }
128 139
 
140
+        .model1 {
141
+            position: fixed;
142
+            top: 0;
143
+            right: 0;
144
+            bottom: 0;
145
+            left: 0;
146
+            height: 100%;
147
+            width: 100%;
148
+            background: rgba(0, 0, 0, 0.48);
149
+            z-index: 100;
150
+            display: none;
151
+        }
152
+
153
+
129 154
         .tab-content {
130 155
             text-align: left;
131 156
             height: 200px;
@@ -167,7 +192,7 @@
167 192
                     <div class="bj-title">
168 193
                         <i class="fa fa-user"></i> 基本信息
169 194
                     </div>
170
-                    <div class="bjCon">
195
+                    <div class="bjCon" style="height:444px;">
171 196
                         <table style="width: 100%;">
172 197
                             <tr>
173 198
                                 <th>所属类别:</th>
@@ -193,6 +218,12 @@
193 218
                                 </td>
194 219
                             </tr>
195 220
                             <tr>
221
+                                <th>试听通知:</th>
222
+                                <td>
223
+                                    <button class="btns try_listen" style="padding: 3px 10px;" type="button"><i class="fa fa-volume-up" style="margin-right: 5px;"></i>试听</button>
224
+                                </td>
225
+                            </tr>
226
+                            <tr>
196 227
                                 <th>执行方式:</th>
197 228
                                 <td>
198 229
                                     <div class="radio-inline ">
@@ -227,7 +258,7 @@
227 258
                     <div class="bj-title">
228 259
                         <i class="fa fa-calendar"></i> 发送时间
229 260
                     </div>
230
-                    <div class="bjCon ">
261
+                    <div class="bjCon" style="height:444px;">
231 262
                         <table style="width: 100%;">
232 263
                             <tr>
233 264
                                 <th>开始日期:</th>
@@ -288,7 +319,28 @@
288 319
                 <button class="btns sureCun" type="button">保存</button>
289 320
                 <button class="btns return" type="button">取消</button>
290 321
             </p>
322
+            <div class="model1">
323
+                <div class="box">
324
+                    <div class="btop clearfix">
325
+                        <p class="btl">试听通知</p>
326
+                        <p class="btr closeaddListen"><i class="fa fa-remove"></i></p>
327
+                    </div>
291 328
 
329
+                    <div class="boxCon1">
330
+                        <table style="width: 40%; margin:0 auto;">
331
+                            <tr>
332
+                                <th>请添加试听号码:</th>
333
+                                <td>
334
+                                    <input type="text" class="listenphone" name="listenphone" id="listenphone" /><span>(必填)</span>
335
+                                </td>
336
+                            </tr>
337
+                        </table>
338
+                        <p style="text-align: center; padding: 20px 0;">
339
+                            <button class="btns tryListen" type="button">加入试听队列</button>
340
+                        </p>
341
+                    </div>
342
+                </div>
343
+            </div>
292 344
         </form>
293 345
     </div>
294 346
     <script src="../js/jquery.form.min.js"></script>
@@ -371,6 +423,53 @@
371 423
                 type: 'time'
372 424
                 //				  ,value:'18:00:00'
373 425
             });
426
+
427
+            $('.try_listen').click(function () {
428
+                $('.model1').show()
429
+            })
430
+            $('.closeaddListen').click(function () {
431
+                $('#listenphone').val('');
432
+                $('.model1').hide()
433
+            })
434
+            $('.tryListen').click(function () {
435
+                $.ajax({
436
+                    type: "get",
437
+                    url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
438
+                    async: true,
439
+                    dataType: 'json',
440
+                    data: {
441
+                        token: $.cookie("token"),
442
+                        phone: $('#listenphone').val()
443
+                    },
444
+                    success: function (result) {
445
+                        if (result.state.toLowerCase() == "success") {
446
+                            var fix = result.data.fix;
447
+                            $.ajax({
448
+                                type: "get",
449
+                                url: huayi.config.callcenter_url + "CallPlan/TryListen",
450
+                                async: true,
451
+                                dataType: 'json',
452
+                                data: {
453
+                                    token: $.cookie("token"),
454
+                                    phone: $('.listenphone').val(),
455
+                                    text: $('.tzCon').val(),
456
+                                    fix: fix
457
+                                },
458
+                                success: function (res) {
459
+                                    if (result.state.toLowerCase() == "success") {
460
+                                        layer.msg(res.message);
461
+                                        $('#listenphone').val('');
462
+                                        $('.model1').hide()
463
+                                    }
464
+                                }
465
+
466
+                            });
467
+                        }
468
+                    }
469
+                });
470
+            })
471
+
472
+
374 473
             LB($('.leiBie'));
375 474
             loadContent($('.voicetempid'));
376 475
             //获取详情