Browse Source

Merge branch 'master' into develop

seimin 4 months ago
parent
commit
e1c786c2e9

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.html

@@ -2988,7 +2988,7 @@
2988
 		<div class="title">多条申请单提示<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
2988
 		<div class="title">多条申请单提示<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
2989
 		</div>
2989
 		</div>
2990
 		<div class="content">
2990
 		<div class="content">
2991
-			<div class="weight">
2991
+			<div class="weight" *ngIf="viewData.length>0">
2992
 				提示:查询到{{viewData[0].patientDTO.patientName}}({{viewData[0].patientDTO.patientCode}})患者有多条申请单,请选择对应申请单
2992
 				提示:查询到{{viewData[0].patientDTO.patientName}}({{viewData[0].patientDTO.patientCode}})患者有多条申请单,请选择对应申请单
2993
 			</div>
2993
 			</div>
2994
 			<div class="list-template__bottom">
2994
 			<div class="list-template__bottom">

+ 16 - 8
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -339,14 +339,19 @@ export class HushijiandanComponent implements OnInit {
339
 	// 新增申请单自选类型
339
 	// 新增申请单自选类型
340
 	applicationType:any;
340
 	applicationType:any;
341
 	addPathologyType(type){
341
 	addPathologyType(type){
342
-		this.surgeryDataId = this.surgeryWKOMsg.id
343
-		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
342
+		if(this.openType=='btn'){
343
+			this.surgeryDataId = this.surgeryWKOMsg.id
344
+			this.patientDataId = this.surgeryWKOMsg.patientDTO.id
345
+		}else{
346
+			this.surgeryDataId = this.scheduleItem.id
347
+			this.patientDataId = this.scheduleItem.patientDTO.id
348
+		}
344
 		this.applicationType = type
349
 		this.applicationType = type
345
 		let data = {
350
 		let data = {
346
 			idx: 0,
351
 			idx: 0,
347
 			sum: 9999,
352
 			sum: 9999,
348
-			surgeryId: this.surgeryWKOMsg.id || "",
349
-			patientId: this.surgeryWKOMsg.patientDTO.id || "",
353
+			surgeryId: this.surgeryDataId || "",
354
+			patientId: this.patientDataId || "",
350
 			hosId: this.currentHospital.id || "" ,
355
 			hosId: this.currentHospital.id || "" ,
351
 			operationType: 'pathologyForm',
356
 			operationType: 'pathologyForm',
352
 			pathologyFormType: type
357
 			pathologyFormType: type
@@ -361,9 +366,13 @@ export class HushijiandanComponent implements OnInit {
361
 	}
366
 	}
362
 
367
 
363
 	// 手术排程-病理申请单
368
 	// 手术排程-病理申请单
369
+	openType:any;
370
+	scheduleItem:any;
364
 	pathologyAddItem(e,item){
371
 	pathologyAddItem(e,item){
365
-		this.surgeryDataId = item.id
366
-		this.patientDataId = item.patientDTO.id
372
+		this.openType = 'schedule'
373
+		this.scheduleItem = item
374
+		// this.surgeryDataId = item.id
375
+		// this.patientDataId = item.patientDTO.id
367
 		let data = {
376
 		let data = {
368
 			idx: 0,
377
 			idx: 0,
369
 			sum: 9999,
378
 			sum: 9999,
@@ -422,6 +431,7 @@ export class HushijiandanComponent implements OnInit {
422
 	isSpinning:any = false;
431
 	isSpinning:any = false;
423
 	viewData:any = [];
432
 	viewData:any = [];
424
 	pathologyAdd(e){
433
 	pathologyAdd(e){
434
+		this.openType = 'btn'
425
 		this.surgeryDataId = this.surgeryWKOMsg.id
435
 		this.surgeryDataId = this.surgeryWKOMsg.id
426
 		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
436
 		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
427
 		let data = {
437
 		let data = {
@@ -449,7 +459,6 @@ export class HushijiandanComponent implements OnInit {
449
 					}
459
 					}
450
 				}
460
 				}
451
 			}
461
 			}
452
-			console.log(777,this.viewData)
453
 			this.multiDialog = true
462
 			this.multiDialog = true
454
 			return
463
 			return
455
 			if(data.list.length==1){
464
 			if(data.list.length==1){
@@ -475,7 +484,6 @@ export class HushijiandanComponent implements OnInit {
475
 						}
484
 						}
476
 					}
485
 					}
477
 				}
486
 				}
478
-				console.log(777,this.viewData)
479
 				this.multiDialog = true
487
 				this.multiDialog = true
480
 			}else if(data.list.length==0){
488
 			}else if(data.list.length==0){
481
 				this.message.error('无申请单')
489
 				this.message.error('无申请单')