|
@@ -2660,7 +2660,7 @@ export class FuwutaiComponent implements OnInit {
|
2660
|
2660
|
}
|
2661
|
2661
|
}
|
2662
|
2662
|
// 点击tab切换
|
2663
|
|
- tabClick(key, isInit = false) {
|
|
2663
|
+ tabClick(key, isInit = false, patient?) {
|
2664
|
2664
|
let preCurrentTabIndex = this.currentTabIndex;
|
2665
|
2665
|
this.currentTabIndex = key;
|
2666
|
2666
|
this.radioValueQt = null;
|
|
@@ -2670,7 +2670,7 @@ export class FuwutaiComponent implements OnInit {
|
2670
|
2670
|
this.radioValueZyPre = null;
|
2671
|
2671
|
this.defaultInspectFn();
|
2672
|
2672
|
if(this.currentTabIndex === '患者转运'){
|
2673
|
|
- this.getPatientList(this.applyDept, "");
|
|
2673
|
+ this.getPatientList(this.applyDept, "", patient);
|
2674
|
2674
|
}
|
2675
|
2675
|
this.startDeptZy = null;
|
2676
|
2676
|
this.endDeptZy = null;
|
|
@@ -2725,7 +2725,11 @@ export class FuwutaiComponent implements OnInit {
|
2725
|
2725
|
}
|
2726
|
2726
|
// 获取患者信息
|
2727
|
2727
|
isLoadingPatient: boolean = false;
|
2728
|
|
- getPatientList(id, searchWords) {
|
|
2728
|
+ getPatientList(id, searchWords, patient?) {
|
|
2729
|
+ if(patient){
|
|
2730
|
+ this.patientList = [patient];
|
|
2731
|
+ return;
|
|
2732
|
+ }
|
2729
|
2733
|
let dataObj = { searchWords, deptId: id };
|
2730
|
2734
|
this.isLoadingPatient = true;
|
2731
|
2735
|
this.mainService.getPatientList(dataObj).subscribe((result) => {
|
|
@@ -2759,9 +2763,10 @@ export class FuwutaiComponent implements OnInit {
|
2759
|
2763
|
patient.patientname = patient.patientName;
|
2760
|
2764
|
patient.department && (this.applicationDepartmentList = [patient.department]);
|
2761
|
2765
|
patient.department && (this.applyDept = patient.department.id);
|
2762
|
|
- patient.department && this.tabClick('患者转运');
|
2763
|
|
- patient.department && (this.patientList = [patient]);
|
|
2766
|
+ patient.department && this.tabClick('患者转运', false, patient);
|
|
2767
|
+ // patient.department && (this.patientList = [patient]);
|
2764
|
2768
|
patient.department && (this.patientZy = patient.patientCode);
|
|
2769
|
+ console.log(this.patientList)
|
2765
|
2770
|
}else{
|
2766
|
2771
|
this.msg.warning('未查询到患者');
|
2767
|
2772
|
}
|
|
@@ -4537,8 +4542,8 @@ export class FuwutaiComponent implements OnInit {
|
4537
|
4542
|
this.startDeptZy = null;
|
4538
|
4543
|
this.endDeptZy = null;
|
4539
|
4544
|
// 患者陪检-则参数增加patientCode
|
4540
|
|
- console.log(this.workTypesArrange[index].value);
|
4541
|
|
- let taskType = this.workTypesArrange[index].value.find(v => v.id == value);
|
|
4545
|
+ let currentTab = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
|
|
4546
|
+ let taskType = currentTab.value[index];
|
4542
|
4547
|
let patientCode;
|
4543
|
4548
|
if(taskType.associationTypeValue === 'inspect'){
|
4544
|
4549
|
patientCode = this.patientZy;
|
|
@@ -5711,7 +5716,8 @@ export class FuwutaiComponent implements OnInit {
|
5711
|
5716
|
if(this.tabIndex !== undefined && this.currentTasktype && this.currentTasktype.associationType.value === 'inspect'){
|
5712
|
5717
|
let index = this.tabIndex;
|
5713
|
5718
|
let value = this.currentTasktype.id;
|
5714
|
|
- let taskType = this.workTypesArrange[index].value.find(v => v.id == value);
|
|
5719
|
+ let currentTab = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
|
|
5720
|
+ let taskType = currentTab.value[index];
|
5715
|
5721
|
let patientCode;
|
5716
|
5722
|
if(taskType.associationTypeValue === 'inspect'){
|
5717
|
5723
|
patientCode = this.patientZy;
|