detail-drug.component.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!-- 药品/静配 -->
  2. <div class="detail" *ngIf="!maskFlag">
  3. <div class="title">工单信息<i class="icon_transport transport-guanbi" (click)="close()"></i></div>
  4. <overlay-scrollbars #osComponentRef1 style="height: 90%; flex: 1">
  5. <div class="content">
  6. <div class="top" *ngIf="amplificationShow">
  7. <div class="num">
  8. <span class="left">单号:{{orderInfo.gdcode}}</span>
  9. <span class="right">{{orderInfo.gdState?orderInfo.gdState.name:''}}</span>
  10. </div>
  11. <div class="info" nz-row>
  12. <div nz-col nzSpan="8">工单日期:{{orderInfo.startTime}}</div>
  13. <div nz-col nzSpan="8">总耗时:{{orderInfo.showTimeNum}}</div>
  14. <div nz-col nzSpan="8">申请类型:{{orderInfo.taskType?orderInfo.taskType.taskName:''}}<ng-container *ngIf="orderInfo.goodsRemark">-{{orderInfo.goodsRemark}}</ng-container></div>
  15. <div nz-col nzSpan="8">
  16. 申请科室:{{orderInfo.createDeptDTO?(!showCoop&&deptDisplay==2?orderInfo.createDeptDTO.deptalias:orderInfo.createDeptDTO.dept):'-'}}
  17. </div>
  18. <div nz-col nzSpan="8">
  19. 目标科室:{{(orderInfo.endDepts&&orderInfo.endDepts[0])?(!showCoop&&deptDisplay==2?orderInfo.endDepts[0].deptalias:orderInfo.endDepts[0].dept):''}}
  20. </div>
  21. <div nz-col nzSpan="8" *ngIf="orderInfo.worker">支助人员信息:{{orderInfo.worker.name}}</div>
  22. <div nz-col nzSpan="8" *ngIf="orderInfo.drugs">药包编码:{{orderInfo.drugs.packid}}</div>
  23. <div nz-col nzSpan="8" *ngIf="orderInfo.staticDistri">药包编码:{{orderInfo.staticDistri.packid}}</div>
  24. <div nz-col nzSpan="24" *ngIf="orderInfo.specialCloseReason">
  25. 特殊情况关闭原因:{{orderInfo.specialCloseReason}}
  26. </div>
  27. </div>
  28. </div>
  29. <div class="center" *ngIf="amplificationShow">
  30. <div class="box">
  31. <div class="steps" *ngFor="let step of logList">
  32. <div class="step">
  33. <div class="info">
  34. <i
  35. [ngClass]="{'icon_transport':true, 'transport-icon_liucheng':true,'green':(step.record&&step.record[0]&&step.record[0].operationTime)}"></i>
  36. <p>{{step.operationName}}</p>
  37. <p>{{step.record.length>=1?(step.record[0].operationTime|date:'MM-dd HH:mm'):''}}</p>
  38. <p *ngIf="step.record&&step.record.length&&step.record[0].dept"><span
  39. *ngFor="let dept of step.record">{{!showCoop&&deptDisplay==2?dept.deptalias:dept.dept}},</span></p>
  40. <p *ngIf="step.record&&step.record.length">{{filterTime(step.record)?'耗时'+filterTime(step.record):''}}</p>
  41. </div>
  42. <div class="line"></div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="bottom">
  48. <div class="urgent">
  49. <div>
  50. <ng-container *ngIf="amplificationShow&&orderInfo.urgentDetails&&showCoop">
  51. 加急原因:{{orderInfo.urgentDetails.urgentReason}}
  52. <button *ngIf="orderInfo.urgentDetails.checkStatus.id==329" class=" btn default" nz-button nzType="primary"
  53. [nzLoading]="urgentLoading" nzGhost (click)="urgent()">确认加急</button>
  54. </ng-container>
  55. </div>
  56. <div class="amplification">
  57. <button
  58. nz-button
  59. nzType="primary"
  60. class="btn default"
  61. (click)="amplification()"
  62. >
  63. {{ amplificationShow ? "放大" : "还原" }}
  64. </button>
  65. </div>
  66. </div>
  67. <div class="table">
  68. <nz-table *ngIf="orderInfo.staticDistri" class="detailDrugTable"
  69. [nzData]="orderInfo.staticDistri.jpdetailsFormat" nzSize="small" [nzScroll]="{ y: '110px' }"
  70. [nzShowPagination]="null">
  71. <thead>
  72. <tr class="thead">
  73. <th nzWidth="100px">患者信息</th>
  74. <th nzWidth="200px">药品</th>
  75. <th nzWidth="50px">数量</th>
  76. <th nzWidth="100px">患者信息</th>
  77. <th nzWidth="200px">药品</th>
  78. <th nzWidth="50px">数量</th>
  79. </tr>
  80. </thead>
  81. <tbody *ngIf="orderInfo.staticDistri">
  82. <tr *ngFor="let data of orderInfo.staticDistri.jpdetailsFormat">
  83. <td>{{data[0].bedNum}}床:{{data[0].patientInfo}}</td>
  84. <td>{{data[0].jpInfo}}</td>
  85. <td>{{data[0].jpNum}}</td>
  86. <td>{{data[1]?data[1].bedNum+"床:"+data[1].patientInfo:''}}</td>
  87. <td>{{data[1]?data[1].jpInfo:''}}</td>
  88. <td>{{data[1]?data[1].jpNum:''}}</td>
  89. </tr>
  90. </tbody>
  91. </nz-table>
  92. <nz-table *ngIf="orderInfo.drugs" class="detailDrugTable" [nzData]="orderInfo.drugs.drugsFormat" nzSize="small"
  93. [nzScroll]="{ y: '110px' }" [nzShowPagination]="null">
  94. <thead>
  95. <tr class="thead">
  96. <th nzWidth="100px">患者信息</th>
  97. <th nzWidth="200px">药品</th>
  98. <th nzWidth="50px">数量</th>
  99. <th nzWidth="100px">患者信息</th>
  100. <th nzWidth="200px">药品</th>
  101. <th nzWidth="50px">数量</th>
  102. </tr>
  103. </thead>
  104. <tbody *ngIf="orderInfo.drugs">
  105. <tr *ngFor="let data of orderInfo.drugs.drugsFormat">
  106. <td>{{data[0].bedNum}}床:{{data[0].patientInfo}}</td>
  107. <td>{{data[0].drugsInfo}}</td>
  108. <td>{{data[0].drugsNum}}</td>
  109. <td>{{data[1]?data[1].bedNum+"床:"+data[1].patientInfo:''}}</td>
  110. <td>{{data[1]?data[1].drugsInfo:''}}</td>
  111. <td>{{data[1]?data[1].drugsNum:''}}</td>
  112. </tr>
  113. </tbody>
  114. </nz-table>
  115. </div>
  116. </div>
  117. </div>
  118. </overlay-scrollbars>
  119. <div class="btns display_flex justify-content_flex-center">
  120. <!-- <button *ngIf="showCoop&&orderInfo.gdState.id==69" nz-button nzType="primary" (click)='allotWorker()'>派单</button>
  121. <button *ngIf="showCoop&&(orderInfo.gdState.id==70||orderInfo.gdState.id==71)" nz-button nzType="primary" nzGhost
  122. (click)="openRecallModal()">撤回</button>
  123. <button *ngIf="showCoop&&(orderInfo.gdState.id==69||orderInfo.gdState.id==70||orderInfo.gdState.id==71)" nz-button
  124. nzType="danger" (click)="openDelModal()">删除</button> -->
  125. <button class=" btn cancel" nz-button nzType="default" (click)="close()">取消</button>
  126. </div>
  127. </div>
  128. <!-- 撤回工单 -->
  129. <div class="recallOrder" *ngIf="recallOrderShow">
  130. <div class="modalBody">
  131. <div class="title">提示<i class="icon_transport transport-guanbi" (click)="closeRecallOrderModal()"></i></div>
  132. <div class="content">
  133. <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
  134. <div class="defeat">您确认要撤回此工单吗?</div>
  135. </div>
  136. <div class="btns display_flex justify-content_flex-center">
  137. <button nz-button nzType="primary" [nzLoading]="btnLoading" (click)="confirmRec()">确认</button>
  138. <button nz-button nzType="primary" [nzLoading]="recLoading" nzGhost (click)="recAndDel()">撤回并删除</button>
  139. <button class=" btn cancel" nz-button nzType="default" (click)="closeRecallOrderModal()">取消</button>
  140. </div>
  141. </div>
  142. </div>
  143. <!-- 删除工单 -->
  144. <div class="recallOrder delModel" *ngIf="delOrderShow">
  145. <div class="modalBody">
  146. <div class="title">提示<i class="icon_transport transport-guanbi" (click)="closeDelOrderModal()"></i></div>
  147. <div class="content">
  148. <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
  149. <div class="defeat">您确认要删除此工单吗?</div>
  150. </div>
  151. <div class="btns display_flex justify-content_flex-center">
  152. <button nz-button nzType="primary" [nzLoading]='btnLoading' (click)="confirmDel()">确认</button>
  153. <!-- <button class="candelBtn btn" nz-button nzType="primary" nzGhost>撤回并删除</button> -->
  154. <button class=" btn cancel" nz-button nzType="default" (click)="closeDelOrderModal()">取消</button>
  155. </div>
  156. </div>
  157. </div>
  158. <!-- 操作成功/失败提示框 -->
  159. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  160. [info]="promptInfo" (closeModel)="close()">
  161. <!-- 2.父组件调用子组件时绑定到这个事件属性,并在事件发生时作出回应。(closeModel)="close()" -->
  162. </app-prompt-modal>
  163. <!-- 遮罩 -->
  164. <app-mask *ngIf="maskFlag"></app-mask>