|
@@ -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('无申请单')
|