department-business-statistics.component.html 4.4 KB

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