source-statistics.component.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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)="changeDeptInp($event)" nzAllowClear nzPlaceHolder="请选择科室" [(ngModel)]="deptId" (nzOpenChange)="openChangeDept($event)">
  7. <ng-container *ngFor="let option of deptList">
  8. <nz-option *ngIf="!isLoading" [nzLabel]="option.hospital.hosName + '-' + option.dept" [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="更多搜索" (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.userDTO || fieldConfig.fields.taskTypeDTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.statisticsTypeDTO">
  24. <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
  25. <span>{{fieldConfig.fields.userDTO?.name}}</span>
  26. <span>{{fieldConfig.fields.taskTypeDTO?.taskName}}</span>
  27. <span>{{fieldConfig.fields.buildingDTO?.buildingName}}</span>
  28. <span>{{fieldConfig.fields.statisticsTypeDTO?.name}}</span>
  29. </div>
  30. <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
  31. <thead (nzSortChange)="sort($event)" nzSingleSort>
  32. <tr>
  33. <th nzWidth="34%">来源名称</th>
  34. <th nzWidth="33%" nzShowSort nzSortKey="totalCount" [(nzSort)]="sortCurrent.totalCount">工单数量</th>
  35. <th nzWidth="33%" nzShowSort nzSortKey="percent" [(nzSort)]="sortCurrent.percent">占比</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <tr *ngFor="let data of listOfData">
  40. <td>{{ data.name }}</td>
  41. <td>{{ data.totalCount }}</td>
  42. <td>{{ data.percent }}</td>
  43. </tr>
  44. </tbody>
  45. <ng-template #footerTpl>
  46. <table class="footTable">
  47. <tr *ngFor="let data of listOfDataEnd">
  48. <td style="width: 34%">{{ data.name }}</td>
  49. <td style="width: 33%">{{ data.totalCount }}</td>
  50. <td style="width: 33%">{{ data.percent }}</td>
  51. </tr>
  52. </table>
  53. </ng-template>
  54. </nz-table>
  55. <div class="pagination">
  56. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  57. <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>
  58. </div>
  59. <!-- 详细搜索 -->
  60. <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>