|
@@ -2648,6 +2648,17 @@ export class FuwutaiComponent implements OnInit {
|
2648
|
2648
|
this.websocketLoading = false;
|
2649
|
2649
|
}
|
2650
|
2650
|
}
|
|
2651
|
+ // 患者转运默认陪检
|
|
2652
|
+ defaultInspectFn(){
|
|
2653
|
+ if(this.currentTabIndex === '患者转运'){
|
|
2654
|
+ console.log(this.workTypesArrange);
|
|
2655
|
+ let obj = this.workTypesArrange.find(v => v.key == this.currentTabIndex);
|
|
2656
|
+ let arr = obj.value || [];
|
|
2657
|
+ let index = arr.findIndex(v => v.associationTypeValue === 'inspect');
|
|
2658
|
+ let o = arr.find(v => v.associationTypeValue === 'inspect');
|
|
2659
|
+ o && this.radioChangeZy(o.id, index);
|
|
2660
|
+ }
|
|
2661
|
+ }
|
2651
|
2662
|
// 点击tab切换
|
2652
|
2663
|
tabClick(key, isInit = false) {
|
2653
|
2664
|
let preCurrentTabIndex = this.currentTabIndex;
|
|
@@ -2657,6 +2668,10 @@ export class FuwutaiComponent implements OnInit {
|
2657
|
2668
|
this.endDeptQt = null;
|
2658
|
2669
|
this.radioValueZy = null;
|
2659
|
2670
|
this.radioValueZyPre = null;
|
|
2671
|
+ this.defaultInspectFn();
|
|
2672
|
+ if(this.currentTabIndex === '患者转运'){
|
|
2673
|
+ this.getPatientList(this.applyDept, "");
|
|
2674
|
+ }
|
2660
|
2675
|
this.startDeptZy = null;
|
2661
|
2676
|
this.endDeptZy = null;
|
2662
|
2677
|
this.patientZy = null;
|
|
@@ -3474,6 +3489,7 @@ export class FuwutaiComponent implements OnInit {
|
3474
|
3489
|
changeApply(e) {
|
3475
|
3490
|
console.log(e, this.applicationDepartmentList);
|
3476
|
3491
|
this.changeApplicationDepartment("&same&");
|
|
3492
|
+ this.defaultInspectFn();
|
3477
|
3493
|
|
3478
|
3494
|
if(this.applyDept && this.currentTabIndex !== '故障报修'){
|
3479
|
3495
|
this.rightTitle_tab = [
|
|
@@ -4611,23 +4627,25 @@ export class FuwutaiComponent implements OnInit {
|
4611
|
4627
|
}
|
4612
|
4628
|
}
|
4613
|
4629
|
});
|
4614
|
|
- // 获取携带设备
|
4615
|
|
- let arrObj = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
|
4616
|
|
- let arr = arrObj.value;
|
4617
|
|
- this.goodsNow = arr.filter(
|
4618
|
|
- (item) => item.id == value
|
4619
|
|
- )[0].taskType.carryEquipmentIds;
|
4620
|
|
- if (this.goodsNow) {
|
4621
|
|
- this.goodsNow = this.goodsNow.map((item) => {
|
4622
|
|
- return {
|
4623
|
|
- label: item.name,
|
4624
|
|
- value: item.id,
|
4625
|
|
- checked: false,
|
4626
|
|
- };
|
4627
|
|
- });
|
4628
|
|
- } else {
|
4629
|
|
- this.goodsNow = [];
|
4630
|
|
- }
|
|
4630
|
+ setTimeout(() => {
|
|
4631
|
+ // 获取携带设备
|
|
4632
|
+ let arrObj = this.workTypesArrange.find(v => v.key === this.currentTabIndex);
|
|
4633
|
+ let arr = arrObj.value;
|
|
4634
|
+ this.goodsNow = arr.filter(
|
|
4635
|
+ (item) => item.id == value
|
|
4636
|
+ )[0].taskType.carryEquipmentIds;
|
|
4637
|
+ if (this.goodsNow) {
|
|
4638
|
+ this.goodsNow = this.goodsNow.map((item) => {
|
|
4639
|
+ return {
|
|
4640
|
+ label: item.name,
|
|
4641
|
+ value: item.id,
|
|
4642
|
+ checked: false,
|
|
4643
|
+ };
|
|
4644
|
+ });
|
|
4645
|
+ } else {
|
|
4646
|
+ this.goodsNow = [];
|
|
4647
|
+ }
|
|
4648
|
+ }, 0)
|
4631
|
4649
|
}
|
4632
|
4650
|
radioChangeQt(value) {
|
4633
|
4651
|
//任务类型id
|