Browse Source

三方公司统计字段调整

seimin 3 years ago
parent
commit
944ccde8f4
2 changed files with 31 additions and 13 deletions
  1. 1 1
      assets/js/controllers/report/event_formCtrl.js
  2. 30 12
      assets/views/report/event_form.html

+ 1 - 1
assets/js/controllers/report/event_formCtrl.js

@@ -542,7 +542,7 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
542
                 break;
542
                 break;
543
             case 'SFGS'://三方公司
543
             case 'SFGS'://三方公司
544
                 postData.key = 'mdv2_incident_repot_company';
544
                 postData.key = 'mdv2_incident_repot_company';
545
-                postData.titles = ['公司名称', '人员总数', '事件数量', '平均响应时长', '平均解决时长'];
545
+                postData.titles = [($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName)?'人员名称':'公司名称', '人员总数', '事件数量', '平均响应时长', '平均解决时长', '迟到次数'];
546
                 break;
546
                 break;
547
             case 'QYDD'://区域地点
547
             case 'QYDD'://区域地点
548
                 postData.type = $scope.areaSelectedOne.value.id;
548
                 postData.type = $scope.areaSelectedOne.value.id;

+ 30 - 12
assets/views/report/event_form.html

@@ -565,10 +565,13 @@
565
                                         <th style="width:6%">
565
                                         <th style="width:6%">
566
                                             序号
566
                                             序号
567
                                         </th>
567
                                         </th>
568
-                                        <th style="width:22%" ng-click="tableSort('userName')" tooltip='第三方公司名称' tooltip-placement="top">
568
+                                        <th style="width:22%" ng-if="sfgs_list[0]&&sfgs_list[0].companyName" ng-click="tableSort('companyName')" tooltip='第三方公司名称' tooltip-placement="top">
569
                                             公司名称
569
                                             公司名称
570
                                         </th>
570
                                         </th>
571
-                                        <th style="width:18%" ng-click="tableSort('u_total')" tooltip='此公司下的人员数量' tooltip-placement="top">
571
+                                        <th style="width:22%" ng-if="sfgs_list[0]&&sfgs_list[0].userName" ng-click="tableSort('userName')" tooltip='人员名称' tooltip-placement="top">
572
+                                            人员名称
573
+                                        </th>
574
+                                        <th style="width:16%" ng-click="tableSort('u_total')" tooltip='此公司下的人员数量' tooltip-placement="top">
572
                                             <strong>
575
                                             <strong>
573
                                                 人员总数
576
                                                 人员总数
574
                                                 <em class="sort-wrap">
577
                                                 <em class="sort-wrap">
@@ -577,7 +580,7 @@
577
                                                 </em>
580
                                                 </em>
578
                                             </strong>
581
                                             </strong>
579
                                         </th>
582
                                         </th>
580
-                                        <th style="width:18%" ng-click="tableSort('i_total')" tooltip='此公司处理的工单数量' tooltip-placement="top">
583
+                                        <th style="width:16%" ng-click="tableSort('i_total')" tooltip='此公司处理的工单数量' tooltip-placement="top">
581
                                             <strong>
584
                                             <strong>
582
                                                 事件数量
585
                                                 事件数量
583
                                                 <em class="sort-wrap">
586
                                                 <em class="sort-wrap">
@@ -586,7 +589,7 @@
586
                                                 </em>
589
                                                 </em>
587
                                             </strong>
590
                                             </strong>
588
                                         </th>
591
                                         </th>
589
-                                        <th style="width:18%" ng-click="tableSort('response_time')" tooltip='接单时间 – 建单时间' tooltip-placement="top">
592
+                                        <th style="width:16%" ng-click="tableSort('response_time')" tooltip='接单时间 – 建单时间' tooltip-placement="top">
590
                                             <strong>
593
                                             <strong>
591
                                                 平均响应时长
594
                                                 平均响应时长
592
                                                 <em class="sort-wrap">
595
                                                 <em class="sort-wrap">
@@ -595,7 +598,7 @@
595
                                                 </em>
598
                                                 </em>
596
                                             </strong>
599
                                             </strong>
597
                                         </th>
600
                                         </th>
598
-                                        <th style="width:18%" ng-click="tableSort('resolved_time')" tooltip='处理完成时间 –  接单时间' tooltip-placement="top">
601
+                                        <th style="width:16%" ng-click="tableSort('resolved_time')" tooltip='处理完成时间 –  接单时间' tooltip-placement="top">
599
                                             <strong>
602
                                             <strong>
600
                                                 平均解决时长
603
                                                 平均解决时长
601
                                                 <em class="sort-wrap">
604
                                                 <em class="sort-wrap">
@@ -604,6 +607,15 @@
604
                                                 </em>
607
                                                 </em>
605
                                             </strong>
608
                                             </strong>
606
                                         </th>
609
                                         </th>
610
+                                        <th style="width:8%" ng-click="tableSort('is_late')" tooltip='统计公司中所有人员迟到次数' tooltip-placement="top">
611
+                                            <strong>
612
+                                                迟到次数
613
+                                                <em class="sort-wrap">
614
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'is_latetop'}"></i>
615
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'is_latebottom'}"></i>
616
+                                                </em>
617
+                                            </strong>
618
+                                        </th>
607
                                     </tr>
619
                                     </tr>
608
                                 </thead>
620
                                 </thead>
609
                             </table>
621
                             </table>
@@ -615,21 +627,27 @@
615
                                             <td style="width:6%">
627
                                             <td style="width:6%">
616
                                                 {{$index+1}}
628
                                                 {{$index+1}}
617
                                             </td>
629
                                             </td>
618
-                                            <td style="width:22%">
630
+                                            <td style="width:22%" ng-if="rowData.companyName">
631
+                                                {{rowData.companyName}}
632
+                                            </td>
633
+                                            <td style="width:22%" ng-if="rowData.userName">
619
                                                 {{rowData.userName}}
634
                                                 {{rowData.userName}}
620
                                             </td>
635
                                             </td>
621
-                                            <td style="width:18%">
636
+                                            <td style="width:16%">
622
                                                 {{rowData.u_total}}
637
                                                 {{rowData.u_total}}
623
                                             </td>
638
                                             </td>
624
-                                            <td style="width:18%">
639
+                                            <td style="width:16%">
625
                                                 {{rowData.i_total}}
640
                                                 {{rowData.i_total}}
626
                                             </td>
641
                                             </td>
627
-                                            <td style="width:18%">
642
+                                            <td style="width:16%">
628
                                                 {{rowData.response_time}}
643
                                                 {{rowData.response_time}}
629
                                             </td>
644
                                             </td>
630
-                                            <td style="width:18%">
645
+                                            <td style="width:16%">
631
                                                 {{rowData.resolved_time}}
646
                                                 {{rowData.resolved_time}}
632
                                             </td>
647
                                             </td>
648
+                                            <td style="width:8%">
649
+                                                {{rowData.is_late}}
650
+                                            </td>
633
                                         </tr>
651
                                         </tr>
634
                                     </tbody>
652
                                     </tbody>
635
                                 </table>
653
                                 </table>
@@ -638,8 +656,8 @@
638
                     </div>
656
                     </div>
639
 
657
 
640
                 </div>
658
                 </div>
641
-                <div class="noData" ng-if="isArrays(sjzs_list)&&sjzs_list.length==0">查询无记录</div>
642
-                <div class="noData" ng-if="!isArrays(sjzs_list)"><img src="/assets/images/loading.gif" alt=""></div>
659
+                <div class="noData" ng-if="isArrays(sfgs_list)&&sfgs_list.length==0">查询无记录</div>
660
+                <div class="noData" ng-if="!isArrays(sfgs_list)"><img src="/assets/images/loading.gif" alt=""></div>
643
             </div>
661
             </div>
644
             <!-- 区域地点 -->
662
             <!-- 区域地点 -->
645
             <div class="deck_cont_body" ng-if="tap=='QYDD'">
663
             <div class="deck_cont_body" ng-if="tap=='QYDD'">