quilt-washing-search.component.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='16' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <span class="label">批次号:</span>
  7. <input nz-input class="formItem" placeholder="请输入批次号" [(ngModel)]="searchCriteria.batchCode" />
  8. </div>
  9. <div class="list-template__searchItem">
  10. <span class="label">关联科室:</span>
  11. <nz-select [nzDropdownMatchSelectWidth]="false" class="formItem" nzServerSearch nzShowSearch nzAllowClear
  12. nzPlaceHolder="请选择关联科室" [(ngModel)]="searchCriteria.relatedDept" (nzOnSearch)="changeInp($event)"
  13. (nzOpenChange)="changeSearch($event)">
  14. <ng-container *ngFor="let data of deptList">
  15. <nz-option *ngIf="!isLoading" nzLabel="{{data.dept}}" nzValue="{{data.id}}"></nz-option>
  16. </ng-container>
  17. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  18. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  19. </nz-option>
  20. </nz-select>
  21. </div>
  22. </div>
  23. <div nz-col nzXl="8" class="list-template__btns">
  24. <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
  25. <button nz-button class="btn default ml8" (click)='getList(1)'>搜索</button>
  26. </div>
  27. </div>
  28. <div class="list-template__bottom">
  29. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  30. [nzLoading]="loading1">
  31. <thead>
  32. <tr class="thead">
  33. <th nzWidth="6%">序号</th>
  34. <th nzWidth="8%">关联科室</th>
  35. <th nzWidth="8%">批次号</th>
  36. <th nzWidth="8%">被服类型</th>
  37. <th nzWidth="8%">回收数量</th>
  38. <th nzWidth="8%">送回数量</th>
  39. <th nzWidth="8%">是否异常</th>
  40. <th nzWidth="8%">回收人</th>
  41. <th nzWidth="11%">回收时间</th>
  42. <th nzWidth="8%">送回人</th>
  43. <th nzWidth="11%">送回时间</th>
  44. <th nzWidth="8%">状态</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <tr *ngFor="let data of listOfData;let i = index">
  49. <td>{{i+1}}</td>
  50. <td>{{ data.relatedDeptDTO?.dept }}</td>
  51. <td>{{ data.batchCode }}</td>
  52. <td>{{ data.clothesType?.name }}</td>
  53. <td>{{ data.recyclingNum }}</td>
  54. <td>{{ data.sendBackNum }}</td>
  55. <td>{{ data.exception == 1 ? '是' : '否' }}</td>
  56. <td>{{ data.recyclersIdDTO?.name }}</td>
  57. <td>{{ data.recyclingTime | date:'yyyy-MM-dd HH:mm' }}</td>
  58. <td>{{ data.sendBackIdDTO?.name }}</td>
  59. <td>{{ data.sendBackTime | date:'yyyy-MM-dd HH:mm' }}</td>
  60. <td>{{ data.clothesState?.name }}</td>
  61. </tr>
  62. </tbody>
  63. </nz-table>
  64. <div class="list-template__pagination">
  65. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize"
  66. (nzPageIndexChange)="getList(0)" (nzPageSizeChange)="getList(0)">
  67. </nz-pagination>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <!-- 操作成功/失败提示框 -->
  73. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  74. [info]="promptInfo">
  75. </app-prompt-modal>