Ver código fonte

拉取代码

maotao 4 meses atrás
pai
commit
bb9e35f285
1 arquivos alterados com 16 adições e 7 exclusões
  1. 16 7
      src/app/views/hushijiandan/hushijiandan.component.ts

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

@@ -336,14 +336,19 @@ export class HushijiandanComponent implements OnInit {
336 336
 	// 新增申请单自选类型
337 337
 	applicationType:any;
338 338
 	addPathologyType(type){
339
-		this.surgeryDataId = this.surgeryWKOMsg.id
340
-		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
339
+		if(this.openType=='btn'){
340
+			this.surgeryDataId = this.surgeryWKOMsg.id
341
+			this.patientDataId = this.surgeryWKOMsg.patientDTO.id
342
+		}else{
343
+			this.surgeryDataId = this.scheduleItem.id
344
+			this.patientDataId = this.scheduleItem.patientDTO.id
345
+		}
341 346
 		this.applicationType = type
342 347
 		let data = {
343 348
 			idx: 0,
344 349
 			sum: 9999,
345
-			surgeryId: this.surgeryWKOMsg.id || "",
346
-			patientId: this.surgeryWKOMsg.patientDTO.id || "",
350
+			surgeryId: this.surgeryDataId || "",
351
+			patientId: this.patientDataId || "",
347 352
 			hosId: this.currentHospital.id || "" ,
348 353
 			operationType: 'pathologyForm',
349 354
 			pathologyFormType: type
@@ -358,9 +363,13 @@ export class HushijiandanComponent implements OnInit {
358 363
 	}
359 364
 	
360 365
 	// 手术排程-病理申请单
366
+	openType:any;
367
+	scheduleItem:any;
361 368
 	pathologyAddItem(e,item){
362
-		this.surgeryDataId = item.id
363
-		this.patientDataId = item.patientDTO.id
369
+		this.openType = 'schedule'
370
+		this.scheduleItem = item
371
+		// this.surgeryDataId = item.id
372
+		// this.patientDataId = item.patientDTO.id
364 373
 		let data = {
365 374
 			idx: 0,
366 375
 			sum: 9999,
@@ -419,6 +428,7 @@ export class HushijiandanComponent implements OnInit {
419 428
 	isSpinning:any = false;
420 429
 	viewData:any = [];
421 430
 	pathologyAdd(e){
431
+		this.openType = 'btn'
422 432
 		this.surgeryDataId = this.surgeryWKOMsg.id
423 433
 		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
424 434
 		let data = {
@@ -471,7 +481,6 @@ export class HushijiandanComponent implements OnInit {
471 481
 						}
472 482
 					}
473 483
 				}
474
-				console.log(777,this.viewData)
475 484
 				this.multiDialog = true
476 485
 			}else if(data.list.length==0){
477 486
 				this.message.error('无申请单')