department-source-statistics.component.html 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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" nzAllowClear nzPlaceHolder="请选择科室" [(ngModel)]="deptId" nzServerSearch nzShowSearch (nzOnSearch)="changeInp($event)">
  11. <ng-container *ngFor="let option of alldepart">
  12. <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [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" nz-tooltip nzTooltipTitle="更多搜索" (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.category1DTO || fieldConfig.fields.category2DTO || fieldConfig.fields.category3DTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.floorDTO || fieldConfig.fields.deptTypeDTO">
  28. <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
  29. <span>{{fieldConfig.fields.userDTO?.name}}</span>
  30. <span>{{fieldConfig.fields.category1DTO?.category}}</span>
  31. <span>{{fieldConfig.fields.category2DTO?.category}}</span>
  32. <span>{{fieldConfig.fields.category3DTO?.category}}</span>
  33. <span>{{fieldConfig.fields.buildingDTO?.buildingName}}</span>
  34. <span>{{fieldConfig.fields.floorDTO?.floorName}}</span>
  35. <span>{{fieldConfig.fields.deptTypeDTO?.name}}</span>
  36. </div>
  37. <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
  38. <thead (nzSortChange)="sort($event)" nzSingleSort>
  39. <tr>
  40. <th nzWidth="10%" *ngIf="parent==1" nzShowSort nzSortKey="parentOrders" [(nzSort)]="sortCurrent.parentOrders">父级科室(编码)</th>
  41. <th nzWidth="20%" nzShowSort nzSortKey="orders" [(nzSort)]="sortCurrent.orders">科室名称(编码)</th>
  42. <th nzWidth="16%" nzShowSort nzSortKey="sum" [(nzSort)]="sortCurrent.sum">工单总数</th>
  43. <th nzWidth="16%" nzShowSort nzSortKey="phoneCount" [(nzSort)]="sortCurrent.phoneCount">电话报修数</th>
  44. <th nzWidth="16%" nzShowSort nzSortKey="wechatCount" [(nzSort)]="sortCurrent.wechatCount">微信报修数</th>
  45. <th nzWidth="16%" nzShowSort nzSortKey="webCount" [(nzSort)]="sortCurrent.webCount">web报修数</th>
  46. <th nzWidth="16%" nzShowSort nzSortKey="otherCount" [(nzSort)]="sortCurrent.otherCount">其他</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr *ngFor="let data of listOfData">
  51. <td *ngIf="parent==1">{{ data.parentName || '无' }}<ng-container *ngIf="parent==1 && data.parentName">({{ data.parentCode }})</ng-container></td>
  52. <td>{{ data.deptName }}<ng-container *ngIf="data.deptCode">({{ data.deptCode }})</ng-container></td>
  53. <td>{{ data.sum }}</td>
  54. <td>{{ data.phoneCount }}</td>
  55. <td>{{ data.wechatCount }}</td>
  56. <td>{{ data.webCount }}</td>
  57. <td>{{ data.otherCount }}</td>
  58. </tr>
  59. </tbody>
  60. <ng-template #footerTpl>
  61. <table class="footTable">
  62. <tr *ngFor="let data of listOfDataEnd">
  63. <td style="width: 10%" *ngIf="parent==1">{{ data.parentCode }}</td>
  64. <td style="width: 20%" *ngIf="parent==0">{{ data.deptCode }}</td>
  65. <td style="width: 20%" *ngIf="parent==1"></td>
  66. <td style="width: 16%">{{ data.sum }}</td>
  67. <td style="width: 16%">{{ data.phoneCount }}</td>
  68. <td style="width: 16%">{{ data.wechatCount }}</td>
  69. <td style="width: 16%">{{ data.webCount }}</td>
  70. <td style="width: 16%">{{ data.otherCount }}</td>
  71. </tr>
  72. </table>
  73. </ng-template>
  74. </nz-table>
  75. <div class="pagination">
  76. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  77. <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>
  78. </div>
  79. <!-- 详细搜索 -->
  80. <app-search-more [fieldConfig]="fieldConfig" *ngIf="showSearchMore" [hosId]="hosId" [queryType]="queryType" [dutyId]="dutyId" [parentDutyId]="parentDutyId" (cancelEvent)="cancelEvent()" (submitEvent)="submitEvent($event)"></app-search-more>