seimin преди 2 години
родител
ревизия
0fffbc007c
променени са 3 файла, в които са добавени 77 реда и са изтрити 2 реда
  1. 19 0
      assets/js/controllers/report/service_formCtrl.js
  2. 4 0
      assets/js/main.js
  3. 54 2
      assets/views/report/service_form.html

+ 19 - 0
assets/js/controllers/report/service_formCtrl.js

@@ -98,6 +98,9 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
98 98
             case 'DHLYTJ'://电话留言统计
99 99
                 $scope.mdxquery('total', 'desc');
100 100
                 break;
101
+            case 'DHCHTJ'://电话查号统计
102
+                $scope.mdxquery('total', 'desc');
103
+                break;
101 104
         }
102 105
     };
103 106
     //选择类型,综合统计,电话统计,微信/WEB统计,电话留言统计
@@ -181,6 +184,8 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
181 184
     $scope.dhlytj_trans_total = 0;//电话留言转换总数
182 185
     $scope.dhlytj_p_total = 0;//直接解决总数
183 186
     $scope.dhlytj_unp_total = 0;//派单总数
187
+    //电话查号统计
188
+    $scope.dhchtj_list = null;//表格列表
184 189
     /**
185 190
      *
186 191
      *
@@ -276,6 +281,20 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
276 281
                     }
277 282
                 })
278 283
                 break;
284
+            case 'DHCHTJ'://电话查号统计
285
+                $scope.dhchtj_list = null;
286
+                // 请求列表
287
+                api_event_form.fetchDhchtjList({
288
+                    "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
289
+                    "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
290
+                    "sortData": name,
291
+                    "sortType": type
292
+                }).then(function (res) {
293
+                    if (res.stats == 200) {
294
+                        $scope.dhchtj_list = res.dataList || [];//表格列表
295
+                    }
296
+                })
297
+                break;
279 298
         }
280 299
     };
281 300
     // 跳转

+ 4 - 0
assets/js/main.js

@@ -2081,6 +2081,10 @@ app.factory('api_event_form', ['eventFormApi', function (eventFormApi) {
2081 2081
         // 电话留言统计
2082 2082
         fetchDhlytjList: function (data) {
2083 2083
             return dataService.customPOST(data, 'mdv2_service_repot_msg');
2084
+        },
2085
+        // 电话查号统计
2086
+        fetchDhchtjList: function (data) {
2087
+            return dataService.customPOST(data, 'mdv2_service_repot_query_phone_total');
2084 2088
         }
2085 2089
     };
2086 2090
 }]);

+ 54 - 2
assets/views/report/service_form.html

@@ -23,6 +23,9 @@
23 23
             <div class="deck_head_L" ng-class="{ac:tap=='DHLYTJ'}" ng-click="active('DHLYTJ')">
24 24
                 <span>电话留言统计</span>
25 25
             </div>
26
+            <div class="deck_head_L" ng-class="{ac:tap=='DHCHTJ'}" ng-click="active('DHCHTJ')">
27
+                <span>电话查号统计</span>
28
+            </div>
26 29
         </div>
27 30
         <div class="deck_cont">
28 31
             <!-- 筛选条件 -->
@@ -63,7 +66,7 @@
63 66
                         <div class="btn btn_search fl" ng-click="mdxquery(name, type)">搜索</div>
64 67
                         <div class="btn btn_reset fl" ng-click="reload(true)" ng-disabled="disabledParentGroup">重置</div>
65 68
                         <div class="btn btn_export fl" ng-click="export()" id="exportToExcel"
66
-                            ng-disabled="disabledParentGroup">导出</div>
69
+                            ng-disabled="disabledParentGroup" ng-if="tap!='DHCHTJ'">导出</div>
67 70
                     </div>
68 71
                 </form>
69 72
             </div>
@@ -662,6 +665,55 @@
662 665
                 <div class="noData" ng-if="isArrays(dhlytj_list)&&dhlytj_list.length==0">查询无记录</div>
663 666
                 <div class="noData" ng-if="!isArrays(dhlytj_list)"><img src="/assets/images/loading.gif" alt=""></div>
664 667
             </div>
668
+            <!-- 电话查号统计 -->
669
+            <div class="deck_cont_body" ng-if="tap=='DHCHTJ'">
670
+                <div class="deck_cont_body_TB1" ng-if="isArrays(dhchtj_list)&&dhchtj_list.length>0">
671
+                    <div class="TB">
672
+                        <div class="TB_head">
673
+                            
674
+                        </div>
675
+                        <div class="TB_cont">
676
+                            <table class="jry_table jry_table_head" cellspacing="0" cellpadding="16"
677
+                                style="font-weight:normal !important;table-layout:fixed">
678
+                                <thead>
679
+                                    <tr>
680
+                                        <th style="width:6%">
681
+                                            序号
682
+                                        </th>
683
+                                        <th style="width:47%" tooltip='查询号码' tooltip-placement="top">
684
+                                            查询号码
685
+                                        </th>
686
+                                        <th style="width:47%" tooltip='被查询数量' tooltip-placement="top">
687
+                                            被查询数量
688
+                                        </th>
689
+                                    </tr>
690
+                                </thead>
691
+                            </table>
692
+                            <div class="jry_table_wrap" ng-nicescroll>
693
+                                <table class="jry_table jry_table_body" cellspacing="0" cellpadding="16"
694
+                                    style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
695
+                                    <tbody class="tbody-hover">
696
+                                        <tr
697
+                                            ng-repeat="rowData in dhchtj_list">
698
+                                            <td style="width:6%">
699
+                                                {{$index+1}}
700
+                                            </td>
701
+                                            <td style="width:47%">
702
+                                                {{rowData.phone}}
703
+                                            </td>
704
+                                            <td style="width:47%">
705
+                                                {{rowData.total}}
706
+                                            </td>
707
+                                        </tr>
708
+                                    </tbody>
709
+                                </table>
710
+                            </div>
711
+                        </div>
712
+                    </div>
713
+                </div>
714
+                <div class="noData" ng-if="isArrays(dhchtj_list)&&dhchtj_list.length==0">查询无记录</div>
715
+                <div class="noData" ng-if="!isArrays(dhchtj_list)"><img src="/assets/images/loading.gif" alt=""></div>
716
+            </div>
665 717
         </div>
666 718
     </div>
667 719
 </div>
@@ -694,7 +746,7 @@
694 746
 
695 747
     .service_head .deck_head_L {
696 748
         float: left;
697
-        width: 25%;
749
+        width: 20%;
698 750
         height: 100%;
699 751
         text-align: center;
700 752
         border-top: 5px solid #EAEAEA;