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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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="14%">打包时间</th>
  26. <th nzWidth="6%">标本数</th>
  27. <th nzWidth="6%">收取人</th>
  28. <th nzWidth="14%">收取时间</th>
  29. <th nzWidth="6%">送达人</th>
  30. <th nzWidth="14%">送达时间</th>
  31. <th nzWidth="6%">状态</th>
  32. <th nzWidth="15%">操作</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr *ngFor="let data of packageList;let i = index;">
  37. <td class="underline" (click)="viewSpe(data)">{{ 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. <span (click)="showDelModal(data, '您确认要删除吗?', '删除', 'del')" *ngIf="data.status.value === '0' || data.status.value === '1'">删除</span>
  51. </div>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </nz-table>
  56. <div class="pagination">
  57. <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
  58. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="total"
  59. [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList()"
  60. (nzPageSizeChange)="getList()" [nzShowTotal]="totalTemplate">
  61. </nz-pagination>
  62. </div>
  63. </div>
  64. <div class="display_flex justify-content_flex-center bottom-btn">
  65. <button class="btn cancel know" nz-button nzType="default" (click)="hideModal()">取消</button>
  66. </div>
  67. </div>
  68. </div>
  69. <!-- 模态框 -->
  70. <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
  71. (confirmDelEvent)="confirmDel()" [content]="tipsMsg1"></app-dialog-delete>
  72. <!-- 操作成功/失败提示框 -->
  73. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  74. [info]="promptInfo">
  75. </app-prompt-modal>
  76. <!-- 打印的内容 -->
  77. <div id="print-section-package" hidden>
  78. <!-- 80mm*80mm -->
  79. <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 75mm;height: 75mm;" *ngIf="configs.spePackageCodeSize == 1">
  80. <div style="display: flex;">
  81. <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
  82. <div style="flex: 1;">
  83. <div>包号:{{package.packCode}}</div>
  84. <div style="margin-top: 3mm;">打包人:{{package.packUserDTO?.name}}</div>
  85. <div style="margin-top: 3mm;">标本总数:{{package.specimenNum}}</div>
  86. </div>
  87. </div>
  88. <div style="margin-top: 3mm;">打包时间:{{package.packTime | date: 'yyyy-MM-dd HH:mm'}}</div>
  89. <div style="margin-top: 3mm;">打包科室:{{package.packDeptDTO?.dept}}</div>
  90. <div style="margin-top: 3mm;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">终点科室:{{package.targetDeptDTO?.dept}}</div>
  91. <div style="display: flex;flex-wrap: wrap;" *ngIf="configs.spePrintTubeType == 1">
  92. <div style="width: 33.33%;margin-top: 3mm;" *ngFor="let item of typeSpecimentList | slice:0:9">{{item.name}}:{{item.size}}</div>
  93. </div>
  94. </div>
  95. <!-- 70mm*50mm -->
  96. <div style="overflow: hidden;padding: 2mm;font-size: 4mm;width: 65mm;height: 45mm;" *ngIf="configs.spePackageCodeSize == 2">
  97. <div style="display: flex;">
  98. <img [src]="base64" style="width: 23mm;height: 23mm;margin-right: 3mm;">
  99. <div style="flex: 1;">
  100. <div>包号:{{package.packCode}}</div>
  101. <div>{{package.packDeptDTO?.dept}}</div>
  102. <div>{{package.packTime | date: 'yyyy-MM-dd HH:mm'}}</div>
  103. <div>{{package.specimenNum}};{{package.packUserDTO?.name}}</div>
  104. </div>
  105. </div>
  106. <div style="display: flex;flex-wrap: wrap;" *ngIf="configs.spePrintTubeType == 1">
  107. <div *ngFor="let item of typeSpecimentList">{{item.name}}:{{item.size}}</div>
  108. </div>
  109. </div>
  110. </div>
  111. <!-- 查看标本 -->
  112. <app-view-specimen *ngIf="showModal" [speId]="speId" (closeModelHs)="closeModel($event)"></app-view-specimen>
  113. <button ngxPrint printSectionId="print-section-package" #printBtnPackage hidden [printStyle]="{ '@page': { margin: '0 !important' }, 'body': { margin: '0 !important' } }">打印</button>