work-order-log.component.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='17' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <span class="label">备注</span>:
  7. <input nz-input class="formItem" placeholder="请输入备注" [(ngModel)]="searchDto.logRemarks" />
  8. </div>
  9. <div class="list-template__searchItem">
  10. <span class="label">操作类型</span>:
  11. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
  12. nzPlaceHolder="请选择操作类型" [(ngModel)]="searchDto.operation">
  13. <nz-option *ngFor="let option of operationList" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  14. </nz-select>
  15. </div>
  16. <div class="list-template__searchItem">
  17. <span class="label">操作时间</span>:
  18. <nz-range-picker [(ngModel)]="searchDto.dateRange"></nz-range-picker>
  19. </div>
  20. </div>
  21. <div nz-col nzXl='7' class="list-template__btns">
  22. <button nz-button class="btn default" (click)='search()'>搜索</button>
  23. </div>
  24. </div>
  25. <div class="list-template__bottom">
  26. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  27. [nzLoading]="loading1">
  28. <thead>
  29. <tr class="thead">
  30. <th nzWidth="10%">工单号</th>
  31. <th nzWidth="10%">申请科室</th>
  32. <th nzWidth="10%">操作类型</th>
  33. <th nzWidth="10%">操作人</th>
  34. <th nzWidth="10%">交接人</th>
  35. <th nzWidth="10%">操作时间</th>
  36. <th nzWidth="20%">备注</th>
  37. <th nzWidth="10%">图片</th>
  38. <th nzWidth="10%">操作</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <tr *ngFor="let data of listOfData;let index=index;">
  43. <td>{{ data.gdcode }}</td>
  44. <td>{{ data.createDept?.dept }}</td>
  45. <td>{{ data.operation?.name }}</td>
  46. <td>{{ data.username }}</td>
  47. <td>{{ data.handoverUserid?.name }}</td>
  48. <td>{{ data.operationTime }}</td>
  49. <td>{{ data.logRemarks }}</td>
  50. <td><button *ngIf="data.attachments" (click)="previewImageHandler(data.attachments)">查看图片</button><span *ngIf="!data.attachments">无</span></td>
  51. <td>
  52. <div class="coop">
  53. <span (click)="del(data)">查看</span>
  54. </div>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </nz-table>
  59. <div class="list-template__pagination">
  60. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
  61. (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
  62. </nz-pagination>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <app-image-viewer [imageUrl]="imgs" hidden *ngIf="isPreview" [isPreviewNow]="true"></app-image-viewer>