|
@@ -1,20 +1,20 @@
|
1
|
|
-import request from '@/utils/request'
|
|
1
|
+import request from "@/utils/request";
|
2
|
2
|
|
3
|
3
|
export function getAllSubregion(params) {
|
4
|
|
- console.log('params', params)
|
|
4
|
+ console.log("params", params);
|
5
|
5
|
return request({
|
6
|
|
- url: '/api/management/getallsubregion',
|
7
|
|
- method: 'Get',
|
|
6
|
+ url: "/api/management/getallsubregion",
|
|
7
|
+ method: "Get",
|
8
|
8
|
params: params
|
9
|
|
- })
|
|
9
|
+ });
|
10
|
10
|
}
|
11
|
11
|
|
12
|
12
|
export function SaveManageInfo(data) {
|
13
|
13
|
return request({
|
14
|
|
- url: '/api/management/savemanageinfo',
|
15
|
|
- method: 'Post',
|
|
14
|
+ url: "/api/management/savemanageinfo",
|
|
15
|
+ method: "Post",
|
16
|
16
|
data: data
|
17
|
|
- })
|
|
17
|
+ });
|
18
|
18
|
}
|
19
|
19
|
|
20
|
20
|
export function getAllMachineInfo(
|
|
@@ -32,310 +32,324 @@ export function getAllMachineInfo(
|
32
|
32
|
zoneid: zoneid,
|
33
|
33
|
equipmentid: equipmentid,
|
34
|
34
|
statusid: statusid
|
35
|
|
- }
|
|
35
|
+ };
|
36
|
36
|
return request({
|
37
|
|
- url: '/api/management/getallmachineinfo',
|
38
|
|
- method: 'Get',
|
|
37
|
+ url: "/api/management/getallmachineinfo",
|
|
38
|
+ method: "Get",
|
39
|
39
|
params: params
|
40
|
|
- })
|
|
40
|
+ });
|
41
|
41
|
}
|
42
|
42
|
|
43
|
43
|
export function getAllMachine(zoneid, deviceid) {
|
44
|
44
|
const params = {
|
45
|
45
|
zoneid: zoneid,
|
46
|
46
|
deviceid: deviceid
|
47
|
|
- }
|
|
47
|
+ };
|
48
|
48
|
return request({
|
49
|
|
- url: '/api/management/getallmachine',
|
|
49
|
+ url: "/api/management/getallmachine",
|
|
50
|
+ method: "Get",
|
|
51
|
+ params: params
|
|
52
|
+ });
|
|
53
|
+}
|
|
54
|
+
|
|
55
|
+export function getAllMachineTwo(zoneid, deviceid) {
|
|
56
|
+ const params = {
|
|
57
|
+ zoneid: zoneid,
|
|
58
|
+ deviceid: deviceid
|
|
59
|
+ };
|
|
60
|
+ return request({
|
|
61
|
+ url: '/api/management/getallmachinetwo',
|
50
|
62
|
method: 'Get',
|
51
|
63
|
params: params
|
52
|
|
- })
|
|
64
|
+ });
|
53
|
65
|
}
|
54
|
66
|
|
55
|
67
|
export function getMachineDetailById(id, params) {
|
56
|
68
|
return request({
|
57
|
|
- url: '/api/management/getmachinedetail?id=' + id,
|
58
|
|
- method: 'Get',
|
|
69
|
+ url: "/api/management/getmachinedetail?id=" + id,
|
|
70
|
+ method: "Get",
|
59
|
71
|
params: params
|
60
|
|
- })
|
|
72
|
+ });
|
61
|
73
|
}
|
62
|
74
|
|
63
|
75
|
export function UpdateMachineInfo(data) {
|
64
|
|
- console.log('data', data)
|
|
76
|
+ console.log("data", data);
|
65
|
77
|
return request({
|
66
|
|
- url: '/api/management/updatemachineinfo',
|
67
|
|
- method: 'Post',
|
|
78
|
+ url: "/api/management/updatemachineinfo",
|
|
79
|
+ method: "Post",
|
68
|
80
|
data: data
|
69
|
|
- })
|
|
81
|
+ });
|
70
|
82
|
}
|
71
|
83
|
|
72
|
84
|
export function UpdateMachineInfoTwo(data) {
|
73
|
|
- console.log('data', data)
|
|
85
|
+ console.log("data", data);
|
74
|
86
|
return request({
|
75
|
|
- url: '/api/management/updatemachineinfotwo',
|
76
|
|
- method: 'post',
|
|
87
|
+ url: "/api/management/updatemachineinfotwo",
|
|
88
|
+ method: "post",
|
77
|
89
|
data: data
|
78
|
|
- })
|
|
90
|
+ });
|
79
|
91
|
}
|
80
|
92
|
|
81
|
93
|
export function getAllEquimentName(params) {
|
82
|
94
|
return request({
|
83
|
|
- url: '/api/management/getallequimentname',
|
84
|
|
- method: 'Get',
|
|
95
|
+ url: "/api/management/getallequimentname",
|
|
96
|
+ method: "Get",
|
85
|
97
|
params: params
|
86
|
|
- })
|
|
98
|
+ });
|
87
|
99
|
}
|
88
|
100
|
|
89
|
101
|
export function savePlan(data, id) {
|
|
102
|
+ console.log("data", data);
|
90
|
103
|
return request({
|
91
|
|
- url: '/api/management/saveplan?id=' + id,
|
92
|
|
- method: 'Post',
|
|
104
|
+ url: "/api/management/saveplan?id=" + id,
|
|
105
|
+ method: "Post",
|
93
|
106
|
data: data
|
94
|
|
- })
|
|
107
|
+ });
|
95
|
108
|
}
|
96
|
109
|
|
97
|
110
|
export function getAllPlan(params) {
|
98
|
111
|
return request({
|
99
|
|
- url: '/api/management/getallplan',
|
100
|
|
- method: 'Get',
|
|
112
|
+ url: "/api/management/getallplan",
|
|
113
|
+ method: "Get",
|
101
|
114
|
params: params
|
102
|
|
- })
|
|
115
|
+ });
|
103
|
116
|
}
|
104
|
117
|
|
105
|
118
|
export function getAllPlanDetail(unitype) {
|
106
|
119
|
// eslint-disable-next-line no-redeclare
|
107
|
120
|
const params = {
|
108
|
121
|
unitype: unitype
|
109
|
|
- }
|
|
122
|
+ };
|
110
|
123
|
return request({
|
111
|
|
- url: '/api/management/getallplandetail',
|
112
|
|
- method: 'Get',
|
|
124
|
+ url: "/api/management/getallplandetail",
|
|
125
|
+ method: "Get",
|
113
|
126
|
params: params
|
114
|
|
- })
|
|
127
|
+ });
|
115
|
128
|
}
|
116
|
129
|
|
117
|
130
|
export function getEditMachine(id, params) {
|
118
|
131
|
return request({
|
119
|
|
- url: '/api/management/geteditmachine?id=' + id,
|
120
|
|
- method: 'Get',
|
|
132
|
+ url: "/api/management/geteditmachine?id=" + id,
|
|
133
|
+ method: "Get",
|
121
|
134
|
params: params
|
122
|
|
- })
|
|
135
|
+ });
|
123
|
136
|
}
|
124
|
137
|
|
125
|
138
|
export function DeletePlans(data) {
|
126
|
139
|
return request({
|
127
|
|
- url: '/api/staff/deleteplans',
|
128
|
|
- method: 'delete',
|
|
140
|
+ url: "/api/staff/deleteplans",
|
|
141
|
+ method: "delete",
|
129
|
142
|
data: data
|
130
|
|
- })
|
|
143
|
+ });
|
131
|
144
|
}
|
132
|
145
|
|
133
|
146
|
export function EditPlanDetail(id, params) {
|
134
|
147
|
return request({
|
135
|
|
- url: '/api/manage/editplandetail?id=' + id,
|
136
|
|
- method: 'get',
|
|
148
|
+ url: "/api/manage/editplandetail?id=" + id,
|
|
149
|
+ method: "get",
|
137
|
150
|
params: params
|
138
|
|
- })
|
|
151
|
+ });
|
139
|
152
|
}
|
140
|
153
|
|
141
|
154
|
export function UpdatePlanInfo(data) {
|
142
|
155
|
return request({
|
143
|
|
- url: '/api/manage/updateplaninfo',
|
144
|
|
- method: 'Post',
|
|
156
|
+ url: "/api/manage/updateplaninfo",
|
|
157
|
+ method: "Post",
|
145
|
158
|
data: data
|
146
|
|
- })
|
|
159
|
+ });
|
147
|
160
|
}
|
148
|
161
|
|
149
|
162
|
export function getComprehensive(params) {
|
150
|
163
|
return request({
|
151
|
|
- url: '/api/manage/getcomprehensive',
|
152
|
|
- method: 'Get',
|
|
164
|
+ url: "/api/manage/getcomprehensive",
|
|
165
|
+ method: "Get",
|
153
|
166
|
params: params
|
154
|
|
- })
|
|
167
|
+ });
|
155
|
168
|
}
|
156
|
169
|
|
157
|
170
|
export function SaveInformation(eid, data) {
|
|
171
|
+ console.log("data--", data);
|
158
|
172
|
return request({
|
159
|
|
- url: '/api/manage/saveinformation?eid=' + eid,
|
160
|
|
- method: 'Post',
|
|
173
|
+ url: "/api/manage/saveinformation?eid=" + eid,
|
|
174
|
+ method: "Post",
|
161
|
175
|
data: data
|
162
|
|
- })
|
|
176
|
+ });
|
163
|
177
|
}
|
164
|
178
|
|
165
|
179
|
export function getPatientInfo(id, params) {
|
166
|
180
|
return request({
|
167
|
|
- url: '/api/manage/getpatientinfo?id=' + id,
|
168
|
|
- method: 'Get',
|
|
181
|
+ url: "/api/manage/getpatientinfo?id=" + id,
|
|
182
|
+ method: "Get",
|
169
|
183
|
params: params
|
170
|
|
- })
|
|
184
|
+ });
|
171
|
185
|
}
|
172
|
186
|
|
173
|
187
|
export function ChangeClass(equitid, id) {
|
174
|
188
|
const params = {
|
175
|
189
|
equitid: equitid,
|
176
|
190
|
id: id
|
177
|
|
- }
|
|
191
|
+ };
|
178
|
192
|
return request({
|
179
|
|
- url: '/api/manage/changeclass',
|
180
|
|
- method: 'Get',
|
|
193
|
+ url: "/api/manage/changeclass",
|
|
194
|
+ method: "Get",
|
181
|
195
|
params: params
|
182
|
|
- })
|
|
196
|
+ });
|
183
|
197
|
}
|
184
|
198
|
|
185
|
199
|
export function changePatient(equitid, id) {
|
186
|
200
|
const params = {
|
187
|
201
|
equitid: equitid,
|
188
|
202
|
id: id
|
189
|
|
- }
|
|
203
|
+ };
|
190
|
204
|
return request({
|
191
|
|
- url: '/api/manage/changepatient',
|
192
|
|
- method: 'Get',
|
|
205
|
+ url: "/api/manage/changepatient",
|
|
206
|
+ method: "Get",
|
193
|
207
|
params: params
|
194
|
|
- })
|
|
208
|
+ });
|
195
|
209
|
}
|
196
|
210
|
|
197
|
211
|
export function getAllOrganization(params) {
|
198
|
212
|
return request({
|
199
|
|
- url: '/api/manage/getallorganization',
|
200
|
|
- method: 'Get',
|
|
213
|
+ url: "/api/manage/getallorganization",
|
|
214
|
+ method: "Get",
|
201
|
215
|
params: params
|
202
|
|
- })
|
|
216
|
+ });
|
203
|
217
|
}
|
204
|
218
|
|
205
|
219
|
export function getUserRegister(id, params) {
|
206
|
220
|
return request({
|
207
|
|
- url: '/api/manage/getregisterinfo?id=' + id,
|
208
|
|
- method: 'Get',
|
|
221
|
+ url: "/api/manage/getregisterinfo?id=" + id,
|
|
222
|
+ method: "Get",
|
209
|
223
|
params: params
|
210
|
|
- })
|
|
224
|
+ });
|
211
|
225
|
}
|
212
|
226
|
|
213
|
227
|
export function getInformationData(limit, page) {
|
214
|
228
|
const params = {
|
215
|
229
|
limit: limit,
|
216
|
230
|
page: page
|
217
|
|
- }
|
|
231
|
+ };
|
218
|
232
|
return request({
|
219
|
|
- url: '/api/manage/getinformationdata',
|
220
|
|
- method: 'Get',
|
|
233
|
+ url: "/api/manage/getinformationdata",
|
|
234
|
+ method: "Get",
|
221
|
235
|
params: params
|
222
|
|
- })
|
|
236
|
+ });
|
223
|
237
|
}
|
224
|
238
|
|
225
|
239
|
export function SaveBacteria(id, data) {
|
226
|
240
|
return request({
|
227
|
|
- url: '/api/manage/savebacteria?id=' + id,
|
228
|
|
- method: 'Post',
|
|
241
|
+ url: "/api/manage/savebacteria?id=" + id,
|
|
242
|
+ method: "Post",
|
229
|
243
|
data: data
|
230
|
|
- })
|
|
244
|
+ });
|
231
|
245
|
}
|
232
|
246
|
|
233
|
247
|
export function SaveLincomycin(id, data) {
|
234
|
248
|
return request({
|
235
|
|
- url: '/api/manage/savelincomycin?id=' + id,
|
236
|
|
- method: 'Post',
|
|
249
|
+ url: "/api/manage/savelincomycin?id=" + id,
|
|
250
|
+ method: "Post",
|
237
|
251
|
data: data
|
238
|
|
- })
|
|
252
|
+ });
|
239
|
253
|
}
|
240
|
254
|
|
241
|
255
|
export function SaveQualityControl(id, data) {
|
242
|
256
|
return request({
|
243
|
|
- url: '/api/manage/savequalitycontrol?id=' + id,
|
244
|
|
- method: 'Post',
|
|
257
|
+ url: "/api/manage/savequalitycontrol?id=" + id,
|
|
258
|
+ method: "Post",
|
245
|
259
|
data: data
|
246
|
|
- })
|
|
260
|
+ });
|
247
|
261
|
}
|
248
|
262
|
|
249
|
263
|
export function getOrgName(params) {
|
250
|
264
|
return request({
|
251
|
|
- url: '/api/manage/getorgname',
|
252
|
|
- method: 'Get',
|
|
265
|
+ url: "/api/manage/getorgname",
|
|
266
|
+ method: "Get",
|
253
|
267
|
params: params
|
254
|
|
- })
|
|
268
|
+ });
|
255
|
269
|
}
|
256
|
270
|
|
257
|
271
|
export function getAllQulityInfo(params) {
|
258
|
272
|
return request({
|
259
|
|
- url: '/api/manage/getallqulityinfo',
|
260
|
|
- method: 'Get',
|
|
273
|
+ url: "/api/manage/getallqulityinfo",
|
|
274
|
+ method: "Get",
|
261
|
275
|
params: params
|
262
|
|
- })
|
|
276
|
+ });
|
263
|
277
|
}
|
264
|
278
|
|
265
|
279
|
export function EditCulture(id, userid) {
|
266
|
280
|
const params = {
|
267
|
281
|
id: id,
|
268
|
282
|
userid: userid
|
269
|
|
- }
|
|
283
|
+ };
|
270
|
284
|
return request({
|
271
|
|
- url: '/api/manage/editculture',
|
272
|
|
- method: 'Get',
|
|
285
|
+ url: "/api/manage/editculture",
|
|
286
|
+ method: "Get",
|
273
|
287
|
params: params
|
274
|
|
- })
|
|
288
|
+ });
|
275
|
289
|
}
|
276
|
290
|
|
277
|
291
|
export function UpdateCulture(data) {
|
278
|
292
|
return request({
|
279
|
|
- url: '/api/manage/updateculture',
|
280
|
|
- method: 'Post',
|
|
293
|
+ url: "/api/manage/updateculture",
|
|
294
|
+ method: "Post",
|
281
|
295
|
data: data
|
282
|
|
- })
|
|
296
|
+ });
|
283
|
297
|
}
|
284
|
298
|
|
285
|
299
|
export function DeleteCultrue(data) {
|
286
|
300
|
return request({
|
287
|
|
- url: '/api/manage/deletecultrue',
|
288
|
|
- method: 'delete',
|
|
301
|
+ url: "/api/manage/deletecultrue",
|
|
302
|
+ method: "delete",
|
289
|
303
|
data: data
|
290
|
|
- })
|
|
304
|
+ });
|
291
|
305
|
}
|
292
|
306
|
|
293
|
307
|
export function EditDialyState(id, params) {
|
294
|
308
|
return request({
|
295
|
|
- url: '/api/manage/editdialystate?id=' + id,
|
296
|
|
- method: 'Get',
|
|
309
|
+ url: "/api/manage/editdialystate?id=" + id,
|
|
310
|
+ method: "Get",
|
297
|
311
|
params: params
|
298
|
|
- })
|
|
312
|
+ });
|
299
|
313
|
}
|
300
|
314
|
|
301
|
315
|
export function UpdateDialyState(data) {
|
302
|
316
|
return request({
|
303
|
|
- url: '/api/manage/updatedialystate',
|
304
|
|
- method: 'post',
|
|
317
|
+ url: "/api/manage/updatedialystate",
|
|
318
|
+ method: "post",
|
305
|
319
|
data: data
|
306
|
|
- })
|
|
320
|
+ });
|
307
|
321
|
}
|
308
|
322
|
|
309
|
323
|
export function DeleteDialystate(data) {
|
310
|
324
|
return request({
|
311
|
|
- url: '/api/manage/deletedialystate',
|
312
|
|
- method: 'delete',
|
|
325
|
+ url: "/api/manage/deletedialystate",
|
|
326
|
+ method: "delete",
|
313
|
327
|
data: data
|
314
|
|
- })
|
|
328
|
+ });
|
315
|
329
|
}
|
316
|
330
|
|
317
|
331
|
export function EditIon(id, params) {
|
318
|
332
|
return request({
|
319
|
|
- url: '/api/manage/edition?id=' + id,
|
320
|
|
- method: 'Get',
|
|
333
|
+ url: "/api/manage/edition?id=" + id,
|
|
334
|
+ method: "Get",
|
321
|
335
|
params: params
|
322
|
|
- })
|
|
336
|
+ });
|
323
|
337
|
}
|
324
|
338
|
|
325
|
339
|
export function UpdateIon(data) {
|
326
|
340
|
return request({
|
327
|
|
- url: '/api/manage/updateion',
|
328
|
|
- method: 'Post',
|
|
341
|
+ url: "/api/manage/updateion",
|
|
342
|
+ method: "Post",
|
329
|
343
|
data: data
|
330
|
|
- })
|
|
344
|
+ });
|
331
|
345
|
}
|
332
|
346
|
|
333
|
347
|
export function DeleteIon(data) {
|
334
|
348
|
return request({
|
335
|
|
- url: '/api/manage/deleteion',
|
336
|
|
- method: 'delete',
|
|
349
|
+ url: "/api/manage/deleteion",
|
|
350
|
+ method: "delete",
|
337
|
351
|
data: data
|
338
|
|
- })
|
|
352
|
+ });
|
339
|
353
|
}
|
340
|
354
|
|
341
|
355
|
export function queryTable(bedid, startime, endtime) {
|
|
@@ -343,56 +357,56 @@ export function queryTable(bedid, startime, endtime) {
|
343
|
357
|
bedid: bedid,
|
344
|
358
|
startime: startime,
|
345
|
359
|
endtime: endtime
|
346
|
|
- }
|
|
360
|
+ };
|
347
|
361
|
return request({
|
348
|
|
- url: '/api/manage/query',
|
349
|
|
- method: 'Get',
|
|
362
|
+ url: "/api/manage/query",
|
|
363
|
+ method: "Get",
|
350
|
364
|
params: params
|
351
|
|
- })
|
|
365
|
+ });
|
352
|
366
|
}
|
353
|
367
|
|
354
|
368
|
export function SaveRepair(id, data) {
|
355
|
369
|
return request({
|
356
|
|
- url: '/api/manage/saverepair?id=' + id,
|
357
|
|
- method: 'post',
|
|
370
|
+ url: "/api/manage/saverepair?id=" + id,
|
|
371
|
+ method: "post",
|
358
|
372
|
data: data
|
359
|
|
- })
|
|
373
|
+ });
|
360
|
374
|
}
|
361
|
375
|
|
362
|
376
|
export function getAllRepair(limit, page) {
|
363
|
377
|
const params = {
|
364
|
378
|
limit: limit,
|
365
|
379
|
page: page
|
366
|
|
- }
|
|
380
|
+ };
|
367
|
381
|
return request({
|
368
|
|
- url: '/api/manage/getallrepair',
|
369
|
|
- method: 'Get',
|
|
382
|
+ url: "/api/manage/getallrepair",
|
|
383
|
+ method: "Get",
|
370
|
384
|
params: params
|
371
|
|
- })
|
|
385
|
+ });
|
372
|
386
|
}
|
373
|
387
|
|
374
|
388
|
export function EditRepair(id, params) {
|
375
|
389
|
return request({
|
376
|
|
- url: '/api/manage/editrepair?id=' + id,
|
377
|
|
- method: 'Get',
|
|
390
|
+ url: "/api/manage/editrepair?id=" + id,
|
|
391
|
+ method: "Get",
|
378
|
392
|
params: params
|
379
|
|
- })
|
|
393
|
+ });
|
380
|
394
|
}
|
381
|
395
|
|
382
|
396
|
export function UpdateRepair(data) {
|
383
|
397
|
return request({
|
384
|
|
- url: '/api/manage/updaterepair',
|
385
|
|
- method: 'Post',
|
|
398
|
+ url: "/api/manage/updaterepair",
|
|
399
|
+ method: "Post",
|
386
|
400
|
data: data
|
387
|
|
- })
|
|
401
|
+ });
|
388
|
402
|
}
|
389
|
403
|
|
390
|
404
|
export function DeleteRepair(data) {
|
391
|
405
|
return request({
|
392
|
|
- url: '/api/manage/deleterepair',
|
393
|
|
- method: 'delete',
|
|
406
|
+ url: "/api/manage/deleterepair",
|
|
407
|
+ method: "delete",
|
394
|
408
|
data: data
|
395
|
|
- })
|
|
409
|
+ });
|
396
|
410
|
}
|
397
|
411
|
|
398
|
412
|
export function queryRepair(bedid, startime, endtime) {
|
|
@@ -400,47 +414,47 @@ export function queryRepair(bedid, startime, endtime) {
|
400
|
414
|
bedid: bedid,
|
401
|
415
|
startime: startime,
|
402
|
416
|
endtime: endtime
|
403
|
|
- }
|
|
417
|
+ };
|
404
|
418
|
|
405
|
419
|
return request({
|
406
|
|
- url: '/api/manage/queryrepair',
|
407
|
|
- method: 'Get',
|
|
420
|
+ url: "/api/manage/queryrepair",
|
|
421
|
+ method: "Get",
|
408
|
422
|
params: params
|
409
|
|
- })
|
|
423
|
+ });
|
410
|
424
|
}
|
411
|
425
|
|
412
|
426
|
export function EditUser(id, patientid) {
|
413
|
427
|
const params = {
|
414
|
428
|
id: id,
|
415
|
429
|
patientid: patientid
|
416
|
|
- }
|
|
430
|
+ };
|
417
|
431
|
return request({
|
418
|
|
- url: '/api/manage/edituser',
|
419
|
|
- method: 'Get',
|
|
432
|
+ url: "/api/manage/edituser",
|
|
433
|
+ method: "Get",
|
420
|
434
|
params: params
|
421
|
|
- })
|
|
435
|
+ });
|
422
|
436
|
}
|
423
|
437
|
|
424
|
438
|
export function DeleteUserform(data) {
|
425
|
439
|
return request({
|
426
|
|
- url: '/api/manage/deleteform',
|
427
|
|
- method: 'delete',
|
|
440
|
+ url: "/api/manage/deleteform",
|
|
441
|
+ method: "delete",
|
428
|
442
|
data: data
|
429
|
|
- })
|
|
443
|
+ });
|
430
|
444
|
}
|
431
|
445
|
|
432
|
446
|
export function UpdateForm(data) {
|
433
|
447
|
return request({
|
434
|
|
- url: '/api/manage/updateform',
|
435
|
|
- method: 'post',
|
|
448
|
+ url: "/api/manage/updateform",
|
|
449
|
+ method: "post",
|
436
|
450
|
data: data
|
437
|
|
- })
|
|
451
|
+ });
|
438
|
452
|
}
|
439
|
453
|
|
440
|
454
|
export function queryInfo(zone, bed, startime, endtime, limit, page) {
|
441
|
|
- console.log('开始时间', startime)
|
442
|
|
- console.log('结束时间', endtime)
|
443
|
|
- console.log('床位好', bed)
|
|
455
|
+ console.log("开始时间", startime);
|
|
456
|
+ console.log("结束时间", endtime);
|
|
457
|
+ console.log("床位好", bed);
|
444
|
458
|
const params = {
|
445
|
459
|
zone: zone,
|
446
|
460
|
bed: bed,
|
|
@@ -448,28 +462,28 @@ export function queryInfo(zone, bed, startime, endtime, limit, page) {
|
448
|
462
|
endtime: endtime,
|
449
|
463
|
limit: limit,
|
450
|
464
|
page: page
|
451
|
|
- }
|
|
465
|
+ };
|
452
|
466
|
return request({
|
453
|
|
- url: '/api/manage/queryinfo',
|
454
|
|
- method: 'Get',
|
|
467
|
+ url: "/api/manage/queryinfo",
|
|
468
|
+ method: "Get",
|
455
|
469
|
params: params
|
456
|
|
- })
|
|
470
|
+ });
|
457
|
471
|
}
|
458
|
472
|
|
459
|
473
|
export function getAutoData(id, params) {
|
460
|
474
|
return request({
|
461
|
|
- url: '/api/manage/insertautodata?id=' + id,
|
462
|
|
- method: 'Get',
|
|
475
|
+ url: "/api/manage/insertautodata?id=" + id,
|
|
476
|
+ method: "Get",
|
463
|
477
|
params: params
|
464
|
|
- })
|
|
478
|
+ });
|
465
|
479
|
}
|
466
|
480
|
|
467
|
481
|
export function getAllEquitType(params) {
|
468
|
482
|
return request({
|
469
|
|
- url: '/api/manage/getallequittype',
|
470
|
|
- method: 'Get',
|
|
483
|
+ url: "/api/manage/getallequittype",
|
|
484
|
+ method: "Get",
|
471
|
485
|
params: params
|
472
|
|
- })
|
|
486
|
+ });
|
473
|
487
|
}
|
474
|
488
|
|
475
|
489
|
export function getUserForm(id, limit, page) {
|
|
@@ -477,203 +491,215 @@ export function getUserForm(id, limit, page) {
|
477
|
491
|
id: id,
|
478
|
492
|
limit: limit,
|
479
|
493
|
page: page
|
480
|
|
- }
|
|
494
|
+ };
|
481
|
495
|
return request({
|
482
|
|
- url: '/api/manage/getuserform',
|
483
|
|
- method: 'Get',
|
|
496
|
+ url: "/api/manage/getuserform",
|
|
497
|
+ method: "Get",
|
484
|
498
|
params: params
|
485
|
|
- })
|
|
499
|
+ });
|
486
|
500
|
}
|
487
|
501
|
|
488
|
502
|
export function UpdateMacheineTwo(data) {
|
489
|
503
|
return request({
|
490
|
|
- url: '/api/manage/updatemacheinettwo',
|
491
|
|
- method: 'post',
|
|
504
|
+ url: "/api/manage/updatemacheinettwo",
|
|
505
|
+ method: "post",
|
492
|
506
|
data: data
|
493
|
|
- })
|
|
507
|
+ });
|
494
|
508
|
}
|
495
|
509
|
|
496
|
510
|
export function getBedForm(id, params) {
|
497
|
511
|
return request({
|
498
|
|
- url: '/api/manage/getbedform?id=' + id,
|
499
|
|
- method: 'get',
|
|
512
|
+ url: "/api/manage/getbedform?id=" + id,
|
|
513
|
+ method: "get",
|
500
|
514
|
params: params
|
501
|
|
- })
|
|
515
|
+ });
|
502
|
516
|
}
|
503
|
517
|
|
504
|
518
|
export function getTotalCount(params) {
|
505
|
519
|
return request({
|
506
|
|
- url: '/api/manage/gettotalcount',
|
507
|
|
- method: 'Get',
|
|
520
|
+ url: "/api/manage/gettotalcount",
|
|
521
|
+ method: "Get",
|
508
|
522
|
params: params
|
509
|
|
- })
|
|
523
|
+ });
|
510
|
524
|
}
|
511
|
525
|
|
512
|
526
|
export function getTotalNumber(id, params) {
|
513
|
527
|
return request({
|
514
|
|
- url: '/api/manage/getotalnumber?id=' + id,
|
515
|
|
- method: 'Get',
|
|
528
|
+ url: "/api/manage/getotalnumber?id=" + id,
|
|
529
|
+ method: "Get",
|
516
|
530
|
params: params
|
517
|
|
- })
|
|
531
|
+ });
|
518
|
532
|
}
|
519
|
533
|
|
520
|
534
|
export function getTimeWarning(id, params) {
|
521
|
535
|
return request({
|
522
|
|
- url: '/api/manage/gettimewarning?id=' + id,
|
523
|
|
- method: 'Get',
|
|
536
|
+ url: "/api/manage/gettimewarning?id=" + id,
|
|
537
|
+ method: "Get",
|
524
|
538
|
params: params
|
525
|
|
- })
|
|
539
|
+ });
|
526
|
540
|
}
|
527
|
541
|
|
528
|
542
|
export function SaveManageInfoTwo(data, beds) {
|
529
|
|
- console.log('data', beds)
|
|
543
|
+ console.log("data", beds);
|
530
|
544
|
return request({
|
531
|
|
- url: '/api/manage/savemanageinfotwo?beds=' + beds,
|
532
|
|
- method: 'post',
|
|
545
|
+ url: "/api/manage/savemanageinfotwo?beds=" + beds,
|
|
546
|
+ method: "post",
|
533
|
547
|
data: data
|
534
|
|
- })
|
|
548
|
+ });
|
535
|
549
|
}
|
536
|
550
|
|
537
|
551
|
export function getAllpatient(params) {
|
538
|
552
|
return request({
|
539
|
|
- url: '/api/manage/getallpatient',
|
540
|
|
- method: 'get',
|
|
553
|
+ url: "/api/manage/getallpatient",
|
|
554
|
+ method: "get",
|
541
|
555
|
params: params
|
542
|
|
- })
|
|
556
|
+ });
|
543
|
557
|
}
|
544
|
558
|
|
545
|
559
|
export function changeBed(id, params) {
|
546
|
560
|
return request({
|
547
|
|
- url: '/api/manage/changebed?id=' + id,
|
548
|
|
- method: 'get',
|
|
561
|
+ url: "/api/manage/changebed?id=" + id,
|
|
562
|
+ method: "get",
|
549
|
563
|
params: params
|
550
|
|
- })
|
|
564
|
+ });
|
551
|
565
|
}
|
552
|
566
|
|
553
|
567
|
export function getPatientDetail(id, params) {
|
554
|
568
|
return request({
|
555
|
|
- url: '/api/manage/getpatientdetail?id=' + id,
|
556
|
|
- method: 'get',
|
|
569
|
+ url: "/api/manage/getpatientdetail?id=" + id,
|
|
570
|
+ method: "get",
|
557
|
571
|
params: params
|
558
|
|
- })
|
|
572
|
+ });
|
559
|
573
|
}
|
560
|
574
|
|
561
|
575
|
export function changeRun(id, data) {
|
562
|
576
|
return request({
|
563
|
|
- url: '/api/manage/changrun?id=' + id,
|
564
|
|
- method: 'post',
|
|
577
|
+ url: "/api/manage/changrun?id=" + id,
|
|
578
|
+ method: "post",
|
565
|
579
|
data: data
|
566
|
|
- })
|
|
580
|
+ });
|
567
|
581
|
}
|
568
|
582
|
|
569
|
583
|
export function getRemanderData(params) {
|
570
|
584
|
return request({
|
571
|
|
- url: '/api/manage/getremanderdata',
|
572
|
|
- method: 'get',
|
|
585
|
+ url: "/api/manage/getremanderdata",
|
|
586
|
+ method: "get",
|
573
|
587
|
params: params
|
574
|
|
- })
|
|
588
|
+ });
|
575
|
589
|
}
|
576
|
590
|
|
577
|
591
|
export function openDelete(id, params) {
|
578
|
592
|
return request({
|
579
|
|
- url: '/api/manage/opendelete?id=' + id,
|
580
|
|
- method: 'delete',
|
|
593
|
+ url: "/api/manage/opendelete?id=" + id,
|
|
594
|
+ method: "delete",
|
581
|
595
|
params: params
|
582
|
|
- })
|
|
596
|
+ });
|
583
|
597
|
}
|
584
|
598
|
|
585
|
599
|
export function DeleteUserLogin(id, params) {
|
586
|
600
|
return request({
|
587
|
|
- url: '/api/manage/deleteuserlogin?id=' + id,
|
588
|
|
- method: 'delete',
|
|
601
|
+ url: "/api/manage/deleteuserlogin?id=" + id,
|
|
602
|
+ method: "delete",
|
589
|
603
|
params: params
|
590
|
|
- })
|
|
604
|
+ });
|
591
|
605
|
}
|
592
|
606
|
|
593
|
607
|
export function DeleteCultrues(id, params) {
|
594
|
608
|
return request({
|
595
|
|
- url: '/api/manage/deletecultrues?id=' + id,
|
596
|
|
- method: 'delete',
|
|
609
|
+ url: "/api/manage/deletecultrues?id=" + id,
|
|
610
|
+ method: "delete",
|
597
|
611
|
params: params
|
598
|
|
- })
|
|
612
|
+ });
|
599
|
613
|
}
|
600
|
614
|
|
601
|
615
|
export function DeleteDialystates(id, params) {
|
602
|
616
|
return request({
|
603
|
|
- url: '/api/manage/deletedialystates?id=' + id,
|
604
|
|
- method: 'delete',
|
|
617
|
+ url: "/api/manage/deletedialystates?id=" + id,
|
|
618
|
+ method: "delete",
|
605
|
619
|
params: params
|
606
|
|
- })
|
|
620
|
+ });
|
607
|
621
|
}
|
608
|
622
|
|
609
|
623
|
export function DeleteIons(id, params) {
|
610
|
624
|
return request({
|
611
|
|
- url: '/api/manage/deleteions?id=' + id,
|
612
|
|
- method: 'delete',
|
|
625
|
+ url: "/api/manage/deleteions?id=" + id,
|
|
626
|
+ method: "delete",
|
613
|
627
|
params: params
|
614
|
|
- })
|
|
628
|
+ });
|
615
|
629
|
}
|
616
|
630
|
|
617
|
631
|
export function DeleteRepairs(id, params) {
|
618
|
632
|
return request({
|
619
|
|
- url: '/api/manage/deleterepairs?id=' + id,
|
620
|
|
- method: 'delete',
|
|
633
|
+ url: "/api/manage/deleterepairs?id=" + id,
|
|
634
|
+ method: "delete",
|
621
|
635
|
params: params
|
622
|
|
- })
|
|
636
|
+ });
|
623
|
637
|
}
|
624
|
638
|
|
625
|
639
|
export function SaveMode(data) {
|
626
|
640
|
return request({
|
627
|
|
- url: '/api/manage/savemode',
|
628
|
|
- method: 'post',
|
|
641
|
+ url: "/api/manage/savemode",
|
|
642
|
+ method: "post",
|
629
|
643
|
data: data
|
630
|
|
- })
|
|
644
|
+ });
|
631
|
645
|
}
|
632
|
646
|
|
633
|
647
|
export function getAllMode(params) {
|
634
|
648
|
return request({
|
635
|
|
- url: '/api/manage/getallmode',
|
636
|
|
- method: 'get',
|
|
649
|
+ url: "/api/manage/getallmode",
|
|
650
|
+ method: "get",
|
637
|
651
|
params: params
|
638
|
|
- })
|
|
652
|
+ });
|
639
|
653
|
}
|
640
|
654
|
|
641
|
655
|
export function EditMode(id, params) {
|
642
|
656
|
return request({
|
643
|
|
- url: '/api/manage/editmode?id=' + id,
|
644
|
|
- method: 'get',
|
|
657
|
+ url: "/api/manage/editmode?id=" + id,
|
|
658
|
+ method: "get",
|
645
|
659
|
params: params
|
646
|
|
- })
|
|
660
|
+ });
|
647
|
661
|
}
|
648
|
662
|
|
649
|
663
|
export function UpdateMode(id, data) {
|
650
|
664
|
return request({
|
651
|
|
- url: '/api/manage/updatemode?id=' + id,
|
652
|
|
- method: 'post',
|
|
665
|
+ url: "/api/manage/updatemode?id=" + id,
|
|
666
|
+ method: "post",
|
653
|
667
|
data: data
|
654
|
|
- })
|
|
668
|
+ });
|
655
|
669
|
}
|
656
|
670
|
|
657
|
671
|
export function DeleteMode(id, params) {
|
658
|
672
|
return request({
|
659
|
|
- url: '/api/manage/deletemode?id=' + id,
|
660
|
|
- method: 'delete',
|
|
673
|
+ url: "/api/manage/deletemode?id=" + id,
|
|
674
|
+ method: "delete",
|
661
|
675
|
params: params
|
662
|
|
- })
|
|
676
|
+ });
|
663
|
677
|
}
|
664
|
678
|
|
665
|
679
|
export function selectChange(id, params) {
|
666
|
680
|
return request({
|
667
|
|
- url: '/api/manage/selectchange?id=' + id,
|
668
|
|
- method: 'get',
|
|
681
|
+ url: "/api/manage/selectchange?id=" + id,
|
|
682
|
+ method: "get",
|
669
|
683
|
params: params
|
670
|
|
- })
|
|
684
|
+ });
|
671
|
685
|
}
|
672
|
686
|
|
673
|
687
|
export function selectBed(id, params) {
|
674
|
688
|
return request({
|
675
|
|
- url: '/api/manage/selectbed?id=' + id,
|
676
|
|
- method: 'get',
|
|
689
|
+ url: "/api/manage/selectbed?id=" + id,
|
|
690
|
+ method: "get",
|
|
691
|
+ params: params
|
|
692
|
+ });
|
|
693
|
+}
|
|
694
|
+
|
|
695
|
+export function getTimeBeteen(equitid, todaytime) {
|
|
696
|
+ const params = {
|
|
697
|
+ equitid: equitid,
|
|
698
|
+ todaytime: todaytime
|
|
699
|
+ };
|
|
700
|
+ return request({
|
|
701
|
+ url: "/api/manage/getime",
|
|
702
|
+ method: "get",
|
677
|
703
|
params: params
|
678
|
|
- })
|
|
704
|
+ });
|
679
|
705
|
}
|