specimen-package-list-modal.component.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <div class="modal display_flex justify-content_flex-center align-items_center">
  2. <div class="modalBody" style="width: 1200px;">
  3. <div class="title">科室内打包信息<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
  4. <div class="list-template w100">
  5. <div class="list-template__content">
  6. <div class="list-template__top" nz-row>
  7. <div nz-col nzXl='24' class="list-template__searchBox">
  8. <div class="list-template__searchItem">
  9. <span class="label">状态</span>:
  10. <nz-select class="formItem" nzAllowClear [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择状态" [(ngModel)]="searchCriteria.status" (ngModelChange)="selectStatus($event)">
  11. <nz-option *ngFor="let option of specimentPackageTypeList" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  12. </nz-select>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="content">
  19. <nz-table class="hospitalTable" [nzData]="packageList" nzSize="middle" [nzShowPagination]="false"
  20. [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
  21. <thead>
  22. <tr class="thead">
  23. <th nzWidth="13%">包号</th>
  24. <th nzWidth="6%">打包人</th>
  25. <th nzWidth="15%">打包时间</th>
  26. <th nzWidth="6%">标本数</th>
  27. <th nzWidth="6%">收取人</th>
  28. <th nzWidth="15%">收取时间</th>
  29. <th nzWidth="6%">送达人</th>
  30. <th nzWidth="15%">送达时间</th>
  31. <th nzWidth="8%">状态</th>
  32. <th nzWidth="10%">操作</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr *ngFor="let data of packageList;let i = index;">
  37. <td>{{ data.packCode }}</td>
  38. <td>{{ data.packUserDTO?.name }}</td>
  39. <td>{{ data.packTime | date: 'yyyy-MM-dd HH:mm'}}</td>
  40. <td>{{ data.specimenNum }}</td>
  41. <td>{{ data.receiveUserDTO?.name }}</td>
  42. <td>{{ data.receiveTime | date: 'yyyy-MM-dd HH:mm'}}</td>
  43. <td>{{ data.deliveryUserDTO?.name }}</td>
  44. <td>{{ data.deliveryTime | date: 'yyyy-MM-dd HH:mm'}}</td>
  45. <td>{{ data.status?.name }}</td>
  46. <td>
  47. <div class="coop">
  48. <span (click)="printPackageByConfig(data)" *ngIf="data.status.value !== '0'">补打</span>
  49. <span (click)="toSpecimenPackage(data)" *ngIf="data.status.value === '0' || data.status.value === '1'">修改</span>
  50. </div>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </nz-table>
  55. <div class="pagination">
  56. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  57. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="total"
  58. [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList()"
  59. (nzPageSizeChange)="getList()" [nzShowTotal]="totalTemplate">
  60. </nz-pagination>
  61. </div>
  62. </div>
  63. <div class="display_flex justify-content_flex-center bottom-btn">
  64. <button class="btn cancel know" nz-button nzType="default" (click)="hideModal()">取消</button>
  65. </div>
  66. </div>
  67. </div>
  68. <!-- 打印的内容 -->
  69. <div id="print-section-package" hidden>
  70. <!-- 80mm*80mm -->
  71. <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 75mm;height: 75mm;" *ngIf="configs.spePackageCodeSize == 1">
  72. <div style="display: flex;">
  73. <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
  74. <div style="flex: 1;">
  75. <div>包号:{{package.packCode}}</div>
  76. <div style="margin-top: 3mm;">打包人:{{package.packUserDTO?.name}}</div>
  77. <div style="margin-top: 3mm;">标本总数:{{package.specimenNum}}</div>
  78. </div>
  79. </div>
  80. <div style="margin-top: 3mm;">打包时间:{{package.packTime | date: 'yyyy-MM-dd HH:mm'}}</div>
  81. <div style="margin-top: 3mm;">打包科室:{{package.packDeptDTO?.dept}}</div>
  82. <div style="margin-top: 3mm;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">终点科室:{{package.targetDeptDTO?.dept}}</div>
  83. <div style="display: flex;flex-wrap: wrap;" *ngIf="configs.spePrintTubeType == 1">
  84. <div style="width: 33.33%;margin-top: 3mm;" *ngFor="let item of typeSpecimentList | slice:0:9">{{item.name}}:{{item.size}}</div>
  85. </div>
  86. </div>
  87. <!-- 70mm*50mm -->
  88. <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 65mm;height: 45mm;" *ngIf="configs.spePackageCodeSize == 2">
  89. <div style="display: flex;">
  90. <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
  91. <div style="flex: 1;">
  92. <div>包号:{{package.packCode}}</div>
  93. <div>{{package.packDeptDTO?.dept}}</div>
  94. <div>{{package.packTime | date: 'yyyy-MM-dd HH:mm'}}</div>
  95. <div>{{package.specimenNum}};{{package.packUserDTO?.name}}</div>
  96. </div>
  97. </div>
  98. <div style="display: flex;flex-wrap: wrap;" *ngIf="configs.spePrintTubeType == 1">
  99. <div *ngFor="let item of typeSpecimentList">{{item.name}}:{{item.size}}</div>
  100. </div>
  101. </div>
  102. </div>
  103. <button ngxPrint printSectionId="print-section-package" #printBtnPackage hidden [printStyle]="{ '@page': { margin: '0 !important' }, 'body': { margin: '0 !important' } }">打印</button>