building-statistics.component.html 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <div class="searchDataWrap">
  2. <div class="searchData">
  3. <div class="searchDataItem">
  4. <span class="label">建单时间</span>:
  5. <nz-range-picker [(ngModel)]="dateRange" [nzAllowClear]="false" (ngModelChange)="changeDate($event)" (nzOnCalendarChange)="onCalendarChangeDate($event)">
  6. </nz-range-picker>
  7. </div>
  8. </div>
  9. <div class="operation">
  10. <i class="icon_transport transport-gengduo" (click)="showMore()"></i>
  11. <button nz-button class="btn default" (click)="search()">查询</button>
  12. <button nz-button class="btn default ml8" (click)="reset()">重置</button>
  13. <button nz-button class="btn default ml8" (click)="excelExport()" [nzLoading]="excelExportLoading">导出</button>
  14. </div>
  15. </div>
  16. <div class="moreFilter" *ngIf="fieldConfig.fields.category1DTO || fieldConfig.fields.category2DTO || fieldConfig.fields.category3DTO">
  17. <span>{{fieldConfig.fields.category1DTO?.category}}</span>
  18. <span>{{fieldConfig.fields.category2DTO?.category}}</span>
  19. <span>{{fieldConfig.fields.category3DTO?.category}}</span>
  20. </div>
  21. <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
  22. <thead (nzSortChange)="sort($event)" nzSingleSort>
  23. <tr>
  24. <th nzWidth="10%">楼栋名称</th>
  25. <th nzWidth="9%" nzShowSort nzSortKey="sum" [(nzSort)]="sortCurrent.sum">工单总数</th>
  26. <th nzWidth="9%" nzShowSort nzSortKey="avgResponseTime" [(nzSort)]="sortCurrent.avgResponseTime">平均接单时长</th>
  27. <th nzWidth="9%" nzShowSort nzSortKey="avgResolvedTime" [(nzSort)]="sortCurrent.avgResolvedTime">平均解决时长</th>
  28. <th nzWidth="9%" nzShowSort nzSortKey="resolvedOverNum" [(nzSort)]="sortCurrent.resolvedOverNum">超时单数</th>
  29. <th nzWidth="9%" nzShowSort nzSortKey="overTimeNum" [(nzSort)]="sortCurrent.overTimeNum">挂起单数</th>
  30. <th nzWidth="9%" nzShowSort nzSortKey="consumablePrice" [(nzSort)]="sortCurrent.consumablePrice">耗材费用(元)</th>
  31. <th nzWidth="9%" nzShowSort nzSortKey="workHourPrice" [(nzSort)]="sortCurrent.workHourPrice">工时费用(元)</th>
  32. <th nzWidth="9%" nzShowSort nzSortKey="totalPrice" [(nzSort)]="sortCurrent.totalPrice">总费用(元)</th>
  33. <th nzWidth="9%" nzShowSort nzSortKey="negativeNum" [(nzSort)]="sortCurrent.negativeNum">差评单数</th>
  34. <th nzWidth="9%" nzShowSort nzSortKey="favorableRate" [(nzSort)]="sortCurrent.favorableRate">好评率</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr *ngFor="let data of listOfData">
  39. <td>{{ data.name }}</td>
  40. <td>{{ data.sum }}</td>
  41. <td>{{ data.avgResponseTime }}</td>
  42. <td>{{ data.avgResolvedTime }}</td>
  43. <td>{{ data.resolvedOverNum }}</td>
  44. <td>{{ data.overTimeNum }}</td>
  45. <td>{{ data.consumablePrice }}</td>
  46. <td>{{ data.workHourPrice }}</td>
  47. <td>{{ data.totalPrice }}</td>
  48. <td>{{ data.negativeNum }}</td>
  49. <td>{{ data.favorableRate }}</td>
  50. </tr>
  51. </tbody>
  52. <ng-template #footerTpl>
  53. <table class="footTable">
  54. <tr *ngFor="let data of listOfDataEnd">
  55. <td style="width: 10%">{{ data.name }}</td>
  56. <td style="width: 9%">{{ data.sum }}</td>
  57. <td style="width: 9%">{{ data.avgResponseTime }}</td>
  58. <td style="width: 9%">{{ data.avgResolvedTime }}</td>
  59. <td style="width: 9%">{{ data.resolvedOverNum }}</td>
  60. <td style="width: 9%">{{ data.overTimeNum }}</td>
  61. <td style="width: 9%">{{ data.consumablePrice }}</td>
  62. <td style="width: 9%">{{ data.workHourPrice }}</td>
  63. <td style="width: 9%">{{ data.totalPrice }}</td>
  64. <td style="width: 9%">{{ data.negativeNum }}</td>
  65. <td style="width: 9%">{{ data.favorableRate }}</td>
  66. </tr>
  67. </table>
  68. </ng-template>
  69. </nz-table>
  70. <div class="pagination">
  71. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  72. <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>
  73. </div>
  74. <!-- 详细搜索 -->
  75. <app-search-more [fieldConfig]="fieldConfig" *ngIf="showSearchMore" [hosId]="hosId" [queryType]="queryType" [dutyId]="dutyId" [parentDutyId]="parentDutyId" (cancelEvent)="cancelEvent()" (submitEvent)="submitEvent($event)"></app-search-more>