|
@@ -58,7 +58,7 @@ export class OfficeManagementComponent implements OnInit {
|
58
|
58
|
add: boolean; //true:新增;false:编辑
|
59
|
59
|
validateForm: FormGroup; //新增/编辑表单
|
60
|
60
|
coopId: number; //表格中执行操作的id
|
61
|
|
- hospital; //所属院区
|
|
61
|
+ hospital: number; //所属院区
|
62
|
62
|
name; //名称
|
63
|
63
|
num; //编码
|
64
|
64
|
deptalias; //别名
|
|
@@ -73,6 +73,7 @@ export class OfficeManagementComponent implements OnInit {
|
73
|
73
|
isAddDeptsPhone = true; //添加新的科室电话是否禁用
|
74
|
74
|
deptsPhoneId = 1; //科室电话自增id
|
75
|
75
|
allParentdepart: any = []; //所有的父级科室列表
|
|
76
|
+ hospitals1: any = []; //院区列表(搜索)
|
76
|
77
|
searchParentDeptSubject = new Subject();
|
77
|
78
|
// 初始化增删改按钮
|
78
|
79
|
coopBtns: any = {};
|
|
@@ -94,7 +95,7 @@ export class OfficeManagementComponent implements OnInit {
|
94
|
95
|
});
|
95
|
96
|
}
|
96
|
97
|
}
|
97
|
|
- //获取所有的父级科室列表baba
|
|
98
|
+ //获取所有的父级科室列表
|
98
|
99
|
getAllParentdepart(keyWord = "") {
|
99
|
100
|
let postData: any = {
|
100
|
101
|
idx: 0,
|
|
@@ -144,7 +145,7 @@ export class OfficeManagementComponent implements OnInit {
|
144
|
145
|
// 重置
|
145
|
146
|
reset() {
|
146
|
147
|
this.pageIndex = 1;
|
147
|
|
- this.hospital = this.tool.getCurrentHospital().id + "";
|
|
148
|
+ this.hospital = this.tool.getCurrentHospital().id;
|
148
|
149
|
this.type = null;
|
149
|
150
|
this.name = "";
|
150
|
151
|
this.num = "";
|
|
@@ -182,7 +183,8 @@ export class OfficeManagementComponent implements OnInit {
|
182
|
183
|
|
183
|
184
|
// 获取所有院区
|
184
|
185
|
getAllHospital() {
|
185
|
|
- this.hospital = this.tool.getCurrentHospital().id + "";
|
|
186
|
+ this.hospitals1 = this.tool.getHospitalList();
|
|
187
|
+ this.hospital = this.tool.getCurrentHospital().id;
|
186
|
188
|
this.getList();
|
187
|
189
|
}
|
188
|
190
|
|