quilt-washing-hospital-statistics.component.html 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='18' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <nz-radio-group [(ngModel)]="dateType" (ngModelChange)="changeDateType($event)">
  7. <label *ngFor="let data of dateTypes" nz-radio-button [nzValue]="data.value">{{data.label}}</label>
  8. </nz-radio-group>
  9. </div>
  10. <div class="list-template__searchItem">
  11. <span class="label">发起时间</span>:
  12. <nz-range-picker *ngIf="dateType=='day'" [(ngModel)]="dateRange" [nzAllowClear]='false'
  13. [nzDisabledDate]="disabledDate" (ngModelChange)="changeDate($event)">
  14. </nz-range-picker>
  15. <nz-month-picker *ngIf="dateType=='month'" [(ngModel)]="monthRangeStart" [nzDisabledDate]="disabledMonthStart"
  16. (ngModelChange)="changeMonthStart($event)" nzPlaceHolder="请选择开始月份">
  17. </nz-month-picker>
  18. <span *ngIf="dateType=='month'"> ~ </span>
  19. <nz-month-picker *ngIf="dateType=='month'" [(ngModel)]="monthRangeEnd" [nzDisabledDate]="disabledMonthEnd"
  20. (ngModelChange)="changeMonthEnd($event)" nzPlaceHolder="请选择截止月份">
  21. </nz-month-picker>
  22. <nz-year-picker *ngIf="dateType=='year'" [(ngModel)]="yearRangeStart" [nzDisabledDate]="disabledYearStart"
  23. (ngModelChange)="changeYearStart($event)" nzPlaceHolder="请选择开始年份">
  24. </nz-year-picker>
  25. <span *ngIf="dateType=='year'"> ~ </span>
  26. <nz-year-picker *ngIf="dateType=='year'" [(ngModel)]="yearRangeEnd" (ngModelChange)="changeYearEnd($event)"
  27. [nzDisabledDate]="disabledYearEnd" nzPlaceHolder="请选择截止年份">
  28. </nz-year-picker>
  29. </div>
  30. <div class="list-template__searchItem ml8">
  31. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择时间"
  32. [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
  33. <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
  34. </nz-select>
  35. </div>
  36. </div>
  37. <div nz-col nzXl='6' class="list-template__btns">
  38. <button nz-button class="btn default" (click)='search(1)'>搜索</button>
  39. <button nz-button class="btn default ml8" (click)='export()' [nzLoading]="loading2">导出</button>
  40. <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
  41. </div>
  42. </div>
  43. <div class="list-template__bottom">
  44. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  45. [nzLoading]="loading1">
  46. <thead (nzSortChange)="sort($event)" nzSingleSort>
  47. <tr class="thead">
  48. <th nzWidth="5%">序号</th>
  49. <th nzWidth="11%">日期</th>
  50. <th nzShowSort nzWidth="14%" nzSortKey="deptNum" [(nzSort)]="sortCurrent.deptNum">送回科室数</th>
  51. <th nzShowSort nzWidth="14%" nzSortKey="clothesTypeNum" [(nzSort)]="sortCurrent.clothesTypeNum">送回被服种类数</th>
  52. <th nzShowSort nzWidth="14%" nzSortKey="getOrder" [(nzSort)]="sortCurrent.getOrder">回收工单数</th>
  53. <th nzShowSort nzWidth="14%" nzSortKey="sendOrder" [(nzSort)]="sortCurrent.sendOrder">送回工单数</th>
  54. <th nzShowSort nzWidth="14%" nzSortKey="sendClothesNum" [(nzSort)]="sortCurrent.sendClothesNum">洗涤数量</th>
  55. <th nzShowSort nzWidth="14%" nzSortKey="price" [(nzSort)]="sortCurrent.price">费用(元)</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <tr *ngFor="let data of listOfData;let index=index;">
  60. <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
  61. <td (click)="toDetail($event, data)" class="clickable">{{ data.date }}</td>
  62. <td>{{ data.deptNum }}</td>
  63. <td>{{ data.clothesTypeNum }}</td>
  64. <td>{{ data.getOrder }}</td>
  65. <td>{{ data.sendOrder }}</td>
  66. <td>{{ data.sendClothesNum }}</td>
  67. <td>{{ data.price }}</td>
  68. </tr>
  69. </tbody>
  70. </nz-table>
  71. <div class="list-template__pagination">
  72. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
  73. (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)"
  74. (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)">
  75. </nz-pagination>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <!-- 操作成功/失败提示框 -->
  81. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  82. [info]="promptInfo"></app-prompt-modal>
  83. <!-- 查看详情 -->
  84. <router-outlet></router-outlet>