瀏覽代碼

Merge branch 'master' into develop

seimin 2 月之前
父節點
當前提交
67c52af672

+ 39 - 2
src/app/share/pathology-add/pathology-add.component.html

@@ -154,6 +154,7 @@
154 154
 			<button class="btn btn-right" nz-button nzType="primary" (click)="temporary('submit')" [nzLoading]="zcLoading">保存</button>
155 155
 		  <button class="btn btn-right" nz-button nzType="primary" (click)="superaddition()" [nzLoading]="zjLoading">追加打印</button>
156 156
 			<button class="btn btn-right" nz-button nzType="primary" (click)="submitForm('all')" [nzLoading]="btnLoading">全量打印</button>
157
+			<button class="btn btn-right" *ngIf="specimenList.length>1" nz-button nzType="primary" (click)="coverSubmitForm()">封面打印</button>
157 158
 			<button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
158 159
 		</div>
159 160
 	</div>
@@ -438,7 +439,7 @@
438 439
 			</div> -->
439 440
 			
440 441
 			<!-- 12.11新版打印样式 -->
441
-			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==1 && printData && printData.specimenList && printData.specimenList.length>0">
442
+			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==1 && printData && printData.specimenList && printData.specimenList.length>0 && coverType==0">
442 443
 				<div *ngFor="let data of printData.specimenList; let index=index;">
443 444
 				 <div>
444 445
 					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
@@ -491,7 +492,7 @@
491 492
 			</div>
492 493
 			
493 494
 			<!-- 小尺寸 20*30-->
494
-			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==2 && printData && printData.specimenList && printData.specimenList.length>0">
495
+			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==2 && printData && printData.specimenList && printData.specimenList.length>0 && coverType==0">
495 496
 				<div *ngFor="let data of printData.specimenList; let index=index;">
496 497
 					<div style="width: 100%;display: flex;margin-top: 5px;padding: 0 7px;">
497 498
 					 <div style="width: 35%;">
@@ -520,5 +521,41 @@
520 521
 				 <div style="height: 18px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1 && index+1 < printData.specimenList.length"></div>
521 522
 				</div>
522 523
 			</div>
524
+			
525
+			<!-- 封面打印 -->
526
+			<div style="font-size: 14px;" *ngIf="coverType==1">
527
+			 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
528
+				 <div style="width: 40%;">
529
+					<div style="height: 60px;width: 100%;text-align: center;">
530
+					 <img style="max-width: 100%;max-height: 100%;" [src]="detailsData.barCode" alt="">
531
+					 <div>{{detailsData.applyCode}}</div>
532
+					</div>
533
+				 </div>
534
+				 <div style="width: 60%;height: 100%;text-align: center;display: flex;align-items: center;flex-wrap: wrap;justify-content: right;">
535
+					 <img style="max-width: 70%;max-height: 100%;" [src]="tool.logoUrl" alt="">
536
+					 <div style="font-size: 18px;width: 100%;font-weight: bold;text-align: right;">病&nbsp;&nbsp;理&nbsp;&nbsp;申&nbsp;&nbsp;请&nbsp;&nbsp;单</div>
537
+				 </div>
538
+			 </div>
539
+			 <div>
540
+				<div style="margin-top:20px;display: flex;justify-content: space-between;">
541
+					<div>患者: {{detailsData.patientDTO.patientName}}</div>
542
+					<div>性别: {{detailsData.patientDTO.gender?detailsData.patientDTO.gender.name:'-'}}</div>
543
+					<div>年龄: {{detailsData.patientDTO.age||'-'}}岁</div>
544
+				</div>
545
+				<div style="margin-top:10px;display: flex;justify-content: space-between;">
546
+					<div *ngIf="detailsData.residenceNo">住院号: {{detailsData.residenceNo}}</div>
547
+					<div *ngIf="!detailsData.residenceNo">门诊号: {{detailsData.patientDTO.patientCode}}</div>
548
+					<div>床号: {{detailsData.patientDTO.bedNum || '-'}}床</div>
549
+				</div>
550
+				<div style="margin-top:10px;display: flex;justify-content: space-between;">
551
+					<div>科室: {{detailsData.patientDTO.department.dept}}</div>
552
+					<div>标本数: {{specimenList.length}}</div>
553
+				</div>
554
+				<div style="margin-top:10px;display: flex;justify-content: space-between;">
555
+					<div>日期: {{detailsData.inVitroTime|date:'yyyy-MM-dd'}}</div>
556
+					<div style="font-weight: bold;text-align: right;">{{detailsData.pathologyFormType==1 ? '速' : '普'}}</div>
557
+				</div>
558
+			 </div>
559
+			</div>
523 560
 		</div>
524 561
   </div>

+ 28 - 2
src/app/share/pathology-add/pathology-add.component.ts

@@ -922,6 +922,7 @@ export class PathologyAddComponent implements OnInit {
922 922
 			},
923 923
 			operation:'',
924 924
 			pathologySpecimenIds:'',
925
+			deptType:'surgery'
925 926
 		};
926 927
 		delete data.pathologyForm.patientDTO
927 928
 		delete data.pathologyForm.surgeryDeptDTO
@@ -942,6 +943,7 @@ export class PathologyAddComponent implements OnInit {
942 943
 			delete data.pathologyForm.fixationTime
943 944
 			delete data.pathologyForm.specimenFixingLiquid
944 945
 		}
946
+		this.coverType = 0
945 947
 		this.printLoading = true;
946 948
 		this.mainService
947 949
 		  .pathologyPrint(data)
@@ -1178,6 +1180,7 @@ export class PathologyAddComponent implements OnInit {
1178 1180
 								id:this.validateForm.value.specimenGenre
1179 1181
 							}
1180 1182
 						},
1183
+						deptType:'surgery',
1181 1184
 						operation:'',
1182 1185
 						pathologySpecimenIds:'',
1183 1186
 					};
@@ -1249,8 +1252,9 @@ export class PathologyAddComponent implements OnInit {
1249 1252
 					pathologyInspectIds:this.validateForm.value.project.join(','),
1250 1253
 					specimenType:{
1251 1254
 						id:this.validateForm.value.specimenGenre
1252
-					}
1253
-				}
1255
+					},
1256
+				},
1257
+				deptType:'surgery'
1254 1258
 			};
1255 1259
 			data.pathologyForm.specimenNum = this.specimenList.length
1256 1260
 			delete data.pathologyForm.patientDTO
@@ -1262,8 +1266,30 @@ export class PathologyAddComponent implements OnInit {
1262 1266
 		}
1263 1267
 	}
1264 1268
 	
1269
+	// 封面打印
1270
+	coverType:any;
1271
+	coverSubmitForm(){
1272
+		this.coverType = 1
1273
+		if(this.detailsData.barCode){
1274
+			this.detailsData.barCode = this.sanitizer.bypassSecurityTrustResourceUrl(this.detailsData.barCode)
1275
+		}
1276
+		setTimeout(() => {
1277
+		  const printContent = document.getElementById("report");
1278
+		  const WindowPrt = window.open("", "", "width=100,height=1000");
1279
+			WindowPrt.document.body.innerHTML = printContent.innerHTML;
1280
+			setTimeout(_=>{
1281
+				WindowPrt.document.close();
1282
+				WindowPrt.focus();
1283
+				WindowPrt.print();
1284
+				WindowPrt.close();
1285
+				this.hideModal();
1286
+			},500)
1287
+		}, 500);
1288
+	}
1289
+	
1265 1290
 	// 打印
1266 1291
 	printFun(data){
1292
+		this.coverType = 0
1267 1293
 		this.mainService
1268 1294
 		  .pathologyPrint(data)
1269 1295
 		  .subscribe((res:any) => {

+ 4 - 0
src/app/share/pathology-detail/pathology-detail.component.html

@@ -312,6 +312,8 @@
312 312
 	          <thead>
313 313
 	            <tr class="thead">
314 314
 								<th>标本名称</th>
315
+								<th>系统</th>
316
+								<th>部位</th>
315 317
 	              <th>编码</th>
316 318
 	              <th>备注</th>
317 319
 	              <th>离体时间</th>
@@ -323,6 +325,8 @@
323 325
 	          <tbody>
324 326
 	            <tr *ngFor="let data of viewData">
325 327
 								<td>{{ data.specimenName }}</td>
328
+								<td>{{ data.system ? data.system.name : '-' }}</td>
329
+								<td>{{ data.organ ? data.organ.name : '-' }}</td>
326 330
 	              <td>{{ data.specimenCode }}</td>
327 331
 	              <td>{{ data.remark ? data.remark : '无' }}</td>
328 332
 								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>

+ 3 - 2
src/app/share/pathology-detail/pathology-detail.component.ts

@@ -95,8 +95,9 @@ export class PathologyDetailComponent implements OnInit {
95 95
 				...this.detailsData,
96 96
 				surgeryId: this.surgeryId || "",
97 97
 				patientId: this.patientId || "",
98
-				hosId: this.hosId || "" 
99
-			}
98
+				hosId: this.hosId || "" ,
99
+			},
100
+			deptType:'surgery'
100 101
 		};
101 102
 		delete data.pathologyForm.patientDTO
102 103
 		delete data.pathologyForm.surgeryDeptDTO

+ 21 - 17
src/app/views/batch-distribution/batch-distribution.component.html

@@ -217,29 +217,33 @@
217 217
 			<overlay-scrollbars #osComponentRef1 class="content">
218 218
 				<div class="list-template__bottom">
219 219
 					<nz-table class="list-template__nzTable" [nzData]="specimenData" nzSize="middle" [nzShowPagination]="false"
220
-						[nzLoading]="loading1">
221
-						<thead>
222
-							<tr class="thead">
220
+					  [nzLoading]="loading1">
221
+					  <thead>
222
+					    <tr class="thead">
223 223
 								<th>标本名称</th>
224
-								<th>编码</th>
225
-								<th>备注</th>
226
-								<th>离体时间</th>
227
-								<th>离体操作人</th>
228
-								<th>固定时间</th>
229
-								<th>固定操作人</th>
230
-							</tr>
231
-						</thead>
232
-						<tbody>
233
-							<tr *ngFor="let data of specimenData">
224
+								<th>系统</th>
225
+								<th>部位</th>
226
+					      <th>编码</th>
227
+					      <th>备注</th>
228
+					      <th>离体时间</th>
229
+					      <th>离体操作人</th>
230
+					      <th>固定时间</th>
231
+					      <th>固定操作人</th>
232
+					    </tr>
233
+					  </thead>
234
+					  <tbody>
235
+					    <tr *ngFor="let data of specimenData">
234 236
 								<td>{{ data.specimenName }}</td>
235
-								<td>{{ data.specimenCode }}</td>
236
-								<td>{{ data.remark ? data.remark : '无' }}</td>
237
+								<td>{{ data.system ? data.system.name : '-' }}</td>
238
+								<td>{{ data.organ ? data.organ.name : '-' }}</td>
239
+					      <td>{{ data.specimenCode }}</td>
240
+					      <td>{{ data.remark ? data.remark : '无' }}</td>
237 241
 								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
238 242
 								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
239 243
 								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
240 244
 								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
241
-							</tr>
242
-						</tbody>
245
+					    </tr>
246
+					  </tbody>
243 247
 					</nz-table>
244 248
 				</div>
245 249
 			</overlay-scrollbars>

+ 7 - 0
src/app/views/pathology-check/pathology-check.component.ts

@@ -581,6 +581,9 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
581 581
 					this.multiModal = true
582 582
 					this.codeMultiData = res.data[0].pathologySpecimenDTOList
583 583
 					localStorage.setItem("scanCodeData",JSON.stringify(res))
584
+					if(this.muArr.length === this.codeMultiData.length){
585
+						this.submitMultiForm()
586
+					}
584 587
 				}else{
585 588
 					this.notification.create('success','提示',res.msg);
586 589
 					this.activeIndex = 0
@@ -640,6 +643,9 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
640 643
 					this.multiModal = true
641 644
 					localStorage.setItem("scanCodeData",JSON.stringify(res))
642 645
 					this.errorMultiMsg = null
646
+					if(this.muArr.length === this.codeMultiData.length){
647
+						this.submitMultiForm()
648
+					}
643 649
 				}else{
644 650
 					this.errorMultiMsg = res.msg
645 651
 				}
@@ -670,6 +676,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
670 676
 			this.message.success('操作成功')
671 677
 			setTimeout(_=>{
672 678
 				this.btnMultiLoading = false;
679
+				this.activeIndex = 0;
673 680
 				this.hideMultiModal()
674 681
 			},500)
675 682
 		});

+ 25 - 21
src/app/views/pathology-communication-book/pathology-communication-book.component.html

@@ -110,7 +110,7 @@
110 110
 			      <thead>
111 111
 			        <tr class="thead">
112 112
 			          <th nzWidth="14%">申请单号</th>
113
-								<th>状态</th>
113
+								<th nzWidth="100px">状态</th>
114 114
 			          <th>患者姓名</th>
115 115
 			          <th>住院号</th>
116 116
 			          <th nzWidth="100px">部位</th>
@@ -131,7 +131,7 @@
131 131
 			          <td>{{ data.patientDTO.residenceNo}}</td>
132 132
 			          <td>{{ data.takePart}}</td>
133 133
 			          <td>{{ data.specimenNum}}</td>
134
-			          <td>{{ data.patientDTO?data.patientDTO.department.dept : '-'}}</td>
134
+			          <td>{{ data.patientDTO.department?data.patientDTO.department.dept : '-'}}</td>
135 135
 								<td>{{ data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
136 136
 								<td>{{ data.fixationTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
137 137
 								<td>{{ data.deliveryUserDTO?data.deliveryUserDTO.name : '-' }}</td>
@@ -164,7 +164,7 @@
164 164
 								[nzIndeterminate]="isIndeterminate"
165 165
 								(nzCheckedChange)="checkAll($event)"></th>
166 166
 				        <th nzWidth="14%">申请单号</th>
167
-								<th>状态</th>
167
+								<th nzWidth="100px">状态</th>
168 168
 				        <th>患者姓名</th>
169 169
 				        <th>住院号</th>
170 170
 				        <th nzWidth="100px">部位</th>
@@ -191,7 +191,7 @@
191 191
 				        <td>{{ data.patientDTO.residenceNo}}</td>
192 192
 				        <td>{{ data.takePart}}</td>
193 193
 				        <td>{{ data.specimenNum}}</td>
194
-				        <td>{{ data.patientDTO?data.patientDTO.department.dept : '-'}}</td>
194
+				        <td>{{ data.patientDTO.department?data.patientDTO.department.dept : '-'}}</td>
195 195
 								<td>{{ data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
196 196
 								<td>{{ data.fixationTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
197 197
 								<td>{{ data.deliveryUserDTO?data.deliveryUserDTO.name : '-' }}</td>
@@ -380,29 +380,33 @@
380 380
 			<overlay-scrollbars #osComponentRef1 class="content">
381 381
 				<div class="list-template__bottom">
382 382
 					<nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false"
383
-						[nzLoading]="loading1">
384
-						<thead>
385
-							<tr class="thead">
383
+					  [nzLoading]="loading1">
384
+					  <thead>
385
+					    <tr class="thead">
386 386
 								<th>标本名称</th>
387
-								<th>编码</th>
388
-								<th>备注</th>
389
-								<th>离体时间</th>
390
-								<th>离体操作人</th>
391
-								<th>固定时间</th>
392
-								<th>固定操作人</th>
393
-							</tr>
394
-						</thead>
395
-						<tbody>
396
-							<tr *ngFor="let data of viewData">
387
+								<th>系统</th>
388
+								<th>部位</th>
389
+					      <th>编码</th>
390
+					      <th>备注</th>
391
+					      <th>离体时间</th>
392
+					      <th>离体操作人</th>
393
+					      <th>固定时间</th>
394
+					      <th>固定操作人</th>
395
+					    </tr>
396
+					  </thead>
397
+					  <tbody>
398
+					    <tr *ngFor="let data of viewData">
397 399
 								<td>{{ data.specimenName }}</td>
398
-								<td>{{ data.specimenCode }}</td>
399
-								<td>{{ data.remark ? data.remark : '无' }}</td>
400
+								<td>{{ data.system ? data.system.name : '-' }}</td>
401
+								<td>{{ data.organ ? data.organ.name : '-' }}</td>
402
+					      <td>{{ data.specimenCode }}</td>
403
+					      <td>{{ data.remark ? data.remark : '无' }}</td>
400 404
 								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
401 405
 								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
402 406
 								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
403 407
 								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
404
-							</tr>
405
-						</tbody>
408
+					    </tr>
409
+					  </tbody>
406 410
 					</nz-table>
407 411
 				</div>
408 412
 			</overlay-scrollbars>

+ 65 - 24
src/app/views/pathology-sample/pathology-sample.component.html

@@ -173,8 +173,9 @@
173 173
 				</div>
174 174
 				<div class="display_flex justify-content_flex-center bottom-btn">
175 175
 					<button *ngIf="statusValue==1" class="btn btn-right" nz-button nzType="primary" (click)="submitForm('print')" [nzLoading]="btnLoading">标本打印</button>
176
-					<button *ngIf="statusValue==2 || statusValue==3" class="btn btn-right" nz-button nzType="primary" (click)="superaddition()" [nzLoading]="zjLoading">追加打印</button>
177
-					<button *ngIf="statusValue==2 || statusValue==3" class="btn" nz-button nzType="primary" nzGhost (click)="submitForm('all')" [nzLoading]="btnLoading">全量打印</button>
176
+					<button *ngIf="statusValue==2 || statusValue==3 || statusValue==4" class="btn btn-right" nz-button nzType="primary" (click)="superaddition()" [nzLoading]="zjLoading">追加打印</button>
177
+					<button *ngIf="statusValue==2 || statusValue==3 || statusValue==4" class="btn" nz-button nzType="primary" nzGhost (click)="submitForm('all')" [nzLoading]="btnLoading">全量打印</button>
178
+					<!-- <button class="btn btn-left" *ngIf="(statusValue==2 || statusValue==3 || statusValue==4) && specimenList.length>1" nz-button nzType="primary" (click)="coverSubmitForm()">封面打印</button> -->
178 179
 				</div>
179 180
 			</div>
180 181
 			
@@ -247,7 +248,7 @@
247 248
 		<div class="content-item-right" *ngIf="adviceList && adviceList.pathologyFormDTOS.length>0 && pathologyLogs.length && (viewType=='view' || viewType=='edit')">
248 249
 			<div class="tabs">
249 250
 				<div class="tabs-item">
250
-					<div class="tabs-item-item" *ngIf="adviceItem.status.value < 7" [ngClass]="{'activeClass': activeIndex == 0}" (click)="tabClick(0)">快捷标本填写</div>
251
+					<div class="tabs-item-item" *ngIf="adviceItem.status.value < 5" [ngClass]="{'activeClass': activeIndex == 0}" (click)="tabClick(0)">快捷标本填写</div>
251 252
 					<div class="tabs-item-item" [ngClass]="{'activeClass': activeIndex == 1}" (click)="tabClick(1)">病理闭环</div>
252 253
 				</div>
253 254
 			</div>
@@ -454,29 +455,33 @@
454 455
 			<overlay-scrollbars #osComponentRef1 class="content">
455 456
 				<div class="list-template__bottom">
456 457
 					<nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false"
457
-						[nzLoading]="loading1">
458
-						<thead>
459
-							<tr class="thead">
458
+					  [nzLoading]="loading1">
459
+					  <thead>
460
+					    <tr class="thead">
460 461
 								<th>标本名称</th>
461
-								<th>编码</th>
462
-								<th>备注</th>
463
-								<th>离体时间</th>
464
-								<th>离体操作人</th>
465
-								<th>固定时间</th>
466
-								<th>固定操作人</th>
467
-							</tr>
468
-						</thead>
469
-						<tbody>
470
-							<tr *ngFor="let data of viewData">
462
+								<th>系统</th>
463
+								<th>部位</th>
464
+					      <th>编码</th>
465
+					      <th>备注</th>
466
+					      <th>离体时间</th>
467
+					      <th>离体操作人</th>
468
+					      <th>固定时间</th>
469
+					      <th>固定操作人</th>
470
+					    </tr>
471
+					  </thead>
472
+					  <tbody>
473
+					    <tr *ngFor="let data of viewData">
471 474
 								<td>{{ data.specimenName }}</td>
472
-								<td>{{ data.specimenCode }}</td>
473
-								<td>{{ data.remark ? data.remark : '无' }}</td>
475
+								<td>{{ data.system ? data.system.name : '-' }}</td>
476
+								<td>{{ data.organ ? data.organ.name : '-' }}</td>
477
+					      <td>{{ data.specimenCode }}</td>
478
+					      <td>{{ data.remark ? data.remark : '无' }}</td>
474 479
 								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
475 480
 								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
476 481
 								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
477 482
 								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
478
-							</tr>
479
-						</tbody>
483
+					    </tr>
484
+					  </tbody>
480 485
 					</nz-table>
481 486
 				</div>
482 487
 			</overlay-scrollbars>
@@ -508,7 +513,7 @@
508 513
 						</nz-input-group>
509 514
 				  </nz-form-control>
510 515
 				</nz-form-item>
511
-				<nz-form-item *ngIf="ifImmobilization && detailsData.pathologyFormType==0">
516
+				<nz-form-item *ngIf="ifImmobilization && detailsData && detailsData.pathologyFormType==0">
512 517
 				  <nz-form-label nzRequired [nzSpan]="6" nzFor="fixationTime">固定时间</nz-form-label>
513 518
 				  <nz-form-control style="display: flex;align-items: center;" [nzSpan]="18" nzErrorTip="请选择固定时间!">
514 519
 				    <nz-input-group style="display: flex;gap: 10px">
@@ -521,7 +526,7 @@
521 526
 						</nz-input-group>
522 527
 				  </nz-form-control>
523 528
 				</nz-form-item>
524
-				<nz-form-item *ngIf="ifImmobilization">
529
+				<nz-form-item *ngIf="ifImmobilization && detailsData && detailsData.pathologyFormType==0">
525 530
 				  <nz-form-label nzRequired [nzSpan]="8" nzFor="fixative">固定液类型</nz-form-label>
526 531
 				  <nz-form-control [nzSpan]="16" nzErrorTip="请选择固定液类型!">
527 532
 				    <nz-input-group>
@@ -559,7 +564,7 @@
559 564
 <div id="report" style="display: none;">
560 565
 	<div class="monad">
561 566
 		<!-- 大尺寸 80*60-->
562
-		<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==1 && printData && printData.specimenList && printData.specimenList.length>0">
567
+		<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==1 && printData && printData.specimenList && printData.specimenList.length>0 && coverType==0">
563 568
 			<div *ngFor="let data of printData.specimenList; let index=index;">
564 569
 			 <div>
565 570
 				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
@@ -612,7 +617,7 @@
612 617
 		</div>
613 618
 		
614 619
 		<!-- 小尺寸 20*30-->
615
-		<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==2 && printData && printData.specimenList && printData.specimenList.length>0">
620
+		<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==2 && printData && printData.specimenList && printData.specimenList.length>0 && coverType==0">
616 621
 			<div *ngFor="let data of printData.specimenList; let index=index;">
617 622
 				<div style="width: 100%;display: flex;margin-top: 5px;padding: 0 7px;">
618 623
 				 <div style="width: 35%;">
@@ -641,6 +646,42 @@
641 646
 			 <div style="height: 18px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1 && index+1 < printData.specimenList.length"></div>
642 647
 			</div>
643 648
 		</div>
649
+		
650
+		<!-- 封面打印 -->
651
+		<div style="font-size: 14px;" *ngIf="coverType==1">
652
+		 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
653
+			 <div style="width: 40%;">
654
+				<div style="height: 60px;width: 100%;text-align: center;">
655
+				 <img style="max-width: 100%;max-height: 100%;" [src]="detailsData.barCode" alt="">
656
+				 <div>{{detailsData.applyCode}}</div>
657
+				</div>
658
+			 </div>
659
+			 <div style="width: 60%;height: 100%;text-align: center;display: flex;align-items: center;flex-wrap: wrap;justify-content: right;">
660
+				 <img style="max-width: 70%;max-height: 100%;" [src]="tool.logoUrl" alt="">
661
+				 <div style="font-size: 18px;width: 100%;font-weight: bold;text-align: right;">病&nbsp;&nbsp;理&nbsp;&nbsp;申&nbsp;&nbsp;请&nbsp;&nbsp;单</div>
662
+			 </div>
663
+		 </div>
664
+		 <div>
665
+			<div style="margin-top:20px;display: flex;justify-content: space-between;">
666
+				<div>患者: {{detailsData.patientDTO.patientName}}</div>
667
+				<div>性别: {{detailsData.patientDTO.gender?detailsData.patientDTO.gender.name:'-'}}</div>
668
+				<div>年龄: {{detailsData.patientDTO.age||'-'}}岁</div>
669
+			</div>
670
+			<div style="margin-top:10px;display: flex;justify-content: space-between;">
671
+				<div *ngIf="detailsData.residenceNo">住院号: {{detailsData.residenceNo}}</div>
672
+				<div *ngIf="!detailsData.residenceNo">门诊号: {{detailsData.patientDTO.patientCode}}</div>
673
+				<div>床号: {{detailsData.patientDTO.bedNum || '-'}}床</div>
674
+			</div>
675
+			<div style="margin-top:10px;display: flex;justify-content: space-between;">
676
+				<div>科室: {{detailsData.patientDTO.department.dept}}</div>
677
+				<div>标本数: {{specimenList.length}}</div>
678
+			</div>
679
+			<div style="margin-top:10px;display: flex;justify-content: space-between;">
680
+				<div>日期: {{detailsData.inVitroTime|date:'yyyy-MM-dd'}}</div>
681
+				<div style="font-weight: bold;text-align: right;">{{detailsData.pathologyFormType==1 ? '速' : '普'}}</div>
682
+			</div>
683
+		 </div>
684
+		</div>
644 685
 	</div>
645 686
 </div>
646 687
 	

+ 3 - 0
src/app/views/pathology-sample/pathology-sample.component.less

@@ -761,6 +761,9 @@
761 761
 					.btn-right{
762 762
 						margin-right: 10px;
763 763
 					}
764
+					.btn-left{
765
+						margin-left: 10px;
766
+					}
764 767
 				}
765 768
 			}
766 769
 		}

+ 28 - 3
src/app/views/pathology-sample/pathology-sample.component.ts

@@ -389,7 +389,7 @@ export class PathologySampleComponent implements OnInit {
389 389
 	listClick(item,index){
390 390
 		this.leftIndex = index
391 391
 		this.adviceItem = item
392
-		if(item.status.value > 6){
392
+		if(item.status.value > 4){
393 393
 			this.activeIndex = 1
394 394
 		}
395 395
 		if(item.id){
@@ -587,6 +587,7 @@ export class PathologySampleComponent implements OnInit {
587 587
 			},
588 588
 			operation:'',
589 589
 			pathologySpecimenIds:'',
590
+			deptType:'outpatient'
590 591
 		};
591 592
 		delete data.pathologyForm.patientDTO
592 593
 		delete data.pathologyForm.surgeryDeptDTO
@@ -608,6 +609,7 @@ export class PathologySampleComponent implements OnInit {
608 609
 			delete data.pathologyForm.specimenFixingLiquid
609 610
 		}
610 611
 		this.printLoading = true;
612
+		this.coverType = 0;
611 613
 		this.mainService
612 614
 		  .pathologyPrint(data)
613 615
 		  .subscribe((res:any) => {
@@ -1369,6 +1371,7 @@ export class PathologySampleComponent implements OnInit {
1369 1371
 						},
1370 1372
 						operation:'',
1371 1373
 						pathologySpecimenIds:'',
1374
+						deptType:'outpatient'
1372 1375
 					};
1373 1376
 					data.pathologyForm.specimenNum = this.specimenList.length
1374 1377
 					if(this.operation=='addPrint' || this.operation=='wholePrint'){
@@ -1443,8 +1446,9 @@ export class PathologySampleComponent implements OnInit {
1443 1446
 					pathologyInspectIds:this.validateForm.value.project,
1444 1447
 					specimenType:{
1445 1448
 						id:this.validateForm.value.specimenGenre
1446
-					}
1447
-				}
1449
+					},
1450
+				},
1451
+				deptType:'outpatient'
1448 1452
 			};
1449 1453
 			data.pathologyForm.specimenNum = this.specimenList.length
1450 1454
 			delete data.pathologyForm.patientDTO
@@ -1456,8 +1460,29 @@ export class PathologySampleComponent implements OnInit {
1456 1460
 		}
1457 1461
 	}
1458 1462
 	
1463
+	// 封面打印
1464
+	coverType:any;
1465
+	coverSubmitForm(){
1466
+		this.coverType = 1
1467
+		if(this.detailsData.barCode){
1468
+			this.detailsData.barCode = this.sanitizer.bypassSecurityTrustResourceUrl(this.detailsData.barCode)
1469
+		}
1470
+		setTimeout(() => {
1471
+		  const printContent = document.getElementById("report");
1472
+		  const WindowPrt = window.open("", "", "width=100,height=1000");
1473
+			WindowPrt.document.body.innerHTML = printContent.innerHTML;
1474
+			setTimeout(_=>{
1475
+				WindowPrt.document.close();
1476
+				WindowPrt.focus();
1477
+				WindowPrt.print();
1478
+				WindowPrt.close();
1479
+			},500)
1480
+		}, 500);
1481
+	}
1482
+	
1459 1483
 	// 打印
1460 1484
 	printFun(data){
1485
+		this.coverType = 0;
1461 1486
 		this.mainService
1462 1487
 			.pathologyPrint(data)
1463 1488
 			.subscribe((res:any) => {

+ 25 - 21
src/app/views/pathology/pathology.component.html

@@ -9,10 +9,10 @@
9 9
     <div class="pharmacy-name">
10 10
 			<div class="mar-ri-30" *ngIf="toDayData">
11 11
 				今日接收:
12
-				申请单 <span class="weight">{{toDayData.pathologyFormNum}}</span> &nbsp;
13
-				标本 <span class="weight">{{toDayData.specimenNum}}</span>&nbsp;
14
-				速冻 <span class="weight">{{toDayData.rapidityNum}}</span>&nbsp;
15
-				送出申请单 <span class="weight">{{toDayData.sendOut}}</span>&nbsp;
12
+				申请单 <span class="weight">{{toDayData.pathologyFormNum || 0}}</span> &nbsp;
13
+				标本 <span class="weight">{{toDayData.specimenNum  || 0}}</span>&nbsp;
14
+				速冻 <span class="weight">{{toDayData.rapidityNum  || 0}}</span>&nbsp;
15
+				送出申请单 <span class="weight">{{toDayData.sendOut  || 0}}</span>&nbsp;
16 16
 			</div>
17 17
       <div class="pharmacy-name__total">
18 18
 				<nz-input-group nzSize="large">
@@ -424,29 +424,33 @@
424 424
 			<overlay-scrollbars #osComponentRef1 class="content">
425 425
 				<div class="list-template__bottom">
426 426
 					<nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false"
427
-						[nzLoading]="loading1">
428
-						<thead>
429
-							<tr class="thead">
427
+					  [nzLoading]="loading1">
428
+					  <thead>
429
+					    <tr class="thead">
430 430
 								<th>标本名称</th>
431
-								<th>编码</th>
432
-								<th>备注</th>
433
-								<th>离体时间</th>
434
-								<th>离体操作人</th>
435
-								<th>固定时间</th>
436
-								<th>固定操作人</th>
437
-							</tr>
438
-						</thead>
439
-						<tbody>
440
-							<tr *ngFor="let data of viewData">
431
+								<th>系统</th>
432
+								<th>部位</th>
433
+					      <th>编码</th>
434
+					      <th>备注</th>
435
+					      <th>离体时间</th>
436
+					      <th>离体操作人</th>
437
+					      <th>固定时间</th>
438
+					      <th>固定操作人</th>
439
+					    </tr>
440
+					  </thead>
441
+					  <tbody>
442
+					    <tr *ngFor="let data of viewData">
441 443
 								<td>{{ data.specimenName }}</td>
442
-								<td>{{ data.specimenCode }}</td>
443
-								<td>{{ data.remark ? data.remark : '无' }}</td>
444
+								<td>{{ data.system ? data.system.name : '-' }}</td>
445
+								<td>{{ data.organ ? data.organ.name : '-' }}</td>
446
+					      <td>{{ data.specimenCode }}</td>
447
+					      <td>{{ data.remark ? data.remark : '无' }}</td>
444 448
 								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
445 449
 								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
446 450
 								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
447 451
 								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
448
-							</tr>
449
-						</tbody>
452
+					    </tr>
453
+					  </tbody>
450 454
 					</nz-table>
451 455
 				</div>
452 456
 			</overlay-scrollbars>

+ 1 - 0
src/app/views/pathology/pathology.component.less

@@ -91,6 +91,7 @@
91 91
 			justify-content: center;
92 92
 			.mar-ri-30{
93 93
 				margin-right: 30px;
94
+				font-size: 16px;
94 95
 			}
95 96
 			.weight{
96 97
 				font-weight: bold;

+ 21 - 17
src/app/views/specimen-room-view/specimen-room-view.component.html

@@ -773,29 +773,33 @@
773 773
 			<overlay-scrollbars #osComponentRef1 class="content">
774 774
 				<div class="list-template__bottom">
775 775
 					<nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false"
776
-						[nzLoading]="loading1">
777
-						<thead>
778
-							<tr class="thead">
776
+					  [nzLoading]="loading1">
777
+					  <thead>
778
+					    <tr class="thead">
779 779
 								<th>标本名称</th>
780
-								<th>编码</th>
781
-								<th>备注</th>
782
-								<th>离体时间</th>
783
-								<th>离体操作人</th>
784
-								<th>固定时间</th>
785
-								<th>固定操作人</th>
786
-							</tr>
787
-						</thead>
788
-						<tbody>
789
-							<tr *ngFor="let data of viewData">
780
+								<th>系统</th>
781
+								<th>部位</th>
782
+					      <th>编码</th>
783
+					      <th>备注</th>
784
+					      <th>离体时间</th>
785
+					      <th>离体操作人</th>
786
+					      <th>固定时间</th>
787
+					      <th>固定操作人</th>
788
+					    </tr>
789
+					  </thead>
790
+					  <tbody>
791
+					    <tr *ngFor="let data of viewData">
790 792
 								<td>{{ data.specimenName }}</td>
791
-								<td>{{ data.specimenCode }}</td>
792
-								<td>{{ data.remark ? data.remark : '无' }}</td>
793
+								<td>{{ data.system ? data.system.name : '-' }}</td>
794
+								<td>{{ data.organ ? data.organ.name : '-' }}</td>
795
+					      <td>{{ data.specimenCode }}</td>
796
+					      <td>{{ data.remark ? data.remark : '无' }}</td>
793 797
 								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
794 798
 								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
795 799
 								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
796 800
 								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
797
-							</tr>
798
-						</tbody>
801
+					    </tr>
802
+					  </tbody>
799 803
 					</nz-table>
800 804
 				</div>
801 805
 			</overlay-scrollbars>

+ 9 - 2
src/app/views/specimen-room-view/specimen-room-view.component.ts

@@ -655,9 +655,16 @@ export class SpecimenRoomViewComponent implements OnInit, OnDestroy {
655 655
 			// 今日离科标本列表
656 656
 			this.getPharmacyList(this.pharmacyIdx, 'leavedDept', this.pharmacySearchKey);
657 657
 			if (res.status == 200) {
658
-				this.showPromptModal("操作", true, "");
658
+				this.message.success('操作成功')
659
+				setTimeout(_=>{
660
+					this.verificationMoadl = false
661
+					this.fixationModal = false
662
+					document.getElementById('Binput').focus();
663
+				},200)
664
+				// this.showPromptModal("操作", true, "");
659 665
 			} else {
660
-				this.showPromptModal("操作", false, res.msg);
666
+				this.message.error(res.msg)
667
+				// this.showPromptModal("操作", false, res.msg);
661 668
 			}
662 669
 		});
663 670
 	}