|
@@ -1,324 +1,521 @@
|
1
|
|
-import { Injectable } from '@angular/core';
|
2
|
|
-import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
1
|
+import { Injectable } from "@angular/core";
|
|
2
|
+import { HttpClient, HttpHeaders } from "@angular/common/http";
|
3
|
3
|
|
4
|
4
|
import host from "../../assets/js/http";
|
5
|
5
|
|
6
|
6
|
@Injectable({
|
7
|
|
- providedIn: 'root'
|
|
7
|
+ providedIn: "root",
|
8
|
8
|
})
|
9
|
9
|
export class MainService {
|
10
|
|
- constructor(private http: HttpClient) { }
|
|
10
|
+ constructor(private http: HttpClient) {}
|
11
|
11
|
|
12
|
12
|
headers = new HttpHeaders({
|
13
|
|
- 'Content-Type': 'application/json',
|
14
|
|
- 'Cache-Control': 'no-cache'
|
|
13
|
+ "Content-Type": "application/json",
|
|
14
|
+ "Cache-Control": "no-cache",
|
15
|
15
|
});
|
16
|
|
- exportHeader = new HttpHeaders().set('Accept', '*/*');//导出excel表使用
|
|
16
|
+ exportHeader = new HttpHeaders().set("Accept", "*/*"); //导出excel表使用
|
17
|
17
|
// 单点登录
|
18
|
18
|
singleSignOnLogin(data): any {
|
19
|
|
- return this.http.post(host.host + '/auth/portalLogin', data, { headers: this.headers });
|
|
19
|
+ return this.http.post(host.host + "/auth/portalLogin", data, {
|
|
20
|
+ headers: this.headers,
|
|
21
|
+ });
|
20
|
22
|
}
|
21
|
23
|
// 登录
|
22
|
24
|
login(name: string, pwd: string): any {
|
23
|
25
|
const data = {
|
24
|
26
|
username: name,
|
25
|
27
|
password: pwd,
|
26
|
|
- type: 'PC'
|
27
|
|
- }
|
28
|
|
- return this.http.post(host.host + '/auth/login', data, { headers: this.headers });
|
|
28
|
+ type: "PC",
|
|
29
|
+ };
|
|
30
|
+ return this.http.post(host.host + "/auth/login", data, {
|
|
31
|
+ headers: this.headers,
|
|
32
|
+ });
|
29
|
33
|
}
|
30
|
34
|
// 登出
|
31
|
35
|
logOut(): any {
|
32
|
|
- return this.http.delete(host.host + '/auth/logout2', { headers: this.headers });
|
|
36
|
+ return this.http.delete(host.host + "/auth/logout2", {
|
|
37
|
+ headers: this.headers,
|
|
38
|
+ });
|
33
|
39
|
}
|
34
|
40
|
|
35
|
41
|
// 修改密码
|
36
|
42
|
upPwd(data): any {
|
37
|
|
- return this.http.post(host.host + '/auth/uppwd', data, { headers: this.headers });
|
|
43
|
+ return this.http.post(host.host + "/auth/uppwd", data, {
|
|
44
|
+ headers: this.headers,
|
|
45
|
+ });
|
38
|
46
|
}
|
39
|
47
|
// 字典表
|
40
|
48
|
getDictionary(type, key): any {
|
41
|
49
|
const data = {
|
42
|
50
|
type: type,
|
43
|
|
- key: key
|
44
|
|
- }
|
45
|
|
- return this.http.post(host.host + '/common/common/getDictionary', data, { headers: this.headers });
|
|
51
|
+ key: key,
|
|
52
|
+ };
|
|
53
|
+ return this.http.post(host.host + "/common/common/getDictionary", data, {
|
|
54
|
+ headers: this.headers,
|
|
55
|
+ });
|
46
|
56
|
}
|
47
|
57
|
// 列表搜索(get data)
|
48
|
58
|
getDataFetchData(type, id): any {
|
49
|
|
- return this.http.get(host.host + '/data/fetchData/' + type + '/' + id, { headers: this.headers });
|
|
59
|
+ return this.http.get(host.host + "/data/fetchData/" + type + "/" + id, {
|
|
60
|
+ headers: this.headers,
|
|
61
|
+ });
|
50
|
62
|
}
|
51
|
63
|
// api 详情 -工单详情
|
52
|
64
|
getApiFetchData(type, id): any {
|
53
|
|
- return this.http.get(host.host + '/api/fetchData/' + type + '/' + id, { headers: this.headers });
|
|
65
|
+ return this.http.get(host.host + "/api/fetchData/" + type + "/" + id, {
|
|
66
|
+ headers: this.headers,
|
|
67
|
+ });
|
54
|
68
|
}
|
55
|
69
|
// 列表搜索(通用)
|
56
|
70
|
getFetchDataList(type, target, data): any {
|
57
|
|
- return this.http.post(host.host + '/' + type + '/fetchDataList/' + target, data, { headers: this.headers });
|
|
71
|
+ return this.http.post(
|
|
72
|
+ host.host + "/" + type + "/fetchDataList/" + target,
|
|
73
|
+ data,
|
|
74
|
+ { headers: this.headers }
|
|
75
|
+ );
|
58
|
76
|
}
|
59
|
77
|
|
60
|
78
|
// 调度台 获取支助人员信息
|
61
|
79
|
getSerInfo(type, data): any {
|
62
|
|
- return this.http.post(host.host + '/ser/' + type, data, { headers: this.headers });
|
|
80
|
+ return this.http.post(host.host + "/ser/" + type, data, {
|
|
81
|
+ headers: this.headers,
|
|
82
|
+ });
|
63
|
83
|
}
|
64
|
84
|
|
65
|
85
|
// 通用操作data信息(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
|
66
|
86
|
coopData(coop, type, data): any {
|
67
|
|
- return this.http.post(host.host + '/data/' + coop + '/' + type, data, { headers: this.headers });
|
|
87
|
+ return this.http.post(host.host + "/data/" + coop + "/" + type, data, {
|
|
88
|
+ headers: this.headers,
|
|
89
|
+ });
|
68
|
90
|
}
|
69
|
91
|
|
70
|
92
|
// 通用操作user data信息(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
|
71
|
93
|
coopUserData(coop, type, data): any {
|
72
|
|
- return this.http.post(host.host + '/user/data/' + coop + '/' + type, data, { headers: this.headers });
|
|
94
|
+ return this.http.post(host.host + "/user/data/" + coop + "/" + type, data, {
|
|
95
|
+ headers: this.headers,
|
|
96
|
+ });
|
73
|
97
|
}
|
74
|
98
|
// 获取院区user信息
|
75
|
99
|
getHosUser(type, id): any {
|
76
|
|
- return this.http.get(host.host + '/user/data/' + type + '/' + id, {});
|
|
100
|
+ return this.http.get(host.host + "/user/data/" + type + "/" + id, {});
|
77
|
101
|
}
|
78
|
102
|
|
79
|
103
|
// 通用操作configuration信息 有操作类型(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
|
80
|
104
|
coopTypeConfig(coop, type, data): any {
|
81
|
|
- return this.http.post(host.host + '/configuration/' + coop + '/' + type, data, { headers: this.headers });
|
|
105
|
+ return this.http.post(
|
|
106
|
+ host.host + "/configuration/" + coop + "/" + type,
|
|
107
|
+ data,
|
|
108
|
+ { headers: this.headers }
|
|
109
|
+ );
|
82
|
110
|
}
|
83
|
111
|
// 通用操作configuration信息(新增/更新/删除)
|
84
|
112
|
coopConfig(type, data): any {
|
85
|
|
- return this.http.post(host.host + '/configuration/' + type, data, { headers: this.headers });
|
|
113
|
+ return this.http.post(host.host + "/configuration/" + type, data, {
|
|
114
|
+ headers: this.headers,
|
|
115
|
+ });
|
86
|
116
|
}
|
87
|
117
|
|
88
|
118
|
// 查询所有数据
|
89
|
119
|
findAllDataList(type): any {
|
90
|
|
- return this.http.post(host.host + '/data/findAll/' + type, {}, { headers: this.headers });
|
|
120
|
+ return this.http.post(
|
|
121
|
+ host.host + "/data/findAll/" + type,
|
|
122
|
+ {},
|
|
123
|
+ { headers: this.headers }
|
|
124
|
+ );
|
91
|
125
|
}
|
92
|
126
|
|
93
|
127
|
// 权限相关
|
94
|
128
|
getPermission(type): any {
|
95
|
|
- return this.http.get(host.host + '/permission/roleMenu/' + type, { headers: this.headers });
|
|
129
|
+ return this.http.get(host.host + "/permission/roleMenu/" + type, {
|
|
130
|
+ headers: this.headers,
|
|
131
|
+ });
|
96
|
132
|
}
|
97
|
133
|
|
98
|
134
|
//科室详情
|
99
|
135
|
getOfficeDetail(id): any {
|
100
|
|
- return this.http.get(host.host + '/data/fetchData/department/' + id, { headers: this.headers });
|
|
136
|
+ return this.http.get(host.host + "/data/fetchData/department/" + id, {
|
|
137
|
+ headers: this.headers,
|
|
138
|
+ });
|
101
|
139
|
}
|
102
|
140
|
|
103
|
141
|
// fetchData查看详情
|
104
|
142
|
getFetchData(type, info, id?): any {
|
105
|
|
- let url = id ? host.host + '/' + type + '/fetchData/' + info + '/' + id : host.host + '/' + type + '/fetchData/' + info
|
|
143
|
+ let url = id
|
|
144
|
+ ? host.host + "/" + type + "/fetchData/" + info + "/" + id
|
|
145
|
+ : host.host + "/" + type + "/fetchData/" + info;
|
106
|
146
|
return this.http.get(url, { headers: this.headers });
|
107
|
147
|
}
|
108
|
148
|
|
109
|
149
|
// 获取楼栋信息/楼层信息
|
110
|
150
|
getBuildingOrFloor(type, data): any {
|
111
|
|
- return this.http.post(host.host + '/data/getBuildingOrFloor/' + type, data, { headers: this.headers });
|
|
151
|
+ return this.http.post(
|
|
152
|
+ host.host + "/data/getBuildingOrFloor/" + type,
|
|
153
|
+ data,
|
|
154
|
+ { headers: this.headers }
|
|
155
|
+ );
|
112
|
156
|
}
|
113
|
157
|
|
114
|
158
|
// 自定义请求 post
|
115
|
159
|
postCustom(type, info, data): any {
|
116
|
|
- return this.http.post(host.host + '/' + type + '/' + info, data, { headers: this.headers });
|
|
160
|
+ return this.http.post(host.host + "/" + type + "/" + info, data, {
|
|
161
|
+ headers: this.headers,
|
|
162
|
+ });
|
117
|
163
|
}
|
118
|
164
|
// 科室二维码打印flag=1
|
119
|
165
|
postCustomCode(type, info, data): any {
|
120
|
|
- return this.http.post(host.host + '/' + type + '/' + info + '/1', data, { headers: this.headers });
|
|
166
|
+ return this.http.post(host.host + "/" + type + "/" + info + "/1", data, {
|
|
167
|
+ headers: this.headers,
|
|
168
|
+ });
|
121
|
169
|
}
|
122
|
170
|
|
123
|
171
|
// 自定义请求 get
|
124
|
172
|
getCustom(type, info): any {
|
125
|
|
- return this.http.get(host.host + '/' + type + '/' + info, { headers: this.headers });
|
|
173
|
+ return this.http.get(host.host + "/" + type + "/" + info, {
|
|
174
|
+ headers: this.headers,
|
|
175
|
+ });
|
126
|
176
|
}
|
127
|
177
|
// 调度台-分派工单
|
128
|
178
|
assignWorker(data, type): any {
|
129
|
|
- return this.http.post(host.host + '/workerOrder/' + type, data, { headers: this.headers });
|
|
179
|
+ return this.http.post(host.host + "/workerOrder/" + type, data, {
|
|
180
|
+ headers: this.headers,
|
|
181
|
+ });
|
130
|
182
|
}
|
131
|
183
|
|
132
|
184
|
// 调度台-删除工单
|
133
|
185
|
delOrder(id): any {
|
134
|
|
- return this.http.get(host.host + '/workerOrder/delWorkOrder/' + id, { headers: this.headers });
|
|
186
|
+ return this.http.get(host.host + "/workerOrder/delWorkOrder/" + id, {
|
|
187
|
+ headers: this.headers,
|
|
188
|
+ });
|
135
|
189
|
}
|
136
|
190
|
// 工单列表-删除工单
|
137
|
191
|
delOrders(ids): any {
|
138
|
|
- return this.http.post(host.host + '/workerOrder/delWorkOrders', { ids }, { headers: this.headers });
|
|
192
|
+ return this.http.post(
|
|
193
|
+ host.host + "/workerOrder/delWorkOrders",
|
|
194
|
+ { ids },
|
|
195
|
+ { headers: this.headers }
|
|
196
|
+ );
|
139
|
197
|
}
|
140
|
198
|
|
141
|
199
|
// 调度台工单相关
|
142
|
200
|
coopWorkerOrder(type, data): any {
|
143
|
|
- return this.http.post(host.host + '/workerOrder/' + type, data, { headers: this.headers });
|
|
201
|
+ return this.http.post(host.host + "/workerOrder/" + type, data, {
|
|
202
|
+ headers: this.headers,
|
|
203
|
+ });
|
144
|
204
|
}
|
145
|
205
|
|
146
|
206
|
// 调度台-工单历史记录
|
147
|
207
|
getWorkOrderLog(id): any {
|
148
|
|
- return this.http.get(host.host + '/ser/fetchWorkOrderLog/' + id, { headers: this.headers });
|
|
208
|
+ return this.http.get(host.host + "/ser/fetchWorkOrderLog/" + id, {
|
|
209
|
+ headers: this.headers,
|
|
210
|
+ });
|
149
|
211
|
}
|
150
|
212
|
|
151
|
213
|
// 综合报表
|
152
|
214
|
postReportCount(type, data): any {
|
153
|
|
- return this.http.post(host.host + '/report/orderCount/' + type, data, { headers: this.headers });
|
|
215
|
+ return this.http.post(host.host + "/report/orderCount/" + type, data, {
|
|
216
|
+ headers: this.headers,
|
|
217
|
+ });
|
154
|
218
|
}
|
155
|
219
|
|
156
|
220
|
// 报表导出
|
157
|
221
|
exportReport(type, data): any {
|
158
|
|
- return this.http.post(host.host + '/report/export/' + type, data, { headers: this.exportHeader, responseType: 'arraybuffer' });
|
|
222
|
+ return this.http.post(host.host + "/report/export/" + type, data, {
|
|
223
|
+ headers: this.exportHeader,
|
|
224
|
+ responseType: "arraybuffer",
|
|
225
|
+ });
|
159
|
226
|
}
|
160
|
227
|
|
161
|
228
|
dataExport(type, data): any {
|
162
|
|
- return this.http.post(host.host + '/data/export/' + type, data, { headers: this.exportHeader, responseType: 'arraybuffer' });
|
|
229
|
+ return this.http.post(host.host + "/data/export/" + type, data, {
|
|
230
|
+ headers: this.exportHeader,
|
|
231
|
+ responseType: "arraybuffer",
|
|
232
|
+ });
|
163
|
233
|
}
|
164
|
234
|
//新增/编辑轮巡计划
|
165
|
235
|
addRoundRobin(type: string, data: any): any {
|
166
|
|
- return this.http.post(host.host + '/orderPlan/' + type, data, { headers: this.headers });
|
|
236
|
+ return this.http.post(host.host + "/orderPlan/" + type, data, {
|
|
237
|
+ headers: this.headers,
|
|
238
|
+ });
|
167
|
239
|
}
|
168
|
240
|
//删除轮巡计划
|
169
|
241
|
delRoundRobin(id): any {
|
170
|
|
- return this.http.get(host.host + '/orderPlan/deletePlan/' + id, { headers: this.headers });
|
|
242
|
+ return this.http.get(host.host + "/orderPlan/deletePlan/" + id, {
|
|
243
|
+ headers: this.headers,
|
|
244
|
+ });
|
171
|
245
|
}
|
172
|
246
|
//启用/停用轮巡计划
|
173
|
247
|
switchRoundRobin(isSwitch, id): any {
|
174
|
|
- return this.http.get(`${host.host}/orderPlan/activePlan/${isSwitch}/${id}`, { headers: this.headers });
|
|
248
|
+ return this.http.get(
|
|
249
|
+ `${host.host}/orderPlan/activePlan/${isSwitch}/${id}`,
|
|
250
|
+ { headers: this.headers }
|
|
251
|
+ );
|
175
|
252
|
}
|
176
|
253
|
//新增/编辑快捷建单
|
177
|
254
|
addShortcutBuildOrders(type: string, data: any): any {
|
178
|
|
- return this.http.post(host.host + '/api/' + type + '/quickOrder', data, { headers: this.headers });
|
|
255
|
+ return this.http.post(host.host + "/api/" + type + "/quickOrder", data, {
|
|
256
|
+ headers: this.headers,
|
|
257
|
+ });
|
179
|
258
|
}
|
180
|
259
|
//删除快捷建单
|
181
|
260
|
delShortcutBuildOrders(id): any {
|
182
|
|
- return this.http.post(host.host + '/api/rmvData/quickOrder', [id], { headers: this.headers });
|
|
261
|
+ return this.http.post(host.host + "/api/rmvData/quickOrder", [id], {
|
|
262
|
+ headers: this.headers,
|
|
263
|
+ });
|
183
|
264
|
}
|
184
|
265
|
// 快捷建单二维码批量打印
|
185
|
266
|
printShortcutBuildOrders(idArr): any {
|
186
|
|
- return this.http.post(host.host + '/api/orderCodes', idArr, { headers: this.headers });
|
|
267
|
+ return this.http.post(host.host + "/api/orderCodes", idArr, {
|
|
268
|
+ headers: this.headers,
|
|
269
|
+ });
|
187
|
270
|
}
|
188
|
271
|
//护士端返回二维码信息,flag=0,动态二维码
|
189
|
272
|
getDeptCode(idArr) {
|
190
|
|
- return this.http.post(host.host + '/dept/deptCodes/0', idArr, { headers: this.headers });
|
|
273
|
+ return this.http.post(host.host + "/dept/deptCodes/0", idArr, {
|
|
274
|
+ headers: this.headers,
|
|
275
|
+ });
|
191
|
276
|
}
|
192
|
277
|
//药房端药房列表查询、搜索接口
|
193
|
278
|
getPharmacyList(idx, type, searchKey, launch) {
|
194
|
|
- return this.http.post(host.host + '/api/fetchDataList/drugsBag', { "idx": idx, "sum": 10, "drugsBag": { "searchType": type, "searchKey": searchKey, "launch": launch } }, { headers: this.headers });
|
|
279
|
+ return this.http.post(
|
|
280
|
+ host.host + "/api/fetchDataList/drugsBag",
|
|
281
|
+ {
|
|
282
|
+ idx: idx,
|
|
283
|
+ sum: 10,
|
|
284
|
+ drugsBag: { searchType: type, searchKey: searchKey, launch: launch },
|
|
285
|
+ },
|
|
286
|
+ { headers: this.headers }
|
|
287
|
+ );
|
195
|
288
|
}
|
196
|
289
|
//药房端打印二维码的接口
|
197
|
290
|
printRequisition(idArr) {
|
198
|
|
- return this.http.post(host.host + '/drugsBag/printRequisition', idArr, { headers: this.headers });
|
|
291
|
+ return this.http.post(host.host + "/drugsBag/printRequisition", idArr, {
|
|
292
|
+ headers: this.headers,
|
|
293
|
+ });
|
199
|
294
|
}
|
200
|
295
|
//药房端待打印变为待配药接口
|
201
|
296
|
changeToDispensing(idArr, name) {
|
202
|
|
- return this.http.post(host.host + '/drugsBag/changeToDispensing/' + name, idArr, { headers: this.headers });
|
|
297
|
+ return this.http.post(
|
|
298
|
+ host.host + "/drugsBag/changeToDispensing/" + name,
|
|
299
|
+ idArr,
|
|
300
|
+ { headers: this.headers }
|
|
301
|
+ );
|
203
|
302
|
}
|
204
|
303
|
//新建工单->获取新建类型
|
205
|
304
|
getAutoWorkTypes(hosId) {
|
206
|
|
- return this.http.get(host.host + '/ser/getAutoWorkTypes/' + hosId, { headers: this.headers });
|
|
305
|
+ return this.http.get(host.host + "/ser/getAutoWorkTypes/" + hosId, {
|
|
306
|
+ headers: this.headers,
|
|
307
|
+ });
|
207
|
308
|
}
|
208
|
309
|
//服务台新建工单—调度台建单获取起点科室或者终点科室列表
|
209
|
310
|
getdeptList(taskTypeId) {
|
210
|
|
- return this.http.post(host.host + '/ser/getdeptList', { taskTypeId }, { headers: this.headers });
|
|
311
|
+ return this.http.post(
|
|
312
|
+ host.host + "/ser/getdeptList",
|
|
313
|
+ { taskTypeId },
|
|
314
|
+ { headers: this.headers }
|
|
315
|
+ );
|
211
|
316
|
}
|
212
|
317
|
//服务台新建工单—调度台建单获取患者
|
213
|
318
|
getPatientList(data) {
|
214
|
|
- return this.http.post(host.host + '/ser/getPatientInfo', data, { headers: this.headers });
|
|
319
|
+ return this.http.post(host.host + "/ser/getPatientInfo", data, {
|
|
320
|
+ headers: this.headers,
|
|
321
|
+ });
|
215
|
322
|
}
|
216
|
323
|
//服务台新建工单—调度台建单获取起点科室或者终点科室列表
|
217
|
324
|
buildOrder(data) {
|
218
|
|
- return this.http.post(host.host + '/ser/buildOrder', data, { headers: this.headers });
|
|
325
|
+ return this.http.post(host.host + "/ser/buildOrder", data, {
|
|
326
|
+ headers: this.headers,
|
|
327
|
+ });
|
219
|
328
|
}
|
220
|
329
|
//获取当前用户信息
|
221
|
330
|
getCurrentUser1() {
|
222
|
|
- return this.http.get(host.host + '/user/data/getCurrentUser', { headers: this.headers });
|
|
331
|
+ return this.http.get(host.host + "/user/data/getCurrentUser", {
|
|
332
|
+ headers: this.headers,
|
|
333
|
+ });
|
223
|
334
|
}
|
224
|
335
|
//获取通话记录音频地址
|
225
|
336
|
getCallLogPath(data) {
|
226
|
|
- return this.http.post(host.host + '/callLog/getRecordByPath', data, { headers: this.headers });
|
|
337
|
+ return this.http.post(host.host + "/callLog/getRecordByPath", data, {
|
|
338
|
+ headers: this.headers,
|
|
339
|
+ });
|
227
|
340
|
}
|
228
|
341
|
//根据工作分配和人员id获取科室信息
|
229
|
342
|
getDeptByUser(data) {
|
230
|
|
- return this.http.post(host.host + '/api/getDeptByUser', data, { headers: this.headers });
|
|
343
|
+ return this.http.post(host.host + "/api/getDeptByUser", data, {
|
|
344
|
+ headers: this.headers,
|
|
345
|
+ });
|
231
|
346
|
}
|
232
|
347
|
//根据工作分配和分组id获取科室信息
|
233
|
348
|
getDeptByGroup(data) {
|
234
|
|
- return this.http.post(host.host + '/api/getDeptByGroup', data, { headers: this.headers });
|
|
349
|
+ return this.http.post(host.host + "/api/getDeptByGroup", data, {
|
|
350
|
+ headers: this.headers,
|
|
351
|
+ });
|
235
|
352
|
}
|
236
|
353
|
//微信配置修改
|
237
|
354
|
changeWechatConfig(data) {
|
238
|
|
- return this.http.post(host.host + '/simple/data/addData/wechatConfig', data, { headers: this.headers });
|
|
355
|
+ return this.http.post(
|
|
356
|
+ host.host + "/simple/data/addData/wechatConfig",
|
|
357
|
+ data,
|
|
358
|
+ { headers: this.headers }
|
|
359
|
+ );
|
239
|
360
|
}
|
240
|
361
|
//系统配置修改
|
241
|
362
|
changeSysConfig(data) {
|
242
|
|
- return this.http.post(host.host + '/simple/data/addListData/systemConfiguration', data, { headers: this.headers });
|
|
363
|
+ return this.http.post(
|
|
364
|
+ host.host + "/simple/data/addListData/systemConfiguration",
|
|
365
|
+ data,
|
|
366
|
+ { headers: this.headers }
|
|
367
|
+ );
|
243
|
368
|
}
|
244
|
369
|
//护士端关注接口
|
245
|
370
|
changeFollow(data) {
|
246
|
|
- return this.http.post(host.host + '/nurse/updData/patient', data, { headers: this.headers });
|
|
371
|
+ return this.http.post(host.host + "/nurse/updData/patient", data, {
|
|
372
|
+ headers: this.headers,
|
|
373
|
+ });
|
247
|
374
|
}
|
248
|
375
|
//数据字典楼栋保存接口
|
249
|
376
|
saveBuildingList(data) {
|
250
|
|
- return this.http.post(host.host + '/simple/data/addListData/building', data, { headers: this.headers });
|
|
377
|
+ return this.http.post(
|
|
378
|
+ host.host + "/simple/data/addListData/building",
|
|
379
|
+ data,
|
|
380
|
+ { headers: this.headers }
|
|
381
|
+ );
|
251
|
382
|
}
|
252
|
383
|
//数据字典楼栋删除接口
|
253
|
384
|
delBuildingList(data) {
|
254
|
|
- return this.http.post(host.host + '/simple/data/rmvData/building', data, { headers: this.headers });
|
|
385
|
+ return this.http.post(host.host + "/simple/data/rmvData/building", data, {
|
|
386
|
+ headers: this.headers,
|
|
387
|
+ });
|
255
|
388
|
}
|
256
|
389
|
//数据字典楼层保存接口
|
257
|
390
|
saveFloorList(data) {
|
258
|
|
- return this.http.post(host.host + '/simple/data/addListData/floor', data, { headers: this.headers });
|
|
391
|
+ return this.http.post(host.host + "/simple/data/addListData/floor", data, {
|
|
392
|
+ headers: this.headers,
|
|
393
|
+ });
|
259
|
394
|
}
|
260
|
395
|
//数据字典楼层保存接口
|
261
|
396
|
delFloorList(data) {
|
262
|
|
- return this.http.post(host.host + '/simple/data/rmvData/floor', data, { headers: this.headers });
|
|
397
|
+ return this.http.post(host.host + "/simple/data/rmvData/floor", data, {
|
|
398
|
+ headers: this.headers,
|
|
399
|
+ });
|
263
|
400
|
}
|
264
|
401
|
//获取患者最近一条检查信息
|
265
|
402
|
getRecentInfo(data) {
|
266
|
|
- return this.http.post(host.host + '/nurse/workOrder/findInspectRecently', data, { headers: this.headers });
|
|
403
|
+ return this.http.post(
|
|
404
|
+ host.host + "/nurse/workOrder/findInspectRecently",
|
|
405
|
+ data,
|
|
406
|
+ { headers: this.headers }
|
|
407
|
+ );
|
267
|
408
|
}
|
268
|
409
|
//simple增删改查,addData新增
|
269
|
410
|
simplePost(coop, type, data): any {
|
270
|
|
- return this.http.post(host.host + '/simple/data/' + coop + '/' + type, data, { headers: this.headers });
|
|
411
|
+ return this.http.post(
|
|
412
|
+ host.host + "/simple/data/" + coop + "/" + type,
|
|
413
|
+ data,
|
|
414
|
+ { headers: this.headers }
|
|
415
|
+ );
|
271
|
416
|
}
|
272
|
417
|
//任务类型列表排序
|
273
|
418
|
sortTaskType(data): any {
|
274
|
|
- return this.http.post(host.host + '/configuration/setOrders', data, { headers: this.headers });
|
|
419
|
+ return this.http.post(host.host + "/configuration/setOrders", data, {
|
|
420
|
+ headers: this.headers,
|
|
421
|
+ });
|
275
|
422
|
}
|
276
|
423
|
//获取工单详情里的历史记录
|
277
|
424
|
getWorkOrderRecord(data): any {
|
278
|
|
- return this.http.post(host.host + '/workerOrder/getWorkOrderRecord', data, { headers: this.headers });
|
|
425
|
+ return this.http.post(host.host + "/workerOrder/getWorkOrderRecord", data, {
|
|
426
|
+ headers: this.headers,
|
|
427
|
+ });
|
279
|
428
|
}
|
280
|
429
|
//刷新字典缓存
|
281
|
430
|
refreshDic(): any {
|
282
|
|
- return this.http.post(host.host + '/common/common/refreshCache', {}, { headers: this.headers });
|
|
431
|
+ return this.http.post(
|
|
432
|
+ host.host + "/common/common/refreshCache",
|
|
433
|
+ {},
|
|
434
|
+ { headers: this.headers }
|
|
435
|
+ );
|
283
|
436
|
}
|
284
|
437
|
//调度台建单获取可搜索的任务类型列表
|
285
|
438
|
getTaskTypeBySearchKey(data): any {
|
286
|
|
- return this.http.post(host.host + '/ser/getTaskTypeBySearchKey', data, { headers: this.headers });
|
|
439
|
+ return this.http.post(host.host + "/ser/getTaskTypeBySearchKey", data, {
|
|
440
|
+ headers: this.headers,
|
|
441
|
+ });
|
287
|
442
|
}
|
288
|
443
|
//切换院区
|
289
|
444
|
changeHospital(data): any {
|
290
|
|
- return this.http.post(host.host + '/auth/changeHospital', data, { headers: this.headers });
|
|
445
|
+ return this.http.post(host.host + "/auth/changeHospital", data, {
|
|
446
|
+ headers: this.headers,
|
|
447
|
+ });
|
291
|
448
|
}
|
292
|
449
|
//刷新缓存
|
293
|
450
|
refreshTaskType(): any {
|
294
|
|
- return this.http.get(host.host + '/ser/refreshTaskType', { headers: this.headers });
|
|
451
|
+ return this.http.get(host.host + "/ser/refreshTaskType", {
|
|
452
|
+ headers: this.headers,
|
|
453
|
+ });
|
295
|
454
|
}
|
296
|
455
|
//楼栋配置保存接口
|
297
|
456
|
saveBuildings(data) {
|
298
|
|
- return this.http.post(host.host + '/simple/data/addListData/workOrderGradeBuilding', data, { headers: this.headers });
|
|
457
|
+ return this.http.post(
|
|
458
|
+ host.host + "/simple/data/addListData/workOrderGradeBuilding",
|
|
459
|
+ data,
|
|
460
|
+ { headers: this.headers }
|
|
461
|
+ );
|
299
|
462
|
}
|
300
|
463
|
//删除接口
|
301
|
464
|
delBuildings(data) {
|
302
|
|
- return this.http.post(host.host + '/simple/data/rmvData/workOrderGradeBuilding', data, { headers: this.headers });
|
|
465
|
+ return this.http.post(
|
|
466
|
+ host.host + "/simple/data/rmvData/workOrderGradeBuilding",
|
|
467
|
+ data,
|
|
468
|
+ { headers: this.headers }
|
|
469
|
+ );
|
303
|
470
|
}
|
304
|
471
|
//获取配置文件的接口
|
305
|
472
|
systemConfiguration(data) {
|
306
|
|
- return this.http.post(host.host + '/simple/data/fetchDataList/systemConfiguration', data, { headers: this.headers });
|
|
473
|
+ return this.http.post(
|
|
474
|
+ host.host + "/simple/data/fetchDataList/systemConfiguration",
|
|
475
|
+ data,
|
|
476
|
+ { headers: this.headers }
|
|
477
|
+ );
|
307
|
478
|
}
|
308
|
479
|
//检查信息,患者信息
|
309
|
|
- listMsgByMain(type,data) {
|
310
|
|
- return this.http.post(host.host + '/nurse/'+type, data, { headers: this.headers });
|
|
480
|
+ listMsgByMain(type, data) {
|
|
481
|
+ return this.http.post(host.host + "/nurse/" + type, data, {
|
|
482
|
+ headers: this.headers,
|
|
483
|
+ });
|
311
|
484
|
}
|
312
|
485
|
//院区系统配置修改
|
313
|
486
|
changeHospitalSysConfig(data) {
|
314
|
|
- return this.http.post(host.host + '/simple/data/addListData/hospitalConfig', data, { headers: this.headers });
|
|
487
|
+ return this.http.post(
|
|
488
|
+ host.host + "/simple/data/addListData/hospitalConfig",
|
|
489
|
+ data,
|
|
490
|
+ { headers: this.headers }
|
|
491
|
+ );
|
315
|
492
|
}
|
316
|
493
|
//护士端获取综合日志
|
317
|
494
|
listDeptOrderRecord(data) {
|
318
|
|
- return this.http.post(host.host + '/nurse/listDeptOrderRecord', data, { headers: this.headers });
|
|
495
|
+ return this.http.post(host.host + "/nurse/listDeptOrderRecord", data, {
|
|
496
|
+ headers: this.headers,
|
|
497
|
+ });
|
319
|
498
|
}
|
320
|
499
|
//自动同步国家法定节假日
|
321
|
500
|
syncWorkDay(data) {
|
322
|
|
- return this.http.post(host.host + '/configuration/syncWorkDay', data, { headers: this.headers });
|
|
501
|
+ return this.http.post(host.host + "/configuration/syncWorkDay", data, {
|
|
502
|
+ headers: this.headers,
|
|
503
|
+ });
|
|
504
|
+ }
|
|
505
|
+ //查询工单消息设置
|
|
506
|
+ getWorkorderMessage(data) {
|
|
507
|
+ return this.http.post(
|
|
508
|
+ host.host + "/configuration/pageWorkOrderMessageSettings",
|
|
509
|
+ data,
|
|
510
|
+ { headers: this.headers }
|
|
511
|
+ );
|
|
512
|
+ }
|
|
513
|
+ //修改工单消息设置
|
|
514
|
+ updateWorkorderMessage(data) {
|
|
515
|
+ return this.http.post(
|
|
516
|
+ host.host + "/configuration/saveWorkOrderMessageSettings",
|
|
517
|
+ data,
|
|
518
|
+ { headers: this.headers }
|
|
519
|
+ );
|
323
|
520
|
}
|
324
|
521
|
}
|