business-classify-statistics.component.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <div class="searchDataWrap">
  2. <div class="searchData">
  3. <app-custom-change-date #customChangeDate [isShowType]="false"></app-custom-change-date>
  4. </div>
  5. <div class="operation">
  6. <i class="icon_transport transport-gengduo" nz-tooltip nzTooltipTitle="更多搜索" (click)="showMore()"></i>
  7. <button nz-button class="btn default" (click)="search()">查询</button>
  8. <button nz-button class="btn default ml8" (click)="reset()">重置</button>
  9. <button nz-button class="btn default ml8" (click)="excelExport()" [nzLoading]="excelExportLoading">导出</button>
  10. </div>
  11. </div>
  12. <div class="moreFilter" *ngIf="fieldConfig.fields.groupDTO || fieldConfig.fields.userDTO || fieldConfig.fields.taskTypeDTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.deptDTO">
  13. <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
  14. <span>{{fieldConfig.fields.userDTO?.name}}</span>
  15. <span>{{fieldConfig.fields.buildingDTO?.buildingName}}</span>
  16. <span>{{fieldConfig.fields.deptDTO?.dept}}</span>
  17. </div>
  18. <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
  19. <thead (nzSortChange)="sort($event)" nzSingleSort>
  20. <tr>
  21. <th nzWidth="10%">业务分类名称</th>
  22. <th nzWidth="10%" nzShowSort nzSortKey="totalCount" [(nzSort)]="sortCurrent.totalCount">工单数量</th>
  23. <th nzWidth="10%" nzShowSort nzSortKey="totalGrade" [(nzSort)]="sortCurrent.totalGrade">总积分</th>
  24. <th nzWidth="10%" nzShowSort nzSortKey="totalPrice" [(nzSort)]="sortCurrent.totalPrice">总费用</th>
  25. <th nzWidth="10%" nzShowSort nzSortKey="response_time_num" [(nzSort)]="sortCurrent.response_time_num">平均响应时间</th>
  26. <th nzWidth="10%" nzShowSort nzSortKey="execution_time_num" [(nzSort)]="sortCurrent.execution_time_num">平均送达时间</th>
  27. <th nzWidth="10%" nzShowSort nzSortKey="aveper" [(nzSort)]="sortCurrent.aveper">按时完成达标率</th>
  28. <th nzWidth="10%" nzShowSort nzSortKey="total_time" [(nzSort)]="sortCurrent.total_time">平均总时间</th>
  29. <th nzWidth="10%" nzShowSort nzSortKey="five_count" [(nzSort)]="sortCurrent.five_count">五分钟内工单</th>
  30. <th nzWidth="10%" nzShowSort nzSortKey="special_close" [(nzSort)]="sortCurrent.special_close">特殊关闭工单</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <tr *ngFor="let data of listOfData">
  35. <td>{{ data.name }}</td>
  36. <td>{{ data.totalCount }}</td>
  37. <td>{{ data.totalGrade }}</td>
  38. <td>{{ data.totalPrice }}</td>
  39. <td>{{ data.response_time_num }}</td>
  40. <td>{{ data.execution_time_num }}</td>
  41. <td>{{ data.aveper }}</td>
  42. <td>{{ data.total_time }}</td>
  43. <td>{{ data.five_count }}</td>
  44. <td>{{ data.special_close }}</td>
  45. </tr>
  46. </tbody>
  47. <ng-template #footerTpl>
  48. <table class="footTable">
  49. <tr *ngFor="let data of listOfDataEnd">
  50. <td style="width: 10%">{{ data.name }}</td>
  51. <td style="width: 10%">{{ data.totalCount }}</td>
  52. <td style="width: 10%">{{ data.totalGrade }}</td>
  53. <td style="width: 10%">{{ data.totalPrice }}</td>
  54. <td style="width: 10%">{{ data.response_time_num }}</td>
  55. <td style="width: 10%">{{ data.execution_time_num }}</td>
  56. <td style="width: 10%">{{ data.aveper }}</td>
  57. <td style="width: 10%">{{ data.total_time }}</td>
  58. <td style="width: 10%">{{ data.five_count }}</td>
  59. <td style="width: 10%">{{ data.special_close }}</td>
  60. </tr>
  61. </table>
  62. </ng-template>
  63. </nz-table>
  64. <div class="pagination">
  65. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  66. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)" (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)" nzShowSizeChanger [nzPageSizeOptions]="[30,50,100,200]" [nzShowTotal]="totalTemplate"></nz-pagination>
  67. </div>
  68. <!-- 详细搜索 -->
  69. <app-distribution-search-more [fieldConfig]="fieldConfig" *ngIf="showSearchMore" [hosId]="hosId" [queryType]="queryType" [dutyId]="dutyId" [parentDutyId]="parentDutyId" (cancelEvent)="cancelEvent()" (submitEvent)="submitEvent($event)"></app-distribution-search-more>