XMLWAN 4 years ago
parent
commit
ef190d15ad

+ 260 - 259
src/api/manage.js View File

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

+ 67 - 38
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue View File

357
                     干体重:
357
                     干体重:
358
                     <span class="under-line"
358
                     <span class="under-line"
359
                       >&nbsp;{{
359
                       >&nbsp;{{
360
-                        record.assessment_before_dislysis.dry_weight ? record.assessment_before_dislysis.dry_weight :"/"
360
+                        record.assessment_before_dislysis.dry_weight ? record.assessment_before_dislysis.dry_weight :"0"
361
                       }}</span
361
                       }}</span
362
                     >kg
362
                     >kg
363
                   </td>
363
                   </td>
367
                       >&nbsp;{{
367
                       >&nbsp;{{
368
                         record.assessment_before_dislysis.weight_before
368
                         record.assessment_before_dislysis.weight_before
369
                           ? record.assessment_before_dislysis.weight_before
369
                           ? record.assessment_before_dislysis.weight_before
370
-                          : "/"
370
+                          : "0"
371
                       }}</span
371
                       }}</span
372
                     >kg
372
                     >kg
373
                   </td>
373
                   </td>
377
                       >&nbsp;{{
377
                       >&nbsp;{{
378
                         record.prescription.target_ultrafiltration
378
                         record.prescription.target_ultrafiltration
379
                           ? record.prescription.target_ultrafiltration
379
                           ? record.prescription.target_ultrafiltration
380
-                          : "/"
380
+                          : "0"
381
                       }}</span
381
                       }}</span
382
                     >L
382
                     >L
383
                   </td>
383
                   </td>
403
                           >&nbsp;{{
403
                           >&nbsp;{{
404
                               record.prescription.blood_flow_volume
404
                               record.prescription.blood_flow_volume
405
                                 ? record.prescription.blood_flow_volume
405
                                 ? record.prescription.blood_flow_volume
406
-                                : '/'
406
+                                : '0'
407
                             }}</span
407
                             }}</span
408
                           >ml/min
408
                           >ml/min
409
                         </td>
409
                         </td>
411
                           置换方式:
411
                           置换方式:
412
                           <span class="under-line"
412
                           <span class="under-line"
413
                           >&nbsp; {{
413
                           >&nbsp; {{
414
-                              getDisplaceLiquiPart(record.prescription.displace_liqui_part)
414
+                              getDisplaceLiquiPart(record.prescription.displace_liqui_part) ? getDisplaceLiquiPart(record.prescription.displace_liqui_part):"/"
415
                           }}</span
415
                           }}</span
416
                           >
416
                           >
417
                         </td>
417
                         </td>
421
                           >&nbsp;{{
421
                           >&nbsp;{{
422
                               record.prescription.displace_liqui_value
422
                               record.prescription.displace_liqui_value
423
                                 ? record.prescription.displace_liqui_value
423
                                 ? record.prescription.displace_liqui_value
424
-                                : '/'
424
+                                : '0'
425
                             }}</span
425
                             }}</span
426
                           >
426
                           >
427
                         </td>
427
                         </td>
526
                         >&nbsp;{{
526
                         >&nbsp;{{
527
                               record.prescription.anticoagulant_zongliang
527
                               record.prescription.anticoagulant_zongliang
528
                                 ? record.prescription.anticoagulant_zongliang
528
                                 ? record.prescription.anticoagulant_zongliang
529
-                                : '/'
529
+                                : '0'
530
                             }}</span
530
                             }}</span
531
                         >
531
                         >
532
                           <span
532
                           <span
562
                       <tr>
562
                       <tr>
563
                         <td style="text-align:left;margin-left:15px" colspan = "2">
563
                         <td style="text-align:left;margin-left:15px" colspan = "2">
564
                           透析液(mmol/L):
564
                           透析液(mmol/L):
565
+                            <span
566
+                            class="under-line"
567
+                            v-if="
568
+                              record.prescription.dialysate_formulation == 0
569
+                            "
570
+                          >&nbsp; 常规低钙(钾:0&nbsp;,钙:0&nbsp;,钠:0)
571
+                          </span>
565
                           <span
572
                           <span
566
                             class="under-line"
573
                             class="under-line"
567
                             v-if="
574
                             v-if="
707
                     {{ getTime(monitor.operate_time, ' {y}-{m}-{d} {h}:{i}') }}
714
                     {{ getTime(monitor.operate_time, ' {y}-{m}-{d} {h}:{i}') }}
708
                   </td>
715
                   </td>
709
                   <td>
716
                   <td>
710
-                    {{
717
+                   <span v-if="getTime(monitor.operate_time)!=''">{{
711
                     monitor.systolic_blood_pressure
718
                     monitor.systolic_blood_pressure
712
-                    ? monitor.systolic_blood_pressure + '/'
713
-                    : ''
714
-                    }}{{
719
+                    ? monitor.systolic_blood_pressure 
720
+                    : '0'
721
+                    }}/{{
715
                     monitor.diastolic_blood_pressure
722
                     monitor.diastolic_blood_pressure
716
                     ? monitor.diastolic_blood_pressure
723
                     ? monitor.diastolic_blood_pressure
717
-                    : '/'
724
+                    : '0'
718
                     }}
725
                     }}
726
+                    </span> 
719
                   </td>
727
                   </td>
720
-                  <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : '/' }}</td>
721
-                  <td>{{ monitor.breathing_rate ? monitor.breathing_rate : '/' }}</td>
722
-                  <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:"/"}}</td>
723
                   <td>
728
                   <td>
724
-                    {{
725
-                    monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '/'
726
-                    }}
729
+                   <span v-if="getTime(monitor.operate_time)!=''">
730
+                     {{ monitor.pulse_frequency ? monitor.pulse_frequency : '0' }}
731
+                    </span>
727
                   </td>
732
                   </td>
728
                   <td>
733
                   <td>
729
-                    {{
730
-                    monitor.displacement_quantity
731
-                    ? monitor.displacement_quantity
732
-                    : '/'
733
-                    }}
734
+                    <span v-if="getTime(monitor.operate_time)!=''">
735
+                      {{ monitor.breathing_rate ? monitor.breathing_rate : '0' }}
736
+                     </span>
737
+                    </td>
738
+                  <td>
739
+                    <span v-if="getTime(monitor.operate_time)!=''">
740
+                    {{monitor.blood_flow_volume?monitor.blood_flow_volume:"0"}}
741
+                    </span>
742
+                   </td>
743
+                  <td>
744
+                    <span v-if="getTime(monitor.operate_time)!=''">{{
745
+                       monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '0'
746
+                     }}
747
+                    </span> 
734
                   </td>
748
                   </td>
735
-                  <td>{{ monitor.venous_pressure ? monitor.venous_pressure : '/' }}</td>
736
                   <td>
749
                   <td>
750
+                    <span v-if="getTime(monitor.operate_time)!=''">
751
+                     {{
752
+                       monitor.displacement_quantity
753
+                       ? monitor.displacement_quantity
754
+                       : '0'
755
+                      }}
756
+                    </span>
757
+                  </td>
758
+                  <td>
759
+                    <span v-if="getTime(monitor.operate_time)!=''">
760
+                     {{ monitor.venous_pressure ? monitor.venous_pressure : '0' }}
761
+                     </span>
762
+                     </td>
763
+                  <td>
764
+                    <span v-if="getTime(monitor.operate_time)!=''">
737
                     {{
765
                     {{
738
-                    monitor.transmembrane_pressure
739
-                    ? monitor.transmembrane_pressure
740
-                    : '/'
741
-                    }}
766
+                     monitor.transmembrane_pressure
767
+                     ? monitor.transmembrane_pressure
768
+                     : '0'
769
+                     }}
770
+                    </span>
742
                   </td>
771
                   </td>
743
                   <td>{{ monitor.symptom }} &nbsp;{{ monitor.dispose }}&nbsp;{{ monitor.result }}</td>
772
                   <td>{{ monitor.symptom }} &nbsp;{{ monitor.dispose }}&nbsp;{{ monitor.result }}</td>
744
                 </tr>
773
                 </tr>
856
                     /></span>
885
                     /></span>
857
                   </td>
886
                   </td>
858
                   <td v-if="advice_index === 0">透前体重:</td>
887
                   <td v-if="advice_index === 0">透前体重:</td>
859
-                  <td v-if="advice_index === 0">{{record.assessment_before_dislysis.weight_before}}kg</td>
888
+                  <td v-if="advice_index === 0">{{record.assessment_before_dislysis.weight_before ? record.assessment_before_dislysis.weight_before:"0"}}kg</td>
860
                   <td v-if="advice_index === 1">体重增加量:</td>
889
                   <td v-if="advice_index === 1">体重增加量:</td>
861
                   <td v-if="advice_index === 1">
890
                   <td v-if="advice_index === 1">
862
                     {{(record.assessment_before_dislysis.weight_before -
891
                     {{(record.assessment_before_dislysis.weight_before -
863
                     record.lastafterweight.weight_after).toFixed(1)}}kg
892
                     record.lastafterweight.weight_after).toFixed(1)}}kg
864
                   </td>
893
                   </td>
865
                   <td v-if="advice_index === 2">干体重(DW):</td>
894
                   <td v-if="advice_index === 2">干体重(DW):</td>
866
-                  <td v-if="advice_index === 2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
895
+                  <td v-if="advice_index === 2">{{record.assessment_before_dislysis.dry_weight ? record.assessment_before_dislysis.dry_weight : "0"}}kg</td>
867
                   <td v-if="advice_index === 3">较干体重增加量:</td>
896
                   <td v-if="advice_index === 3">较干体重增加量:</td>
868
                   <td v-if="advice_index === 3">
897
                   <td v-if="advice_index === 3">
869
                     {{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight -
898
                     {{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight -
887
                      上机时间:
916
                      上机时间:
888
                       <span class="under-line">
917
                       <span class="under-line">
889
                      {{
918
                      {{
890
-                       getTime(record.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
919
+                       getTime(record.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}') ? getTime(record.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}') :"/"
891
                      }}</span>
920
                      }}</span>
892
                       </td>
921
                       </td>
893
                        <td style="text-align:left;margin-left:15px;width:25%">
922
                        <td style="text-align:left;margin-left:15px;width:25%">
894
                        下机时间:
923
                        下机时间:
895
                           <span class="under-line"
924
                           <span class="under-line"
896
                             >&nbsp;{{
925
                             >&nbsp;{{
897
-                             getTime(record.dialysis_order.end_time, '{y}-{m}-{d} {h}:{i}')
926
+                             getTime(record.dialysis_order.end_time, '{y}-{m}-{d} {h}:{i}') ? getTime(record.dialysis_order.end_time, '{y}-{m}-{d} {h}:{i}') :"/"
898
                              }}</span
927
                              }}</span
899
                             >
928
                             >
900
                        </td>
929
                        </td>
908
                               ) == ''
937
                               ) == ''
909
                             "
938
                             "
910
                         >{{
939
                         >{{
911
-                              getAdminUser(record.dialysis_order, 'start_nurse')
940
+                              getAdminUser(record.dialysis_order, 'start_nurse') ? getAdminUser(record.dialysis_order, 'start_nurse') :"/"
912
                             }}</span
941
                             }}</span
913
                         >
942
                         >
914
                         <img
943
                         <img
928
                          <td style="text-align:left;margin-left:15px;width:25%">
957
                          <td style="text-align:left;margin-left:15px;width:25%">
929
                           核对护士:
958
                           核对护士:
930
                          <span class="under-line">&nbsp;
959
                          <span class="under-line">&nbsp;
931
-                           <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
960
+                           <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')?getAdminUser(record.check, 'modifier'):"/"}}</span>
932
                             <img class="es-img" :src="setAdminUserES(record.check, 'modifier')" alt="" srcset="" style="height:40px"> 
961
                             <img class="es-img" :src="setAdminUserES(record.check, 'modifier')" alt="" srcset="" style="height:40px"> 
933
                          </span>
962
                          </span>
934
                       </td>
963
                       </td>
944
                               ) == ''
973
                               ) == ''
945
                             "
974
                             "
946
                           >{{
975
                           >{{
947
-                              getAdminUser(record.dialysis_order, 'finish_nurse')
976
+                              getAdminUser(record.dialysis_order, 'finish_nurse')?getAdminUser(record.dialysis_order, 'finish_nurse'):"/"
948
                             }}</span
977
                             }}</span
949
                           >
978
                           >
950
                           <img
979
                           <img
964
                        <td style="text-align:left;margin-left:15px;width:25%">
993
                        <td style="text-align:left;margin-left:15px;width:25%">
965
                         下机血压:
994
                         下机血压:
966
                           <span class="under-line"
995
                           <span class="under-line"
967
-                          >&nbsp;{{ record.dialysis_order.systolic_blood_pressure }}/{{
968
-                             record.dialysis_order.diastolic_blood_pressure
996
+                          >&nbsp;{{ record.assessment_after_dislysis.systolic_blood_pressure }}/{{
997
+                             record.assessment_after_dislysis.diastolic_blood_pressure
969
                              }}&nbsp;mmHg</span
998
                              }}&nbsp;mmHg</span
970
                           >
999
                           >
971
                        </td>
1000
                        </td>
1025
                      <tr>
1054
                      <tr>
1026
                       <td style="text-align:left;margin-left:15px;" colspan="2">
1055
                       <td style="text-align:left;margin-left:15px;" colspan="2">
1027
                         并发症:
1056
                         并发症:
1028
-                            <span class="under-line">&nbsp;{{record.assessment_after_dislysis.complication}}</span>
1057
+                            <span class="under-line">&nbsp;{{record.assessment_after_dislysis.complication?record.assessment_after_dislysis.complication:"/"}}</span>
1029
                       </td>
1058
                       </td>
1030
                        <td style="text-align:left;margin-left:15px" colspan="2">
1059
                        <td style="text-align:left;margin-left:15px" colspan="2">
1031
                          透析器凝血:
1060
                          透析器凝血:

+ 94 - 55
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

190
                     干体重:
190
                     干体重:
191
                     <span class="under-line"
191
                     <span class="under-line"
192
                       >&nbsp;{{
192
                       >&nbsp;{{
193
-                        predialysis.dry_weight ? predialysis.dry_weight : "/"
193
+                        predialysis.dry_weight ? predialysis.dry_weight : "0"
194
                       }}</span
194
                       }}</span
195
                     >kg
195
                     >kg
196
                   </td>
196
                   </td>
200
                       >&nbsp;{{
200
                       >&nbsp;{{
201
                         predialysis.weight_before
201
                         predialysis.weight_before
202
                           ? predialysis.weight_before
202
                           ? predialysis.weight_before
203
-                          : "/"
203
+                          : "0"
204
                       }}</span
204
                       }}</span
205
                     >kg
205
                     >kg
206
                   </td>
206
                   </td>
210
                       >&nbsp;{{
210
                       >&nbsp;{{
211
                         prescription.target_ultrafiltration
211
                         prescription.target_ultrafiltration
212
                           ? prescription.target_ultrafiltration
212
                           ? prescription.target_ultrafiltration
213
-                          : "/"
213
+                          : "0"
214
                       }}</span
214
                       }}</span
215
                     >L
215
                     >L
216
                   </td>
216
                   </td>
236
                       >&nbsp;{{
236
                       >&nbsp;{{
237
                         prescription.blood_flow_volume
237
                         prescription.blood_flow_volume
238
                           ? prescription.blood_flow_volume
238
                           ? prescription.blood_flow_volume
239
-                          : "/"
239
+                          : "0"
240
                       }}</span
240
                       }}</span
241
                     >ml/min
241
                     >ml/min
242
                   </td>
242
                   </td>
255
                       >&nbsp;{{
255
                       >&nbsp;{{
256
                         prescription.displace_liqui_value
256
                         prescription.displace_liqui_value
257
                           ? prescription.displace_liqui_value
257
                           ? prescription.displace_liqui_value
258
-                          : "/"
258
+                          : "0"
259
                       }}</span
259
                       }}</span
260
                     >
260
                     >
261
                   </td>
261
                   </td>
275
                     首剂:<span class="under-line">{{
275
                     首剂:<span class="under-line">{{
276
                       prescription.anticoagulant_shouji
276
                       prescription.anticoagulant_shouji
277
                         ? prescription.anticoagulant_shouji
277
                         ? prescription.anticoagulant_shouji
278
-                        : "/"
278
+                        : "0"
279
                     }}</span>
279
                     }}</span>
280
                     <span v-if="prescription.anticoagulant == '枸橼酸钠'"
280
                     <span v-if="prescription.anticoagulant == '枸橼酸钠'"
281
                       >mg</span
281
                       >mg</span
298
                       >&nbsp;{{
298
                       >&nbsp;{{
299
                         prescription.anticoagulant_weichi
299
                         prescription.anticoagulant_weichi
300
                           ? prescription.anticoagulant_weichi
300
                           ? prescription.anticoagulant_weichi
301
-                          : "/"
301
+                          : "0"
302
                       }}</span
302
                       }}</span
303
                     >
303
                     >
304
                     <span v-if="prescription.anticoagulant == '枸橼酸钠'"
304
                     <span v-if="prescription.anticoagulant == '枸橼酸钠'"
322
                       >&nbsp;{{
322
                       >&nbsp;{{
323
                         prescription.anticoagulant_zongliang
323
                         prescription.anticoagulant_zongliang
324
                           ? prescription.anticoagulant_zongliang
324
                           ? prescription.anticoagulant_zongliang
325
-                          : "/"
325
+                          : "0"
326
                       }}</span
326
                       }}</span
327
                     >
327
                     >
328
                     <span v-if="prescription.anticoagulant == '枸橼酸钠'"
328
                     <span v-if="prescription.anticoagulant == '枸橼酸钠'"
344
                 <tr>
344
                 <tr>
345
                   <td style="text-align:left;margin-left:15px">
345
                   <td style="text-align:left;margin-left:15px">
346
                     透析液(mmol/L):
346
                     透析液(mmol/L):
347
+                    <span
348
+                      class="under-line"
349
+                      v-if="prescription.dialysate_formulation == 0"
350
+                      >&nbsp; 常规低钙(钾:0&nbsp;,钙:0 &nbsp;,钠:0)
351
+                    </span>
347
                     <span
352
                     <span
348
                       class="under-line"
353
                       class="under-line"
349
                       v-if="prescription.dialysate_formulation == 1"
354
                       v-if="prescription.dialysate_formulation == 1"
351
                         prescription.kalium
356
                         prescription.kalium
352
                       }}&nbsp;,钙:{{ prescription.calcium }}&nbsp;,钠:{{
357
                       }}&nbsp;,钙:{{ prescription.calcium }}&nbsp;,钠:{{
353
                         prescription.sodium
358
                         prescription.sodium
354
-                      }};)
359
+                      }})
355
                     </span>
360
                     </span>
356
                     <span
361
                     <span
357
                       class="under-line"
362
                       class="under-line"
358
                       v-if="prescription.dialysate_formulation == 2"
363
                       v-if="prescription.dialysate_formulation == 2"
359
                       >&nbsp; 低钙(钾:{{ prescription.kalium }}&nbsp;,钙:{{
364
                       >&nbsp; 低钙(钾:{{ prescription.kalium }}&nbsp;,钙:{{
360
                         prescription.calcium
365
                         prescription.calcium
361
-                      }}&nbsp;,钠:{{ prescription.sodium }};)
366
+                      }}&nbsp;,钠:{{ prescription.sodium }})
362
                     </span>
367
                     </span>
363
                     <span
368
                     <span
364
                       class="under-line"
369
                       class="under-line"
365
                       v-if="prescription.dialysate_formulation == 3"
370
                       v-if="prescription.dialysate_formulation == 3"
366
                       >&nbsp; 高钙(钾:{{ prescription.kalium }}&nbsp;,钙:{{
371
                       >&nbsp; 高钙(钾:{{ prescription.kalium }}&nbsp;,钙:{{
367
                         prescription.calcium
372
                         prescription.calcium
368
-                      }}&nbsp;,钠:{{ prescription.sodium }};)
373
+                      }}&nbsp;,钠:{{ prescription.sodium }})
369
                     </span>
374
                     </span>
370
                     <span
375
                     <span
371
                       class="under-line"
376
                       class="under-line"
372
                       v-if="prescription.dialysate_formulation == 4"
377
                       v-if="prescription.dialysate_formulation == 4"
373
                       >&nbsp; 低钠(钾:{{ prescription.kalium }}&nbsp;,钙:{{
378
                       >&nbsp; 低钠(钾:{{ prescription.kalium }}&nbsp;,钙:{{
374
                         prescription.calcium
379
                         prescription.calcium
375
-                      }}&nbsp;,钠:{{ prescription.sodium }};)
380
+                      }}&nbsp;,钠:{{ prescription.sodium }})
376
                     </span>
381
                     </span>
377
                     <span
382
                     <span
378
                       class="under-line"
383
                       class="under-line"
379
                       v-if="prescription.dialysate_formulation == 5"
384
                       v-if="prescription.dialysate_formulation == 5"
380
                       >&nbsp; 高钠(钾:{{ prescription.kalium }}&nbsp;,钙:{{
385
                       >&nbsp; 高钠(钾:{{ prescription.kalium }}&nbsp;,钙:{{
381
                         prescription.calcium
386
                         prescription.calcium
382
-                      }}&nbsp;,钠:{{ prescription.sodium }};)
387
+                      }}&nbsp;,钠:{{ prescription.sodium }})
383
                     </span>
388
                     </span>
384
                   </td>
389
                   </td>
385
                   <td style="text-align:left;margin-left:15px">
390
                   <td style="text-align:left;margin-left:15px">
386
                     并发症:
391
                     并发症:
387
-                    <span class="under-line"
388
-                      >&nbsp;{{
389
-                        predialysis.complication
390
-                          ? predialysis.complication
391
-                          : "/"
392
-                      }}</span
393
-                    >
392
+                    <span class="under-line">{{
393
+                      predialysis.complication ? predialysis.complication : "/"
394
+                    }}</span>
394
                   </td>
395
                   </td>
395
                   <td style="text-align:left;margin-left:15px">
396
                   <td style="text-align:left;margin-left:15px">
396
                     医生签名:
397
                     医生签名:
456
             {{ getTime(monitor.operate_time, "{h}:{i}") }}
457
             {{ getTime(monitor.operate_time, "{h}:{i}") }}
457
           </td>
458
           </td>
458
           <td>
459
           <td>
459
-            {{
460
-              monitor.systolic_blood_pressure
461
-                ? monitor.systolic_blood_pressure + "/"
462
-                : ""
463
-            }}{{
464
-              monitor.diastolic_blood_pressure
465
-                ? monitor.diastolic_blood_pressure
466
-                : "/"
467
-            }}
460
+            <span v-if="getTime(monitor.operate_time) != ''"
461
+              >{{
462
+                monitor.systolic_blood_pressure
463
+                  ? monitor.systolic_blood_pressure
464
+                  : "0"
465
+              }}/{{
466
+                monitor.diastolic_blood_pressure
467
+                  ? monitor.diastolic_blood_pressure
468
+                  : "0"
469
+              }}
470
+            </span>
468
           </td>
471
           </td>
469
-          <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}</td>
470
-          <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "/" }}</td>
471
           <td>
472
           <td>
472
-            {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "/" }}
473
+            <span v-if="getTime(monitor.operate_time) != ''">
474
+              {{ monitor.pulse_frequency ? monitor.pulse_frequency : "0" }}
475
+            </span>
473
           </td>
476
           </td>
474
           <td>
477
           <td>
475
-            {{
476
-              monitor.ultrafiltration_volume
477
-                ? monitor.ultrafiltration_volume
478
-                : "/"
479
-            }}
478
+            <span v-if="getTime(monitor.operate_time) != ''">{{
479
+              monitor.breathing_rate ? monitor.breathing_rate : "0"
480
+            }}</span>
480
           </td>
481
           </td>
481
           <td>
482
           <td>
482
-            {{
483
-              monitor.displacement_quantity
484
-                ? monitor.displacement_quantity
485
-                : "/"
486
-            }}
483
+            <span v-if="getTime(monitor.operate_time) != ''">
484
+              {{
485
+                monitor.blood_flow_volume ? monitor.blood_flow_volume : "0"
486
+              }}</span
487
+            >
487
           </td>
488
           </td>
488
-          <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "/" }}</td>
489
           <td>
489
           <td>
490
-            {{
491
-              monitor.transmembrane_pressure
492
-                ? monitor.transmembrane_pressure
493
-                : "/"
494
-            }}
490
+            <span v-if="getTime(monitor.operate_time) != ''">
491
+              {{
492
+                monitor.ultrafiltration_volume
493
+                  ? monitor.ultrafiltration_volume
494
+                  : "0"
495
+              }}
496
+            </span>
497
+          </td>
498
+          <td>
499
+            <span v-if="getTime(monitor.operate_time) != ''"
500
+              >{{
501
+                monitor.displacement_quantity
502
+                  ? monitor.displacement_quantity
503
+                  : "0"
504
+              }}
505
+            </span>
506
+          </td>
507
+          <td>
508
+            <span v-if="getTime(monitor.operate_time) != ''">
509
+              {{ monitor.venous_pressure ? monitor.venous_pressure : "0" }}
510
+            </span>
511
+          </td>
512
+          <td>
513
+            <span v-if="getTime(monitor.operate_time) != ''">
514
+              {{
515
+                monitor.transmembrane_pressure
516
+                  ? monitor.transmembrane_pressure
517
+                  : "0"
518
+              }}
519
+            </span>
495
           </td>
520
           </td>
496
           <td>
521
           <td>
497
             {{ monitor.symptom }} &nbsp;{{ monitor.dispose }}&nbsp;{{
522
             {{ monitor.symptom }} &nbsp;{{ monitor.dispose }}&nbsp;{{
526
               <p style="height:20px;line-height:20px">上次透后体重</p>
551
               <p style="height:20px;line-height:20px">上次透后体重</p>
527
             </td>
552
             </td>
528
             <td style="width:60px;height:40px">
553
             <td style="width:60px;height:40px">
529
-              {{ assessmentafter.weight_after }}kg
554
+              {{
555
+                assessmentafter.weight_after
556
+                  ? assessmentafter.weight_after
557
+                  : "0"
558
+              }}kg
530
             </td>
559
             </td>
531
           </tr>
560
           </tr>
532
 
561
 
629
               <td style="text-align:left;margin-left:15px;width:25%">
658
               <td style="text-align:left;margin-left:15px;width:25%">
630
                 上机时间:
659
                 上机时间:
631
                 <span class="under-line">
660
                 <span class="under-line">
632
-                  {{ getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}") }}</span
661
+                  {{
662
+                    getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}")
663
+                      ? getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}")
664
+                      : "0"
665
+                  }}</span
633
                 >
666
                 >
634
               </td>
667
               </td>
635
               <td style="text-align:left;margin-left:15px;width:25%">
668
               <td style="text-align:left;margin-left:15px;width:25%">
636
                 下机时间:
669
                 下机时间:
637
                 <span class="under-line">{{
670
                 <span class="under-line">{{
638
                   getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}")
671
                   getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}")
672
+                    ? getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}")
673
+                    : "0"
639
                 }}</span>
674
                 }}</span>
640
               </td>
675
               </td>
641
               <td style="text-align:left;margin-left:15px;width:25%">
676
               <td style="text-align:left;margin-left:15px;width:25%">
642
                 上机护士:
677
                 上机护士:
643
                 <span class="under-line" v-if="orderForm.url === ''">{{
678
                 <span class="under-line" v-if="orderForm.url === ''">{{
644
-                  orderForm.start_nurse
679
+                  orderForm.start_nurse ? orderForm.start_nurse : "/"
645
                 }}</span>
680
                 }}</span>
646
                 <span class="under-line" v-if="orderForm.url !== ''"
681
                 <span class="under-line" v-if="orderForm.url !== ''"
647
                   ><img :src="orderForm.url" style="height:40px;"
682
                   ><img :src="orderForm.url" style="height:40px;"
657
                     "
692
                     "
658
                     >{{
693
                     >{{
659
                       getAdminUser(check == null ? 0 : check.modifier)
694
                       getAdminUser(check == null ? 0 : check.modifier)
695
+                        ? getAdminUser(check == null ? 0 : check.modifier)
696
+                        : "/"
660
                     }}</span
697
                     }}</span
661
                   >
698
                   >
662
                   <img
699
                   <img
675
               <td style="text-align:left;margin-left:15px;width:25%">
712
               <td style="text-align:left;margin-left:15px;width:25%">
676
                 下机护士:
713
                 下机护士:
677
                 <span class="under-line" v-if="finshForm.url === ''"
714
                 <span class="under-line" v-if="finshForm.url === ''"
678
-                  >&nbsp;{{ finshForm.finish_nurse }}</span
715
+                  >&nbsp;{{
716
+                    finshForm.finish_nurse ? finshForm.finish_nurse : "/"
717
+                  }}</span
679
                 >
718
                 >
680
                 <span class="under-line" v-if="finshForm.url !== ''"
719
                 <span class="under-line" v-if="finshForm.url !== ''"
681
                   >&nbsp;<img :src="finshForm.url" style="height:40px;"
720
                   >&nbsp;<img :src="finshForm.url" style="height:40px;"
696
                   {{
735
                   {{
697
                     afterdialysis.actual_treatment_hour
736
                     afterdialysis.actual_treatment_hour
698
                       ? afterdialysis.actual_treatment_hour
737
                       ? afterdialysis.actual_treatment_hour
699
-                      : "/"
738
+                      : "0"
700
                   }}小时{{
739
                   }}小时{{
701
                     afterdialysis.actual_treatment_minute
740
                     afterdialysis.actual_treatment_minute
702
                       ? afterdialysis.actual_treatment_minute
741
                       ? afterdialysis.actual_treatment_minute
703
-                      : "/"
742
+                      : "0"
704
                   }}分钟
743
                   }}分钟
705
                 </span>
744
                 </span>
706
               </td>
745
               </td>
710
                   >&nbsp;{{
749
                   >&nbsp;{{
711
                     afterdialysis.actual_ultrafiltration
750
                     afterdialysis.actual_ultrafiltration
712
                       ? afterdialysis.actual_ultrafiltration
751
                       ? afterdialysis.actual_ultrafiltration
713
-                      : "/"
752
+                      : "0"
714
                   }}&nbsp;L</span
753
                   }}&nbsp;L</span
715
                 >
754
                 >
716
               </td>
755
               </td>

File diff suppressed because it is too large
+ 666 - 594
src/xt_pages/management/components/UserForm.vue