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