<div class="pathology-box display_flex align-items_center justify-content_flex-center">
		<div class="pathology-content" *ngIf="!isSpinning">
			<div class="title">查看详情
			<i class="icon_transport transport-guanbi" (click)="closeDetailMoadl()"></i></div>
			<div class="content">
				<div class="content-item boder-right">
					<nz-form-item class="form-title-box">
						<div class="form-title">申请单类型：{{detailsData.pathologyFormType==1?'术中快速病理检查申请单' : 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="form-title-box">
						<div class="form-title"><span class="font-weight-500">检验项目：</span>{{project||'无'}}</div>
					</div>
					
					<div class="form-list">
						<div class="form-title font-weight-500">诊断：</div>
						<div class="indent">
							{{detailsData.diagnose||'无'}}
						</div>
					</div>
					
					<div class="form-list">
						<div class="form-title font-weight-500">病历摘要：</div>
						<div class="indent">{{detailsData.medicalRecords||'无'}}</div>
					</div>
					<div class="form-list">
						<div class="form-title font-weight-500">手术方案：</div>
						<div class="indent">{{detailsData.surgicalPlan||'无'}}</div>
					</div>
					<div class="form-list">
						<div class="form-title font-weight-500">术中所见：</div>
						<div class="indent">{{detailsData.intraoperativeFindings||'无'}}</div>
					</div>

					<div class="form-title-box">
						<div class="form-title"><span class="font-weight-500">标本类型：</span>{{detailsData.specimenType.name||'无'}}</div>
						<div class="form-title"><span class="font-weight-500">标本数量：</span>{{detailsData.specimenNum||'无'}}</div>
					</div>
					
					<div class="form-title-box">
						<div class="form-title"><span class="font-weight-500">部位：</span>{{detailsData.takePart||'无'}}</div>
						<!-- <div class="form-title"><span class="font-weight-500">离体时间：</span>{{detailsData.inVitroTime?(detailsData.inVitroTime|date:'yyyy-MM-dd HH:mm:ss'):'无'}}</div> -->
						<!-- <div class="form-title"><span class="font-weight-500">固定时间：</span>{{detailsData.fixationTime?(detailsData.fixationTime|date:'yyyy-MM-dd HH:mm:ss'):'无'}}</div> -->
					</div>
					
					<div class="form-list">
						<div class="form-title font-weight-500">标本：</div>
						<div class="form-title-box">
							<div class="form-title cursor" *ngFor="let item of specimenList" (click)="specimenView(item)">
								<span *ngIf="item.partSource && item.partSource.value!=1">{{item.partSource?item.partSource.name:''}}</span>{{item.specimenName}}({{item.specimenCode}})
							</div>
						</div>
					</div>
				</div>
				<div class="content-item-right">
					<div class="step-title">病理闭环</div>
					<nz-steps [nzCurrent]="stepLength" nzDirection="vertical" nzSize="small">
						<ng-container *ngFor="let item of pathologyLogs; let index = index">
								<nz-step
									[nzDescription]="tpl"
								>
								</nz-step>
								<ng-template #tpl>
									<div *ngIf="index==pathologyLogs.length-1" class="step-size">
										<div style="color: #49B856;">{{item.operationType?item.operationType.name:''}} {{item.handoverUserDto?item.handoverUserDto.name:''}}</div>
										<div style="color:#333;">{{item.createTime|date:'yyyy-MM-dd HH:mm:ss'}} {{item.operationUserDto?item.operationUserDto.name:''}}</div>
									</div>
									<div *ngIf="index!=pathologyLogs.length-1" class="step-size">
										<div>{{item.operationType?item.operationType.name:''}} {{item.handoverUserDto?item.handoverUserDto.name:''}}</div>
										<div>{{item.createTime|date:'yyyy-MM-dd HH:mm:ss'}} {{item.operationUserDto?item.operationUserDto.name:''}}</div>
									</div>
								</ng-template>
							</ng-container>
					</nz-steps>
				</div>
			</div>
			
			<div class="display_flex justify-content_flex-center bottom-btn">
				<button class="btn btn-right" *ngIf="detailsData.status.value==6 || 
				detailsData.status.value==7 || detailsData.status.value==8 || 
				detailsData.status.value==9 || detailsData.status.value==10"nz-button nzType="primary" (click)="closeDetailMoadl()">知道了</button>
				
				<button class="btn btn-right" *ngIf="detailsData.status.value==2 || 
				detailsData.status.value==3 || detailsData.status.value==4 || 
				detailsData.status.value==5" nz-button nzType="primary" (click)="submitPrint()" [nzLoading]="btnLoading">补打</button>
				
				<button class="btn cancel" *ngIf="detailsData.status.value==2 || 
				detailsData.status.value==3 || detailsData.status.value==4 || 
				detailsData.status.value==5" nz-button nzType="default" (click)="closeDetailMoadl()">取消</button>
			</div>
		</div>
	<div class="mask-style" *ngIf="isSpinning">
		<nz-spin nzSimple class="spin-style"></nz-spin>
	</div>
</div>

<!-- 打印 -->
  <div id="report" style="display: none;">
		<div class="monad">
			<!-- <div *ngIf="printData && printData.specimenList && printData.specimenList.length>1" 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">
				<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">
				<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>
  </div>
	
	<!-- 查看标本 -->
	<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="specimenViewDialog">
	  <div class="modalBody modalBody-ga">
	    <div class="title">查看标本<i class="icon_transport transport-guanbi" (click)="hideSpecimenModal()"></i>
	    </div>
	    <overlay-scrollbars #osComponentRef1 class="content">
	      <div class="list-template__bottom">
	        <nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false"
	          [nzLoading]="loading1">
	          <thead>
	            <tr class="thead">
								<th>标本名称</th>
								<th>系统</th>
								<th>部位</th>
	              <th>编码</th>
	              <th>备注</th>
	              <th>离体时间</th>
	              <th>离体操作人</th>
	              <th>固定时间</th>
	              <th>固定操作人</th>
	            </tr>
	          </thead>
	          <tbody>
	            <tr *ngFor="let data of viewData">
								<td>{{ data.specimenName }}</td>
								<td>{{ data.system ? data.system.name : '-' }}</td>
								<td>{{ data.organ ? data.organ.name : '-' }}</td>
	              <td>{{ data.specimenCode }}</td>
	              <td>{{ data.remark ? data.remark : '无' }}</td>
								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
	            </tr>
	          </tbody>
	        </nz-table>
	      </div>
	    </overlay-scrollbars>
	    <div class="display_flex justify-content_flex-center">
	      <button class="btn" nz-button nzType="primary" (click)="hideSpecimenModal()">知道了</button>
	    </div>
	  </div>
	</div>