distribution-department-source-statistics.component.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 || fieldConfig.fields.taskTypeDTO || fieldConfig.fields.statisticsTypeDTO">
  28. <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
  29. <span>{{fieldConfig.fields.userDTO?.name}}</span>
  30. <span>{{fieldConfig.fields.statisticsTypeDTO?.name}}</span>
  31. <span>{{fieldConfig.fields.taskTypeDTO?.taskName}}</span>
  32. </div>
  33. <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
  34. <thead (nzSortChange)="sort($event)" nzSingleSort>
  35. <tr>
  36. <th nzWidth="20%">科室(编码)</th>
  37. <th nzWidth="20%" nzShowSort nzSortKey="service" [(nzSort)]="sortCurrent.service">服务台建单数</th>
  38. <th nzWidth="20%" nzShowSort nzSortKey="nurse" [(nzSort)]="sortCurrent.nurse">护士端建单数</th>
  39. <th nzWidth="20%" nzShowSort nzSortKey="system" [(nzSort)]="sortCurrent.system">系统自动建单数</th>
  40. <th nzWidth="20%" nzShowSort nzSortKey="wechat" [(nzSort)]="sortCurrent.wechat">微信端建单数量</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr *ngFor="let data of listOfData">
  45. <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
  46. <td>{{ data.service }}</td>
  47. <td>{{ data.nurse }}</td>
  48. <td>{{ data.system }}</td>
  49. <td>{{ data.wechat }}</td>
  50. </tr>
  51. </tbody>
  52. <ng-template #footerTpl>
  53. <table class="footTable">
  54. <tr *ngFor="let data of listOfDataEnd">
  55. <td style="width: 20%">{{ data.code }}</td>
  56. <td style="width: 20%">{{ data.service }}</td>
  57. <td style="width: 20%">{{ data.nurse }}</td>
  58. <td style="width: 20%">{{ data.system }}</td>
  59. <td style="width: 20%">{{ data.wechat }}</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>