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

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

@@ -565,10 +565,13 @@
565 565
                                         <th style="width:6%">
566 566
                                             序号
567 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 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 575
                                             <strong>
573 576
                                                 人员总数
574 577
                                                 <em class="sort-wrap">
@@ -577,7 +580,7 @@
577 580
                                                 </em>
578 581
                                             </strong>
579 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 584
                                             <strong>
582 585
                                                 事件数量
583 586
                                                 <em class="sort-wrap">
@@ -586,7 +589,7 @@
586 589
                                                 </em>
587 590
                                             </strong>
588 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 593
                                             <strong>
591 594
                                                 平均响应时长
592 595
                                                 <em class="sort-wrap">
@@ -595,7 +598,7 @@
595 598
                                                 </em>
596 599
                                             </strong>
597 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 602
                                             <strong>
600 603
                                                 平均解决时长
601 604
                                                 <em class="sort-wrap">
@@ -604,6 +607,15 @@
604 607
                                                 </em>
605 608
                                             </strong>
606 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 619
                                     </tr>
608 620
                                 </thead>
609 621
                             </table>
@@ -615,21 +627,27 @@
615 627
                                             <td style="width:6%">
616 628
                                                 {{$index+1}}
617 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 634
                                                 {{rowData.userName}}
620 635
                                             </td>
621
-                                            <td style="width:18%">
636
+                                            <td style="width:16%">
622 637
                                                 {{rowData.u_total}}
623 638
                                             </td>
624
-                                            <td style="width:18%">
639
+                                            <td style="width:16%">
625 640
                                                 {{rowData.i_total}}
626 641
                                             </td>
627
-                                            <td style="width:18%">
642
+                                            <td style="width:16%">
628 643
                                                 {{rowData.response_time}}
629 644
                                             </td>
630
-                                            <td style="width:18%">
645
+                                            <td style="width:16%">
631 646
                                                 {{rowData.resolved_time}}
632 647
                                             </td>
648
+                                            <td style="width:8%">
649
+                                                {{rowData.is_late}}
650
+                                            </td>
633 651
                                         </tr>
634 652
                                     </tbody>
635 653
                                 </table>
@@ -638,8 +656,8 @@
638 656
                     </div>
639 657
 
640 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 661
             </div>
644 662
             <!-- 区域地点 -->
645 663
             <div class="deck_cont_body" ng-if="tap=='QYDD'">