|
@@ -20,6 +20,7 @@ export class HospitalConfigComponent implements OnInit {
|
20
|
20
|
searchLoading: boolean = false;
|
21
|
21
|
hospitalConfigList = []; //院区系统配置列表
|
22
|
22
|
roleList = []; //角色列表
|
|
23
|
+ taskTypeList = []; //任务类型列表
|
23
|
24
|
deptList = []; //科室列表
|
24
|
25
|
groupList = []; //组列表
|
25
|
26
|
onSearchSubject = new Subject(); //搜索防抖
|
|
@@ -56,6 +57,7 @@ export class HospitalConfigComponent implements OnInit {
|
56
|
57
|
this.getRoleList(),
|
57
|
58
|
this.getDeptList(this.hosId),
|
58
|
59
|
this.getGroupList(this.hosId),
|
|
60
|
+ this.getTaskTypeList(),
|
59
|
61
|
])
|
60
|
62
|
.then((result) => {
|
61
|
63
|
if (result[0].status == 200) {
|
|
@@ -67,6 +69,9 @@ export class HospitalConfigComponent implements OnInit {
|
67
|
69
|
if (result[2].status == 200) {
|
68
|
70
|
this.groupList = result[2].list;
|
69
|
71
|
}
|
|
72
|
+ if (result[3].status == 200) {
|
|
73
|
+ this.taskTypeList = result[3].list;
|
|
74
|
+ }
|
70
|
75
|
this.getHospitalConfigList(this.hosId).subscribe((res) => {
|
71
|
76
|
if (res.status == 200) {
|
72
|
77
|
this.hospitalConfigList = res.list;
|
|
@@ -85,8 +90,13 @@ export class HospitalConfigComponent implements OnInit {
|
85
|
90
|
this.validateForm = this.fb.group(fbGroup);
|
86
|
91
|
//赋值
|
87
|
92
|
this.hospitalConfigList.forEach((config) => {
|
88
|
|
- //默认角色
|
89
|
|
- if (config.key === "autoCreateUserRoleId") {
|
|
93
|
+ //默认角色,默认组
|
|
94
|
+ if (
|
|
95
|
+ config.key === "autoCreateUserRoleId" ||
|
|
96
|
+ config.key === "rebackPatientTypeId" ||
|
|
97
|
+ config.key === "transDeptTypeId" ||
|
|
98
|
+ config.key === "autoCreateUserGroupId"
|
|
99
|
+ ) {
|
90
|
100
|
this.validateForm.controls[config.key].setValue(
|
91
|
101
|
config.value - 0
|
92
|
102
|
);
|
|
@@ -112,11 +122,6 @@ export class HospitalConfigComponent implements OnInit {
|
112
|
122
|
this.validateForm.controls[config.key].setValue(
|
113
|
123
|
config.value - 0
|
114
|
124
|
);
|
115
|
|
- } else if (config.key === "autoCreateUserGroupId") {
|
116
|
|
- //默认组
|
117
|
|
- this.validateForm.controls[config.key].setValue(
|
118
|
|
- config.value - 0
|
119
|
|
- );
|
120
|
125
|
} else {
|
121
|
126
|
this.validateForm.controls[config.key].setValue(config.value);
|
122
|
127
|
}
|
|
@@ -146,6 +151,21 @@ export class HospitalConfigComponent implements OnInit {
|
146
|
151
|
.getFetchDataList("user/data", "role", postData)
|
147
|
152
|
.toPromise();
|
148
|
153
|
}
|
|
154
|
+ // 获取任务类型列表(患者其他服务)
|
|
155
|
+ getTaskTypeList() {
|
|
156
|
+ let postData = {
|
|
157
|
+ idx: 0,
|
|
158
|
+ sum: 999,
|
|
159
|
+ taskType: {
|
|
160
|
+ hosIds: this.hosId,
|
|
161
|
+ simpleQuery: true,
|
|
162
|
+ associationType: { id: 255 },
|
|
163
|
+ },
|
|
164
|
+ };
|
|
165
|
+ return this.mainService
|
|
166
|
+ .getFetchDataList("configuration", "taskType", postData)
|
|
167
|
+ .toPromise();
|
|
168
|
+ }
|
149
|
169
|
/**
|
150
|
170
|
* 获取科室列表
|
151
|
171
|
* @param hosId 院区id
|