Parcourir la source

Merge branch 'master' into develop

seimin il y a 4 mois
Parent
commit
e1c786c2e9

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

@@ -2988,7 +2988,7 @@
2988 2988
 		<div class="title">多条申请单提示<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
2989 2989
 		</div>
2990 2990
 		<div class="content">
2991
-			<div class="weight">
2991
+			<div class="weight" *ngIf="viewData.length>0">
2992 2992
 				提示:查询到{{viewData[0].patientDTO.patientName}}({{viewData[0].patientDTO.patientCode}})患者有多条申请单,请选择对应申请单
2993 2993
 			</div>
2994 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 340
 	applicationType:any;
341 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 349
 		this.applicationType = type
345 350
 		let data = {
346 351
 			idx: 0,
347 352
 			sum: 9999,
348
-			surgeryId: this.surgeryWKOMsg.id || "",
349
-			patientId: this.surgeryWKOMsg.patientDTO.id || "",
353
+			surgeryId: this.surgeryDataId || "",
354
+			patientId: this.patientDataId || "",
350 355
 			hosId: this.currentHospital.id || "" ,
351 356
 			operationType: 'pathologyForm',
352 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 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 376
 		let data = {
368 377
 			idx: 0,
369 378
 			sum: 9999,
@@ -422,6 +431,7 @@ export class HushijiandanComponent implements OnInit {
422 431
 	isSpinning:any = false;
423 432
 	viewData:any = [];
424 433
 	pathologyAdd(e){
434
+		this.openType = 'btn'
425 435
 		this.surgeryDataId = this.surgeryWKOMsg.id
426 436
 		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
427 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 462
 			this.multiDialog = true
454 463
 			return
455 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 487
 				this.multiDialog = true
480 488
 			}else if(data.list.length==0){
481 489
 				this.message.error('无申请单')