nucleic-acid-collection.component.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='15' class="list-template__searchBox"></div>
  5. <div nz-col nzXl="9" class="list-template__btns"></div>
  6. </div>
  7. <div class="list-template__bottom">
  8. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  9. [nzLoading]="loading1">
  10. <thead>
  11. <tr class="thead">
  12. <th nzWidth="4%">序号</th>
  13. <th nzWidth="10%">批次号</th>
  14. <th nzWidth="10%">楼栋名称</th>
  15. <th nzWidth="10%">创建时间</th>
  16. <th nzWidth="10%">工单总数</th>
  17. <th nzWidth="10%">状态</th>
  18. <th nzWidth="10%">闭环时间</th>
  19. <th nzWidth="10%">闭环人</th>
  20. <th nzWidth="10%">备注</th>
  21. <th nzWidth="16%">操作</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr *ngFor="let data of listOfData;let i = index">
  26. <td>{{ i + (pageIndex - 1) * pageSize + 1}}</td>
  27. <td>{{ data.batchNo || '无' }}</td>
  28. <td>{{ data.buildId?data.buildId.buildingName:'无' }}</td>
  29. <td>{{data.addTime?(data.addTime|date:'yyyy-MM-dd HH:mm'):'无'}}</td>
  30. <td>{{data.orderCount || '无'}}</td>
  31. <td>{{data.closedLoopState == 1?'已闭环':'未闭环'}}</td>
  32. <td>{{data.closedLoopTime?(data.closedLoopTime|date:'yyyy-MM-dd HH:mm'):'无'}}</td>
  33. <td>{{data.closedLoopUser ? data.closedLoopUser.name : '无'}}</td>
  34. <td>{{data.remark || '无'}}</td>
  35. <td>
  36. <div class="coop">
  37. <span *ngIf="data.pictureId" (click)="previewImageHandler(data)">查看图片</span>
  38. <button nz-button nzType="link" *ngIf="isShowNucleicAcidPrinting && data.closedLoopState === 0" (click)="supplementPrint(data)" [nzLoading]="data.isOkLoading">补打</button>
  39. </div>
  40. </td>
  41. </tr>
  42. </tbody>
  43. </nz-table>
  44. <div class="list-template__pagination">
  45. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize"
  46. (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
  47. </nz-pagination>
  48. </div>
  49. </div>
  50. </div>
  51. <app-image-viewer [imageUrl]="imgs" hidden *ngIf="isPreview" [isPreviewNow]="true"></app-image-viewer>
  52. </div>
  53. <!-- 打印的内容 -->
  54. <div id="print-section" hidden>
  55. <div *ngFor="let building of nucleicAcidList;let first = first;" [ngStyle]="{'page-break-before':first?'':'always'}" style="overflow: hidden;">
  56. <h1 style="text-align: center;position: relative;"><span style="position: absolute;left: 0;font-size:0.5em;top: 50%;transform: translateY(-50%);">{{printDate|date:'yyyy-MM-dd HH:mm'}}</span>{{building.buildName}}<img style="width: 50px;position: absolute;right: 50px;" [src]="mapQrcodes[building.buildId]"></h1>
  57. <div style="width: 50%;float: left;">
  58. <div style="display: flex;justify-content: center;text-align: center;font-weight: bold;">
  59. <span style="flex: 2; border: 1px solid #ccc;">科室名称</span>
  60. <span style="flex: 1; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;border-top: 1px solid #ccc;">数量</span>
  61. </div>
  62. </div>
  63. <div style="width: 50%;float: left;">
  64. <div style="display: flex;justify-content: center;text-align: center;font-weight: bold;">
  65. <span style="flex: 2; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;border-top: 1px solid #ccc;">科室名称</span>
  66. <span style="flex: 1; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;border-top: 1px solid #ccc;">数量</span>
  67. </div>
  68. </div>
  69. <div *ngFor="let item of building.deptData;let even = even;" style="width: 50%;float: left;">
  70. <div style="display: flex;justify-content: center;text-align: center;">
  71. <span style="flex: 2;word-break: break-all; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;" [ngStyle]="{'border-left':even?'1px solid #ccc':''}">{{item.deptName}}<span *ngIf="item.workOrderRemarks">+{{item.workOrderRemarks.slice(0,2)}}</span></span>
  72. <span style="flex: 1; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"></span>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <button ngxPrint printSectionId="print-section" #printBtn hidden>打印</button>