|
@@ -481,18 +481,20 @@ export class PathologyComponent implements OnInit, OnDestroy {
|
481
|
481
|
|
482
|
482
|
// 获取院区
|
483
|
483
|
getHospitalData(){
|
484
|
|
- let data = {
|
485
|
|
- idx: 0,
|
486
|
|
- sum: 9999,
|
487
|
|
- hospital:{
|
488
|
|
- selectType:'level1'
|
489
|
|
- }
|
490
|
|
- };
|
491
|
|
- this.mainService
|
492
|
|
- .getFetchDataList("data", "hospital", data)
|
493
|
|
- .subscribe((res) => {
|
494
|
|
- this.hospital = res.list;
|
495
|
|
- });
|
|
484
|
+ let arr = this.tool.getHospitalList().filter(i=>i.parent==undefined)
|
|
485
|
+ this.hospital = arr
|
|
486
|
+ // let data = {
|
|
487
|
+ // idx: 0,
|
|
488
|
+ // sum: 9999,
|
|
489
|
+ // hospital:{
|
|
490
|
+ // selectType:'level1'
|
|
491
|
+ // }
|
|
492
|
+ // };
|
|
493
|
+ // this.mainService
|
|
494
|
+ // .getFetchDataList("data", "hospital", data)
|
|
495
|
+ // .subscribe((res) => {
|
|
496
|
+ // this.hospital = res.list;
|
|
497
|
+ // });
|
496
|
498
|
}
|
497
|
499
|
|
498
|
500
|
// 选择院区
|
|
@@ -762,15 +764,24 @@ export class PathologyComponent implements OnInit, OnDestroy {
|
762
|
764
|
this.mustReceived = res.data.mustReceived;
|
763
|
765
|
this.currReceived = res.data.currReceived;
|
764
|
766
|
this.btnConnectLoading = false
|
765
|
|
- this.validateConnectForm = this.fb.group({
|
766
|
|
- receptionNumber: [null, [Validators.required]],
|
767
|
|
- dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
|
768
|
|
- });
|
769
|
|
- this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
|
770
|
|
- this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
|
|
767
|
+ if(this.codeData[0].deliveryUserDTO){
|
|
768
|
+ this.validateConnectForm = this.fb.group({
|
|
769
|
+ receptionNumber: [null, [Validators.required]],
|
|
770
|
+ dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
|
|
771
|
+ });
|
|
772
|
+ this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
|
|
773
|
+ this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
|
|
774
|
+ }else{
|
|
775
|
+ this.validateConnectForm = this.fb.group({
|
|
776
|
+ receptionNumber: [null, [Validators.required]],
|
|
777
|
+ dispatchingNumber: [null, [Validators.required]]
|
|
778
|
+ });
|
|
779
|
+ this.dispatchingName = null;
|
|
780
|
+ this.dispatchingUserId = null
|
|
781
|
+ }
|
771
|
782
|
|
772
|
783
|
this.receptionName = null;
|
773
|
|
- this.connectUserId =null
|
|
784
|
+ this.connectUserId = null
|
774
|
785
|
this.connectModal = true
|
775
|
786
|
});
|
776
|
787
|
}
|