user-business-statistics.component.html 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <div class="searchDataWrap">
  2. <div class="searchData">
  3. <app-custom-change-date #customChangeDate [isShowType]="false"></app-custom-change-date>
  4. <div class="searchDataItem">
  5. <span class="label">人员</span>:
  6. <nz-select class="selectItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeUserInp($event)" nzAllowClear nzPlaceHolder="请选择人员" [(ngModel)]="userId" (nzOpenChange)="openChangeUser($event)">
  7. <ng-container *ngFor="let option of userList">
  8. <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  9. </ng-container>
  10. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  11. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  12. </nz-option>
  13. </nz-select>
  14. </div>
  15. </div>
  16. <div class="operation">
  17. <i class="icon_transport transport-gengduo" nz-tooltip nzTooltipTitle="更多搜索" accesskey=""(click)="showMore()"></i>
  18. <button nz-button class="btn default" (click)="search()">查询</button>
  19. <button nz-button class="btn default ml8" (click)="reset()">重置</button>
  20. <button nz-button class="btn default ml8" (click)="excelExport()" [nzLoading]="excelExportLoading">导出</button>
  21. </div>
  22. </div>
  23. <div class="moreFilter" *ngIf="fieldConfig.fields.groupDTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.deptDTO">
  24. <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
  25. <span>{{fieldConfig.fields.buildingDTO?.buildingName}}</span>
  26. <span>{{fieldConfig.fields.deptDTO?.dept}}</span>
  27. </div>
  28. <div class="tableWrap">
  29. <nz-table class="table" [ngStyle]="{ width: widthConfig.length * 100 + 150 * 1 + 20 + 'px' }" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl" [nzWidthConfig]="widthConfig" nzBordered>
  30. <thead (nzSortChange)="sort($event)" nzSingleSort>
  31. <tr>
  32. <th rowspan="2">人员(编码)</th>
  33. <th rowspan="2" nzShowSort nzSortKey="totalCount" [(nzSort)]="sortCurrent.totalCount">工单数量</th>
  34. <th rowspan="2" nzShowSort nzSortKey="totalGrade" [(nzSort)]="sortCurrent.totalGrade">积分总和</th>
  35. <th rowspan="2" nzShowSort nzSortKey="totalPrice" [(nzSort)]="sortCurrent.totalPrice">总费用</th>
  36. <th colspan="3" *ngFor="let dictionary of dictionaryList">{{dictionary.name}}</th>
  37. </tr>
  38. <tr>
  39. <ng-container *ngFor="let dictionary of dictionaryList">
  40. <th nzShowSort [nzSortKey]="dictionary.value + 'Count'" [(nzSort)]="sortCurrent[dictionary.value + 'Count']">工单量</th>
  41. <th nzShowSort [nzSortKey]="dictionary.value + 'Grade'" [(nzSort)]="sortCurrent[dictionary.value + 'Grade']">积分数</th>
  42. <th nzShowSort [nzSortKey]="dictionary.value + 'Score'" [(nzSort)]="sortCurrent[dictionary.value + 'Score']">费用(元)</th>
  43. </ng-container>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <tr *ngFor="let data of listOfData">
  48. <td class="width150">{{ data.name }}</td>
  49. <td>{{ data.totalCount }}</td>
  50. <td>{{ data.totalGrade }}</td>
  51. <td>{{ data.totalPrice }}</td>
  52. <ng-container *ngFor="let dictionary of dictionaryList">
  53. <td>{{ data[dictionary.value + 'Count'] }}</td>
  54. <td>{{ data[dictionary.value + 'Grade'] }}</td>
  55. <td>{{ data[dictionary.value + 'Score'] }}</td>
  56. </ng-container>
  57. </tr>
  58. </tbody>
  59. <ng-template #footerTpl>
  60. <table class="footTable">
  61. <tr *ngFor="let data of listOfDataEnd">
  62. <td class="width150">{{ data.name }}</td>
  63. <td>{{ data.totalCount }}</td>
  64. <td>{{ data.totalGrade }}</td>
  65. <td>{{ data.totalPrice }}</td>
  66. <ng-container *ngFor="let dictionary of dictionaryList">
  67. <td>{{ data[dictionary.value + 'Count'] }}</td>
  68. <td>{{ data[dictionary.value + 'Grade'] }}</td>
  69. <td>{{ data[dictionary.value + 'Score'] }}</td>
  70. </ng-container>
  71. </tr>
  72. </table>
  73. </ng-template>
  74. </nz-table>
  75. </div>
  76. <div class="pagination">
  77. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  78. <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>
  79. </div>
  80. <!-- 详细搜索 -->
  81. <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>