<div class="pathology-box display_flex align-items_center justify-content_flex-center">
	<div class="pathology-content">
		<div class="title">病理申请单<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
		</div>
		<div class="content" *ngIf="!isSpinning">
			<form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
				<div class="content-item boder-right">
					<nz-form-item class="form-title-box">
						<div class="form-title" *ngIf="detailsData.pathologyFormType==null">申请单类型：无</div>
						<div class="form-title" *ngIf="detailsData.pathologyFormType==1">申请单类型：术中快速病理检查申请单</div>
						<div class="form-title" *ngIf="detailsData.pathologyFormType==0">申请单类型：病理检查申请单</div>
						<div class="form-title" *ngIf="detailsData.pathologyFormType==2">申请单类型：病理细胞学申请单</div>
						<div class="form-title"><span class="font-weight-500">状态：</span>{{detailsData.status?detailsData.status.name:'-'}}</div>
					</nz-form-item>
					<nz-form-item class="form-title-box">
						<div class="form-title"><span class="font-weight-500">申请单号：</span>{{detailsData.applyCode}}</div>
						<div class="form-title over-class"><span class="font-weight-500">申请科室：</span>{{detailsData.patientDTO.department.dept}}</div>
					</nz-form-item>
					<nz-form-item class="form-title-box">
						<div class="form-title">手术间：{{detailsData.surgeryDeptDTO.dept}}</div>
						<div class="form-title">取材医生：{{detailsData.surgeryDoctorDTO?detailsData.surgeryDoctorDTO.name : '-'}}</div>
					</nz-form-item>
					<nz-form-item class="form-title-box">
						<div class="form-title"><span class="font-weight-500">患者信息：</span>{{detailsData.patientDTO.patientName}} ({{detailsData.patientDTO.bedNum}}床)</div>
						<div class="form-title"><span class="font-weight-500">年龄：</span>{{detailsData.patientDTO.age||'-'}}</div>
						<div class="form-title"><span class="font-weight-500">性别：</span>{{detailsData.patientDTO.gender?detailsData.patientDTO.gender.name:'-'}}</div>
						<div class="form-title"><span class="font-weight-500">住院号：</span>{{detailsData.patientDTO.patientCode}}</div>
					</nz-form-item>
					<div class="tabs">
						<div class="tabs-item">
							<div class="tabs-item-item" [ngClass]="{'activeClass': activeIndex == 0}" (click)="tabClick(0)">关联信息</div>
							<div class="tabs-item-item" [ngClass]="{'activeClass': activeIndex == 1}" (click)="tabClick(1)">快捷标本填写</div>
						</div>
					</div>
					<div *ngIf="activeIndex==0" class="padding-top-10">
						<nz-form-item>
							<div class="form-title width-100 font-weight-500">诊断：</div>
							<div>
								{{detailsData.diagnose||'无'}}
							</div>
						</nz-form-item>
						
						<nz-form-item>
							<div class="form-title width-100 font-weight-500">病历摘要：</div>
							<div>{{detailsData.medicalRecords||'无'}}</div>
						</nz-form-item>
						
						<nz-form-item>
							<div class="form-title width-100 font-weight-500">手术方案：</div>
							<div>{{detailsData.surgicalPlan||'无'}}</div>
						</nz-form-item>
					</div>
					<div class="specimen-box" *ngIf="activeIndex==1">
						<div class="specimen-list" [title]="item.specimenName" *ngFor="let item of specimenNameData; let index = index" (click)="fastSpecimenClick($event,item,index)"><span class="red" *ngIf="item.containPosition==0">*&nbsp; </span><span class="specimenName">{{item.specimenName}}</span></div>
					</div>
					<!-- <nz-form-item class="form-item">
						<nz-form-label nzRequired nzFor="surgicalPlan" [nzSm]="24" [nzXs]="24">手术方案</nz-form-label>
						<nz-form-control nzErrorTip="请输入手术方案" [nzSm]="24" [nzXs]="24">
							<textarea rows="3" nz-input disabled formControlName="surgicalPlan" placeholder="请输入手术方案"></textarea>
						</nz-form-control>
					</nz-form-item> -->
				</div>
				
				<div class="content-item">
					<nz-form-item class="form-item" *ngIf="detailsData.pathologyFormType==null">
						<nz-form-label nzRequired nzFor="pathologyFormType" [nzSm]="6" [nzXs]="24">申请单类型</nz-form-label>
						<nz-form-control nzErrorTip="请选择申请单类型!" [nzSm]="18" [nzXs]="24">
							<nz-radio-group formControlName="pathologyFormType" (ngModelChange)="radioChange($event)">
								<label nz-radio [nzValue]="1">术中快速病理检查申请单</label>
								<label nz-radio [nzValue]="0">病理检查申请单</label>
							</nz-radio-group>
						</nz-form-control>
					</nz-form-item>
					<nz-form-item class="form-item">
						<nz-form-label nzFor="intraoperativeFindings" [nzSm]="4" [nzXs]="24">术中所见</nz-form-label>
						<nz-form-control nzErrorTip="请输入术中所见" [nzSm]="20" [nzXs]="24">
							<input nz-input formControlName="intraoperativeFindings" placeholder="请输入术中所见"/>
						</nz-form-control>
					</nz-form-item>
					<nz-form-item class="form-item">
						<nz-form-label nzRequired nzFor="project" [nzSm]="4" [nzXs]="24">检验项目</nz-form-label>
						<nz-form-control nzErrorTip="请选择检验项目!" [nzSm]="20" [nzXs]="24">
							<nz-input-group>
								<nz-select nzDisabled nzSearch nzMode="multiple" nzShowSearch nzPlaceHolder="请选择检验项目" formControlName="project">
									<ng-container *ngFor="let option of projectData">
										<nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
									</ng-container>
								</nz-select>
							</nz-input-group>
						</nz-form-control>
					</nz-form-item>
					
					<div class="df-sb">
						<nz-form-item class="form-item">
							<nz-form-label nzRequired nzFor="specimenGenre">标本类型</nz-form-label>
							<nz-form-control nzErrorTip="请选择标本类型!">
								<nz-input-group>
									<nz-select nzSearch nzShowSearch nzPlaceHolder="请选择标本类型" formControlName="specimenGenre">
										<ng-container *ngFor="let option of specimenData">
											<nz-option *ngIf="!isDeptLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
										</ng-container>
										<nz-option *ngIf="isDeptLoading" nzDisabled nzCustomContent>
											<i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
										</nz-option>
									</nz-select>
								</nz-input-group>
							</nz-form-control>
						</nz-form-item>
						
						<nz-form-item class="form-item-right">
							<nz-form-label nzRequired nzFor="specimenNum">标本数量</nz-form-label>
							<nz-form-control nzErrorTip="请输入标本数量!">
								<input nz-input formControlName="specimenNum" disabled placeholder="请输入标本数量" nzSize="default" />
							</nz-form-control>
						</nz-form-item>
					</div>
					
					
					<nz-form-item class="form-item">
						<nz-form-label nzRequired nzFor="takePart" [nzSm]="4" [nzXs]="24">部位</nz-form-label>
						<nz-form-control nzErrorTip="请输入部位!" [nzSm]="20" [nzXs]="24">
							<input nz-input formControlName="takePart"  placeholder="请输入部位" nzSize="default" />
						</nz-form-control>
					</nz-form-item>
					
					<nz-form-item class="form-item">
						<nz-form-label nzRequired [nzSm]="3" [nzXs]="24">标本</nz-form-label>
						<div class="add-icon-class" (click)='openSpecimen()' *ngIf="(pathologyFrozenSpecimen && specimenList.length==0) || !pathologyFrozenSpecimen">
							<span class="icon_transport transport-tag27fuben form-icon"></span>
						</div>
						<span *ngIf="pathologyFrozenSpecimen" class="text-prompt">{{ prompt }}</span>
					</nz-form-item>
					
					<div class="specimen-list">
						<div *ngFor="let item of specimenList;let index=index;" class="specimen-item">
							<div class="specimen-name" (click)="specimenEdit($event,item,index,'direct')">
								<span *ngIf="item.partSource && item.partSource.value!=1">{{item.partSource?item.partSource.name:''}}</span>{{item.specimenName}}({{item.specimenCode}})
							</div>
							<span class="icon_transport transport-lajitong specimen-icon" (click)="specimenDel($event,item,index)"></span>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="mask-style" *ngIf="isSpinning">
			<nz-spin nzSimple class="spin-style"></nz-spin>
		</div>
		<div class="display_flex justify-content_flex-center bottom-btn" *ngIf="statusValue==1">
			<button class="btn btn-right" nz-button nzType="primary" (click)="temporary('temporary')" [nzLoading]="zcLoading">暂存</button>
		  <button class="btn btn-right" nz-button nzType="primary" (click)="submitForm('print')" [nzLoading]="btnLoading">打印标本</button>
			<button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
		</div>
		
		<div class="display_flex justify-content_flex-center bottom-btn" *ngIf="statusValue==2 || statusValue==3 || statusValue==4">
			<button class="btn btn-right" nz-button nzType="primary" (click)="temporary('submit')" [nzLoading]="zcLoading">保存</button>
		  <button class="btn btn-right" nz-button nzType="primary" (click)="superaddition()" [nzLoading]="zjLoading">追加打印</button>
			<button class="btn btn-right" nz-button nzType="primary" (click)="submitForm('all')" [nzLoading]="btnLoading">全量打印</button>
			<button class="btn btn-right" *ngIf="specimenList.length>1" nz-button nzType="primary" (click)="coverSubmitForm()">封面打印</button>
			<button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
		</div>
	</div>
</div>

<!-- 选择标本 -->
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="specimenModal">
	<div class="modalBody">
		<div class="title">新增病理标本<i class="icon_transport transport-guanbi" (click)="hideSpecimenModal()"></i>
		</div>
		<div class="content">
			<form nz-form [formGroup]="validateSpecimenForm" class="addForm" (ngSubmit)="submitSpecimen()">
				<nz-form-item class="form-item" *ngIf="!selectType">
					<nz-form-label nzRequired [nzSm]="2" [nzXs]="24">位置来源</nz-form-label>
					<div class="specimen-list">
						<div>
							<div *ngFor="let item of placeList;let index=index;" class="select-item"
							[ngClass]="{'activeClass': index == placeIndex}" (click)="placeClick($event,item,index)" class="select-item">{{item.name}}</div>
						</div>
					</div>
				</nz-form-item>
				
				<nz-form-item class="form-item" *ngIf="!selectType">
					<nz-form-label nzRequired [nzSm]="2" [nzXs]="24">系统</nz-form-label>
					<div class="specimen-list">
						<div *ngFor="let item of systemList;let index=index;" class="select-item"
							[ngClass]="{'activeClass': index == systemIndex}" (click)="systemClick($event,item,index)">
							{{item.name}}
						</div>
					</div>
				</nz-form-item>
				
				<nz-form-item class="form-item" *ngIf="!selectType">
					<nz-form-label nzRequired [nzSm]="2" [nzXs]="24">器官</nz-form-label>
					<div class="specimen-list">
						<div *ngFor="let item of apparatusList;let index=index;" class="select-item"
							[ngClass]="{'activeClass': index == apparatusIndex}" (click)="apparatusClick($event,item,index)">
							{{item.name}}
						</div>
					</div>
				</nz-form-item>
				
				<nz-form-item class="form-item">
					<nz-form-label [nzSm]="4" [nzXs]="24">标本名称快捷选择</nz-form-label>
					<div class="specimen-list">
						<div *ngFor="let item of specimenNameList;let index=index;" class="select-item"
							[ngClass]="{'activeClass': index == specimenNameIndex}" (click)="specimenNameClick($event,item,index)">
							{{item.name}}
						</div>
					</div>
				</nz-form-item>
				
	<!-- 			<nz-form-item class="form-item">
					<nz-form-label [nzSm]="4" [nzXs]="24">快捷键入</nz-form-label>
					<div class="specimen-list">
						<div *ngFor="let item of fastList;let index=index;" class="select-item"
							[ngClass]="{'activeClass': index == fastIndex}" (click)="fastClick($event,item,index)">
							{{item.name}}
						</div>
					</div>
				</nz-form-item> -->
				
				<nz-form-item class="form-item">
					<nz-form-label nzRequired nzFor="specimenName" [nzSm]="3" [nzXs]="24">标本名称</nz-form-label>
					<div class="specimen-tip" [ngClass]="{'isSpecumen':placeName}">{{placeName?placeName:''}}</div>
					<nz-form-control nzErrorTip="请输入标本名称" [(nzSm)]="nzSmNum" [nzXs]="24">
						<input nz-input maxlength="20" (ngModelChange)="specimenInput($event)" formControlName="specimenName" placeholder="请输入标本名称"/>
					</nz-form-control>
					<div class="empty-box" [ngClass]="{'beSpecumenEmpty':placeName, 'noSpecumenEmpty':!placeName}">
						<span class="name">{{specimenNameLength}}/20</span>
						<span class="empty" (click)="emptData($event)">清空</span>
					</div>
				</nz-form-item>
				
				<nz-form-item class="form-item">
					<nz-form-label nzFor="remark" [nzSm]="3" [nzXs]="24">备注</nz-form-label>
					<nz-form-control nzErrorTip="请输入备注" [nzSm]="21" [nzXs]="24">
						<textarea rows="3" nz-input formControlName="remark" placeholder="请输入备注"></textarea>
					</nz-form-control>
				</nz-form-item>
			</form>
		</div>
		<div class="display_flex justify-content_flex-center bottom-btn">
			<button class="btn btn-right" nz-button nzType="primary" (click)="submitSpecimen(1)" [nzLoading]="btnSpLoading">确定</button>
			<button *ngIf="!pathologyFrozenSpecimen" class="btn btn-right" nz-button nzType="primary" (click)="submitSpecimen(2)">新增下一个标本</button>
			<button class="btn cancel" nz-button nzType="default" (click)="hideSpecimenModal()">取消</button>
		</div>
	</div>
</div>

<!-- 操作成功/失败提示框 -->
<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  [info]="promptInfo" (closeModel)="closeModel()"></app-prompt-modal>
	
<app-prompt-modal *ngIf="specimenModalShow" [content]="promptContent" [success]="ifSuccess" [show]="specimenModalShow"
  [info]="promptInfo" (closeModel)="closeSpecimenModel()"></app-prompt-modal>

 <!-- 新增下一个标本 -->
<app-dialog-delete [delModal]="addMadal" (hideDelModalEvent)="hideAddModal()" [btnLoading]="addSpLoading"
  (confirmDelEvent)="confirmAdd()" content="您确认要新增下一个标本吗？"></app-dialog-delete>
	
	<!-- 删除模态框 -->
	<app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
	  (confirmDelEvent)="confirmDel()" content="您确认要删除标本吗？"></app-dialog-delete>
		
<!-- 未打印 -->
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="notModal">
	<div class="modalBody no-width">
		<div class="title">未打印<i class="icon_transport transport-guanbi" (click)="hideNotModal()"></i>
		</div>
		<div class="content">
			<div class="content-title">本次需要记录离体标本<span class="reds">{{specimenNum}}</span>份，本申请单共<span class="reds">{{totalNum}}</span>份标本</div>
			<form nz-form [formGroup]="validatePrintForm" class="addForm" (ngSubmit)="submitPrintForm()">
				<nz-form-item>
				  <nz-form-label nzRequired [nzSpan]="6" nzFor="inVitroTime">离体时间</nz-form-label>
		<!-- 		  <nz-form-control [nzSpan]="16" nzErrorTip="请选择标本离体时间!">
				    <nz-input-group>
							<nz-date-picker formControlName="inVitroTime" 
							[nzShowTime]="{ nzFormat: 'yyyy-MM-dd HH:mm:ss' }" nzFormat="yyyy-MM-dd HH:mm:ss"
							(ngModelChange)="formChangeDate($event)"></nz-date-picker>
						</nz-input-group>
				  </nz-form-control> -->
					<nz-form-control style="display: flex;align-items: center;" [nzSpan]="18" nzErrorTip="请选择离体时间!">
					  <nz-input-group style="display: flex;gap: 10px">
							<nz-date-picker formControlName="inVitroDate" (ngModelChange)="inVitroDateChange($event)"></nz-date-picker>
							
							<nz-time-picker formControlName="inVitroTimes" nzFormat="HH:mm" (ngModelChange)="inVitroTimeChange($event)"></nz-time-picker>
						</nz-input-group>
					</nz-form-control>
				</nz-form-item>
				<nz-form-item *ngIf="ifImmobilization && detailsData.pathologyFormType==0">
				  <nz-form-label nzRequired [nzSpan]="6" nzFor="fixationTime">固定时间</nz-form-label>
				  <nz-form-control style="display: flex;align-items: center;" [nzSpan]="18" nzErrorTip="请选择固定时间!">
				    <nz-input-group style="display: flex;gap: 10px">
							<!-- <nz-date-picker formControlName="fixationTime" 
							[nzShowTime]="{ nzFormat: 'yyyy-MM-dd HH:mm:ss' }" nzFormat="yyyy-MM-dd HH:mm:ss"
							(ngModelChange)="formChangeDate($event)"></nz-date-picker> -->
							<nz-date-picker formControlName="fixationDate" (ngModelChange)="fixationDateChange($event)"></nz-date-picker>
							
							<nz-time-picker formControlName="fixationTimes" nzFormat="HH:mm" (ngModelChange)="fixationTimeChange($event)"></nz-time-picker>
						</nz-input-group>
				  </nz-form-control>
				</nz-form-item>
				<nz-form-item *ngIf="ifImmobilization && detailsData.pathologyFormType==0">
				  <nz-form-label nzRequired [nzSpan]="8" nzFor="fixative">固定液类型</nz-form-label>
				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择固定液类型!">
				    <nz-input-group>
							<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择固定液类型" formControlName="fixative">
							  <ng-container *ngFor="let option of fixativeData">
							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
							  </ng-container>
							</nz-select>
						</nz-input-group>
				  </nz-form-control>
				</nz-form-item>
				<nz-form-item>
				  <nz-form-label nzRequired [nzSpan]="5" nzFor="jobNumber">工号</nz-form-label>
					<nz-form-control [nzSpan]="19" nzErrorTip="请输入工号!">
						<input nz-input (ngModelChange)="numberChange($event)" formControlName="jobNumber" placeholder="请输入工号" nzSize="default" />
					</nz-form-control>
				</nz-form-item>
				<nz-form-item>
				  <nz-form-label nzRequired [nzSpan]="5">姓名</nz-form-label>
					<nz-form-control [nzSpan]="19" nzErrorTip="请输入姓名!">
						<input nz-input disabled formControlName="name" placeholder="请输入姓名" nzSize="default" />
					</nz-form-control>
				</nz-form-item>
			</form>
		</div>
		<div class="display_flex justify-content_flex-center bottom-btn">
			<button class="btn btn-right" nz-button nzType="primary" (click)="submitPrintForm()" [nzLoading]="printLoading">确定</button>
			<button class="btn cancel" nz-button nzType="default" (click)="hideNotModal()">取消</button>
		</div>
	</div>
</div>


  <!-- 打印 -->
  <div id="report" style="display: none;">
		<div class="monad">
<!-- 			<div *ngIf="printData && printData.specimenList && printData.specimenList.length" style="border: 1px solid #AAAAAA;
				border-radius: 5px;font-size: 12px;">
				 <div *ngIf="pathologyBarCode==1" style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
					 <div style="width: 60%;height: 70px;text-align: center;">
						 <img style="max-width: 90%;height: 80%;" [src]="printData.applyBarCode" alt="">
						 <div>{{printData.applyCode}}</div>
					 </div>
					 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
						 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
					 </div>
				 </div>
				 <div *ngIf="pathologyBarCode==2" style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
					 <div style="width: 40%;height: 70px;text-align: center;">
						 <img style="max-width: 90%;height: 80%;" [src]="printData.applyBarCode" alt="">
						 <div>{{printData.applyCode}}</div>
					 </div>
					 <div style="width: 60%;height: 100%;text-align: center;display: flex;align-items: center;position: relative;top: -6px;">
						 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
					 </div>
				 </div>
				<div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					<div style="width:20%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">患者姓名</div>
					<div style="width:50%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">{{printData.patientName}}</div>
					<div style="width:14%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">性别</div>
					<div style="width:16%;padding:1px;border-top: 1px solid #aaa;">{{printData.specimenList[0].patientGender}}</div>
				</div>
				<div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					<div style="width:20%;border-right: 1px solid #AAAAAA;padding:1px;">住院号</div>
					<div style="width:50%;border-right: 1px solid #AAAAAA;padding:1px;">{{printData.residenceNo}}</div>
					<div style="width:14%;border-right: 1px solid #AAAAAA;padding:1px;">年龄</div>
					<div style="width:16%;padding:1px;"> {{printData.patientAge}}岁</div>
				</div>
				<div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					<div style="width:20%;border-right: 1px solid #AAAAAA;padding:1px;">科室 </div>
					<div style="width:50%;border-right: 1px solid #AAAAAA;
					padding:1px;overflow: hidden;white-space: nowrap">{{printData.patientDept}}</div>
					<div style="width:14%;border-right: 1px solid #AAAAAA;padding:1px;">床号</div>
					<div style="width:16%;padding:1px;">{{printData.patientBedNum}}床</div>
				</div>
				<div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					<div style="width:20%;border-right: 1px solid #AAAAAA;padding:1px;">部位 </div>
					<div style="width:50%;border-right: 1px solid #AAAAAA;
					padding:1px;overflow: hidden;white-space: nowrap">{{printData.takePart}}</div>
					<div style="width:14%;border-right: 1px solid #AAAAAA;padding:1px;">标本数</div>
					<div style="width:16%;padding:1px;">{{printData.specimenNum}}</div>
				</div>
				<div style="display: flex;">
					<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">日期</div>
					<div style="width:80%;box-sizing: border-box;padding:1px;border-right: 1px solid #fff;">{{printData.specimenList[0].inVitroTime|date:'yyyy-MM-dd'}}</div>
				</div>
			</div>
			
			<div style="height: 70px;" *ngIf="printData && printData.specimenList && printData.specimenList.length==1"></div>
			<div style="height: 20px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1"></div>
			<div style="font-size: 12px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>0">
				<div *ngFor="let data of printData.specimenList; let index=index;">
				 <div style="height: 50px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1"></div>
				 <div style="border: 1px solid #AAAAAA;border-radius: 5px;">
					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
						 <div style="width: 60%;height: 70px;text-align: center;">
							 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
							 <div>{{data.specimenCode}}</div>
						 </div>
						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
						 </div>
					 </div>
					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">患者姓名</div>
					 	<div style="width:50%;box-sizing: border-box;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">{{data.patientName}}</div>
						<div style="width:14%;box-sizing: border-box;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">性别</div>
						<div style="width:16%;box-sizing: border-box;padding:1px;border-top: 1px solid #aaa;">{{data.patientGender}}</div>
					 </div>
					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">住院号</div>
					 	<div style="width:50%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">{{data.residenceNo}}</div>
						<div style="width:14%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">年龄</div>
						<div style="width:16%;box-sizing: border-box;padding:1px;"> {{data.patientAge}}岁</div>
					 </div>
					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">科室 </div>
					 	<div style="width:50%;box-sizing: border-box;border-right: 1px solid #AAAAAA;
						padding:1px;overflow: hidden;white-space: nowrap">{{data.patientDept}}</div>
						<div style="width:14%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">床号</div>
						<div style="width:16%;box-sizing: border-box;padding:1px;">{{data.patientBedNum}}床</div>
					 </div>
					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">标本名称</div>
					 	<div style="width:80%;box-sizing: border-box;padding:1px;border-right: 1px solid #fff;
						padding:1px;overflow: hidden;white-space: nowrap">({{index+1}}/{{printData.specimenList.length}}){{data.partSource}}{{data.organ}}{{data.specimenName}}</div>
					 </div>
					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">申请单号</div>
					 	<div style="width:80%;box-sizing: border-box;padding:1px;border-right: 1px solid #fff;">{{data.applyCode }}</div>
					 </div>
					 <div style="display: flex;">
					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;padding:1px;">日期</div>
					 	<div style="width:80%;box-sizing: border-box;padding:1px;border-right: 1px solid #fff;">{{data.inVitroTime|date:'yyyy-MM-dd'}}</div>
					 </div>
				 </div>
				</div>
			</div> -->
			
			<!-- 12.11新版打印样式 -->
			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==1 && printData && printData.specimenList && printData.specimenList.length>0 && coverType==0">
				<div *ngFor="let data of printData.specimenList; let index=index;">
				 <div>
					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
						 <div style="width: 60%;height: 70px;text-align: center;">
							 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
							 <div>标本号:{{data.specimenCode}}</div>
						 </div>
						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;position: relative;top: -2px;">
							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
						 </div>
						 <div style="font-weight: bold;text-align: right;width: 100%;position: absolute;bottom: 3px;right: 3px;">{{printData.pathologyFormType==0?'普':'速'}}</div>
					 </div>
					 <div style="display: flex;justify-content: space-between;">
						 <div style="width: 70%;margin-right:15px;">
						 	<div style="display: flex; justify-content: space-between; margin-top:10px;">
								<div>患者: {{data.patientName}}</div>
								<div>性别: {{data.patientGender}}</div>
							</div>
							<div style="margin-top:10px;">
								<div *ngIf="data.residenceNo">住院号: {{data.residenceNo}}</div>
								<div *ngIf="!data.residenceNo">门诊号: {{data.patientNo}}</div>
							</div>
							<div style="margin-top:10px;">
								<div>科室: {{data.patientDept}}</div>
							</div>
							<div style="margin-top:10px;">
								<div>日期: {{data.inVitroTime|date:'yyyy-MM-dd'}}</div>
							</div>
							<div style="margin-top:10px;">
								<div style="width: 98%;height: 32px;overflow: hidden;">部位: {{data.partSource}}{{data.specimenName}}</div>
							</div>
						 </div>
						 <div style="width: 30%;">
							<div style="margin-top:10px;">年龄: {{data.patientAge}}岁</div>
							<div style="margin-top:10px;">床号: {{data.patientBedNum}}床</div>
							<div style="margin-top:10px;" *ngIf="operation == 'addPrint'">标本数: {{index+1}}/{{printData.specimenNum}}</div>
							<div style="margin-top:10px;" *ngIf="operation != 'addPrint'">标本数: {{index+1}}/{{printData.specimenList.length}}</div>
							<div style="width: 100%;height: 60px;display: flex;margin-top: 5px;">
							 <div style="height: 50px;width: 50px;">
								 <img style="max-width: 100%;max-height: 100%;position: relative;left: -2px;" [src]="printData.applyBarCode" alt="">
								 <div style="position: relative;left: -18px;">{{printData.applyCode}}</div>
							 </div>
							 <div style="width: 12px;position: relative; top: 2px;">申请单</div>
							</div>
						 </div>
					 </div>
				 </div>
				 <div style="height: 26px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1 && index+1 < printData.specimenList.length"></div>
				</div>
			</div>
			
			<!-- 小尺寸 20*30-->
			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==2 && printData && printData.specimenList && printData.specimenList.length>0 && coverType==0">
				<div *ngFor="let data of printData.specimenList; let index=index;">
					<div style="width: 100%;display: flex;margin-top: 5px;padding: 0 7px;">
					 <div style="width: 35%;">
						 <div style="display: flex;">
							 <div style="width: 50px;height: 50px;">
							 		<img style="max-width: 100%;max-height: 100%;position: relative;left: -2px;" [src]="data.barCode" alt="">
							 </div>
							 <!-- <div style="width: 12px;">申请单</div> -->
						 </div>
						 <div>{{printData.applyCode}}</div>
					 </div>
					 <div style="width: 5%;"></div>
					 <div style="width: 60%;position: relative;left: -5px;">
						<div style="display: flex;flex-wrap: nowrap;" *ngIf="data.residenceNo">住院号: {{data.residenceNo}}</div>
						<div style="display: flex;flex-wrap: nowrap;" *ngIf="!data.residenceNo">门诊号: {{data.patientNo}}</div>
						<div style="margin-top:9px;">患者: {{data.patientName}}</div>
						<div style="margin-top:9px;margin-left: 30px;">性别: {{data.patientGender}}</div>
					 </div>
					</div>
					<div style="margin-top:3px;padding-left: 7px;">
						<div style="width: 98%;overflow: hidden;">部位: {{data.partSource}}{{data.specimenName}}</div>
					</div>
					<div style="margin-top:3px;padding-left: 7px;">
						<div style="width: 98%;">日期: {{data.inVitroTime|date:'yyyy-MM-dd'}}</div>
					</div>
				 <div style="height: 18px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1 && index+1 < printData.specimenList.length"></div>
				</div>
			</div>
			
			<!-- 封面打印 -->
			<div style="font-size: 14px;" *ngIf="coverType==1">
			 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
				 <div style="width: 40%;">
					<div style="height: 60px;width: 100%;text-align: center;">
					 <img style="max-width: 100%;max-height: 100%;" [src]="detailsData.barCode" alt="">
					 <div>{{detailsData.applyCode}}</div>
					</div>
				 </div>
				 <div style="width: 60%;height: 100%;text-align: center;display: flex;align-items: center;flex-wrap: wrap;justify-content: end;margin-right: 10px;">
					 <img style="max-width: 70%;max-height: 100%;" [src]="tool.logoUrl" alt="">
					 <div style="font-size: 18px;width: 100%;font-weight: bold;text-align: right;">病&nbsp;&nbsp;理&nbsp;&nbsp;申&nbsp;&nbsp;请&nbsp;&nbsp;单</div>
				 </div>
			 </div>
			 <div>
				<div style="margin-top:20px;display: flex;">
					<div style="width: 70%;display: flex;">
						<div style="width: 50%;">患者: {{detailsData.patientDTO.patientName}}</div>
						<div style="width: 50%;text-align: center;">性别: {{detailsData.patientDTO.gender?detailsData.patientDTO.gender.name:'-'}}</div>
					</div>
					<div style="width: 30%;margin-right: 20px;text-align: right;">年龄: {{detailsData.patientDTO.age||'-'}}岁</div>
				</div>
				<div style="margin-top:10px;display: flex;">
					<div style="width: 70%;">
						<div *ngIf="detailsData.residenceNo">住院号: {{detailsData.residenceNo}}</div>
						<div *ngIf="!detailsData.residenceNo">门诊号: {{detailsData.patientDTO.patientCode}}</div>
					</div>
					<div style="width: 30%;margin-right: 20px;text-align: right;">床号: {{detailsData.patientDTO.bedNum || '-'}}床</div>
				</div>
				<div style="margin-top:10px;display: flex;">
					<div style="width: 70%;">科室: {{detailsData.patientDTO.department.dept}}</div>
					<div style="width: 30%;margin-right: 20px;text-align: right;">标本数: {{specimenList.length}}</div>
				</div>
				<div style="margin-top:10px;display: flex;">
					<div style="width: 70%;">日期: {{detailsData.inVitroTime|date:'yyyy-MM-dd'}}</div>
					<div style="font-weight: bold;width: 30%;margin-right: 20px;text-align: right;">{{detailsData.pathologyFormType==1 ? '速' : '普'}}</div>
				</div>
			 </div>
			</div>
		</div>
  </div>