order-source-statistics.component.html 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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"
  32. nzPlaceHolder="请选择时间" [(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>
  47. <tr class="thead">
  48. <th nzWidth="5%">序号</th>
  49. <th nzWidth="15%">时间</th>
  50. <th nzWidth="10%">工单总量</th>
  51. <th nzWidth="10%">标本数量</th>
  52. <th nzWidth="10%">标本轮巡数量</th>
  53. <th nzWidth="10%">患者陪检数量</th>
  54. <th nzWidth="10%">药品数量</th>
  55. <th nzWidth="10%">静配数量</th>
  56. <th nzWidth="10%">患者转运数量</th>
  57. <th nzWidth="10%">其他数量</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <tr *ngFor="let data of listOfData;let index=index;">
  62. <td>{{index+(pageIndex-1)*10+1}}</td>
  63. <td>{{ data.date }}</td>
  64. <td>{{ data.total||0}}</td>
  65. <td>{{data.speCount||0}}</td>
  66. <td>{{data.spePlanCount||0}}</td>
  67. <td>{{data.insCount||0}}</td>
  68. <td>{{data.drugsCount||0}}</td>
  69. <td>{{data.jpCount||0}}</td>
  70. <td>{{data.transCount||0}}</td>
  71. <td>{{data.otherCount||0}}</td>
  72. </tr>
  73. </tbody>
  74. </nz-table>
  75. <div class="list-template__pagination">
  76. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
  77. (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
  78. </nz-pagination>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- 操作成功/失败提示框 -->
  84. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  85. [info]="promptInfo"></app-prompt-modal>
  86. <!-- 查看详情 -->
  87. <router-outlet></router-outlet>