|
@@ -2494,6 +2494,7 @@ export class FuwutaiComponent implements OnInit {
|
2494
|
2494
|
this.repairImgs = [];
|
2495
|
2495
|
this.isRelatedDepartment = true;
|
2496
|
2496
|
this.solutionId = undefined;
|
|
2497
|
+ delete this.incidentMsg.requesterPhone;
|
2497
|
2498
|
}
|
2498
|
2499
|
// 重置新建工单数据-继续建单-编辑-报修转事件
|
2499
|
2500
|
resetOrderData2(){
|
|
@@ -2653,14 +2654,15 @@ export class FuwutaiComponent implements OnInit {
|
2653
|
2654
|
if(this.currentTabIndex === '患者转运'){
|
2654
|
2655
|
console.log(this.workTypesArrange);
|
2655
|
2656
|
let obj = this.workTypesArrange.find(v => v.key == this.currentTabIndex);
|
|
2657
|
+ let tabIndex = this.workTypesArrange.findIndex(v => v.key == this.currentTabIndex);
|
2656
|
2658
|
let arr = obj.value || [];
|
2657
|
2659
|
let index = arr.findIndex(v => v.associationTypeValue === 'inspect');
|
2658
|
2660
|
let o = arr.find(v => v.associationTypeValue === 'inspect');
|
2659
|
|
- o && this.radioChangeZy(o.id, index);
|
|
2661
|
+ o && this.radioChangeZy(o.id, tabIndex);
|
2660
|
2662
|
}
|
2661
|
2663
|
}
|
2662
|
2664
|
// 点击tab切换
|
2663
|
|
- tabClick(key, isInit = false) {
|
|
2665
|
+ tabClick(key, isInit = false, patient?) {
|
2664
|
2666
|
let preCurrentTabIndex = this.currentTabIndex;
|
2665
|
2667
|
this.currentTabIndex = key;
|
2666
|
2668
|
this.radioValueQt = null;
|
|
@@ -2670,7 +2672,7 @@ export class FuwutaiComponent implements OnInit {
|
2670
|
2672
|
this.radioValueZyPre = null;
|
2671
|
2673
|
this.defaultInspectFn();
|
2672
|
2674
|
if(this.currentTabIndex === '患者转运'){
|
2673
|
|
- this.getPatientList(this.applyDept, "");
|
|
2675
|
+ this.getPatientList(this.applyDept, "", patient);
|
2674
|
2676
|
}
|
2675
|
2677
|
this.startDeptZy = null;
|
2676
|
2678
|
this.endDeptZy = null;
|
|
@@ -2725,7 +2727,11 @@ export class FuwutaiComponent implements OnInit {
|
2725
|
2727
|
}
|
2726
|
2728
|
// 获取患者信息
|
2727
|
2729
|
isLoadingPatient: boolean = false;
|
2728
|
|
- getPatientList(id, searchWords) {
|
|
2730
|
+ getPatientList(id, searchWords, patient?) {
|
|
2731
|
+ if(patient){
|
|
2732
|
+ this.patientList = [patient];
|
|
2733
|
+ return;
|
|
2734
|
+ }
|
2729
|
2735
|
let dataObj = { searchWords, deptId: id };
|
2730
|
2736
|
this.isLoadingPatient = true;
|
2731
|
2737
|
this.mainService.getPatientList(dataObj).subscribe((result) => {
|
|
@@ -2759,9 +2765,10 @@ export class FuwutaiComponent implements OnInit {
|
2759
|
2765
|
patient.patientname = patient.patientName;
|
2760
|
2766
|
patient.department && (this.applicationDepartmentList = [patient.department]);
|
2761
|
2767
|
patient.department && (this.applyDept = patient.department.id);
|
2762
|
|
- patient.department && this.tabClick('患者转运');
|
2763
|
|
- patient.department && (this.patientList = [patient]);
|
|
2768
|
+ patient.department && this.tabClick('患者转运', false, patient);
|
|
2769
|
+ // patient.department && (this.patientList = [patient]);
|
2764
|
2770
|
patient.department && (this.patientZy = patient.patientCode);
|
|
2771
|
+ console.log(this.patientList)
|
2765
|
2772
|
}else{
|
2766
|
2773
|
this.msg.warning('未查询到患者');
|
2767
|
2774
|
}
|