quilt-washing-personnel-statistics.component.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 class="list-template__searchItem">
  37. <span class="label">人员名称</span>:
  38. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
  39. (nzOnSearch)="changeInp($event)" nzAllowClear nzPlaceHolder="请选择人员名称" [(ngModel)]="searchDto.user">
  40. <ng-container *ngFor="let option of userList">
  41. <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  42. </ng-container>
  43. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  44. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  45. </nz-option>
  46. </nz-select>
  47. </div>
  48. <div class="list-template__searchItem">
  49. <span class="label">人员分组</span>:
  50. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择人员分组" [(ngModel)]="searchDto.group">
  51. <nz-option [nzLabel]="data.groupName" [nzValue]="data.id" *ngFor="let data of groupList"></nz-option>
  52. </nz-select>
  53. </div>
  54. </div>
  55. <div nz-col nzXl='6' class="list-template__btns">
  56. <button nz-button class="btn default" (click)='search(1)'>搜索</button>
  57. <button nz-button class="btn default ml8" (click)='export()' [nzLoading]="loading2">导出</button>
  58. <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
  59. </div>
  60. </div>
  61. <div class="list-template__bottom">
  62. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  63. [nzLoading]="loading1">
  64. <thead (nzSortChange)="sort($event)" nzSingleSort>
  65. <tr class="thead">
  66. <th nzWidth="5%">序号</th>
  67. <th nzWidth="5%">人员姓名</th>
  68. <th nzShowSort nzWidth="10%" nzSortKey="totalTrip" [(nzSort)]="sortCurrent.totalTrip">总趟数</th>
  69. <th nzShowSort nzWidth="10%" nzSortKey="totalOrder" [(nzSort)]="sortCurrent.totalOrder">总单数</th>
  70. <th nzShowSort nzWidth="10%" nzSortKey="getTrip" [(nzSort)]="sortCurrent.getTrip">回收趟数</th>
  71. <th nzShowSort nzWidth="10%" nzSortKey="getOrder" [(nzSort)]="sortCurrent.getOrder">回收工单数</th>
  72. <th nzShowSort nzWidth="10%" nzSortKey="getClothesNum" [(nzSort)]="sortCurrent.getClothesNum">回收被服数量</th>
  73. <th nzShowSort nzWidth="10%" nzSortKey="sendTrip" [(nzSort)]="sortCurrent.sendTrip">送回趟数</th>
  74. <th nzShowSort nzWidth="10%" nzSortKey="sendOrder" [(nzSort)]="sortCurrent.sendOrder">送回工单数</th>
  75. <th nzShowSort nzWidth="10%" nzSortKey="sendClothesNum" [(nzSort)]="sortCurrent.sendClothesNum">送回被服数量</th>
  76. <th nzShowSort nzWidth="10%" nzSortKey="price" [(nzSort)]="sortCurrent.price">费用(元)</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <tr *ngFor="let data of listOfData;let index=index;">
  81. <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
  82. <td>{{ data.userName }}</td>
  83. <td>{{ data.totalTrip }}</td>
  84. <td>{{ data.totalOrder }}</td>
  85. <td>{{ data.getTrip }}</td>
  86. <td>{{ data.getOrder }}</td>
  87. <td>{{ data.getClothesNum }}</td>
  88. <td>{{ data.sendTrip }}</td>
  89. <td>{{ data.sendOrder }}</td>
  90. <td>{{ data.sendClothesNum }}</td>
  91. <td>{{ data.price }}</td>
  92. </tr>
  93. </tbody>
  94. </nz-table>
  95. <div class="list-template__pagination">
  96. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
  97. (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)"
  98. (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)">
  99. </nz-pagination>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <!-- 操作成功/失败提示框 -->
  105. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  106. [info]="promptInfo"></app-prompt-modal>
  107. <!-- 查看详情 -->
  108. <router-outlet></router-outlet>