<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
  <div class="modalBody" style="width: 1200px;">
    <div class="title" *ngIf="(type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal');else elseTpl">药品详情<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
    <ng-template #elseTpl>
      <div class="title">业务数据查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
    </ng-template>
    <div class="drugsBag" *ngIf="type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal'">
      <div>单号：{{drugsBag.packid}}</div>
      <div>申请科室：{{drugsBag.target ? drugsBag.target.dept : ''}}</div>
      <div>发药科室：{{drugsBag.launch ? drugsBag.launch.dept : ''}}</div>
      <div>打印时间：{{drugsBag.creatTime}}</div>
    </div>
    <div class="content">
      <ng-container *ngIf="configs.showDrugsBagDetails === 1 && (type === 'drugsJpbag' || type === 'drugsWestern' || type === 'drugsReturn' || type === 'drugsPoison' || type === 'drugsHerbal')">
        <!-- 新药品 -->
        <nz-table class="hospitalTable" [nzData]="drugsBugSingleList" nzSize="middle" [nzShowPagination]="false"
          [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
          <thead>
            <tr class="thead">
              <th nzWidth="5%">序号</th>
              <th nzWidth="65%">药品名称+规格</th>
              <th nzWidth="10%">数量</th>
							<th nzWidth="20%" *ngIf="configs.showPatientInfo==1">患者信息</th>
            </tr>
          </thead>
          <tbody>
            <tr *ngFor="let data of drugsBugSingleList;let i = index;">
              <td>{{i+1}}</td>
              <td>{{ data.drugsInfo }} {{ data.model }}</td>
              <td>{{ data.drugsNum }}</td>
							<td nz-tooltip [nzTooltipTitle]="data.patientNames" *ngIf="configs.showPatientInfo==1">
								{{ data.patientNames }}
							</td>
            </tr>
          </tbody>
        </nz-table>
      </ng-container>

      <div class="pagination" *ngIf="type !== 'drugsJpbag' && type !== 'drugsWestern' && type !== 'drugsReturn' && type !== 'drugsPoison' && type !== 'drugsHerbal'">
        <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
        <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="total"
          [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList()"
          (nzPageSizeChange)="getList()" [nzShowTotal]="totalTemplate">
        </nz-pagination>
      </div>
    </div>
    <div class="display_flex justify-content_flex-center">
      <button class="btn know" nz-button nzType="primary" (click)="hideModal()">知道了</button>
    </div>
  </div>
</div>
