浏览代码

拉取代码

maotao 4 月之前
父节点
当前提交
bb9e35f285
共有 1 个文件被更改,包括 16 次插入7 次删除
  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
 	applicationType:any;
337
 	applicationType:any;
338
 	addPathologyType(type){
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
 		this.applicationType = type
346
 		this.applicationType = type
342
 		let data = {
347
 		let data = {
343
 			idx: 0,
348
 			idx: 0,
344
 			sum: 9999,
349
 			sum: 9999,
345
-			surgeryId: this.surgeryWKOMsg.id || "",
346
-			patientId: this.surgeryWKOMsg.patientDTO.id || "",
350
+			surgeryId: this.surgeryDataId || "",
351
+			patientId: this.patientDataId || "",
347
 			hosId: this.currentHospital.id || "" ,
352
 			hosId: this.currentHospital.id || "" ,
348
 			operationType: 'pathologyForm',
353
 			operationType: 'pathologyForm',
349
 			pathologyFormType: type
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
 	pathologyAddItem(e,item){
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
 		let data = {
373
 		let data = {
365
 			idx: 0,
374
 			idx: 0,
366
 			sum: 9999,
375
 			sum: 9999,
@@ -419,6 +428,7 @@ export class HushijiandanComponent implements OnInit {
419
 	isSpinning:any = false;
428
 	isSpinning:any = false;
420
 	viewData:any = [];
429
 	viewData:any = [];
421
 	pathologyAdd(e){
430
 	pathologyAdd(e){
431
+		this.openType = 'btn'
422
 		this.surgeryDataId = this.surgeryWKOMsg.id
432
 		this.surgeryDataId = this.surgeryWKOMsg.id
423
 		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
433
 		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
424
 		let data = {
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
 				this.multiDialog = true
484
 				this.multiDialog = true
476
 			}else if(data.list.length==0){
485
 			}else if(data.list.length==0){
477
 				this.message.error('无申请单')
486
 				this.message.error('无申请单')