|
@@ -584,6 +584,54 @@ export class FuwutaiComponent implements OnInit {
|
584
|
584
|
}
|
585
|
585
|
})
|
586
|
586
|
}
|
|
587
|
+ //获取检查页面任务类型
|
|
588
|
+ getInspectAndPatientTransportConfigTasktype() {
|
|
589
|
+ let postData = {
|
|
590
|
+ idx: 0,
|
|
591
|
+ sum: 10,
|
|
592
|
+ taskType: {
|
|
593
|
+ simpleQuery: true,
|
|
594
|
+ hosId: {
|
|
595
|
+ id: this.checkedHos
|
|
596
|
+ },
|
|
597
|
+ associationType: {
|
|
598
|
+ key:"association_types",
|
|
599
|
+ value: 'inspect'
|
|
600
|
+ }
|
|
601
|
+ }
|
|
602
|
+ };
|
|
603
|
+ this.mainService
|
|
604
|
+ .getFetchDataList("simple/data", "taskType", postData)
|
|
605
|
+ .subscribe((result) => {
|
|
606
|
+ if (result.status == 200) {
|
|
607
|
+ let tasktype:any = result.list[0] || {};
|
|
608
|
+ this.getInspectAndPatientTransportConfig(tasktype);
|
|
609
|
+ }
|
|
610
|
+ });
|
|
611
|
+ }
|
|
612
|
+ // 获取检查页面信息配置
|
|
613
|
+ getInspectAndPatientTransportConfig(tasktype) {
|
|
614
|
+ let postData = {
|
|
615
|
+ idx: 0,
|
|
616
|
+ sum: 10,
|
|
617
|
+ taskTypeConfig: {
|
|
618
|
+ taskTypeDTO: {
|
|
619
|
+ hosId: {
|
|
620
|
+ id: this.checkedHos
|
|
621
|
+ },
|
|
622
|
+ associationType: tasktype.associationType
|
|
623
|
+ }
|
|
624
|
+ }
|
|
625
|
+ };
|
|
626
|
+ this.mainService
|
|
627
|
+ .getFetchDataList("simple/data", "taskTypeConfig", postData)
|
|
628
|
+ .subscribe((result) => {
|
|
629
|
+ if (result.status == 200) {
|
|
630
|
+ let inspectAndPatientTransportConfig = result.list[0] || {};
|
|
631
|
+ this.inspectAndPatientTransportConfig = {...this.inspectAndPatientTransportConfig, ...inspectAndPatientTransportConfig};
|
|
632
|
+ }
|
|
633
|
+ });
|
|
634
|
+ }
|
587
|
635
|
ngOnInit() {
|
588
|
636
|
//防抖
|
589
|
637
|
this.changeInpSubject.pipe(debounceTime(500)).subscribe((v) => {
|
|
@@ -634,6 +682,7 @@ export class FuwutaiComponent implements OnInit {
|
634
|
682
|
this.moveMenu();
|
635
|
683
|
this.getPhoneNum();
|
636
|
684
|
this.getUnassignedBuilding2();
|
|
685
|
+ this.getInspectAndPatientTransportConfigTasktype();
|
637
|
686
|
}
|
638
|
687
|
ngOnDestroy() {
|
639
|
688
|
clearInterval(this.refreshTimerId);
|