|
@@ -20,6 +20,7 @@ import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
|
20
|
20
|
})
|
21
|
21
|
export class HospitalConfigComponent implements OnInit {
|
22
|
22
|
saveLoading = false;
|
|
23
|
+ isHosItsmIncident = false;
|
23
|
24
|
hosId;
|
24
|
25
|
validateForm: FormGroup;
|
25
|
26
|
isLoading: boolean = false;
|
|
@@ -39,7 +40,7 @@ export class HospitalConfigComponent implements OnInit {
|
39
|
40
|
repairSpecimenStatusMinute = 0; //验证时间
|
40
|
41
|
repairSpecimenStatusCheckDeptIds = []; //验证检验科范围
|
41
|
42
|
allowNucleicAcidPrinting = "0"; //是否允许核酸打印
|
42
|
|
- nucleicAcidPrintingTaskType = []; //核酸打印任务类型
|
|
43
|
+ nucleicAcidPrintingTaskType = null; //核酸打印任务类型
|
43
|
44
|
formatterDollar = (value) => Number(value);
|
44
|
45
|
constructor(
|
45
|
46
|
private mainService: MainService,
|
|
@@ -143,7 +144,7 @@ export class HospitalConfigComponent implements OnInit {
|
143
|
144
|
}
|
144
|
145
|
if (config.key === "nucleicAcidPrintingTaskType") {
|
145
|
146
|
this.validateForm.controls[config.key].setValue(
|
146
|
|
- config.value ? config.value.split(",").map(Number) : []
|
|
147
|
+ config.value ? Number(config.value) : null
|
147
|
148
|
);
|
148
|
149
|
}
|
149
|
150
|
});
|
|
@@ -169,6 +170,7 @@ export class HospitalConfigComponent implements OnInit {
|
169
|
170
|
this.getClassesList(),
|
170
|
171
|
this.getDeptList2(this.hosId),
|
171
|
172
|
this.getTaskTypeList(),
|
|
173
|
+ this.getSysConfig(),
|
172
|
174
|
])
|
173
|
175
|
.then((result) => {
|
174
|
176
|
if (result[0].status == 200) {
|
|
@@ -197,12 +199,16 @@ export class HospitalConfigComponent implements OnInit {
|
197
|
199
|
if (result[6].status == 200) {
|
198
|
200
|
this.allTaskTypeList = result[6].list;
|
199
|
201
|
}
|
|
202
|
+ if (result[7].status == 200) {
|
|
203
|
+ this.isHosItsmIncident = result[7].list.find(v => v.keyconfig == 'itsmIncident').valueconfig == 1;
|
|
204
|
+ }
|
200
|
205
|
this.getHospitalConfigList(this.hosId).subscribe((res) => {
|
201
|
206
|
if (res.status == 200) {
|
202
|
207
|
this.hospitalConfigList = res.list;
|
203
|
208
|
//创建表单
|
204
|
209
|
let fbGroup = {};
|
205
|
210
|
this.hospitalConfigList.forEach((item) => {
|
|
211
|
+ item.show = true;
|
206
|
212
|
if (
|
207
|
213
|
item.key === "repairSpecimenStatusMinute" ||
|
208
|
214
|
item.key === "repairSpecimenStatusCheckDeptIds"
|
|
@@ -216,8 +222,6 @@ export class HospitalConfigComponent implements OnInit {
|
216
|
222
|
} else {
|
217
|
223
|
item.show = false;
|
218
|
224
|
}
|
219
|
|
- } else {
|
220
|
|
- item.show = true;
|
221
|
225
|
}
|
222
|
226
|
if (
|
223
|
227
|
item.key === "nucleicAcidPrintingTaskType"
|
|
@@ -231,8 +235,6 @@ export class HospitalConfigComponent implements OnInit {
|
231
|
235
|
} else {
|
232
|
236
|
item.show = false;
|
233
|
237
|
}
|
234
|
|
- } else {
|
235
|
|
- item.show = true;
|
236
|
238
|
}
|
237
|
239
|
if (item.key.includes("phone_num_port")) {
|
238
|
240
|
//坐席号码
|
|
@@ -378,6 +380,13 @@ export class HospitalConfigComponent implements OnInit {
|
378
|
380
|
.getFetchDataList("configuration", "taskType", postData)
|
379
|
381
|
.toPromise();
|
380
|
382
|
}
|
|
383
|
+ // 获取系统配置
|
|
384
|
+ getSysConfig() {
|
|
385
|
+ let postData: any = { idx: 0, sum: 99 };
|
|
386
|
+ return this.mainService
|
|
387
|
+ .getFetchDataList("simple/data", "systemConfiguration", postData)
|
|
388
|
+ .toPromise();
|
|
389
|
+ }
|
381
|
390
|
/**
|
382
|
391
|
* 获取科室列表
|
383
|
392
|
* @param hosId 院区id
|