Przeglądaj źródła

服务台统计

seimin 3 lat temu
rodzic
commit
45bb7ca229

+ 1 - 1
assets/js/controllers/knowledge/knowledgeform.js

@@ -414,7 +414,7 @@ sysFormly.controller('knowledgeformCtrl', ['$rootScope', '$scope', '$parse', '$f
414
             // console.log("data="+JSON.stringify(data));
414
             // console.log("data="+JSON.stringify(data));
415
             // if($stateParams.formKey=="system_edit"){
415
             // if($stateParams.formKey=="system_edit"){
416
             // console.log("roleid="+$scope.roleid);
416
             // console.log("roleid="+$scope.roleid);
417
-            if (!vm.form.$valid) {
417
+            if (vm.form.$valid) {
418
                 vm.options.updateInitialValue();
418
                 vm.options.updateInitialValue();
419
                 $scope.ldloading[style.replace('-', '_')] = true;
419
                 $scope.ldloading[style.replace('-', '_')] = true;
420
                 //        alert(JSON.stringify(vm.model), null, 2);
420
                 //        alert(JSON.stringify(vm.model), null, 2);

+ 29 - 2
assets/js/controllers/report/event_formCtrl.js

@@ -185,23 +185,35 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
185
     //重置
185
     //重置
186
     $scope.reload = function () {
186
     $scope.reload = function () {
187
         $scope.dateItemClick('day');
187
         $scope.dateItemClick('day');
188
+        $scope.type = 'desc';//表格排序,排序方式desc,asc
189
+        $scope.direction = 'top';//箭头方向 top,bottom
188
         switch ($scope.tap) {
190
         switch ($scope.tap) {
189
             case 'SJZS'://事件总数
191
             case 'SJZS'://事件总数
192
+                $scope.sortActive = 'accdatetop';
193
+                $scope.name = 'accdate';//表格排序,字段名称
190
                 $scope.mdxquery('accdate', 'desc');
194
                 $scope.mdxquery('accdate', 'desc');
191
                 break;
195
                 break;
192
             case 'SJLX'://事件类型
196
             case 'SJLX'://事件类型
197
+                $scope.sortActive = 'sumtop';
198
+                $scope.name = 'sum';//表格排序,字段名称
193
                 $scope.mdxquery('sum', 'desc');
199
                 $scope.mdxquery('sum', 'desc');
194
                 $scope.sjSelectedOne.value = $scope.sjSelected[0];//事件分类级别
200
                 $scope.sjSelectedOne.value = $scope.sjSelected[0];//事件分类级别
195
                 break;
201
                 break;
196
             case 'CLRZ'://处理人/组
202
             case 'CLRZ'://处理人/组
203
+                $scope.sortActive = 'sumtop';
204
+                $scope.name = 'sum';//表格排序,字段名称
197
                 $scope.mdxquery('sum', 'desc');
205
                 $scope.mdxquery('sum', 'desc');
198
                 $scope.groupSelectedOne.value = $scope.groupSelected[0];//选择处理人/组
206
                 $scope.groupSelectedOne.value = $scope.groupSelected[0];//选择处理人/组
199
                 break;
207
                 break;
200
             case 'QYDD'://区域地点
208
             case 'QYDD'://区域地点
209
+                $scope.sortActive = 'sumtop';
210
+                $scope.name = 'sum';//表格排序,字段名称
201
                 $scope.mdxquery('sum', 'desc');
211
                 $scope.mdxquery('sum', 'desc');
202
                 $scope.areaSelectedOne.value = $scope.areaSelected[0];//区域/地点
212
                 $scope.areaSelectedOne.value = $scope.areaSelected[0];//区域/地点
203
                 break;
213
                 break;
204
             case 'SJLY'://事件来源
214
             case 'SJLY'://事件来源
215
+                $scope.sortActive = 'sumtop';
216
+                $scope.name = 'sum';//表格排序,字段名称
205
                 $scope.mdxquery('sum', 'desc');
217
                 $scope.mdxquery('sum', 'desc');
206
                 break;
218
                 break;
207
         }
219
         }
@@ -217,6 +229,9 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
217
     };
229
     };
218
     //表格排序------------------------------------------------
230
     //表格排序------------------------------------------------
219
     $scope.sortActive = '';//表格排序,箭头高亮选中状态
231
     $scope.sortActive = '';//表格排序,箭头高亮选中状态
232
+    $scope.type = '';//表格排序,排序方式desc,asc
233
+    $scope.name = '';//表格排序,字段名称
234
+    $scope.direction = '';//箭头方向 top,bottom
220
     /**
235
     /**
221
      * 表格排序
236
      * 表格排序
222
      *
237
      *
@@ -225,8 +240,16 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
225
      * @param {string} direction 箭头方向 top,bottom
240
      * @param {string} direction 箭头方向 top,bottom
226
      */
241
      */
227
     $scope.tableSort = function (name, type, direction) {
242
     $scope.tableSort = function (name, type, direction) {
228
-        $scope.sortActive = name + direction;
229
-        $scope.mdxquery(name, type);
243
+        if($scope.name == name){
244
+            $scope.type = $scope.type == 'desc'?'asc':'desc';
245
+            $scope.direction = $scope.direction == 'top'?'bottom':'top';
246
+        }else{
247
+            $scope.type = 'desc';
248
+            $scope.direction = 'top';
249
+        }
250
+        $scope.name = name;
251
+        $scope.sortActive = name + $scope.direction;
252
+        $scope.mdxquery(name, $scope.type);
230
     };
253
     };
231
     //搜索----------------------------------------------------
254
     //搜索----------------------------------------------------
232
     //loading
255
     //loading
@@ -433,4 +456,8 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
433
     //初始化
456
     //初始化
434
     $scope.dateItemClick('day');
457
     $scope.dateItemClick('day');
435
     $scope.mdxquery('accdate', 'desc');
458
     $scope.mdxquery('accdate', 'desc');
459
+    $scope.sortActive = 'accdatetop';
460
+    $scope.name = 'accdate';//表格排序,字段名称
461
+    $scope.type = 'desc';//表格排序,排序方式desc,asc
462
+    $scope.direction = 'top';//箭头方向 top,bottom
436
 }])
463
 }])

+ 191 - 18
assets/js/controllers/report/service_formCtrl.js

@@ -1,5 +1,5 @@
1
 'use strict';
1
 'use strict';
2
-app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$interval", "$http", "$cookieStore", "SweetAlert", "Restangular", "api_report", "api_statistic", "moment", 'api_user_data', function ($scope, $rootScope, $state, $timeout, $interval, $http, $cookieStore, SweetAlert, Restangular, api_report, api_statistic, moment, api_user_data) {
2
+app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$interval", "$http", "$cookieStore", "SweetAlert", "Restangular", "api_report", "api_statistic", "moment", 'api_user_data','api_event_form', function ($scope, $rootScope, $state, $timeout, $interval, $http, $cookieStore, SweetAlert, Restangular, api_report, api_statistic, moment, api_user_data, api_event_form) {
3
     //默认显示综合统计
3
     //默认显示综合统计
4
     $scope.tap = 'ZHTJ';
4
     $scope.tap = 'ZHTJ';
5
     //默认显示上一周
5
     //默认显示上一周
@@ -10,27 +10,27 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
10
     $scope.week = function () {
10
     $scope.week = function () {
11
         $scope.searchstate = "week";
11
         $scope.searchstate = "week";
12
         var weeks = new Date().getDay();
12
         var weeks = new Date().getDay();
13
-        $scope.starttimes = moment(new Date().getTime() - 86400000 * (weeks + 6)).format('YYYY-MM-DD');
14
-        $scope.endtimes = moment(new Date().getTime() - 86400000 * (weeks)).format('YYYY-MM-DD');
13
+        $scope.starttimesModel = moment(new Date().getTime() - 86400000 * (weeks + 6)).format('YYYY-MM-DD');
14
+        $scope.endtimesModel = moment(new Date().getTime() - 86400000 * (weeks)).format('YYYY-MM-DD');
15
     }
15
     }
16
     //上月
16
     //上月
17
     $scope.month = function () {
17
     $scope.month = function () {
18
         $scope.searchstate = "month";
18
         $scope.searchstate = "month";
19
-        $scope.starttimes = moment().startOf('month').add(-1, 'M').format('YYYY-MM-DD');
20
-        $scope.endtimes = moment().endOf('month').add(-1, 'M').format('YYYY-MM-DD');
19
+        $scope.starttimesModel = moment().startOf('month').add(-1, 'M').format('YYYY-MM-DD');
20
+        $scope.endtimesModel = moment().endOf('month').add(-1, 'M').format('YYYY-MM-DD');
21
     }
21
     }
22
     //去年
22
     //去年
23
     $scope.year = function () {
23
     $scope.year = function () {
24
         $scope.searchstate = "year";
24
         $scope.searchstate = "year";
25
-        $scope.starttimes = moment().startOf('year').add(-1, 'y').format('YYYY-MM-DD');
26
-        $scope.endtimes = moment().endOf('year').add(-1, 'y').format('YYYY-MM-DD');
25
+        $scope.starttimesModel = moment().startOf('year').add(-1, 'y').format('YYYY-MM-DD');
26
+        $scope.endtimesModel = moment().endOf('year').add(-1, 'y').format('YYYY-MM-DD');
27
     }
27
     }
28
     //近N日
28
     //近N日
29
     $scope.day = function (num) {
29
     $scope.day = function (num) {
30
         num = num > 1 ? num : 1;
30
         num = num > 1 ? num : 1;
31
         $scope.searchstate = "none";
31
         $scope.searchstate = "none";
32
-        $scope.starttimes = moment().subtract(num, "days").format("YYYY-MM-DD");
33
-        $scope.endtimes = moment().subtract(1, "days").format("YYYY-MM-DD");
32
+        $scope.starttimesModel = moment().subtract(num, "days").format("YYYY-MM-DD");
33
+        $scope.endtimesModel = moment().subtract(1, "days").format("YYYY-MM-DD");
34
     }
34
     }
35
     //默认显示最近7天
35
     //默认显示最近7天
36
     $scope.day(7);
36
     $scope.day(7);
@@ -69,20 +69,29 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
69
     $scope.reload = function(){
69
     $scope.reload = function(){
70
         $scope.day(7);
70
         $scope.day(7);
71
         $scope.searchstate = 'none';
71
         $scope.searchstate = 'none';
72
+        $scope.sortActive = 'totaltop';
73
+        $scope.name = 'total';//表格排序,字段名称
74
+        $scope.type = 'desc';//表格排序,排序方式desc,asc
75
+        $scope.direction = 'top';//箭头方向 top,bottom
76
+        switch ($scope.tap) {
77
+            case 'ZHTJ'://综合统计
78
+                $scope.mdxquery('total', 'desc');
79
+                break;
80
+            case 'DHTJ'://电话统计
81
+                $scope.mdxquery('total', 'desc');
82
+                break;
83
+            case 'WEB'://微信/WEB统计
84
+                $scope.mdxquery('total', 'desc');
85
+                break;
86
+            case 'DHLYTJ'://电话留言统计
87
+                $scope.mdxquery('total', 'desc');
88
+                break;
89
+        }
72
     };
90
     };
73
     //选择类型,综合统计,电话统计,微信/WEB统计,电话留言统计
91
     //选择类型,综合统计,电话统计,微信/WEB统计,电话留言统计
74
     $scope.active = function (name) {
92
     $scope.active = function (name) {
75
         $scope.tap = name;
93
         $scope.tap = name;
76
         $scope.reload();
94
         $scope.reload();
77
-        if ($scope.tap == 'ZHTJ') {//综合统计
78
-            console.log('ZHTJ');
79
-        } else if ($scope.tap == 'DHTJ') {//电话统计
80
-            console.log('DHTJ');
81
-        }else if ($scope.tap == 'WEB') {//微信/WEB统计
82
-            console.log('WEB');
83
-        }else if ($scope.tap == 'DHLYTJ') {//电话留言统计
84
-            console.log('DHLYTJ');
85
-        }
86
     };
95
     };
87
     //综合统计,无限滚动加载
96
     //综合统计,无限滚动加载
88
     $scope.topEndComplete = function(){
97
     $scope.topEndComplete = function(){
@@ -99,4 +108,168 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
99
     //         }
108
     //         }
100
     //     }
109
     //     }
101
     // })
110
     // })
111
+    //表格排序------------------------------------------------
112
+    $scope.sortActive = '';//表格排序,箭头高亮选中状态
113
+    $scope.name = '';//表格排序,字段名称
114
+    $scope.type = '';//表格排序,排序方式desc,asc
115
+    $scope.direction = '';//箭头方向 top,bottom
116
+    /**
117
+     * 表格排序
118
+     *
119
+     * @param {string} name 字段名称
120
+     * @param {string} type 排序方式desc,asc
121
+     * @param {string} direction 箭头方向 top,bottom
122
+     */
123
+    $scope.tableSort = function (name) {
124
+        if($scope.name == name){
125
+            $scope.type = $scope.type == 'desc'?'asc':'desc';
126
+            $scope.direction = $scope.direction == 'top'?'bottom':'top';
127
+        }else{
128
+            $scope.type = 'desc';
129
+            $scope.direction = 'top';
130
+        }
131
+        $scope.name = name;
132
+        $scope.sortActive = name + $scope.direction;
133
+        $scope.mdxquery(name, $scope.type);
134
+    };
135
+    $scope.isArrays = function (arr) {
136
+        return Array.isArray(arr);
137
+    };
138
+    //综合统计
139
+    $scope.zhtj_list = null;//表格列表
140
+    $scope.zhtj_req_total = 0;//请求总数
141
+    $scope.zhtj_req_phone = 0;//请求电话总数
142
+    $scope.zhtj_req_wxweb = 0;//请求微信/web总数
143
+    $scope.zhtj_req_msg = 0;//请求电话留言总数
144
+    $scope.zhtj_req_desk = 0;//请求柜台总数
145
+    $scope.zhtj_trans_total = 0;//工单转换总数
146
+    $scope.zhtj_p_total = 0;//工单转换直接处理数
147
+    $scope.zhtj_unp_total = 0;//工单转换处理工单数
148
+    //电话统计
149
+    $scope.dhtj_list = null;//表格列表
150
+    $scope.dhtj_req_total = 0;//来电总数
151
+    $scope.dhtj_req_answer = 0;//接听数量
152
+    $scope.dhtj_req_miss = 0;//未接数量
153
+    $scope.dhtj_p_total = 0;//电话建单总数
154
+    $scope.dhtj_p_phone = 0;//直接解决
155
+    $scope.dhtj_unp_phone = 0;//派单数量
156
+    //微信/WEB统计
157
+    $scope.web_list = null;//表格列表
158
+    $scope.web_req_total = 0;//微信/WEB报修总数
159
+    $scope.web_req_trans = 0;//转换数量
160
+    $scope.web_req_reject = 0;//未转换数量
161
+    $scope.web_trans_total = 0;//微信/WEB转换总数
162
+    $scope.web_p_total = 0;//直接解决
163
+    $scope.web_unp_total = 0;//派单
164
+    //电话留言统计
165
+    $scope.dhlytj_list = null;//表格列表
166
+    $scope.dhlytj_req_total = 0;//电话留言总数
167
+    $scope.dhlytj_req_trans = 0;//建单总数
168
+    $scope.dhlytj_req_reject = 0;//不受理总数
169
+    $scope.dhlytj_trans_total = 0;//电话留言转换总数
170
+    $scope.dhlytj_p_total = 0;//直接解决总数
171
+    $scope.dhlytj_unp_total = 0;//派单总数
172
+    /**
173
+     *
174
+     *
175
+     * @param {string} name 排序字段
176
+     * @param {string} type 排序方式 desc,asc
177
+     */
178
+     $scope.mdxquery = function (name, type) {
179
+        if (!name) {
180
+            // name = $scope.tap == 'ZHTJ' ? 'accdate' : 'sum';
181
+            name = 'total';
182
+        }
183
+        type = type || 'desc';
184
+        switch ($scope.tap) {
185
+            case 'ZHTJ'://综合统计
186
+                $scope.zhtj_list = null;
187
+                // 请求列表
188
+                api_event_form.fetchZhtjList({
189
+                    "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
190
+                    "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
191
+                    "sortData": name,
192
+                    "sortType": type
193
+                }).then(function (res) {
194
+                    if (res.stats == 200) {
195
+                        $scope.zhtj_list = res.dataList || [];//表格列表
196
+                        $scope.zhtj_req_total = res.title.req_total;//请求总数
197
+                        $scope.zhtj_req_phone = res.title.req_phone;//请求电话总数
198
+                        $scope.zhtj_req_wxweb = res.title.req_wxweb;//请求微信/web总数
199
+                        $scope.zhtj_req_msg = res.title.req_msg;//请求电话留言总数
200
+                        $scope.zhtj_req_desk = res.title.req_desk;//请求柜台总数
201
+                        $scope.zhtj_trans_total = res.title.trans_total;//工单转换总数
202
+                        $scope.zhtj_p_total = res.title.p_total;//工单转换直接处理数
203
+                        $scope.zhtj_unp_total = res.title.unp_total;//工单转换处理工单数
204
+                    }
205
+                })
206
+                break;
207
+            case 'DHTJ'://电话统计
208
+                $scope.dhtj_list = null;
209
+                // 请求列表
210
+                api_event_form.fetchDhtjList({
211
+                    "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
212
+                    "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
213
+                    "sortData": name,
214
+                    "sortType": type
215
+                }).then(function (res) {
216
+                    if (res.stats == 200) {
217
+                        $scope.dhtj_list = res.dataList || [];//表格列表
218
+                        $scope.dhtj_req_total = res.title.req_total;//来电总数
219
+                        $scope.dhtj_req_answer = res.title.req_answer;//接听数量
220
+                        $scope.dhtj_req_miss = res.title.req_miss;//未接数量
221
+                        $scope.dhtj_p_total = res.title.p_total;//电话建单总数
222
+                        $scope.dhtj_p_phone = res.title.p_phone;//直接解决
223
+                        $scope.dhtj_unp_phone = res.title.unp_phone;//派单数量
224
+                    }
225
+                })
226
+                break;
227
+            case 'WEB'://微信/WEB统计
228
+                $scope.web_list = null;
229
+                // 请求列表
230
+                api_event_form.fetchWebList({
231
+                    "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
232
+                    "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
233
+                    "sortData": name,
234
+                    "sortType": type
235
+                }).then(function (res) {
236
+                    if (res.stats == 200) {
237
+                        $scope.web_list = res.dataList || [];//表格列表
238
+                        $scope.web_req_total = res.title.req_total;//微信/WEB报修总数
239
+                        $scope.web_req_trans = res.title.req_trans;//转换数量
240
+                        $scope.web_req_reject = res.title.req_reject;//未转换数量
241
+                        $scope.web_trans_total = res.title.trans_total;//微信/WEB转换总数
242
+                        $scope.web_p_total = res.title.p_total;//直接解决
243
+                        $scope.web_unp_total = res.title.unp_total;//派单
244
+                    }
245
+                })
246
+                break;
247
+            case 'DHLYTJ'://电话留言统计
248
+                $scope.dhlytj_list = null;
249
+                // 请求列表
250
+                api_event_form.fetchDhlytjList({
251
+                    "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
252
+                    "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
253
+                    "sortData": name,
254
+                    "sortType": type
255
+                }).then(function (res) {
256
+                    if (res.stats == 200) {
257
+                        $scope.dhlytj_list = res.dataList || [];//表格列表
258
+                        $scope.dhlytj_req_total = res.title.req_total;//电话留言总数
259
+                        $scope.dhlytj_req_trans = res.title.req_trans;//建单总数
260
+                        $scope.dhlytj_req_reject = res.title.req_reject;//不受理总数
261
+                        $scope.dhlytj_trans_total = res.title.trans_total;//电话留言转换总数
262
+                        $scope.dhlytj_p_total = res.title.p_total;//直接解决总数
263
+                        $scope.dhlytj_unp_total = res.title.unp_total;//派单总数
264
+                    }
265
+                })
266
+                break;
267
+        }
268
+    };
269
+    //初始化
270
+    $scope.mdxquery('total', 'desc');
271
+    $scope.sortActive = 'totaltop';
272
+    $scope.name = 'total';//表格排序,字段名称
273
+    $scope.type = 'desc';//表格排序,排序方式desc,asc
274
+    $scope.direction = 'top';//箭头方向 top,bottom
102
 }])
275
 }])

+ 16 - 0
assets/js/main.js

@@ -1879,6 +1879,22 @@ app.factory('api_event_form', ['eventFormApi', function (eventFormApi) {
1879
         // 查询事件总数(单个页面只有事件数量)
1879
         // 查询事件总数(单个页面只有事件数量)
1880
         getSjNum: function (data) {
1880
         getSjNum: function (data) {
1881
             return dataService.customPOST(data, 'mdv2_incident_sum');
1881
             return dataService.customPOST(data, 'mdv2_incident_sum');
1882
+        },
1883
+        // 综合统计
1884
+        fetchZhtjList: function (data) {
1885
+            return dataService.customPOST(data, 'mdv2_service_repot_all');
1886
+        },
1887
+        // 电话统计
1888
+        fetchDhtjList: function (data) {
1889
+            return dataService.customPOST(data, 'mdv2_service_repot_phone');
1890
+        },
1891
+        // 微信/WEB统计
1892
+        fetchWebList: function (data) {
1893
+            return dataService.customPOST(data, 'mdv2_service_repot_wechat_web');
1894
+        },
1895
+        // 电话留言统计
1896
+        fetchDhlytjList: function (data) {
1897
+            return dataService.customPOST(data, 'mdv2_service_repot_msg');
1882
         }
1898
         }
1883
     };
1899
     };
1884
 }]);
1900
 }]);

+ 73 - 63
assets/views/report/event_form.html

@@ -162,33 +162,39 @@
162
                                         <th style="width:6%">
162
                                         <th style="width:6%">
163
                                             序号
163
                                             序号
164
                                         </th>
164
                                         </th>
165
-                                        <th style="width:10%">
166
-                                            时间
165
+                                        <th style="width:10%" ng-click="tableSort('accdate')">
166
+                                            <strong>
167
+                                                时间
168
+                                                <em class="sort-wrap">
169
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'accdatetop'}"></i>
170
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'accdatebottom'}"></i>
171
+                                                </em>
172
+                                            </strong>
167
                                         </th>
173
                                         </th>
168
-                                        <th style="width:8%">
174
+                                        <th style="width:8%" ng-click="tableSort('sum')">
169
                                             <strong>
175
                                             <strong>
170
                                                 事件数量
176
                                                 事件数量
171
                                                 <em class="sort-wrap">
177
                                                 <em class="sort-wrap">
172
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}" ng-click="tableSort('sum','desc','top')"></i>
173
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}" ng-click="tableSort('sum','asc','bottom')"></i>
178
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}"></i>
179
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}"></i>
174
                                                 </em>
180
                                                 </em>
175
                                             </strong>
181
                                             </strong>
176
                                         </th>
182
                                         </th>
177
-                                        <th style="width:18%">
183
+                                        <th style="width:18%" ng-click="tableSort('responseTime')">
178
                                             <strong>
184
                                             <strong>
179
                                                 平均响应时间
185
                                                 平均响应时间
180
                                                 <em class="sort-wrap">
186
                                                 <em class="sort-wrap">
181
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'responseTimetop'}" ng-click="tableSort('responseTime','desc','top')"></i>
182
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'responseTimebottom'}" ng-click="tableSort('responseTime','asc','bottom')"></i>
187
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'responseTimetop'}"></i>
188
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'responseTimebottom'}"></i>
183
                                                 </em>
189
                                                 </em>
184
                                             </strong>
190
                                             </strong>
185
                                         </th>
191
                                         </th>
186
-                                        <th style="width:18%">
192
+                                        <th style="width:18%" ng-click="tableSort('resolvedTime')">
187
                                             <strong>
193
                                             <strong>
188
                                                 平均解决时间
194
                                                 平均解决时间
189
                                                 <em class="sort-wrap">
195
                                                 <em class="sort-wrap">
190
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'resolvedTimetop'}" ng-click="tableSort('resolvedTime','desc','top')"></i>
191
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'resolvedTimebottom'}" ng-click="tableSort('resolvedTime','asc','bottom')"></i>
196
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'resolvedTimetop'}"></i>
197
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'resolvedTimebottom'}"></i>
192
                                                 </em>
198
                                                 </em>
193
                                             </strong>
199
                                             </strong>
194
                                         </th>
200
                                         </th>
@@ -201,12 +207,12 @@
201
                                         <th style="width:6%">
207
                                         <th style="width:6%">
202
                                             其他
208
                                             其他
203
                                         </th>
209
                                         </th>
204
-                                        <th style="width:14%">
210
+                                        <th style="width:14%" ng-click="tableSort('satisfactionRatio')">
205
                                             <strong>
211
                                             <strong>
206
                                                 满意度(%)
212
                                                 满意度(%)
207
                                                 <em class="sort-wrap">
213
                                                 <em class="sort-wrap">
208
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'satisfactionRatiotop'}" ng-click="tableSort('satisfactionRatio','desc','top')"></i>
209
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'satisfactionRatiobottom'}" ng-click="tableSort('satisfactionRatio','asc','bottom')"></i>
214
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'satisfactionRatiotop'}"></i>
215
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'satisfactionRatiobottom'}"></i>
210
                                                 </em>
216
                                                 </em>
211
                                             </strong>
217
                                             </strong>
212
                                         </th>
218
                                         </th>
@@ -279,33 +285,33 @@
279
                                         <th style="width:22%">
285
                                         <th style="width:22%">
280
                                             事件类型
286
                                             事件类型
281
                                         </th>
287
                                         </th>
282
-                                        <th style="width:10%">
288
+                                        <th style="width:10%" ng-click="tableSort('sum')">
283
                                             <strong>
289
                                             <strong>
284
                                                 类型数量
290
                                                 类型数量
285
                                                 <em class="sort-wrap">
291
                                                 <em class="sort-wrap">
286
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}" ng-click="tableSort('sum','desc','top')"></i>
287
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}" ng-click="tableSort('sum','asc','bottom')"></i>
292
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}"></i>
293
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}"></i>
288
                                                 </em>
294
                                                 </em>
289
                                             </strong>
295
                                             </strong>
290
                                         </th>
296
                                         </th>
291
                                         <th style="width:10%">
297
                                         <th style="width:10%">
292
                                             类型占比
298
                                             类型占比
293
                                         </th>
299
                                         </th>
294
-                                        <th style="width:14%">
300
+                                        <th style="width:14%" ng-click="tableSort('responseTime')">
295
                                             <strong>
301
                                             <strong>
296
                                                 平均响应时间
302
                                                 平均响应时间
297
                                                 <em class="sort-wrap">
303
                                                 <em class="sort-wrap">
298
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'responseTimetop'}" ng-click="tableSort('responseTime','desc','top')"></i>
299
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'responseTimebottom'}" ng-click="tableSort('responseTime','asc','bottom')"></i>
304
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'responseTimetop'}"></i>
305
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'responseTimebottom'}"></i>
300
                                                 </em>
306
                                                 </em>
301
                                             </strong>
307
                                             </strong>
302
                                         </th>
308
                                         </th>
303
-                                        <th style="width:14%">
309
+                                        <th style="width:14%" ng-click="tableSort('resolvedTime')">
304
                                             <strong>
310
                                             <strong>
305
                                                 平均解决时间
311
                                                 平均解决时间
306
                                                 <em class="sort-wrap">
312
                                                 <em class="sort-wrap">
307
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'resolvedTimetop'}" ng-click="tableSort('resolvedTime','desc','top')"></i>
308
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'resolvedTimebottom'}" ng-click="tableSort('resolvedTime','asc','bottom')"></i>
313
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'resolvedTimetop'}"></i>
314
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'resolvedTimebottom'}"></i>
309
                                                 </em>
315
                                                 </em>
310
                                             </strong>
316
                                             </strong>
311
                                         </th>
317
                                         </th>
@@ -394,63 +400,63 @@
394
                         <div class="TB_cont">
400
                         <div class="TB_cont">
395
                             <table class="jry_table jry_table_head" cellspacing="0" cellpadding="16"
401
                             <table class="jry_table jry_table_head" cellspacing="0" cellpadding="16"
396
                                 style="font-weight:normal !important;table-layout:fixed">
402
                                 style="font-weight:normal !important;table-layout:fixed">
397
-                                <tbody>
403
+                                <thead>
398
                                     <tr>
404
                                     <tr>
399
-                                        <td style="width:6%" rowspan="2">
405
+                                        <th style="width:6%" rowspan="2">
400
                                             序号
406
                                             序号
401
-                                        </td>
402
-                                        <td style="width:7%" rowspan="2">
407
+                                        </th>
408
+                                        <th style="width:7%" rowspan="2">
403
                                             处理{{tableGroupSelectedOne == 1?'组':'人'}}
409
                                             处理{{tableGroupSelectedOne == 1?'组':'人'}}
404
-                                        </td>
405
-                                        <td style="width:7%" rowspan="2">
410
+                                        </th>
411
+                                        <th style="width:7%" rowspan="2" ng-click="tableSort('sum')">
406
                                             <strong>
412
                                             <strong>
407
                                                 事件数量
413
                                                 事件数量
408
                                                 <em class="sort-wrap">
414
                                                 <em class="sort-wrap">
409
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}" ng-click="tableSort('sum','desc','top')"></i>
410
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}" ng-click="tableSort('sum','asc','bottom')"></i>
415
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}"></i>
416
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}"></i>
411
                                                 </em>
417
                                                 </em>
412
                                             </strong>
418
                                             </strong>
413
-                                        </td>
414
-                                        <td style="width:7%" rowspan="2">
419
+                                        </th>
420
+                                        <th style="width:7%" rowspan="2">
415
                                             事件占比
421
                                             事件占比
416
-                                        </td>
417
-                                        <td style="width:32%" colspan="4">
422
+                                        </th>
423
+                                        <th style="width:32%" colspan="4">
418
                                             按时响应
424
                                             按时响应
419
-                                        </td>
420
-                                        <td style="width:32%" colspan="4">
425
+                                        </th>
426
+                                        <th style="width:32%" colspan="4">
421
                                             按时解决
427
                                             按时解决
422
-                                        </td>
423
-                                        <td style="width:7%" rowspan="2">
428
+                                        </th>
429
+                                        <th style="width:7%" rowspan="2">
424
                                             满意度(%)
430
                                             满意度(%)
425
-                                        </td>
431
+                                        </th>
426
                                     </tr>
432
                                     </tr>
427
                                     <tr>
433
                                     <tr>
428
-                                        <td style="width:8%">
434
+                                        <th style="width:8%">
429
                                             按时响应
435
                                             按时响应
430
-                                        </td>
431
-                                        <td style="width:8%">
436
+                                        </th>
437
+                                        <th style="width:8%">
432
                                             超时响应
438
                                             超时响应
433
-                                        </td>
434
-                                        <td style="width:8%">
439
+                                        </th>
440
+                                        <th style="width:8%">
435
                                             平均响应时间
441
                                             平均响应时间
436
-                                        </td>
437
-                                        <td style="width:8%">
442
+                                        </th>
443
+                                        <th style="width:8%">
438
                                             超时响应占比
444
                                             超时响应占比
439
-                                        </td>
440
-                                        <td style="width:8%">
445
+                                        </th>
446
+                                        <th style="width:8%">
441
                                             按时解决
447
                                             按时解决
442
-                                        </td>
443
-                                        <td style="width:8%">
448
+                                        </th>
449
+                                        <th style="width:8%">
444
                                             超时解决
450
                                             超时解决
445
-                                        </td>
446
-                                        <td style="width:8%">
451
+                                        </th>
452
+                                        <th style="width:8%">
447
                                             平均解决时间
453
                                             平均解决时间
448
-                                        </td>
449
-                                        <td style="width:8%">
454
+                                        </th>
455
+                                        <th style="width:8%">
450
                                             超时解决占比
456
                                             超时解决占比
451
-                                        </td>
457
+                                        </th>
452
                                     </tr>
458
                                     </tr>
453
-                                </tbody>
459
+                                </thead>
454
                             </table>
460
                             </table>
455
                             <div class="jry_table_wrap jry_table_wrap2" ng-nicescroll>
461
                             <div class="jry_table_wrap jry_table_wrap2" ng-nicescroll>
456
                                 <table class="jry_table jry_table_body" cellspacing="0" cellpadding="16"
462
                                 <table class="jry_table jry_table_body" cellspacing="0" cellpadding="16"
@@ -531,12 +537,12 @@
531
                                         <th style="width:30%">
537
                                         <th style="width:30%">
532
                                             区域/地点
538
                                             区域/地点
533
                                         </th>
539
                                         </th>
534
-                                        <th style="width:30%">
540
+                                        <th style="width:30%" ng-click="tableSort('sum')">
535
                                             <strong>
541
                                             <strong>
536
                                                 事件数量
542
                                                 事件数量
537
                                                 <em class="sort-wrap">
543
                                                 <em class="sort-wrap">
538
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}" ng-click="tableSort('sum','desc','top')"></i>
539
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}" ng-click="tableSort('sum','asc','bottom')"></i>
544
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}"></i>
545
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}"></i>
540
                                                 </em>
546
                                                 </em>
541
                                             </strong>
547
                                             </strong>
542
                                         </th>
548
                                         </th>
@@ -597,12 +603,12 @@
597
                                         <th style="width:30%">
603
                                         <th style="width:30%">
598
                                             事件来源
604
                                             事件来源
599
                                         </th>
605
                                         </th>
600
-                                        <th style="width:30%">
606
+                                        <th style="width:30%" ng-click="tableSort('sum')">
601
                                             <strong>
607
                                             <strong>
602
                                                 事件数量
608
                                                 事件数量
603
                                                 <em class="sort-wrap">
609
                                                 <em class="sort-wrap">
604
-                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}" ng-click="tableSort('sum','desc','top')"></i>
605
-                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}" ng-click="tableSort('sum','asc','bottom')"></i>
610
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'sumtop'}"></i>
611
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'sumbottom'}"></i>
606
                                                 </em>
612
                                                 </em>
607
                                             </strong>
613
                                             </strong>
608
                                         </th>
614
                                         </th>
@@ -989,6 +995,10 @@
989
         background-color: #f9f9f9;
995
         background-color: #f9f9f9;
990
     }
996
     }
991
 
997
 
998
+    .jry_table_head th {
999
+        cursor: pointer;
1000
+    }
1001
+
992
     .jry_table_head * {
1002
     .jry_table_head * {
993
         font-weight: bold;
1003
         font-weight: bold;
994
     }
1004
     }

+ 218 - 292
assets/views/report/service_form.html

@@ -42,14 +42,14 @@
42
                         <div class="clearfix">
42
                         <div class="clearfix">
43
                             <div class="form-group fl">
43
                             <div class="form-group fl">
44
                                 <input type="text" ng-readonly="true" class="form-control smallline"
44
                                 <input type="text" ng-readonly="true" class="form-control smallline"
45
-                                    datepicker-popuptime="yyyy-MM-dd" ng-model="starttimes" max-date="endtimes"
45
+                                    datepicker-popuptime="yyyy-MM-dd" ng-model="starttimesModel" max-date="endtimesModel"
46
                                     is-open="startOpened" ng-init="startOpened = false" ng-click="startOpen($event)" />
46
                                     is-open="startOpened" ng-init="startOpened = false" ng-click="startOpen($event)" />
47
                                 <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
47
                                 <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
48
                             </div>
48
                             </div>
49
                             <span class="form-line fl">一</span>
49
                             <span class="form-line fl">一</span>
50
                             <div class="form-group fl">
50
                             <div class="form-group fl">
51
                                 <input type="text" ng-readonly="true" class="form-control smallline"
51
                                 <input type="text" ng-readonly="true" class="form-control smallline"
52
-                                    datepicker-popuptime="yyyy-MM-dd" ng-model="endtimes" min-date="starttimes"
52
+                                    datepicker-popuptime="yyyy-MM-dd" ng-model="endtimesModel" min-date="starttimesModel"
53
                                     max-date="nowtimes" is-open="endOpened" ng-init="endOpened = false"
53
                                     max-date="nowtimes" is-open="endOpened" ng-init="endOpened = false"
54
                                     ng-click="endOpen($event)" />
54
                                     ng-click="endOpen($event)" />
55
                                 <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
55
                                 <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
@@ -58,7 +58,7 @@
58
                     </div>
58
                     </div>
59
                     <!-- 搜索重置 -->
59
                     <!-- 搜索重置 -->
60
                     <div class="col-xs-3 col-sm-3 pull-right P-0 searchBtnBox">
60
                     <div class="col-xs-3 col-sm-3 pull-right P-0 searchBtnBox">
61
-                        <div class="btn btn_search fl" ng-click="mdxquery('all')">搜索</div>
61
+                        <div class="btn btn_search fl" ng-click="mdxquery(name, type)">搜索</div>
62
                         <div class="btn btn_reset fl" ng-click="reload()" ng-disabled="disabledParentGroup">重置</div>
62
                         <div class="btn btn_reset fl" ng-click="reload()" ng-disabled="disabledParentGroup">重置</div>
63
                         <!-- <div class="btn btn_export fl" ng-click="export()" id="exportToExcel"
63
                         <!-- <div class="btn btn_export fl" ng-click="export()" id="exportToExcel"
64
                             ng-disabled="disabledParentGroup">导出</div> -->
64
                             ng-disabled="disabledParentGroup">导出</div> -->
@@ -67,42 +67,46 @@
67
             </div>
67
             </div>
68
             <!-- 综合统计 -->
68
             <!-- 综合统计 -->
69
             <div class="deck_cont_body" ng-if="tap=='ZHTJ'">
69
             <div class="deck_cont_body" ng-if="tap=='ZHTJ'">
70
-                <div class="deck_cont_body_TB1">
70
+                <div class="deck_cont_body_TB1" ng-if="isArrays(zhtj_list)&&zhtj_list.length>0">
71
                     <div class="TB">
71
                     <div class="TB">
72
                         <div class="TB_head">
72
                         <div class="TB_head">
73
                             <div class="TB_head_L">
73
                             <div class="TB_head_L">
74
                                 <div class="TB_LDZH fl">
74
                                 <div class="TB_LDZH fl">
75
                                     <p>请求总数</p>
75
                                     <p>请求总数</p>
76
-                                    <span>600</span>
76
+                                    <span>{{zhtj_req_total}}</span>
77
                                 </div>
77
                                 </div>
78
                                 <div class="TB_ITEMS fl">
78
                                 <div class="TB_ITEMS fl">
79
                                     <div class="TB_ITEM">
79
                                     <div class="TB_ITEM">
80
-                                        <p>电话</p>
81
-                                        <span>200 &nbsp;33%</span>
80
+                                        <p>电话总数</p>
81
+                                        <span>{{zhtj_req_phone}}</span>
82
                                     </div>
82
                                     </div>
83
                                     <div class="TB_ITEM">
83
                                     <div class="TB_ITEM">
84
-                                        <p>微信/WEB</p>
85
-                                        <span>300 &nbsp;50%</span>
84
+                                        <p>微信/WEB总数</p>
85
+                                        <span>{{zhtj_req_wxweb}}</span>
86
                                     </div>
86
                                     </div>
87
                                     <div class="TB_ITEM">
87
                                     <div class="TB_ITEM">
88
-                                        <p>电话留言</p>
89
-                                        <span>100 &nbsp;17%</span>
88
+                                        <p>电话留言总数</p>
89
+                                        <span>{{zhtj_req_msg}}</span>
90
+                                    </div>
91
+                                    <div class="TB_ITEM">
92
+                                        <p>柜台</p>
93
+                                        <span>{{zhtj_req_desk}}</span>
90
                                     </div>
94
                                     </div>
91
                                 </div>
95
                                 </div>
92
                             </div>
96
                             </div>
93
                             <div class="TB_head_L">
97
                             <div class="TB_head_L">
94
                                 <div class="TB_LDZH fl">
98
                                 <div class="TB_LDZH fl">
95
                                     <p>工单转换总数</p>
99
                                     <p>工单转换总数</p>
96
-                                    <span>300 &nbsp;50%</span>
100
+                                    <span>{{zhtj_trans_total}}</span>
97
                                 </div>
101
                                 </div>
98
                                 <div class="TB_ITEMS fl">
102
                                 <div class="TB_ITEMS fl">
99
                                     <div class="TB_ITEM">
103
                                     <div class="TB_ITEM">
100
-                                        <p>直接处理</p>
101
-                                        <span>200 &nbsp;67%</span>
104
+                                        <p>直接处理数量</p>
105
+                                        <span>{{zhtj_p_total}}</span>
102
                                     </div>
106
                                     </div>
103
                                     <div class="TB_ITEM">
107
                                     <div class="TB_ITEM">
104
-                                        <p>派单</p>
105
-                                        <span>100 &nbsp;33%</span>
108
+                                        <p>派单数量</p>
109
+                                        <span>{{zhtj_unp_total}}</span>
106
                                     </div>
110
                                     </div>
107
                                 </div>
111
                                 </div>
108
                             </div>
112
                             </div>
@@ -115,63 +119,69 @@
115
                                         <th style="width:6%">
119
                                         <th style="width:6%">
116
                                             序号
120
                                             序号
117
                                         </th>
121
                                         </th>
118
-                                        <th style="width:24%">
119
-                                            日期
120
-                                        </th>
121
-                                        <th style="width:8%">
122
+                                        <th style="width:11%">
122
                                             人员
123
                                             人员
123
                                         </th>
124
                                         </th>
124
-                                        <th style="width:10%">
125
+                                        <th style="width:11%" ng-click="tableSort('total')">
125
                                             <strong>
126
                                             <strong>
126
                                                 建单数量
127
                                                 建单数量
127
                                                 <em class="sort-wrap">
128
                                                 <em class="sort-wrap">
128
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
129
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
129
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'totaltop'}"></i>
130
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'totalbottom'}"></i>
130
                                                 </em>
131
                                                 </em>
131
                                             </strong>
132
                                             </strong>
132
                                         </th>
133
                                         </th>
133
-                                        <th style="width:8%">
134
+                                        <th style="width:11%" ng-click="tableSort('p_total')">
134
                                             <strong>
135
                                             <strong>
135
-                                                建单占比
136
+                                                直接处理数量
136
                                                 <em class="sort-wrap">
137
                                                 <em class="sort-wrap">
137
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
138
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
138
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'p_totaltop'}"></i>
139
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'p_totalbottom'}"></i>
139
                                                 </em>
140
                                                 </em>
140
                                             </strong>
141
                                             </strong>
141
                                         </th>
142
                                         </th>
142
-                                        <th style="width:14%">
143
+                                        <th style="width:11%" ng-click="tableSort('unp_total')">
143
                                             <strong>
144
                                             <strong>
144
-                                                直接处理数
145
+                                                处理工单
145
                                                 <em class="sort-wrap">
146
                                                 <em class="sort-wrap">
146
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
147
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
147
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'unp_totaltop'}"></i>
148
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'unp_totalbottom'}"></i>
148
                                                 </em>
149
                                                 </em>
149
                                             </strong>
150
                                             </strong>
150
                                         </th>
151
                                         </th>
151
-                                        <th style="width:12%">
152
+                                        <th style="width:11%" ng-click="tableSort('handle_phone')">
152
                                             <strong>
153
                                             <strong>
153
-                                                直接处理占比
154
+                                                电话接听数
154
                                                 <em class="sort-wrap">
155
                                                 <em class="sort-wrap">
155
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
156
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
156
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'handle_phonetop'}"></i>
157
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'handle_phonebottom'}"></i>
157
                                                 </em>
158
                                                 </em>
158
                                             </strong>
159
                                             </strong>
159
                                         </th>
160
                                         </th>
160
-                                        <th style="width:10%">
161
+                                        <th style="width:17%" ng-click="tableSort('handle_wxweb')">
161
                                             <strong>
162
                                             <strong>
162
-                                                派单数量
163
+                                                微信/web报修处理数
163
                                                 <em class="sort-wrap">
164
                                                 <em class="sort-wrap">
164
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
165
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
165
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'handle_wxwebtop'}"></i>
166
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'handle_wxwebbottom'}"></i>
166
                                                 </em>
167
                                                 </em>
167
                                             </strong>
168
                                             </strong>
168
                                         </th>
169
                                         </th>
169
-                                        <th style="width:8%">
170
+                                        <th style="width:11%" ng-click="tableSort('handle_msg')">
170
                                             <strong>
171
                                             <strong>
171
-                                                派单占比
172
+                                                留言处理数
172
                                                 <em class="sort-wrap">
173
                                                 <em class="sort-wrap">
173
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
174
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
174
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'handle_msgtop'}"></i>
175
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'handle_msgbottom'}"></i>
176
+                                                </em>
177
+                                            </strong>
178
+                                        </th>
179
+                                        <th style="width:11%" ng-click="tableSort('handle_desk')">
180
+                                            <strong>
181
+                                                柜台受理数
182
+                                                <em class="sort-wrap">
183
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'handle_desktop'}"></i>
184
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'handle_deskbottom'}"></i>
175
                                                 </em>
185
                                                 </em>
176
                                             </strong>
186
                                             </strong>
177
                                         </th>
187
                                         </th>
@@ -183,33 +193,33 @@
183
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
193
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
184
                                     <tbody class="tbody-hover">
194
                                     <tbody class="tbody-hover">
185
                                         <tr
195
                                         <tr
186
-                                            ng-repeat="rowData in [1,11,111,2,22,222,3,33,333,4,44,444,5,55,555,6,66,666,7,77,777,8,88,888,9,99,999]">
196
+                                            ng-repeat="rowData in zhtj_list">
187
                                             <td style="width:6%">
197
                                             <td style="width:6%">
188
                                                 {{$index+1}}
198
                                                 {{$index+1}}
189
                                             </td>
199
                                             </td>
190
-                                            <td style="width:24%">
191
-                                                2018/08/09~2018/08/10
200
+                                            <td style="width:11%">
201
+                                                {{rowData.userName}}
192
                                             </td>
202
                                             </td>
193
-                                            <td style="width:8%">
194
-                                                阿明明
203
+                                            <td style="width:11%">
204
+                                                {{rowData.total}}
195
                                             </td>
205
                                             </td>
196
-                                            <td style="width:10%">
197
-                                                891
206
+                                            <td style="width:11%">
207
+                                                {{rowData.p_total}}
198
                                             </td>
208
                                             </td>
199
-                                            <td style="width:8%">
200
-                                                28%
209
+                                            <td style="width:11%">
210
+                                                {{rowData.unp_total}}
201
                                             </td>
211
                                             </td>
202
-                                            <td style="width:14%">
203
-                                                509
212
+                                            <td style="width:11%">
213
+                                                {{rowData.handle_phone}}
204
                                             </td>
214
                                             </td>
205
-                                            <td style="width:12%">
206
-                                                25%
215
+                                            <td style="width:17%">
216
+                                                {{rowData.handle_wxweb}}
207
                                             </td>
217
                                             </td>
208
-                                            <td style="width:10%">
209
-                                                96
218
+                                            <td style="width:11%">
219
+                                                {{rowData.handle_msg}}
210
                                             </td>
220
                                             </td>
211
-                                            <td style="width:8%">
212
-                                                56%
221
+                                            <td style="width:11%">
222
+                                                {{rowData.handle_desk}}
213
                                             </td>
223
                                             </td>
214
                                         </tr>
224
                                         </tr>
215
                                     </tbody>
225
                                     </tbody>
@@ -219,41 +229,43 @@
219
                     </div>
229
                     </div>
220
 
230
 
221
                 </div>
231
                 </div>
232
+                <div class="noData" ng-if="isArrays(zhtj_list)&&zhtj_list.length==0">查询无记录</div>
233
+                <div class="noData" ng-if="!isArrays(zhtj_list)"><img src="/assets/images/loading.gif" alt=""></div>
222
             </div>
234
             </div>
223
             <!-- 电话统计 -->
235
             <!-- 电话统计 -->
224
             <div class="deck_cont_body" ng-if="tap=='DHTJ'">
236
             <div class="deck_cont_body" ng-if="tap=='DHTJ'">
225
-                <div class="deck_cont_body_TB1">
237
+                <div class="deck_cont_body_TB1" ng-if="isArrays(dhtj_list)&&dhtj_list.length>0">
226
                     <div class="TB">
238
                     <div class="TB">
227
                         <div class="TB_head">
239
                         <div class="TB_head">
228
                             <div class="TB_head_L">
240
                             <div class="TB_head_L">
229
                                 <div class="TB_LDZH fl">
241
                                 <div class="TB_LDZH fl">
230
                                     <p>来电总数</p>
242
                                     <p>来电总数</p>
231
-                                    <span>600</span>
243
+                                    <span>{{dhtj_req_total}}</span>
232
                                 </div>
244
                                 </div>
233
                                 <div class="TB_ITEMS fl">
245
                                 <div class="TB_ITEMS fl">
234
                                     <div class="TB_ITEM">
246
                                     <div class="TB_ITEM">
235
                                         <p>接听数量</p>
247
                                         <p>接听数量</p>
236
-                                        <span>500 &nbsp;83%</span>
248
+                                        <span>{{dhtj_req_answer}}</span>
237
                                     </div>
249
                                     </div>
238
                                     <div class="TB_ITEM">
250
                                     <div class="TB_ITEM">
239
                                         <p>未接数量</p>
251
                                         <p>未接数量</p>
240
-                                        <span>100 &nbsp;17%</span>
252
+                                        <span>{{dhtj_req_miss}}</span>
241
                                     </div>
253
                                     </div>
242
                                 </div>
254
                                 </div>
243
                             </div>
255
                             </div>
244
                             <div class="TB_head_L">
256
                             <div class="TB_head_L">
245
                                 <div class="TB_LDZH fl">
257
                                 <div class="TB_LDZH fl">
246
                                     <p>电话建单总数</p>
258
                                     <p>电话建单总数</p>
247
-                                    <span>450 &nbsp;90%</span>
259
+                                    <span>{{dhtj_p_total}}</span>
248
                                 </div>
260
                                 </div>
249
                                 <div class="TB_ITEMS fl">
261
                                 <div class="TB_ITEMS fl">
250
                                     <div class="TB_ITEM">
262
                                     <div class="TB_ITEM">
251
                                         <p>直接解决</p>
263
                                         <p>直接解决</p>
252
-                                        <span>100 &nbsp;22%</span>
264
+                                        <span>{{dhtj_p_phone}}</span>
253
                                     </div>
265
                                     </div>
254
                                     <div class="TB_ITEM">
266
                                     <div class="TB_ITEM">
255
-                                        <p>派单</p>
256
-                                        <span>350 &nbsp;78%</span>
267
+                                        <p>派单数量</p>
268
+                                        <span>{{dhtj_unp_phone}}</span>
257
                                     </div>
269
                                     </div>
258
                                 </div>
270
                                 </div>
259
                             </div>
271
                             </div>
@@ -266,99 +278,42 @@
266
                                         <th style="width:6%">
278
                                         <th style="width:6%">
267
                                             序号
279
                                             序号
268
                                         </th>
280
                                         </th>
269
-                                        <th style="width:24%">
270
-                                            日期
271
-                                        </th>
272
-                                        <th style="width:8%">
281
+                                        <th style="width:14%">
273
                                             人员
282
                                             人员
274
                                         </th>
283
                                         </th>
275
-                                        <th style="width:10%">
284
+                                        <th style="width:20%" ng-click="tableSort('answer')">
276
                                             <strong>
285
                                             <strong>
277
                                                 接听数量
286
                                                 接听数量
278
                                                 <em class="sort-wrap">
287
                                                 <em class="sort-wrap">
279
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
280
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
281
-                                                </em>
282
-                                            </strong>
283
-                                        </th>
284
-                                        <th style="width:10%">
285
-                                            <strong>
286
-                                                接听占比
287
-                                                <em class="sort-wrap">
288
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
289
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
290
-                                                </em>
291
-                                            </strong>
292
-                                        </th>
293
-                                        <th style="width:10%">
294
-                                            <strong>
295
-                                                未接数量
296
-                                                <em class="sort-wrap">
297
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
298
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
288
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'answertop'}"></i>
289
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'answerbottom'}"></i>
299
                                                 </em>
290
                                                 </em>
300
                                             </strong>
291
                                             </strong>
301
                                         </th>
292
                                         </th>
302
-                                        <th style="width:10%">
303
-                                            <strong>
304
-                                                未接占比
305
-                                                <em class="sort-wrap">
306
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
307
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
308
-                                                </em>
309
-                                            </strong>
310
-                                        </th>
311
-                                        <th style="width:10%">
293
+                                        <th style="width:20%" ng-click="tableSort('total')">
312
                                             <strong>
294
                                             <strong>
313
                                                 建单数量
295
                                                 建单数量
314
                                                 <em class="sort-wrap">
296
                                                 <em class="sort-wrap">
315
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
316
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
317
-                                                </em>
318
-                                            </strong>
319
-                                        </th>
320
-                                        <th style="width:10%">
321
-                                            <strong>
322
-                                                建单占比
323
-                                                <em class="sort-wrap">
324
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
325
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
326
-                                                </em>
327
-                                            </strong>
328
-                                        </th>
329
-                                        <th style="width:8%">
330
-                                            <strong>
331
-                                                直接解决数量
332
-                                                <em class="sort-wrap">
333
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
334
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
297
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'totaltop'}"></i>
298
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'totalbottom'}"></i>
335
                                                 </em>
299
                                                 </em>
336
                                             </strong>
300
                                             </strong>
337
                                         </th>
301
                                         </th>
338
-                                        <th style="width:8%">
302
+                                        <th style="width:20%" ng-click="tableSort('p_total')">
339
                                             <strong>
303
                                             <strong>
340
-                                                直接解决占比
304
+                                                直接解决
341
                                                 <em class="sort-wrap">
305
                                                 <em class="sort-wrap">
342
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
343
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
306
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'p_totaltop'}"></i>
307
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'p_totalbottom'}"></i>
344
                                                 </em>
308
                                                 </em>
345
                                             </strong>
309
                                             </strong>
346
                                         </th>
310
                                         </th>
347
-                                        <th style="width:10%">
311
+                                        <th style="width:20%" ng-click="tableSort('unp_total')">
348
                                             <strong>
312
                                             <strong>
349
                                                 派单数量
313
                                                 派单数量
350
                                                 <em class="sort-wrap">
314
                                                 <em class="sort-wrap">
351
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
352
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
353
-                                                </em>
354
-                                            </strong>
355
-                                        </th>
356
-                                        <th style="width:10%">
357
-                                            <strong>
358
-                                                派单占比
359
-                                                <em class="sort-wrap">
360
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
361
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
315
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'unp_totaltop'}"></i>
316
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'unp_totalbottom'}"></i>
362
                                                 </em>
317
                                                 </em>
363
                                             </strong>
318
                                             </strong>
364
                                         </th>
319
                                         </th>
@@ -370,45 +325,24 @@
370
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
325
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
371
                                     <tbody class="tbody-hover">
326
                                     <tbody class="tbody-hover">
372
                                         <tr
327
                                         <tr
373
-                                            ng-repeat="rowData in [1,11,111,2,22,222,3,33,333,4,44,444,5,55,555,6,66,666,7,77,777,8,88,888,9,99,999]">
328
+                                            ng-repeat="rowData in dhtj_list">
374
                                             <td style="width:6%">
329
                                             <td style="width:6%">
375
                                                 {{$index+1}}
330
                                                 {{$index+1}}
376
                                             </td>
331
                                             </td>
377
-                                            <td style="width:24%">
378
-                                                2018/08/09~2018/08/10
379
-                                            </td>
380
-                                            <td style="width:8%">
381
-                                                阿明明
382
-                                            </td>
383
-                                            <td style="width:10%">
384
-                                                891
385
-                                            </td>
386
-                                            <td style="width:10%">
387
-                                                28%
388
-                                            </td>
389
-                                            <td style="width:10%">
390
-                                                509
391
-                                            </td>
392
-                                            <td style="width:10%">
393
-                                                25%
394
-                                            </td>
395
-                                            <td style="width:10%">
396
-                                                96
397
-                                            </td>
398
-                                            <td style="width:10%">
399
-                                                56%
332
+                                            <td style="width:14%">
333
+                                                {{rowData.userName}}
400
                                             </td>
334
                                             </td>
401
-                                            <td style="width:8%">
402
-                                                96
335
+                                            <td style="width:20%">
336
+                                                {{rowData.answer}}
403
                                             </td>
337
                                             </td>
404
-                                            <td style="width:8%">
405
-                                                56%
338
+                                            <td style="width:20%">
339
+                                                {{rowData.total}}
406
                                             </td>
340
                                             </td>
407
-                                            <td style="width:10%">
408
-                                                96
341
+                                            <td style="width:20%">
342
+                                                {{rowData.p_total}}
409
                                             </td>
343
                                             </td>
410
-                                            <td style="width:10%">
411
-                                                56%
344
+                                            <td style="width:20%">
345
+                                                {{rowData.unp_total}}
412
                                             </td>
346
                                             </td>
413
                                         </tr>
347
                                         </tr>
414
                                     </tbody>
348
                                     </tbody>
@@ -418,41 +352,43 @@
418
                     </div>
352
                     </div>
419
 
353
 
420
                 </div>
354
                 </div>
355
+                <div class="noData" ng-if="isArrays(dhtj_list)&&dhtj_list.length==0">查询无记录</div>
356
+                <div class="noData" ng-if="!isArrays(dhtj_list)"><img src="/assets/images/loading.gif" alt=""></div>
421
             </div>
357
             </div>
422
             <!-- 微信/WEB统计 -->
358
             <!-- 微信/WEB统计 -->
423
             <div class="deck_cont_body" ng-if="tap=='WEB'">
359
             <div class="deck_cont_body" ng-if="tap=='WEB'">
424
-                <div class="deck_cont_body_TB1">
360
+                <div class="deck_cont_body_TB1" ng-if="isArrays(web_list)&&web_list.length>0">
425
                     <div class="TB">
361
                     <div class="TB">
426
                         <div class="TB_head">
362
                         <div class="TB_head">
427
                             <div class="TB_head_L">
363
                             <div class="TB_head_L">
428
                                 <div class="TB_LDZH fl">
364
                                 <div class="TB_LDZH fl">
429
                                     <p>微信/WEB报修总数</p>
365
                                     <p>微信/WEB报修总数</p>
430
-                                    <span>600</span>
366
+                                    <span>{{web_req_total}}</span>
431
                                 </div>
367
                                 </div>
432
                                 <div class="TB_ITEMS fl">
368
                                 <div class="TB_ITEMS fl">
433
                                     <div class="TB_ITEM">
369
                                     <div class="TB_ITEM">
434
                                         <p>转换数量</p>
370
                                         <p>转换数量</p>
435
-                                        <span>500 &nbsp;83%</span>
371
+                                        <span>{{web_req_trans}}</span>
436
                                     </div>
372
                                     </div>
437
                                     <div class="TB_ITEM">
373
                                     <div class="TB_ITEM">
438
                                         <p>未转换数量</p>
374
                                         <p>未转换数量</p>
439
-                                        <span>100 &nbsp;17%</span>
375
+                                        <span>{{web_req_reject}}</span>
440
                                     </div>
376
                                     </div>
441
                                 </div>
377
                                 </div>
442
                             </div>
378
                             </div>
443
                             <div class="TB_head_L">
379
                             <div class="TB_head_L">
444
                                 <div class="TB_LDZH fl">
380
                                 <div class="TB_LDZH fl">
445
                                     <p>微信/WEB转换总数</p>
381
                                     <p>微信/WEB转换总数</p>
446
-                                    <span>500</span>
382
+                                    <span>{{web_trans_total}}</span>
447
                                 </div>
383
                                 </div>
448
                                 <div class="TB_ITEMS fl">
384
                                 <div class="TB_ITEMS fl">
449
                                     <div class="TB_ITEM">
385
                                     <div class="TB_ITEM">
450
                                         <p>直接解决</p>
386
                                         <p>直接解决</p>
451
-                                        <span>150 &nbsp;30%</span>
387
+                                        <span>{{web_p_total}}</span>
452
                                     </div>
388
                                     </div>
453
                                     <div class="TB_ITEM">
389
                                     <div class="TB_ITEM">
454
                                         <p>派单</p>
390
                                         <p>派单</p>
455
-                                        <span>350 &nbsp;70%</span>
391
+                                        <span>{{web_unp_total}}</span>
456
                                     </div>
392
                                     </div>
457
                                 </div>
393
                                 </div>
458
                             </div>
394
                             </div>
@@ -465,63 +401,51 @@
465
                                         <th style="width:6%">
401
                                         <th style="width:6%">
466
                                             序号
402
                                             序号
467
                                         </th>
403
                                         </th>
468
-                                        <th style="width:24%">
469
-                                            日期
470
-                                        </th>
471
-                                        <th style="width:8%">
404
+                                        <th style="width:14%">
472
                                             人员
405
                                             人员
473
                                         </th>
406
                                         </th>
474
-                                        <th style="width:10%">
407
+                                        <th style="width:16%" ng-click="tableSort('completed')">
475
                                             <strong>
408
                                             <strong>
476
-                                                转换数量
409
+                                                受理报修数
477
                                                 <em class="sort-wrap">
410
                                                 <em class="sort-wrap">
478
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
479
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
411
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'completedtop'}"></i>
412
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'completedbottom'}"></i>
480
                                                 </em>
413
                                                 </em>
481
                                             </strong>
414
                                             </strong>
482
                                         </th>
415
                                         </th>
483
-                                        <th style="width:8%">
416
+                                        <th style="width:16%" ng-click="tableSort('reject')">
484
                                             <strong>
417
                                             <strong>
485
-                                                转换占比
418
+                                                不受理数
486
                                                 <em class="sort-wrap">
419
                                                 <em class="sort-wrap">
487
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
488
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
420
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'rejecttop'}"></i>
421
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'rejectbottom'}"></i>
489
                                                 </em>
422
                                                 </em>
490
                                             </strong>
423
                                             </strong>
491
                                         </th>
424
                                         </th>
492
-                                        <th style="width:14%">
425
+                                        <th style="width:16%" ng-click="tableSort('total')">
493
                                             <strong>
426
                                             <strong>
494
-                                                直接解决数量
427
+                                                转换数量
495
                                                 <em class="sort-wrap">
428
                                                 <em class="sort-wrap">
496
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
497
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
429
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'totaltop'}"></i>
430
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'totalbottom'}"></i>
498
                                                 </em>
431
                                                 </em>
499
                                             </strong>
432
                                             </strong>
500
                                         </th>
433
                                         </th>
501
-                                        <th style="width:12%">
434
+                                        <th style="width:16%" ng-click="tableSort('p_total')">
502
                                             <strong>
435
                                             <strong>
503
-                                                直接解决占比
436
+                                                直接解决数量
504
                                                 <em class="sort-wrap">
437
                                                 <em class="sort-wrap">
505
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
506
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
438
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'p_totaltop'}"></i>
439
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'p_totalbottom'}"></i>
507
                                                 </em>
440
                                                 </em>
508
                                             </strong>
441
                                             </strong>
509
                                         </th>
442
                                         </th>
510
-                                        <th style="width:10%">
443
+                                        <th style="width:16%" ng-click="tableSort('unp_total')">
511
                                             <strong>
444
                                             <strong>
512
                                                 派单数量
445
                                                 派单数量
513
                                                 <em class="sort-wrap">
446
                                                 <em class="sort-wrap">
514
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
515
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
516
-                                                </em>
517
-                                            </strong>
518
-                                        </th>
519
-                                        <th style="width:8%">
520
-                                            <strong>
521
-                                                派单占比
522
-                                                <em class="sort-wrap">
523
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
524
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
447
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'unp_totaltop'}"></i>
448
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'unp_totalbottom'}"></i>
525
                                                 </em>
449
                                                 </em>
526
                                             </strong>
450
                                             </strong>
527
                                         </th>
451
                                         </th>
@@ -533,33 +457,27 @@
533
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
457
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
534
                                     <tbody class="tbody-hover">
458
                                     <tbody class="tbody-hover">
535
                                         <tr
459
                                         <tr
536
-                                            ng-repeat="rowData in [1,11,111,2,22,222,3,33,333,4,44,444,5,55,555,6,66,666,7,77,777,8,88,888,9,99,999]">
460
+                                            ng-repeat="rowData in web_list">
537
                                             <td style="width:6%">
461
                                             <td style="width:6%">
538
                                                 {{$index+1}}
462
                                                 {{$index+1}}
539
                                             </td>
463
                                             </td>
540
-                                            <td style="width:24%">
541
-                                                2018/08/09~2018/08/10
542
-                                            </td>
543
-                                            <td style="width:8%">
544
-                                                阿明明
464
+                                            <td style="width:14%">
465
+                                                {{rowData.userName}}
545
                                             </td>
466
                                             </td>
546
-                                            <td style="width:10%">
547
-                                                891
467
+                                            <td style="width:16%">
468
+                                                {{rowData.completed}}
548
                                             </td>
469
                                             </td>
549
-                                            <td style="width:8%">
550
-                                                28%
470
+                                            <td style="width:16%">
471
+                                                {{rowData.reject}}
551
                                             </td>
472
                                             </td>
552
-                                            <td style="width:14%">
553
-                                                509
473
+                                            <td style="width:16%">
474
+                                                {{rowData.total}}
554
                                             </td>
475
                                             </td>
555
-                                            <td style="width:12%">
556
-                                                25%
476
+                                            <td style="width:16%">
477
+                                                {{rowData.p_total}}
557
                                             </td>
478
                                             </td>
558
-                                            <td style="width:10%">
559
-                                                96
560
-                                            </td>
561
-                                            <td style="width:8%">
562
-                                                56%
479
+                                            <td style="width:16%">
480
+                                                {{rowData.unp_total}}
563
                                             </td>
481
                                             </td>
564
                                         </tr>
482
                                         </tr>
565
                                     </tbody>
483
                                     </tbody>
@@ -569,41 +487,43 @@
569
                     </div>
487
                     </div>
570
 
488
 
571
                 </div>
489
                 </div>
490
+                <div class="noData" ng-if="isArrays(web_list)&&web_list.length==0">查询无记录</div>
491
+                <div class="noData" ng-if="!isArrays(web_list)"><img src="/assets/images/loading.gif" alt=""></div>
572
             </div>
492
             </div>
573
             <!-- 电话留言统计 -->
493
             <!-- 电话留言统计 -->
574
             <div class="deck_cont_body" ng-if="tap=='DHLYTJ'">
494
             <div class="deck_cont_body" ng-if="tap=='DHLYTJ'">
575
-                <div class="deck_cont_body_TB1">
495
+                <div class="deck_cont_body_TB1" ng-if="isArrays(dhlytj_list)&&dhlytj_list.length>0">
576
                     <div class="TB">
496
                     <div class="TB">
577
                         <div class="TB_head">
497
                         <div class="TB_head">
578
                             <div class="TB_head_L">
498
                             <div class="TB_head_L">
579
                                 <div class="TB_LDZH fl">
499
                                 <div class="TB_LDZH fl">
580
                                     <p>电话留言总数</p>
500
                                     <p>电话留言总数</p>
581
-                                    <span>600</span>
501
+                                    <span>{{web_req_total}}</span>
582
                                 </div>
502
                                 </div>
583
                                 <div class="TB_ITEMS fl">
503
                                 <div class="TB_ITEMS fl">
584
                                     <div class="TB_ITEM">
504
                                     <div class="TB_ITEM">
585
-                                        <p>转换数量</p>
586
-                                        <span>500 &nbsp;83%</span>
505
+                                        <p>建单总数</p>
506
+                                        <span>{{web_req_trans}}</span>
587
                                     </div>
507
                                     </div>
588
                                     <div class="TB_ITEM">
508
                                     <div class="TB_ITEM">
589
-                                        <p>未转换数量</p>
590
-                                        <span>100 &nbsp;17%</span>
509
+                                        <p>不受理总数</p>
510
+                                        <span>{{web_req_reject}}</span>
591
                                     </div>
511
                                     </div>
592
                                 </div>
512
                                 </div>
593
                             </div>
513
                             </div>
594
                             <div class="TB_head_L">
514
                             <div class="TB_head_L">
595
                                 <div class="TB_LDZH fl">
515
                                 <div class="TB_LDZH fl">
596
                                     <p>电话留言转换总数</p>
516
                                     <p>电话留言转换总数</p>
597
-                                    <span>500</span>
517
+                                    <span>{{web_trans_total}}</span>
598
                                 </div>
518
                                 </div>
599
                                 <div class="TB_ITEMS fl">
519
                                 <div class="TB_ITEMS fl">
600
                                     <div class="TB_ITEM">
520
                                     <div class="TB_ITEM">
601
-                                        <p>直接解决</p>
602
-                                        <span>150 &nbsp;30%</span>
521
+                                        <p>直接解决总数</p>
522
+                                        <span>{{web_p_total}}</span>
603
                                     </div>
523
                                     </div>
604
                                     <div class="TB_ITEM">
524
                                     <div class="TB_ITEM">
605
-                                        <p>派单</p>
606
-                                        <span>350 &nbsp;70%</span>
525
+                                        <p>派单总数</p>
526
+                                        <span>{{web_unp_total}}</span>
607
                                     </div>
527
                                     </div>
608
                                 </div>
528
                                 </div>
609
                             </div>
529
                             </div>
@@ -616,63 +536,51 @@
616
                                         <th style="width:6%">
536
                                         <th style="width:6%">
617
                                             序号
537
                                             序号
618
                                         </th>
538
                                         </th>
619
-                                        <th style="width:24%">
620
-                                            日期
621
-                                        </th>
622
-                                        <th style="width:8%">
539
+                                        <th style="width:14%">
623
                                             人员
540
                                             人员
624
                                         </th>
541
                                         </th>
625
-                                        <th style="width:10%">
542
+                                        <th style="width:16%" ng-click="tableSort('completed')">
626
                                             <strong>
543
                                             <strong>
627
-                                                转换数量
544
+                                                受理总数
628
                                                 <em class="sort-wrap">
545
                                                 <em class="sort-wrap">
629
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
630
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
546
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'completedtop'}"></i>
547
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'completedbottom'}"></i>
631
                                                 </em>
548
                                                 </em>
632
                                             </strong>
549
                                             </strong>
633
                                         </th>
550
                                         </th>
634
-                                        <th style="width:8%">
551
+                                        <th style="width:16%" ng-click="tableSort('reject')">
635
                                             <strong>
552
                                             <strong>
636
-                                                转换占比
553
+                                                不受理总数
637
                                                 <em class="sort-wrap">
554
                                                 <em class="sort-wrap">
638
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
639
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
555
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'rejecttop'}"></i>
556
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'rejectbottom'}"></i>
640
                                                 </em>
557
                                                 </em>
641
                                             </strong>
558
                                             </strong>
642
                                         </th>
559
                                         </th>
643
-                                        <th style="width:14%">
560
+                                        <th style="width:16%" ng-click="tableSort('total')">
644
                                             <strong>
561
                                             <strong>
645
-                                                直接解决数量
562
+                                                建单总数
646
                                                 <em class="sort-wrap">
563
                                                 <em class="sort-wrap">
647
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
648
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
564
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'totaltop'}"></i>
565
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'totalbottom'}"></i>
649
                                                 </em>
566
                                                 </em>
650
                                             </strong>
567
                                             </strong>
651
                                         </th>
568
                                         </th>
652
-                                        <th style="width:12%">
569
+                                        <th style="width:16%" ng-click="tableSort('p_total')">
653
                                             <strong>
570
                                             <strong>
654
-                                                直接解决占比
655
-                                                <em class="sort-wrap">
656
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
657
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
658
-                                                </em>
659
-                                            </strong>
660
-                                        </th>
661
-                                        <th style="width:10%">
662
-                                            <strong>
663
-                                                派单数量
571
+                                                直接解决总数
664
                                                 <em class="sort-wrap">
572
                                                 <em class="sort-wrap">
665
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
666
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
573
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'p_totaltop'}"></i>
574
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'p_totalbottom'}"></i>
667
                                                 </em>
575
                                                 </em>
668
                                             </strong>
576
                                             </strong>
669
                                         </th>
577
                                         </th>
670
-                                        <th style="width:8%">
578
+                                        <th style="width:16%" ng-click="tableSort('unp_total')">
671
                                             <strong>
579
                                             <strong>
672
-                                                派单占比
580
+                                                派单总数
673
                                                 <em class="sort-wrap">
581
                                                 <em class="sort-wrap">
674
-                                                    <i class="sortItem iconfont icon-xiangshang"></i>
675
-                                                    <i class="sortItem iconfont icon-xiangxia"></i>
582
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'unp_totaltop'}"></i>
583
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'unp_totalbottom'}"></i>
676
                                                 </em>
584
                                                 </em>
677
                                             </strong>
585
                                             </strong>
678
                                         </th>
586
                                         </th>
@@ -684,33 +592,27 @@
684
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
592
                                     style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
685
                                     <tbody class="tbody-hover">
593
                                     <tbody class="tbody-hover">
686
                                         <tr
594
                                         <tr
687
-                                            ng-repeat="rowData in [1,11,111,2,22,222,3,33,333,4,44,444,5,55,555,6,66,666,7,77,777,8,88,888,9,99,999]">
595
+                                            ng-repeat="rowData in dhlytj_list">
688
                                             <td style="width:6%">
596
                                             <td style="width:6%">
689
                                                 {{$index+1}}
597
                                                 {{$index+1}}
690
                                             </td>
598
                                             </td>
691
-                                            <td style="width:24%">
692
-                                                2018/08/09~2018/08/10
693
-                                            </td>
694
-                                            <td style="width:8%">
695
-                                                阿明明
696
-                                            </td>
697
-                                            <td style="width:10%">
698
-                                                891
599
+                                            <td style="width:14%">
600
+                                                {{rowData.userName}}
699
                                             </td>
601
                                             </td>
700
-                                            <td style="width:8%">
701
-                                                28%
602
+                                            <td style="width:16%">
603
+                                                {{rowData.completed}}
702
                                             </td>
604
                                             </td>
703
-                                            <td style="width:14%">
704
-                                                509
605
+                                            <td style="width:16%">
606
+                                                {{rowData.reject}}
705
                                             </td>
607
                                             </td>
706
-                                            <td style="width:12%">
707
-                                                25%
608
+                                            <td style="width:16%">
609
+                                                {{rowData.total}}
708
                                             </td>
610
                                             </td>
709
-                                            <td style="width:10%">
710
-                                                96
611
+                                            <td style="width:16%">
612
+                                                {{rowData.p_total}}
711
                                             </td>
613
                                             </td>
712
-                                            <td style="width:8%">
713
-                                                56%
614
+                                            <td style="width:16%">
615
+                                                {{rowData.unp_total}}
714
                                             </td>
616
                                             </td>
715
                                         </tr>
617
                                         </tr>
716
                                     </tbody>
618
                                     </tbody>
@@ -719,6 +621,8 @@
719
                         </div>
621
                         </div>
720
                     </div>
622
                     </div>
721
                 </div>
623
                 </div>
624
+                <div class="noData" ng-if="isArrays(dhlytj_list)&&dhlytj_list.length==0">查询无记录</div>
625
+                <div class="noData" ng-if="!isArrays(dhlytj_list)"><img src="/assets/images/loading.gif" alt=""></div>
722
             </div>
626
             </div>
723
         </div>
627
         </div>
724
     </div>
628
     </div>
@@ -853,6 +757,7 @@
853
     .TB_ITEM {
757
     .TB_ITEM {
854
         float: left;
758
         float: left;
855
         margin-right: 16px;
759
         margin-right: 16px;
760
+        text-align: center;
856
     }
761
     }
857
 
762
 
858
     .MR_15 {
763
     .MR_15 {
@@ -870,6 +775,10 @@
870
         line-height: 1.2;
775
         line-height: 1.2;
871
     }
776
     }
872
 
777
 
778
+    .TB_LDZH{
779
+        text-align: center;
780
+    }
781
+
873
     .TB_LDZH p {
782
     .TB_LDZH p {
874
         font-size: 14px;
783
         font-size: 14px;
875
         color: #666
784
         color: #666
@@ -1063,6 +972,10 @@
1063
         background-color: #f9f9f9;
972
         background-color: #f9f9f9;
1064
     }
973
     }
1065
 
974
 
975
+    .jry_table_head th {
976
+        cursor: pointer;
977
+    }
978
+
1066
     .jry_table_body .tbody-hover {
979
     .jry_table_body .tbody-hover {
1067
         width: 100%;
980
         width: 100%;
1068
     }
981
     }
@@ -1103,6 +1016,10 @@
1103
         position: absolute;
1016
         position: absolute;
1104
     }
1017
     }
1105
 
1018
 
1019
+    .sortItem.active {
1020
+        color: #999;
1021
+    }
1022
+
1106
     .sortItem.icon-xiangshang {
1023
     .sortItem.icon-xiangshang {
1107
         bottom: -2px;
1024
         bottom: -2px;
1108
     }
1025
     }
@@ -1110,6 +1027,15 @@
1110
     .sortItem.icon-xiangxia {
1027
     .sortItem.icon-xiangxia {
1111
         top: -2px;
1028
         top: -2px;
1112
     }
1029
     }
1030
+    /* 查询无记录 */
1031
+    .noData{
1032
+        font-size: 16px;
1033
+        text-align: center;
1034
+        font-weight: bold;
1035
+        margin-top: 16px;
1036
+        width: 100%;
1037
+        min-height: 420px;
1038
+    }
1113
 
1039
 
1114
     .form-control.smallline {
1040
     .form-control.smallline {
1115
         background-color: #fff;
1041
         background-color: #fff;