See999 5 years ago
parent
commit
f2a8b6d067

+ 175 - 157
src/api/advice.js View File

1
-import request from '@/utils/request'
1
+import request from "@/utils/request";
2
 
2
 
3
 export function getAdviceConfig(type) {
3
 export function getAdviceConfig(type) {
4
   return request({
4
   return request({
5
-    url: '/api/getadviceconfigs?type=' + type,
6
-    method: 'get'
7
-  })
5
+    url: "/api/getadviceconfigs?type=" + type,
6
+    method: "get"
7
+  });
8
 }
8
 }
9
 
9
 
10
 export function getAllAdviceConfig() {
10
 export function getAllAdviceConfig() {
11
   return request({
11
   return request({
12
-    url: '/api/getalladviceconfig',
13
-    method: 'get'
14
-  })
12
+    url: "/api/getalladviceconfig",
13
+    method: "get"
14
+  });
15
 }
15
 }
16
 
16
 
17
 export function CreateDoctorAdvice(id, advice, mode) {
17
 export function CreateDoctorAdvice(id, advice, mode) {
18
   return request({
18
   return request({
19
-    url: '/api/patients/advice/create?id=' + id + '&mode=' + mode,
20
-    method: 'post',
19
+    url: "/api/patients/advice/create?id=" + id + "&mode=" + mode,
20
+    method: "post",
21
     data: advice,
21
     data: advice,
22
     headers: {
22
     headers: {
23
       Permission: 3
23
       Permission: 3
24
     }
24
     }
25
-  })
25
+  });
26
 }
26
 }
27
 
27
 
28
 export function EditDoctorAdvice(patient, id, advice, mode) {
28
 export function EditDoctorAdvice(patient, id, advice, mode) {
29
   return request({
29
   return request({
30
-    url: '/api/patients/advice/edit?id=' +
30
+    url:
31
+      "/api/patients/advice/edit?id=" +
31
       id +
32
       id +
32
-      '&patient=' +
33
+      "&patient=" +
33
       patient +
34
       patient +
34
-      '&mode=' +
35
+      "&mode=" +
35
       mode,
36
       mode,
36
-    method: 'Put',
37
+    method: "Put",
37
     data: advice,
38
     data: advice,
38
     headers: {
39
     headers: {
39
       Permission: 2
40
       Permission: 2
40
     }
41
     }
41
-  })
42
+  });
42
 }
43
 }
43
 
44
 
44
 export function ExecDoctorAdvice(patient, id, time, mode) {
45
 export function ExecDoctorAdvice(patient, id, time, mode) {
47
     patient: patient,
48
     patient: patient,
48
     execution_time: time,
49
     execution_time: time,
49
     mode: mode
50
     mode: mode
50
-  }
51
+  };
51
   return request({
52
   return request({
52
-    url: '/api/patients/advice/exec',
53
-    method: 'Post',
53
+    url: "/api/patients/advice/exec",
54
+    method: "Post",
54
     params: params,
55
     params: params,
55
     headers: {
56
     headers: {
56
       Permission: 2
57
       Permission: 2
57
     }
58
     }
58
-  })
59
+  });
59
 }
60
 }
60
 export function CheckDoctorAdvice(patient, id, mode) {
61
 export function CheckDoctorAdvice(patient, id, mode) {
61
   var params = {
62
   var params = {
63
     patient: patient,
64
     patient: patient,
64
     mode: mode
65
     mode: mode
65
     // execution_time: time,
66
     // execution_time: time,
66
-  }
67
+  };
67
   return request({
68
   return request({
68
-    url: '/api/patients/advice/check',
69
-    method: 'Post',
69
+    url: "/api/patients/advice/check",
70
+    method: "Post",
70
     params: params,
71
     params: params,
71
     headers: {
72
     headers: {
72
       Permission: 2
73
       Permission: 2
73
     }
74
     }
74
-  })
75
+  });
75
 }
76
 }
76
 
77
 
77
 export function getDoctorAdviceList(params) {
78
 export function getDoctorAdviceList(params) {
78
   return request({
79
   return request({
79
-    url: '/api/patients/advices',
80
-    method: 'Get',
80
+    url: "/api/patients/advices",
81
+    method: "Get",
81
     params: params
82
     params: params
82
-  })
83
+  });
83
 }
84
 }
84
 
85
 
85
 // export function StopDoctorAdvice(id, reason,mode) {
86
 // export function StopDoctorAdvice(id, reason,mode) {
94
 
95
 
95
 export function StopGroupAdvice(groupno, reason, mode) {
96
 export function StopGroupAdvice(groupno, reason, mode) {
96
   return request({
97
   return request({
97
-    url: '/api/patients/advice/stopgroup?groupno=' + groupno + '&mode=' + mode,
98
-    method: 'Post',
98
+    url: "/api/patients/advice/stopgroup?groupno=" + groupno + "&mode=" + mode,
99
+    method: "Post",
99
     data: reason,
100
     data: reason,
100
     headers: {
101
     headers: {
101
       Permission: 3
102
       Permission: 3
102
     }
103
     }
103
-  })
104
+  });
104
 }
105
 }
105
 
106
 
106
 export function DeleteDoctorAdvice(id, mode) {
107
 export function DeleteDoctorAdvice(id, mode) {
107
   return request({
108
   return request({
108
-    url: '/api/patients/advice/delete?id=' + id + '&mode=' + mode,
109
-    method: 'Delete',
109
+    url: "/api/patients/advice/delete?id=" + id + "&mode=" + mode,
110
+    method: "Delete",
110
     headers: {
111
     headers: {
111
       Permission: 2
112
       Permission: 2
112
     }
113
     }
113
-  })
114
+  });
114
 }
115
 }
115
 
116
 
116
 export function CreateDrugDic(data) {
117
 export function CreateDrugDic(data) {
117
   return request({
118
   return request({
118
-    url: '/api/drugdic/create',
119
-    method: 'post',
119
+    url: "/api/drugdic/create",
120
+    method: "post",
120
     data: data
121
     data: data
121
-  })
122
+  });
122
 }
123
 }
123
 export function UpdateDrugDic(id, data) {
124
 export function UpdateDrugDic(id, data) {
124
   return request({
125
   return request({
125
-    url: '/api/drugdic/update?id=' + id,
126
-    method: 'put',
126
+    url: "/api/drugdic/update?id=" + id,
127
+    method: "put",
127
     data: data
128
     data: data
128
-  })
129
+  });
129
 }
130
 }
130
 export function DeleteDrugDic(id) {
131
 export function DeleteDrugDic(id) {
131
   return request({
132
   return request({
132
-    url: '/api/drugdic/delete?id=' + id,
133
-    method: 'delete'
134
-  })
133
+    url: "/api/drugdic/delete?id=" + id,
134
+    method: "delete"
135
+  });
135
 }
136
 }
136
 
137
 
137
 export function CreateDrugWay(data) {
138
 export function CreateDrugWay(data) {
138
   return request({
139
   return request({
139
-    url: '/api/drugway/create',
140
-    method: 'post',
140
+    url: "/api/drugway/create",
141
+    method: "post",
141
     data: data
142
     data: data
142
-  })
143
+  });
143
 }
144
 }
144
 
145
 
145
 export function UpdateDrugWay(id, data) {
146
 export function UpdateDrugWay(id, data) {
146
   return request({
147
   return request({
147
-    url: '/api/drugway/update?id=' + id,
148
-    method: 'put',
148
+    url: "/api/drugway/update?id=" + id,
149
+    method: "put",
149
     data: data
150
     data: data
150
-  })
151
+  });
151
 }
152
 }
152
 export function DeleteDrugWay(id) {
153
 export function DeleteDrugWay(id) {
153
   return request({
154
   return request({
154
-    url: '/api/drugway/delete?id=' + id,
155
-    method: 'delete'
156
-  })
155
+    url: "/api/drugway/delete?id=" + id,
156
+    method: "delete"
157
+  });
157
 }
158
 }
158
 
159
 
159
 export function CreateExecutionFrequency(data) {
160
 export function CreateExecutionFrequency(data) {
160
   return request({
161
   return request({
161
-    url: '/api/executionfrequency/create',
162
-    method: 'post',
162
+    url: "/api/executionfrequency/create",
163
+    method: "post",
163
     data: data
164
     data: data
164
-  })
165
+  });
165
 }
166
 }
166
 
167
 
167
 export function UpdateExecutionFrequency(id, data) {
168
 export function UpdateExecutionFrequency(id, data) {
168
   return request({
169
   return request({
169
-    url: '/api/executionfrequency/update?id=' + id,
170
-    method: 'put',
170
+    url: "/api/executionfrequency/update?id=" + id,
171
+    method: "put",
171
     data: data
172
     data: data
172
-  })
173
+  });
173
 }
174
 }
174
 export function DeleteExecutionFrequency(id) {
175
 export function DeleteExecutionFrequency(id) {
175
   return request({
176
   return request({
176
-    url: '/api/executionfrequency/delete?id=' + id,
177
-    method: 'delete'
178
-  })
177
+    url: "/api/executionfrequency/delete?id=" + id,
178
+    method: "delete"
179
+  });
179
 }
180
 }
180
 export function CreateAdviceTemplate(data) {
181
 export function CreateAdviceTemplate(data) {
181
   return request({
182
   return request({
182
-    url: '/api/advicetemplate/create',
183
-    method: 'post',
183
+    url: "/api/advicetemplate/create",
184
+    method: "post",
184
     data: data
185
     data: data
185
-  })
186
+  });
186
 }
187
 }
187
 
188
 
188
 export function UpdateAdviceTemplate(id, data) {
189
 export function UpdateAdviceTemplate(id, data) {
189
   return request({
190
   return request({
190
-    url: '/api/advicetemplate/update?id=' + id,
191
-    method: 'put',
191
+    url: "/api/advicetemplate/update?id=" + id,
192
+    method: "put",
192
     data: data
193
     data: data
193
-  })
194
+  });
194
 }
195
 }
195
 export function DeleteAdviceTemplate(id, template_id, parent_id) {
196
 export function DeleteAdviceTemplate(id, template_id, parent_id) {
196
   return request({
197
   return request({
197
-    url: '/api/advicetemplate/delete?id=' +
198
+    url:
199
+      "/api/advicetemplate/delete?id=" +
198
       id +
200
       id +
199
-      '&template_id=' +
201
+      "&template_id=" +
200
       template_id +
202
       template_id +
201
-      '&parent_id=' +
203
+      "&parent_id=" +
202
       parent_id,
204
       parent_id,
203
-    method: 'delete'
204
-  })
205
+    method: "delete"
206
+  });
205
 }
207
 }
206
 
208
 
207
 export function postAdviceTemplate(params, name, advice_type) {
209
 export function postAdviceTemplate(params, name, advice_type) {
208
   return request({
210
   return request({
209
-    url: '/api/advicetemplate/create?template_name=' +
211
+    url:
212
+      "/api/advicetemplate/create?template_name=" +
210
       name +
213
       name +
211
-      '&advice_type=' +
214
+      "&advice_type=" +
212
       advice_type,
215
       advice_type,
213
-    method: 'post',
216
+    method: "post",
214
     data: params
217
     data: params
215
-  })
218
+  });
216
 }
219
 }
217
 
220
 
218
 export function CreateGroupAdvice(id, groupno, advices, mode) {
221
 export function CreateGroupAdvice(id, groupno, advices, mode) {
219
   if (advices.remind > 0) {
222
   if (advices.remind > 0) {
220
     return request({
223
     return request({
221
-      url: '/api/patients/advice/creategroup?id=' +
224
+      url:
225
+        "/api/patients/advice/creategroup?id=" +
222
         id +
226
         id +
223
-        '&groupno=' +
227
+        "&groupno=" +
224
         groupno +
228
         groupno +
225
-        '&mode=' +
229
+        "&mode=" +
226
         mode,
230
         mode,
227
-      method: 'post',
231
+      method: "post",
228
       data: advices,
232
       data: advices,
229
       headers: {
233
       headers: {
230
         Permission: 2
234
         Permission: 2
231
       }
235
       }
232
-    })
236
+    });
233
   } else {
237
   } else {
234
     return request({
238
     return request({
235
-      url: '/api/patients/advice/creategroup?id=' +
239
+      url:
240
+        "/api/patients/advice/creategroup?id=" +
236
         id +
241
         id +
237
-        '&groupno=' +
242
+        "&groupno=" +
238
         groupno +
243
         groupno +
239
-        '&mode=' +
244
+        "&mode=" +
240
         mode,
245
         mode,
241
-      method: 'post',
246
+      method: "post",
242
       data: advices,
247
       data: advices,
243
       headers: {
248
       headers: {
244
         Permission: 2
249
         Permission: 2
245
       }
250
       }
246
-    })
251
+    });
247
   }
252
   }
248
 }
253
 }
249
 export function DeleteGroupAdvice(groupno, mode) {
254
 export function DeleteGroupAdvice(groupno, mode) {
250
   return request({
255
   return request({
251
-    url: '/api/patients/advice/deletegroup?groupno=' + groupno + '&mode=' + mode,
252
-    method: 'delete',
256
+    url:
257
+      "/api/patients/advice/deletegroup?groupno=" + groupno + "&mode=" + mode,
258
+    method: "delete",
253
     headers: {
259
     headers: {
254
       Permission: 3
260
       Permission: 3
255
     }
261
     }
256
-  })
262
+  });
257
 }
263
 }
258
 
264
 
259
 export function getAllAdviceTemplate() {
265
 export function getAllAdviceTemplate() {
260
   return request({
266
   return request({
261
-    url: '/api/advicetemplate/list',
262
-    method: 'get'
263
-  })
267
+    url: "/api/advicetemplate/list",
268
+    method: "get"
269
+  });
264
 }
270
 }
265
 
271
 
266
 export function CreateSingleAdviceTemplate(advices) {
272
 export function CreateSingleAdviceTemplate(advices) {
267
   return request({
273
   return request({
268
-    url: '/api/advicetemplate/add',
269
-    method: 'post',
274
+    url: "/api/advicetemplate/add",
275
+    method: "post",
270
     params: advices
276
     params: advices
271
-  })
277
+  });
272
 }
278
 }
273
 export function DeleteParentAdviceTemplate(id) {
279
 export function DeleteParentAdviceTemplate(id) {
274
   return request({
280
   return request({
275
-    url: '/api/adviceparenttemplate/delete?template_id=' + id,
276
-    method: 'delete'
277
-  })
281
+    url: "/api/adviceparenttemplate/delete?template_id=" + id,
282
+    method: "delete"
283
+  });
278
 }
284
 }
279
 
285
 
280
 export function CreateSubAdvice(params) {
286
 export function CreateSubAdvice(params) {
281
   return request({
287
   return request({
282
-    url: '/api/subadvice/create',
283
-    method: 'post',
288
+    url: "/api/subadvice/create",
289
+    method: "post",
284
     params: params
290
     params: params
285
-  })
291
+  });
286
 }
292
 }
287
 
293
 
288
 export function updateTemplateName(params) {
294
 export function updateTemplateName(params) {
289
   return request({
295
   return request({
290
-    url: '/api/template/modify',
291
-    method: 'post',
296
+    url: "/api/template/modify",
297
+    method: "post",
292
     params: params
298
     params: params
293
-  })
299
+  });
294
 }
300
 }
295
 
301
 
296
 export function getDoctorAdviceConfig() {
302
 export function getDoctorAdviceConfig() {
297
   return request({
303
   return request({
298
-    url: '/api/adviceconfig/get',
299
-    method: 'get'
300
-  })
304
+    url: "/api/adviceconfig/get",
305
+    method: "get"
306
+  });
301
 }
307
 }
302
 
308
 
303
 export function postDoctorAdviceConfig(params) {
309
 export function postDoctorAdviceConfig(params) {
304
   return request({
310
   return request({
305
-    url: '/api/adviceconfig/isopen',
306
-    method: 'post',
311
+    url: "/api/adviceconfig/isopen",
312
+    method: "post",
307
     params: params
313
     params: params
308
-  })
314
+  });
309
 }
315
 }
310
 
316
 
311
 export function getDoctorInitConfig() {
317
 export function getDoctorInitConfig() {
312
   return request({
318
   return request({
313
-    url: '/api/advicetemplate/init/get',
314
-    method: 'get'
315
-  })
319
+    url: "/api/advicetemplate/init/get",
320
+    method: "get"
321
+  });
316
 }
322
 }
317
 
323
 
318
 export function PostInitAdviceTemplate(params) {
324
 export function PostInitAdviceTemplate(params) {
319
   return request({
325
   return request({
320
-    url: '/api/advicetemplate/init/commit',
321
-    method: 'post',
326
+    url: "/api/advicetemplate/init/commit",
327
+    method: "post",
322
     params: params
328
     params: params
323
-  })
329
+  });
324
 }
330
 }
325
 
331
 
326
 export function getPrintInfo(data) {
332
 export function getPrintInfo(data) {
327
   return request({
333
   return request({
328
-    url: '/api/advicetemplate/getprintinfo',
329
-    method: 'post',
334
+    url: "/api/advicetemplate/getprintinfo",
335
+    method: "post",
330
     data: data
336
     data: data
331
-  })
337
+  });
332
 }
338
 }
333
 
339
 
334
 export function EditNewDoctorAdvice(patient, id, advice, mode) {
340
 export function EditNewDoctorAdvice(patient, id, advice, mode) {
335
   return request({
341
   return request({
336
-    url: '/api/patients/advice/edit?id=' +
342
+    url:
343
+      "/api/patients/advice/edit?id=" +
337
       id +
344
       id +
338
-      '&patient=' +
345
+      "&patient=" +
339
       patient +
346
       patient +
340
-      '&mode=' +
347
+      "&mode=" +
341
       mode,
348
       mode,
342
-    method: 'Put',
349
+    method: "Put",
343
     data: advice,
350
     data: advice,
344
     headers: {
351
     headers: {
345
       Permission: 2
352
       Permission: 2
346
     }
353
     }
347
-  })
354
+  });
348
 }
355
 }
349
 
356
 
350
 export function CreateNewDoctorAdvice(id, advice, mode) {
357
 export function CreateNewDoctorAdvice(id, advice, mode) {
351
   return request({
358
   return request({
352
-    url: '/api/patients/advice/create?id=' + id + '&mode=' + mode,
353
-    method: 'post',
359
+    url: "/api/patients/advice/create?id=" + id + "&mode=" + mode,
360
+    method: "post",
354
     data: advice,
361
     data: advice,
355
     headers: {
362
     headers: {
356
       Permission: 2
363
       Permission: 2
357
     }
364
     }
358
-  })
365
+  });
359
 }
366
 }
360
 
367
 
361
 export function CreateNewGroupAdvice(id, groupno, advices, mode) {
368
 export function CreateNewGroupAdvice(id, groupno, advices, mode) {
362
   if (advices.remind > 0) {
369
   if (advices.remind > 0) {
363
     return request({
370
     return request({
364
-      url: '/api/patients/advice/creategroup?id=' +
371
+      url:
372
+        "/api/patients/advice/creategroup?id=" +
365
         id +
373
         id +
366
-        '&groupno=' +
374
+        "&groupno=" +
367
         groupno +
375
         groupno +
368
-        '&mode=' +
376
+        "&mode=" +
369
         mode,
377
         mode,
370
-      method: 'post',
378
+      method: "post",
371
       data: advices,
379
       data: advices,
372
       headers: {
380
       headers: {
373
         Permission: 3
381
         Permission: 3
374
       }
382
       }
375
-    })
383
+    });
376
   } else {
384
   } else {
377
     return request({
385
     return request({
378
-      url: '/api/patients/advice/creategroup?id=' +
386
+      url:
387
+        "/api/patients/advice/creategroup?id=" +
379
         id +
388
         id +
380
-        '&groupno=' +
389
+        "&groupno=" +
381
         groupno +
390
         groupno +
382
-        '&mode=' +
391
+        "&mode=" +
383
         mode,
392
         mode,
384
-      method: 'post',
393
+      method: "post",
385
       data: advices,
394
       data: advices,
386
       headers: {
395
       headers: {
387
         Permission: 3
396
         Permission: 3
388
       }
397
       }
389
-    })
398
+    });
390
   }
399
   }
391
 }
400
 }
392
 
401
 
393
 export function DeleteNewDoctorAdvice(id, mode) {
402
 export function DeleteNewDoctorAdvice(id, mode) {
394
   return request({
403
   return request({
395
-    url: '/api/patients/advice/delete?id=' + id + '&mode=' + mode,
396
-    method: 'Delete',
404
+    url: "/api/patients/advice/delete?id=" + id + "&mode=" + mode,
405
+    method: "Delete",
397
     headers: {
406
     headers: {
398
       Permission: 2
407
       Permission: 2
399
     }
408
     }
400
-  })
409
+  });
401
 }
410
 }
402
 
411
 
403
 export function DeleteNewGroupAdvice(groupno, mode) {
412
 export function DeleteNewGroupAdvice(groupno, mode) {
404
   return request({
413
   return request({
405
-    url: '/api/patients/advice/deletegroup?groupno=' + groupno + '&mode=' + mode,
406
-    method: 'delete',
414
+    url:
415
+      "/api/patients/advice/deletegroup?groupno=" + groupno + "&mode=" + mode,
416
+    method: "delete",
407
     headers: {
417
     headers: {
408
       Permission: 3
418
       Permission: 3
409
     }
419
     }
410
-  })
420
+  });
411
 }
421
 }
412
 
422
 
413
 export function StopDoctorAdvice(id, reason, mode) {
423
 export function StopDoctorAdvice(id, reason, mode) {
414
   return request({
424
   return request({
415
-    url: '/api/patients/advice/stop?id=' + id + '&mode=' + mode,
416
-    method: 'Post',
425
+    url: "/api/patients/advice/stop?id=" + id + "&mode=" + mode,
426
+    method: "Post",
417
     data: reason,
427
     data: reason,
418
     headers: {
428
     headers: {
419
       Permission: 2
429
       Permission: 2
420
     }
430
     }
421
-  })
431
+  });
422
 }
432
 }
423
 
433
 
424
 export function ExecGroupAdvice(groupno, time, mode) {
434
 export function ExecGroupAdvice(groupno, time, mode) {
425
   return request({
435
   return request({
426
-    url: '/api/patients/advice/execgroup?groupno=' +
436
+    url:
437
+      "/api/patients/advice/execgroup?groupno=" +
427
       groupno +
438
       groupno +
428
-      '&execution_time=' +
439
+      "&execution_time=" +
429
       time +
440
       time +
430
-      '&mode=' +
441
+      "&mode=" +
431
       mode,
442
       mode,
432
-    method: 'Post',
443
+    method: "Post",
433
     headers: {
444
     headers: {
434
       Permission: 2
445
       Permission: 2
435
     }
446
     }
436
-  })
447
+  });
437
 }
448
 }
438
 
449
 
439
 export function CheckGroupAdvice(groupno, mode) {
450
 export function CheckGroupAdvice(groupno, mode) {
440
   var params = {
451
   var params = {
441
     groupno: groupno,
452
     groupno: groupno,
442
     mode: mode
453
     mode: mode
443
-  }
454
+  };
444
   return request({
455
   return request({
445
-    url: '/api/patients/advice/checkgroup',
446
-    method: 'Post',
456
+    url: "/api/patients/advice/checkgroup",
457
+    method: "Post",
447
     params: params,
458
     params: params,
448
     headers: {
459
     headers: {
449
       Permission: 2
460
       Permission: 2
450
     }
461
     }
451
-  })
462
+  });
452
 }
463
 }
453
 
464
 
454
 export function getPatientSchedules(id, params) {
465
 export function getPatientSchedules(id, params) {
455
-  console.log('id----', id)
456
   return request({
466
   return request({
457
-    url: '/api/patients/advices/getpatientschedules?id=' + id,
458
-    method: 'get',
467
+    url: "/api/patients/advices/getpatientschedules?id=" + id,
468
+    method: "get",
469
+    params: params
470
+  });
471
+}
472
+
473
+export function SaveEditAdvices(params) {
474
+  return request({
475
+    url: "/api/patients/advices/saveditadvices",
476
+    method: "get",
459
     params: params
477
     params: params
460
-  })
478
+  });
461
 }
479
 }

+ 34 - 29
src/xt_pages/data/printTemplate.vue View File

88
               >
88
               >
89
                 <el-image
89
                 <el-image
90
                   style="width: 200px; height: 200px"
90
                   style="width: 200px; height: 200px"
91
-                  :src="require('@/assets/home/4.png')"
91
+                  :src="require('@/assets/home/serven.png')"
92
                   :preview-src-list="imgs_seven"
92
                   :preview-src-list="imgs_seven"
93
                 ></el-image>
93
                 ></el-image>
94
               </el-tooltip>
94
               </el-tooltip>
110
               >
110
               >
111
                 <el-image
111
                 <el-image
112
                   style="width: 200px; height: 200px;margin-left:-60px"
112
                   style="width: 200px; height: 200px;margin-left:-60px"
113
-                  :src="require('@/assets/home/5.png')"
113
+                  :src="require('@/assets/home/eight.png')"
114
                   :preview-src-list="imgs_six"
114
                   :preview-src-list="imgs_six"
115
                 ></el-image>
115
                 ></el-image>
116
               </el-tooltip>
116
               </el-tooltip>
145
           </el-col>
145
           </el-col>
146
 
146
 
147
           <!--<el-col :span="6" style="text-align: center">-->
147
           <!--<el-col :span="6" style="text-align: center">-->
148
-            <!--<div class="demo-image__preview">-->
149
-              <!--<el-tooltip-->
150
-                <!--class="item"-->
151
-                <!--effect="dark"-->
152
-                <!--content="点击查看大图"-->
153
-                <!--placement="top-start"-->
154
-                <!--:hide-after="2000"-->
155
-              <!--&gt;-->
156
-                <!--<el-image-->
157
-                  <!--style="width: 200px; height: 200px;margin-left:30px"-->
158
-                  <!--:src="require('@/assets/home/template_ten.jpg')"-->
159
-                  <!--:preview-src-list="imgs_ten"-->
160
-                <!--&gt;</el-image>-->
161
-              <!--</el-tooltip>-->
162
-            <!--</div>-->
163
-            <!--<el-radio v-model="radio" label="10" @change="change"-->
164
-            <!--&gt;模版十</el-radio-->
165
-            <!--&gt;-->
148
+          <!--<div class="demo-image__preview">-->
149
+          <!--<el-tooltip-->
150
+          <!--class="item"-->
151
+          <!--effect="dark"-->
152
+          <!--content="点击查看大图"-->
153
+          <!--placement="top-start"-->
154
+          <!--:hide-after="2000"-->
155
+          <!--&gt;-->
156
+          <!--<el-image-->
157
+          <!--style="width: 200px; height: 200px;margin-left:30px"-->
158
+          <!--:src="require('@/assets/home/template_ten.jpg')"-->
159
+          <!--:preview-src-list="imgs_ten"-->
160
+          <!--&gt;</el-image>-->
161
+          <!--</el-tooltip>-->
162
+          <!--</div>-->
163
+          <!--<el-radio v-model="radio" label="10" @change="change"-->
164
+          <!--&gt;模版十</el-radio-->
165
+          <!--&gt;-->
166
           <!--</el-col>-->
166
           <!--</el-col>-->
167
         </el-row>
167
         </el-row>
168
       </div>
168
       </div>
188
       imgUrl_Two: require("@/assets/home/2.jpg"),
188
       imgUrl_Two: require("@/assets/home/2.jpg"),
189
       imgUrl_Five: require("@/assets/home/5.jpg"),
189
       imgUrl_Five: require("@/assets/home/5.jpg"),
190
 
190
 
191
-
192
       imgs_one: [
191
       imgs_one: [
193
         // 'https://images.shengws.com/template_one.jpg'
192
         // 'https://images.shengws.com/template_one.jpg'
194
         "https://images.shengws.com/fangji.jpg"
193
         "https://images.shengws.com/fangji.jpg"
195
       ],
194
       ],
196
       imgs_two: ["https://images.shengws.com/template_two.jpg"],
195
       imgs_two: ["https://images.shengws.com/template_two.jpg"],
197
       imgs_five: ["https://images.shengws.com/template_five.jpg"],
196
       imgs_five: ["https://images.shengws.com/template_five.jpg"],
198
-      imgs_seven: ["http://images.shengws.com/7.png"],
199
-      imgs_six: ["https://images.shengws.com/5.png"],
197
+      imgs_seven: ["http://images.shengws.com/serven.png"],
198
+      imgs_six: ["http://images.shengws.com/eight.png"],
200
       imgs_eight: ["https://images.shengws.com/template_six.png"],
199
       imgs_eight: ["https://images.shengws.com/template_six.png"],
201
       imgs_ten: ["https://kuyi.shengws.com/template_ten.jpg"],
200
       imgs_ten: ["https://kuyi.shengws.com/template_ten.jpg"],
202
 
201
 
209
   methods: {
208
   methods: {
210
     change: function(val) {
209
     change: function(val) {
211
       console.log("val是什么", val);
210
       console.log("val是什么", val);
212
-      this.$confirm("切换模版后,透析记录的字段会根据打印单来显示与隐藏,是否确定切换模版", "提示", {
213
-        confirmButtonText: "确定",
214
-        cancelButtonText: "取消",
215
-        type: "info"
216
-      })
211
+      this.$confirm(
212
+        "切换模版后,透析记录的字段会根据打印单来显示与隐藏,是否确定切换模版",
213
+        "提示",
214
+        {
215
+          confirmButtonText: "确定",
216
+          cancelButtonText: "取消",
217
+          type: "info"
218
+        }
219
+      )
217
         .then(() => {
220
         .then(() => {
218
           this.loading = true;
221
           this.loading = true;
219
           postPrintTemplate(val).then(response => {
222
           postPrintTemplate(val).then(response => {
224
               // 同步
227
               // 同步
225
               // console.log(response.data.data.fileds)
228
               // console.log(response.data.data.fileds)
226
               this.loading = false;
229
               this.loading = false;
227
-               store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
230
+              store
231
+                .dispatch("updateAllFiledConfigList", response.data.data.fileds)
232
+                .then(() => {});
228
               this.$message({
233
               this.$message({
229
                 type: "success",
234
                 type: "success",
230
                 message: "切换成功"
235
                 message: "切换成功"

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

189
                           >&nbsp;
189
                           >&nbsp;
190
                             {{
190
                             {{
191
                               record.patient.total_dialysis
191
                               record.patient.total_dialysis
192
-                                ? record.patient.total_dialysis + 1
192
+                                ? record.patient.total_dialysis + + record.patient.user_sys_before_count
193
                                 : '/'
193
                                 : '/'
194
                             }}</span
194
                             }}</span
195
                           >
195
                           >

+ 13 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

154
                           style="width: 70px;text-align: center"
154
                           style="width: 70px;text-align: center"
155
                         >
155
                         >
156
                           {{
156
                           {{
157
-                            record.patient.total_dialysis
158
-                              ? record.patient.total_dialysis
157
+                            record.patient.total_dialysis +
158
+                            record.patient.user_sys_before_count
159
+                              ? record.patient.total_dialysis +
160
+                                record.patient.user_sys_before_count
159
                               : "/"
161
                               : "/"
160
                           }}
162
                           }}
161
                         </div>
163
                         </div>
1393
                         min
1395
                         min
1394
                       </div>
1396
                       </div>
1395
                       <!-- 只是占位 -->
1397
                       <!-- 只是占位 -->
1396
-                      <div class="inline_block" style="flex:1;visibility: hidden;">
1398
+                      <div
1399
+                        class="inline_block"
1400
+                        style="flex:1;visibility: hidden;"
1401
+                      >
1397
                         透析器凝血:
1402
                         透析器凝血:
1398
                         <div
1403
                         <div
1399
                           class="under_line"
1404
                           class="under_line"
1612
                           style="width: 80px;text-align: left"
1617
                           style="width: 80px;text-align: left"
1613
                           v-if="record.dialysis_order == null"
1618
                           v-if="record.dialysis_order == null"
1614
                         ></div>
1619
                         ></div>
1615
-                        <div v-if="record.check" class="under_line" style="width: 80px;text-align: left">
1620
+                        <div
1621
+                          v-if="record.check"
1622
+                          class="under_line"
1623
+                          style="width: 80px;text-align: left"
1624
+                        >
1616
                           <div
1625
                           <div
1617
                             style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
1626
                             style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
1618
                             v-if="
1627
                             v-if="

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue View File

537
                   </td>
537
                   </td>
538
                   <td style="text-align:left;margin-left:15px" colspan="2">
538
                   <td style="text-align:left;margin-left:15px" colspan="2">
539
                     透析次数:
539
                     透析次数:
540
-                    <span class="under-line">&nbsp;{{ total }}</span>
540
+                    <span class="under-line">&nbsp;{{
541
+                        patientInfo.total_dialysis +
542
+                          patientInfo.user_sys_before_count
543
+                      }}</span>
541
                   </td>
544
                   </td>
542
                 </tr>
545
                 </tr>
543
                 <tr>
546
                 <tr>

+ 18 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue View File

211
           <span class="content">{{ this.record.complication }}</span>
211
           <span class="content">{{ this.record.complication }}</span>
212
         </li>
212
         </li>
213
         <li
213
         <li
214
-          v-if="isShow('交待病房护士/患者/陪人观察内容') && patient_gose == 3"
214
+          v-if="patient_gose == 3 && isShow('交待病房护士/患者/陪人观察内容')"
215
         >
215
         >
216
           <label>交待病房护士/患者/陪人观察内容 : </label>
216
           <label>交待病房护士/患者/陪人观察内容 : </label>
217
           <span class="content">{{ observation_content }}</span>
217
           <span class="content">{{ observation_content }}</span>
712
     },
712
     },
713
     isShow(name) {
713
     isShow(name) {
714
       var filedList = store.getters.xt_user.fileds;
714
       var filedList = store.getters.xt_user.fileds;
715
-
715
+      console.log("filedList", filedList);
716
+      var arr = [];
717
+      for (let j = 0; j < filedList.length; j++) {
718
+        if (filedList[j].module == 5) {
719
+          arr.push(filedList[j]);
720
+        }
721
+      }
722
+      var arrtwo = [];
723
+      for (let z = 0; z < filedList.length; z++) {
724
+        if (filedList[z].filed_name == "observation_content") {
725
+          console.log(filedList[z].filed_name_cn);
726
+          if (filedList[z].filed_name_cn == "交待病房护士/患者/陪人观察内容") {
727
+            // console.log(filedList[z]);
728
+          }
729
+        }
730
+      }
731
+      console.log("arr", arr);
716
       for (let i = 0; i < filedList.length; i++) {
732
       for (let i = 0; i < filedList.length; i++) {
717
         if (
733
         if (
718
           filedList[i].module == 5 &&
734
           filedList[i].module == 5 &&

+ 263 - 263
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

27
           </el-col>
27
           </el-col>
28
 
28
 
29
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
           <el-col :span="8" v-if="isShow('实际超滤量')">
30
-
31
-            <el-form-item label="实际超滤量(ml): " v-if="this.template_id == 6 || this.template_id == 10 || this.template_id == 11">
30
+            <el-form-item
31
+              label="实际超滤量(ml): "
32
+              v-if="
33
+                this.template_id == 6 ||
34
+                  this.template_id == 10 ||
35
+                  this.template_id == 11
36
+              "
37
+            >
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
38
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
39
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
40
             <el-form-item label="实际超滤量(L): " v-else>
41
               <el-input v-model="form.weight_after"></el-input>
47
               <el-input v-model="form.weight_after"></el-input>
42
             </el-form-item>
48
             </el-form-item>
43
           </el-col>
49
           </el-col>
50
+        </el-row>
44
 
51
 
52
+        <el-row :gutter="20">
45
           <el-col :span="8" v-if="isShow('体重减少')">
53
           <el-col :span="8" v-if="isShow('体重减少')">
46
             <el-form-item label="体重减少(kg): ">
54
             <el-form-item label="体重减少(kg): ">
47
               <el-input v-model="form.weight_loss"></el-input>
55
               <el-input v-model="form.weight_loss"></el-input>
76
               ></el-input>
84
               ></el-input>
77
             </el-form-item>
85
             </el-form-item>
78
           </el-col>
86
           </el-col>
87
+        </el-row>
79
 
88
 
89
+        <el-row :gutter="20">
80
           <el-col :span="8" v-if="isShow('导管')">
90
           <el-col :span="8" v-if="isShow('导管')">
81
             <el-form-item label="导管: ">
91
             <el-form-item label="导管: ">
82
               <el-input
92
               <el-input
117
               ></el-input>
127
               ></el-input>
118
             </el-form-item>
128
             </el-form-item>
119
           </el-col>
129
           </el-col>
130
+        </el-row>
120
 
131
 
132
+        <el-row :gutter="20">
121
           <el-col :span="8" v-if="isShow('透析过程提前其他原因')">
133
           <el-col :span="8" v-if="isShow('透析过程提前其他原因')">
122
             <el-form-item label="透析过程提前其他原因: ">
134
             <el-form-item label="透析过程提前其他原因: ">
123
               <el-input
135
               <el-input
161
               </el-select>
173
               </el-select>
162
             </el-form-item>
174
             </el-form-item>
163
           </el-col>
175
           </el-col>
176
+
164
           <el-col :span="8" v-if="isShow('静脉管道')">
177
           <el-col :span="8" v-if="isShow('静脉管道')">
165
             <el-form-item label="静脉管道: ">
178
             <el-form-item label="静脉管道: ">
166
               <el-select v-model="form.intravenous_tube">
179
               <el-select v-model="form.intravenous_tube">
200
               </el-select>
213
               </el-select>
201
             </el-form-item>
214
             </el-form-item>
202
           </el-col>
215
           </el-col>
203
-
204
-          <el-col :span="8" v-if="isShow('拔针后穿刺点渗血')">
205
-            <el-form-item label="拔针后穿刺点渗血: ">
206
-              <el-radio-group v-model="form.puncture_point_oozing_blood">
207
-                <el-radio :label="1">有</el-radio>
208
-                <el-radio :label="2">无</el-radio>
209
-              </el-radio-group>
210
-            </el-form-item>
211
-          </el-col>
212
-
213
-          <!--          <el-col :span="8" v-if="isShow('压迫后内瘘震颤')">-->
214
-          <!--            <el-form-item label="压迫后内瘘震颤: ">-->
215
-          <!--              <el-select v-model="form.internal_fistula_tremor_ac">-->
216
-          <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
217
-
218
-          <!--                <el-option-->
219
-          <!--                  v-for="item in internalFistulaTremorAcOptions"-->
220
-          <!--                  :label="item.name"-->
221
-          <!--                  :value="item.id"-->
222
-          <!--                  :key="item.id"-->
223
-          <!--                ></el-option>-->
224
-          <!--              </el-select>-->
225
-          <!--            </el-form-item>-->
226
-          <!--          </el-col>-->
227
-
228
-          <el-row :gutter="20" v-if="form.patient_gose == 3 && isShow('科室')">
229
-            <el-col :span="24">
230
-              <el-form-item label="科室: ">
231
-                <el-input
232
-                  v-model="form.inpatient_department"
233
-                  :rows="5"
234
-                ></el-input>
235
-              </el-form-item>
236
-            </el-col>
237
-          </el-row>
238
-          <el-row
239
-            :gutter="20"
240
-            v-if="form.patient_gose == 3 && isShow('交待观察内容')"
241
-          >
242
-            <el-col :span="24">
243
-              <el-form-item label="交待观察内容: ">
244
-                <el-input
245
-                  placeholder="交待病房护士/患者/陪人观察内容"
246
-                  v-model="form.observation_content"
247
-                  :rows="5"
248
-                  readonly
249
-                  @focus="showDialog('6')"
250
-                ></el-input>
251
-              </el-form-item>
252
-            </el-col>
253
-          </el-row>
254
-          <el-row
255
-            :gutter="20"
256
-            v-show="form.patient_gose == 3 && isShow('其他观察内容')"
257
-          >
258
-            <el-col :span="24">
259
-              <el-form-item label="其他观察内容: ">
260
-                <el-input
261
-                  v-model="form.observation_content_other"
262
-                  :rows="5"
263
-                ></el-input>
264
-              </el-form-item>
265
-            </el-col>
266
-          </el-row>
267
-
268
-          <el-col :span="8" v-if="isShow('体温')">
269
-            <el-form-item label="体温(℃): ">
270
-              <el-input v-model="form.temperature"></el-input>
271
-            </el-form-item>
272
-          </el-col>
273
-          <!-- </el-row>
274
-
275
-        <el-row :gutter="20"> -->
276
-          <el-col :span="8" v-if="isShow('收缩压')">
277
-            <el-form-item label="收缩压(mmHg): ">
278
-              <el-input v-model="form.systolic_blood_pressure"></el-input>
279
-            </el-form-item>
280
-          </el-col>
281
-          <el-col :span="8" v-if="isShow('舒张压')">
282
-            <el-form-item label="舒张压(mmHg): ">
283
-              <el-input v-model="form.diastolic_blood_pressure"></el-input>
284
-            </el-form-item>
285
-          </el-col>
286
-
287
-          <el-col :span="8" v-if="isShow('呼吸频率')">
288
-            <el-form-item label="呼吸频率(次/min): ">
289
-              <el-input v-model="form.breathing_rate"></el-input>
290
-            </el-form-item>
291
-          </el-col>
292
-
293
-          <el-col :span="8" v-if="isShow('脉搏')">
294
-            <el-form-item label="脉搏(次/分): ">
295
-              <el-input v-model="form.pulse_frequency"></el-input>
216
+        </el-row>
217
+        <el-col :span="8" v-if="isShow('拔针后穿刺点渗血')">
218
+          <el-form-item label="拔针后穿刺点渗血: ">
219
+            <el-radio-group v-model="form.puncture_point_oozing_blood">
220
+              <el-radio :label="1">有</el-radio>
221
+              <el-radio :label="2">无</el-radio>
222
+            </el-radio-group>
223
+          </el-form-item>
224
+        </el-col>
225
+
226
+        <!--          <el-col :span="8" v-if="isShow('压迫后内瘘震颤')">-->
227
+        <!--            <el-form-item label="压迫后内瘘震颤: ">-->
228
+        <!--              <el-select v-model="form.internal_fistula_tremor_ac">-->
229
+        <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
230
+
231
+        <!--                <el-option-->
232
+        <!--                  v-for="item in internalFistulaTremorAcOptions"-->
233
+        <!--                  :label="item.name"-->
234
+        <!--                  :value="item.id"-->
235
+        <!--                  :key="item.id"-->
236
+        <!--                ></el-option>-->
237
+        <!--              </el-select>-->
238
+        <!--            </el-form-item>-->
239
+        <!--          </el-col>-->
240
+
241
+        <el-row :gutter="20" v-if="form.patient_gose == 3 && isShow('科室')">
242
+          <el-col :span="24">
243
+            <el-form-item label="科室: ">
244
+              <el-input
245
+                v-model="form.inpatient_department"
246
+                :rows="5"
247
+              ></el-input>
296
             </el-form-item>
248
             </el-form-item>
297
           </el-col>
249
           </el-col>
298
-
299
-          <el-col :span="8" v-if="isShow('透后症状')">
300
-            <el-form-item label="透后症状: ">
250
+        </el-row>
251
+        <el-row
252
+          :gutter="20"
253
+          v-if="form.patient_gose == 3 && isShow('交待观察内容')"
254
+        >
255
+          <el-col :span="24">
256
+            <el-form-item label="交待观察内容: ">
301
               <el-input
257
               <el-input
302
-                v-model="form.symptom_after_dialysis"
258
+                placeholder="交待病房护士/患者/陪人观察内容"
259
+                v-model="form.observation_content"
260
+                :rows="5"
303
                 readonly
261
                 readonly
304
-                @focus="showDialog('2')"
262
+                @focus="showDialog('6')"
305
               ></el-input>
263
               ></el-input>
306
             </el-form-item>
264
             </el-form-item>
307
           </el-col>
265
           </el-col>
308
-          <el-col :span="8" v-if="isShow('透析中入量')">
309
-            <el-form-item label="透析中入量: ">
310
-              <el-input v-model="form.dialysis_intakes"></el-input>
266
+        </el-row>
267
+        <el-row
268
+          :gutter="20"
269
+          v-show="form.patient_gose == 3 && isShow('其他观察内容')"
270
+        >
271
+          <el-col :span="24">
272
+            <el-form-item label="其他观察内容: ">
273
+              <el-input
274
+                v-model="form.observation_content_other"
275
+                :rows="5"
276
+              ></el-input>
311
             </el-form-item>
277
             </el-form-item>
312
           </el-col>
278
           </el-col>
279
+        </el-row>
313
 
280
 
314
-          <el-col :span="8" v-if="isShow('透析中入量单位')">
315
-            <el-form-item label="透析中入量单位: ">
316
-              <el-select v-model="form.dialysis_intakes_unit">
317
-                <el-option :key="0" label="请选择" :value="0"></el-option>
318
-                <el-option
319
-                  v-for="item in unit"
320
-                  :label="item.name"
321
-                  :value="item.id"
322
-                  :key="item.id"
323
-                ></el-option>
324
-              </el-select>
325
-            </el-form-item>
326
-          </el-col>
281
+        <el-col :span="8" v-if="isShow('体温')">
282
+          <el-form-item label="体温(℃): ">
283
+            <el-input v-model="form.temperature"></el-input>
284
+          </el-form-item>
285
+        </el-col>
286
+        <!-- </el-row>
327
 
287
 
328
-          <!-- </el-row>
288
+        <el-row :gutter="20"> -->
289
+        <el-col :span="8" v-if="isShow('收缩压')">
290
+          <el-form-item label="收缩压(mmHg): ">
291
+            <el-input v-model="form.systolic_blood_pressure"></el-input>
292
+          </el-form-item>
293
+        </el-col>
294
+        <el-col :span="8" v-if="isShow('舒张压')">
295
+          <el-form-item label="舒张压(mmHg): ">
296
+            <el-input v-model="form.diastolic_blood_pressure"></el-input>
297
+          </el-form-item>
298
+        </el-col>
299
+
300
+        <el-col :span="8" v-if="isShow('呼吸频率')">
301
+          <el-form-item label="呼吸频率(次/min): ">
302
+            <el-input v-model="form.breathing_rate"></el-input>
303
+          </el-form-item>
304
+        </el-col>
305
+
306
+        <el-col :span="8" v-if="isShow('脉搏')">
307
+          <el-form-item label="脉搏(次/分): ">
308
+            <el-input v-model="form.pulse_frequency"></el-input>
309
+          </el-form-item>
310
+        </el-col>
311
+
312
+        <el-col :span="8" v-if="isShow('透后症状')">
313
+          <el-form-item label="透后症状: ">
314
+            <el-input
315
+              v-model="form.symptom_after_dialysis"
316
+              readonly
317
+              @focus="showDialog('2')"
318
+            ></el-input>
319
+          </el-form-item>
320
+        </el-col>
321
+        <el-col :span="8" v-if="isShow('透析中入量')">
322
+          <el-form-item label="透析中入量: ">
323
+            <el-input v-model="form.dialysis_intakes"></el-input>
324
+          </el-form-item>
325
+        </el-col>
326
+
327
+        <el-col :span="8" v-if="isShow('透析中入量单位')">
328
+          <el-form-item label="透析中入量单位: ">
329
+            <el-select v-model="form.dialysis_intakes_unit">
330
+              <el-option :key="0" label="请选择" :value="0"></el-option>
331
+              <el-option
332
+                v-for="item in unit"
333
+                :label="item.name"
334
+                :value="item.id"
335
+                :key="item.id"
336
+              ></el-option>
337
+            </el-select>
338
+          </el-form-item>
339
+        </el-col>
340
+
341
+        <!-- </el-row>
329
 
342
 
330
         <el-row :gutter="20"> -->
343
         <el-row :gutter="20"> -->
331
 
344
 
332
-          <el-col :span="8" v-if="isShow('实际置换量')">
333
-            <el-form-item label="实际置换量(L): ">
334
-              <el-input v-model="form.actual_displacement"></el-input>
335
-            </el-form-item>
336
-          </el-col>
345
+        <el-col :span="8" v-if="isShow('实际置换量')">
346
+          <el-form-item label="实际置换量(L): ">
347
+            <el-input v-model="form.actual_displacement"></el-input>
348
+          </el-form-item>
349
+        </el-col>
337
 
350
 
338
-          <!-- </el-row>
351
+        <!-- </el-row>
339
 
352
 
340
         <el-row :gutter="20"> -->
353
         <el-row :gutter="20"> -->
341
 
354
 
342
-          <!-- </el-row>
355
+        <!-- </el-row>
343
 
356
 
344
         <el-row :gutter="20"> -->
357
         <el-row :gutter="20"> -->
345
 
358
 
346
-          <!--          <el-col :span="8" v-if="isShow('血管通路部位')">-->
347
-          <!--            <el-form-item label="血管通路部位: ">-->
348
-          <!--              <el-select v-model="form.blood_access_part_id">-->
349
-          <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
350
-
351
-          <!--                <el-option-->
352
-          <!--                  v-for="item in vascularAccessOptions"-->
353
-          <!--                  :label="item.name"-->
354
-          <!--                  :value="item.id"-->
355
-          <!--                  :key="item.id"-->
356
-          <!--                ></el-option>-->
357
-          <!--              </el-select>-->
358
-          <!--            </el-form-item>-->
359
-          <!--          </el-col>-->
360
-          <!--          <el-col :span="8" v-if="isShow('血管通路')">-->
361
-          <!--            <el-form-item label="血管通路: ">-->
362
-          <!--              <el-select v-model="form.blood_access_part_opera_id">-->
363
-          <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
364
-
365
-          <!--                <el-option-->
366
-          <!--                  v-for="item in vascularAccessDescOptions"-->
367
-          <!--                  :label="item.name"-->
368
-          <!--                  :value="item.id"-->
369
-          <!--                  :key="item.id"-->
370
-          <!--                ></el-option>-->
371
-          <!--              </el-select>-->
372
-          <!--            </el-form-item>-->
373
-          <!--          </el-col>-->
374
-          <!-- </el-row>
359
+        <!--          <el-col :span="8" v-if="isShow('血管通路部位')">-->
360
+        <!--            <el-form-item label="血管通路部位: ">-->
361
+        <!--              <el-select v-model="form.blood_access_part_id">-->
362
+        <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
363
+
364
+        <!--                <el-option-->
365
+        <!--                  v-for="item in vascularAccessOptions"-->
366
+        <!--                  :label="item.name"-->
367
+        <!--                  :value="item.id"-->
368
+        <!--                  :key="item.id"-->
369
+        <!--                ></el-option>-->
370
+        <!--              </el-select>-->
371
+        <!--            </el-form-item>-->
372
+        <!--          </el-col>-->
373
+        <!--          <el-col :span="8" v-if="isShow('血管通路')">-->
374
+        <!--            <el-form-item label="血管通路: ">-->
375
+        <!--              <el-select v-model="form.blood_access_part_opera_id">-->
376
+        <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
377
+
378
+        <!--                <el-option-->
379
+        <!--                  v-for="item in vascularAccessDescOptions"-->
380
+        <!--                  :label="item.name"-->
381
+        <!--                  :value="item.id"-->
382
+        <!--                  :key="item.id"-->
383
+        <!--                ></el-option>-->
384
+        <!--              </el-select>-->
385
+        <!--            </el-form-item>-->
386
+        <!--          </el-col>-->
387
+        <!-- </el-row>
375
 
388
 
376
         <el-row :gutter="20"> -->
389
         <el-row :gutter="20"> -->
377
 
390
 
378
-          <!-- </el-row>
391
+        <!-- </el-row>
379
 
392
 
380
 
393
 
381
 
394
 
382
           <el-row :gutter="20" > -->
395
           <el-row :gutter="20" > -->
383
 
396
 
384
-          <!--
397
+        <!--
385
                   </el-row>
398
                   </el-row>
386
 
399
 
387
 
400
 
388
 
401
 
389
 
402
 
390
                   <el-row :gutter="20"> -->
403
                   <el-row :gutter="20"> -->
391
-          <!--          <el-col :span="8" v-if="isShow('内瘘震颤和血管杂音')">-->
392
-          <!--            <el-form-item label="内瘘震颤和血管杂音: ">-->
393
-          <!--              <el-select v-model="form.tremor_noise">-->
394
-          <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
395
-
396
-          <!--                <el-option-->
397
-          <!--                  v-for="item in this.$store.getters.tremor_noise"-->
398
-          <!--                  :label="item.name"-->
399
-          <!--                  :value="item.id"-->
400
-          <!--                  :key="item.id"-->
401
-          <!--                ></el-option>-->
402
-          <!--              </el-select>-->
403
-          <!--            </el-form-item>-->
404
-          <!--          </el-col>-->
405
-          <el-col :span="8" v-if="isShow('失衡综合症')">
406
-            <el-form-item label="失衡综合症: ">
407
-              <el-select v-model="form.disequilibrium_syndrome">
408
-                <el-option :key="0" label="请选择" :value="0"></el-option>
409
-
410
-                <el-option
411
-                  v-for="item in this.$store.getters.disequilibrium_syndrome"
412
-                  :label="item.name"
413
-                  :value="item.id"
414
-                  :key="item.id"
415
-                ></el-option>
416
-              </el-select>
417
-            </el-form-item>
418
-          </el-col>
419
-          <!--          <el-col :span="8" v-if="isShow('失衡综合症症状')">-->
420
-          <!--            <el-form-item label="失衡综合症症状: ">-->
421
-          <!--              <el-input-->
422
-          <!--                v-model="form.disequilibrium_syndrome_option"-->
423
-          <!--                readonly-->
424
-          <!--                @focus="showDialog('8')"-->
425
-          <!--              ></el-input>-->
426
-          <!--            </el-form-item>-->
427
-          <!--          </el-col>-->
428
-
429
-          <!-- </el-row>
404
+        <!--          <el-col :span="8" v-if="isShow('内瘘震颤和血管杂音')">-->
405
+        <!--            <el-form-item label="内瘘震颤和血管杂音: ">-->
406
+        <!--              <el-select v-model="form.tremor_noise">-->
407
+        <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
408
+
409
+        <!--                <el-option-->
410
+        <!--                  v-for="item in this.$store.getters.tremor_noise"-->
411
+        <!--                  :label="item.name"-->
412
+        <!--                  :value="item.id"-->
413
+        <!--                  :key="item.id"-->
414
+        <!--                ></el-option>-->
415
+        <!--              </el-select>-->
416
+        <!--            </el-form-item>-->
417
+        <!--          </el-col>-->
418
+        <el-col :span="8" v-if="isShow('失衡综合症')">
419
+          <el-form-item label="失衡综合症: ">
420
+            <el-select v-model="form.disequilibrium_syndrome">
421
+              <el-option :key="0" label="请选择" :value="0"></el-option>
422
+
423
+              <el-option
424
+                v-for="item in this.$store.getters.disequilibrium_syndrome"
425
+                :label="item.name"
426
+                :value="item.id"
427
+                :key="item.id"
428
+              ></el-option>
429
+            </el-select>
430
+          </el-form-item>
431
+        </el-col>
432
+        <!--          <el-col :span="8" v-if="isShow('失衡综合症症状')">-->
433
+        <!--            <el-form-item label="失衡综合症症状: ">-->
434
+        <!--              <el-input-->
435
+        <!--                v-model="form.disequilibrium_syndrome_option"-->
436
+        <!--                readonly-->
437
+        <!--                @focus="showDialog('8')"-->
438
+        <!--              ></el-input>-->
439
+        <!--            </el-form-item>-->
440
+        <!--          </el-col>-->
441
+
442
+        <!-- </el-row>
430
 
443
 
431
 
444
 
432
 
445
 
433
           <el-row :gutter="20"  > -->
446
           <el-row :gutter="20"  > -->
434
 
447
 
435
-          <!--          <el-col :span="8" v-if="isShow('透析器')">-->
436
-          <!--            <el-form-item label="透析器凝血: ">-->
437
-          <!--              <el-select v-model="form.dialyzer">-->
438
-          <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
439
-
440
-          <!--                <el-option-->
441
-          <!--                  v-for="item in this.$store.getters.dialyzer"-->
442
-          <!--                  :label="item.name"-->
443
-          <!--                  :value="item.id"-->
444
-          <!--                  :key="item.id"-->
445
-          <!--                ></el-option>-->
446
-          <!--              </el-select>-->
447
-          <!--            </el-form-item>-->
448
-          <!--          </el-col>-->
449
-          <el-col :span="8" v-if="isShow('透析期间进食')">
450
-            <el-form-item label="透析期间进食: ">
451
-              <el-radio-group v-model="form.is_eat">
452
-                <el-radio :label="1">有</el-radio>
453
-                <el-radio :label="2">无</el-radio>
454
-              </el-radio-group>
455
-            </el-form-item>
456
-          </el-col>
457
-
458
-
459
-          <el-col :span="8" v-if="isShow('中心静脉封管(肝素-A端)')">
460
-            <el-form-item label="中心静脉封管(肝素-A端): ">
461
-              <el-input v-model="form.cvc_a"></el-input>
462
-            </el-form-item>
463
-          </el-col>
464
-
465
-
466
-          <el-col :span="8" v-if="isShow('中心静脉封管(肝素-V端)')">
467
-            <el-form-item label="中心静脉封管(肝素-V端): ">
468
-              <el-input v-model="form.cvc_v"></el-input>
469
-            </el-form-item>
470
-          </el-col>
471
-
472
-          <el-col :span="8" v-if="isShow('管路')">
473
-            <el-form-item label="管路: ">
474
-              <el-select v-model="form.channel">
475
-                <el-option :key="0" label="请选择" :value="0"></el-option>
476
-                <el-option
477
-                  v-for="item in channels"
478
-                  :label="item.name"
479
-                  :value="item.id"
480
-                  :key="item.id"
481
-                ></el-option>
482
-              </el-select>
483
-            </el-form-item>
484
-          </el-col>
485
-
486
-
487
-
488
-        </el-row>
448
+        <!--          <el-col :span="8" v-if="isShow('透析器')">-->
449
+        <!--            <el-form-item label="透析器凝血: ">-->
450
+        <!--              <el-select v-model="form.dialyzer">-->
451
+        <!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
452
+
453
+        <!--                <el-option-->
454
+        <!--                  v-for="item in this.$store.getters.dialyzer"-->
455
+        <!--                  :label="item.name"-->
456
+        <!--                  :value="item.id"-->
457
+        <!--                  :key="item.id"-->
458
+        <!--                ></el-option>-->
459
+        <!--              </el-select>-->
460
+        <!--            </el-form-item>-->
461
+        <!--          </el-col>-->
462
+        <el-col :span="8" v-if="isShow('透析期间进食')">
463
+          <el-form-item label="透析期间进食: ">
464
+            <el-radio-group v-model="form.is_eat">
465
+              <el-radio :label="1">有</el-radio>
466
+              <el-radio :label="2">无</el-radio>
467
+            </el-radio-group>
468
+          </el-form-item>
469
+        </el-col>
470
+
471
+        <el-col :span="8" v-if="isShow('中心静脉封管(肝素-A端)')">
472
+          <el-form-item label="中心静脉封管(肝素-A端): ">
473
+            <el-input v-model="form.cvc_a"></el-input>
474
+          </el-form-item>
475
+        </el-col>
476
+
477
+        <el-col :span="8" v-if="isShow('中心静脉封管(肝素-V端)')">
478
+          <el-form-item label="中心静脉封管(肝素-V端): ">
479
+            <el-input v-model="form.cvc_v"></el-input>
480
+          </el-form-item>
481
+        </el-col>
482
+
483
+        <el-col :span="8" v-if="isShow('管路')">
484
+          <el-form-item label="管路: ">
485
+            <el-select v-model="form.channel">
486
+              <el-option :key="0" label="请选择" :value="0"></el-option>
487
+              <el-option
488
+                v-for="item in channels"
489
+                :label="item.name"
490
+                :value="item.id"
491
+                :key="item.id"
492
+              ></el-option>
493
+            </el-select>
494
+          </el-form-item>
495
+        </el-col>
489
       </el-form>
496
       </el-form>
490
 
497
 
491
       <span slot="footer" class="dialog-footer">
498
       <span slot="footer" class="dialog-footer">
562
       internalFistulaTremorAcOptions: [],
569
       internalFistulaTremorAcOptions: [],
563
       patientGoseOptions: [],
570
       patientGoseOptions: [],
564
       observationContentOptions: [],
571
       observationContentOptions: [],
565
-      channels:[],
572
+      channels: [],
566
 
573
 
567
       isVisibiltyForCruorDialog: false,
574
       isVisibiltyForCruorDialog: false,
568
       dialogCruorTitle: "凝血",
575
       dialogCruorTitle: "凝血",
619
         dialyzer: "",
626
         dialyzer: "",
620
         breathing_rate: "",
627
         breathing_rate: "",
621
         dialysis_intakes_unit: 0,
628
         dialysis_intakes_unit: 0,
622
-        cvc_a:0,
623
-        cvc_v:0,
624
-        channel:"",
625
-
629
+        cvc_a: 0,
630
+        cvc_v: 0,
631
+        channel: ""
626
       }
632
       }
627
     };
633
     };
628
   },
634
   },
695
         this.form.observation_content = "";
701
         this.form.observation_content = "";
696
         this.form.observation_content_other = "";
702
         this.form.observation_content_other = "";
697
       }
703
       }
698
-    }, "form.weight_after":function() {
699
-      if(this){
700
-
701
-
702
-
704
+    },
705
+    "form.weight_after": function() {
706
+      if (this) {
703
       }
707
       }
704
-
705
     }
708
     }
706
   },
709
   },
707
   methods: {
710
   methods: {
974
       this.predialysis = predialysis;
977
       this.predialysis = predialysis;
975
       // console.log("透后", predialysis);
978
       // console.log("透后", predialysis);
976
 
979
 
977
-
978
-
979
-
980
       this.getPermission();
980
       this.getPermission();
981
     },
981
     },
982
 
982
 
1078
     this.observationContentOptions = this.$store.getters.observation_content;
1078
     this.observationContentOptions = this.$store.getters.observation_content;
1079
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
1079
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
1080
 
1080
 
1081
-    this.channels = this.$store.getters.channels
1081
+    this.channels = this.$store.getters.channels;
1082
 
1082
 
1083
     var date = this.$route.query && this.$route.query.date;
1083
     var date = this.$route.query && this.$route.query.date;
1084
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
1084
     this.record_date = uParseTime(date, "{y}-{m}-{d}");

+ 4 - 6
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

650
             this.showAdviceForm = false;
650
             this.showAdviceForm = false;
651
             this.showAdvicePanel = true;
651
             this.showAdvicePanel = true;
652
             var advice = response.data.data.advice;
652
             var advice = response.data.data.advice;
653
-            // console.log("advice-------", advice);
654
             this.doctor_advices[this.currentIndex].drug_spec = advice.drug_spec;
653
             this.doctor_advices[this.currentIndex].drug_spec = advice.drug_spec;
655
             this.doctor_advices[this.currentIndex].drug_spec_unit =
654
             this.doctor_advices[this.currentIndex].drug_spec_unit =
656
               advice.drug_spec_unit;
655
               advice.drug_spec_unit;
1268
         this.$message.error("你没有执行医嘱的权限");
1267
         this.$message.error("你没有执行医嘱的权限");
1269
         return false;
1268
         return false;
1270
       }
1269
       }
1271
-
1270
+      this.execTimeDialogVisible = true;
1272
       // if (this.currentAdvices.length <= 0) {
1271
       // if (this.currentAdvices.length <= 0) {
1273
       //   return;
1272
       //   return;
1274
       //  }
1273
       //  }
1287
           this.$message.error("所选医嘱已停止或执行");
1286
           this.$message.error("所选医嘱已停止或执行");
1288
           return false;
1287
           return false;
1289
         }
1288
         }
1290
-        console.log("b");
1291
         for (let i = 0; i < adviceArr.length; i++) {
1289
         for (let i = 0; i < adviceArr.length; i++) {
1292
           if (
1290
           if (
1293
             adviceArr[i].is_selected == 1 &&
1291
             adviceArr[i].is_selected == 1 &&
1304
             currentAdviceIdArr.push(adviceArr[i].id);
1302
             currentAdviceIdArr.push(adviceArr[i].id);
1305
           }
1303
           }
1306
         }
1304
         }
1307
-        console.log("c");
1308
         this.currentAdviceIdsStr = currentAdviceIdArr.join(",");
1305
         this.currentAdviceIdsStr = currentAdviceIdArr.join(",");
1309
         this.nowExecTime = new Date(adviceArr[0].start_time * 1000);
1306
         this.nowExecTime = new Date(adviceArr[0].start_time * 1000);
1310
       } else {
1307
       } else {
1520
             response.data.data.drugways === null
1517
             response.data.data.drugways === null
1521
               ? []
1518
               ? []
1522
               : response.data.data.drugways;
1519
               : response.data.data.drugways;
1520
+
1523
           this.executionFrequencyOptions =
1521
           this.executionFrequencyOptions =
1524
             response.data.data.efs === null ? [] : response.data.data.efs;
1522
             response.data.data.efs === null ? [] : response.data.data.efs;
1523
+
1525
           this.adviceTemplates =
1524
           this.adviceTemplates =
1526
             response.data.data.advice_templates === null
1525
             response.data.data.advice_templates === null
1527
               ? []
1526
               ? []
1819
       console.log("val是什么", val);
1818
       console.log("val是什么", val);
1820
     },
1819
     },
1821
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1820
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1821
+      console.log("columnIndex", columnIndex);
1822
       if (columnIndex === 0) {
1822
       if (columnIndex === 0) {
1823
         if (rowIndex % 2 === 0) {
1823
         if (rowIndex % 2 === 0) {
1824
           return {
1824
           return {
1851
   created() {
1851
   created() {
1852
     var date = this.$route.query && this.$route.query.date;
1852
     var date = this.$route.query && this.$route.query.date;
1853
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
1853
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
1854
-
1855
     this.form.advice_date = this.record_date;
1854
     this.form.advice_date = this.record_date;
1856
     this.getAdviceConfig();
1855
     this.getAdviceConfig();
1857
     this.unitsOption = getDataConfig("hemodialysis", "units");
1856
     this.unitsOption = getDataConfig("hemodialysis", "units");
1858
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
1857
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
1859
-    console.log("医嘱----", this.doctor_advices);
1860
   },
1858
   },
1861
   components: {
1859
   components: {
1862
     AddGroupAdvice,
1860
     AddGroupAdvice,

+ 23 - 2
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

196
           </el-col>
196
           </el-col>
197
         </el-row>
197
         </el-row>
198
       </el-form>
198
       </el-form>
199
+      <span slot="footer" class="dialog-footer">
200
+        <el-button @click="groupEditFormVisible = false">取 消</el-button>
201
+        <el-button type="primary" @click="SaveEditAdvices">保 存</el-button>
202
+      </span>
199
     </el-dialog>
203
     </el-dialog>
200
 
204
 
201
     <el-dialog
205
     <el-dialog
512
   EditDoctorAdvice,
516
   EditDoctorAdvice,
513
   getAdviceConfig,
517
   getAdviceConfig,
514
   getDoctorAdviceList,
518
   getDoctorAdviceList,
515
-  StopDoctorAdvice
519
+  StopDoctorAdvice,
520
+  SaveEditAdvices
516
 } from "@/api/advice";
521
 } from "@/api/advice";
517
 import { jsGetAge, uParseTime } from "@/utils/tools";
522
 import { jsGetAge, uParseTime } from "@/utils/tools";
518
 
523
 
797
               advice_type: _this.groupForm.advice_type,
802
               advice_type: _this.groupForm.advice_type,
798
               advice_date: _this.groupForm.advice_date,
803
               advice_date: _this.groupForm.advice_date,
799
               start_time: _this.groupForm.start_time,
804
               start_time: _this.groupForm.start_time,
805
+
800
               advice_name: _this.nameForm.advice_name,
806
               advice_name: _this.nameForm.advice_name,
801
               advice_desc: _this.nameForm.advice_desc,
807
               advice_desc: _this.nameForm.advice_desc,
802
               single_dose: "" + _this.nameForm.single_dose,
808
               single_dose: "" + _this.nameForm.single_dose,
814
               parent_id: _this.groupSelectRow.parent_id,
820
               parent_id: _this.groupSelectRow.parent_id,
815
               groupno: _this.groupForm.groupno
821
               groupno: _this.groupForm.groupno
816
             };
822
             };
817
-            console.log(this.groupSelectRow);
818
             let mode = "2";
823
             let mode = "2";
819
             if (
824
             if (
820
               this.groupSelectRow.advice_doctor !=
825
               this.groupSelectRow.advice_doctor !=
2140
         }
2145
         }
2141
         this.groupForm.adviceNames.push(item);
2146
         this.groupForm.adviceNames.push(item);
2142
       }
2147
       }
2148
+    },
2149
+    SaveEditAdvices() {
2150
+      const params = {
2151
+        start_time: this.groupForm.start_time,
2152
+        groupno: this.groupForm.groupno,
2153
+        date: this.$route.query.date,
2154
+        patient_id: this.$route.query.patient_id
2155
+      };
2156
+      console.log("params", params);
2157
+      SaveEditAdvices(params).then(response => {
2158
+        if (response.data.state == 1) {
2159
+          var advice = response.data.data.advice;
2160
+          this.$message.success("保存成功!");
2161
+          this.groupEditFormVisible = false;
2162
+        }
2163
+      });
2143
     }
2164
     }
2144
   },
2165
   },
2145
   watch: {
2166
   watch: {

+ 50 - 10
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

691
       <span slot="footer" class="dialog-footer">
691
       <span slot="footer" class="dialog-footer">
692
         <el-button @click="handleCancle">取 消</el-button>
692
         <el-button @click="handleCancle">取 消</el-button>
693
         <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
693
         <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
694
-        <el-button type="primary" @click="handleCommit"
695
-          >保 存</el-button
696
-        >
694
+        <el-button type="primary" @click="handleCommit">保 存</el-button>
697
         <el-button type="primary" @click="handleSolution"
695
         <el-button type="primary" @click="handleSolution"
698
           >保存为长期处方</el-button
696
           >保存为长期处方</el-button
699
         >
697
         >
1220
           }
1218
           }
1221
         });
1219
         });
1222
       });
1220
       });
1223
-      console.log("arrFour", arrFour);
1221
+      // console.log("arrFour", arrFour);
1224
       this.anticoagulantsConfit = arrFour;
1222
       this.anticoagulantsConfit = arrFour;
1225
       this.dialysisList = this.devices;
1223
       this.dialysisList = this.devices;
1226
 
1224
 
1232
         "hemodialysis",
1230
         "hemodialysis",
1233
         "vascular_access_desc"
1231
         "vascular_access_desc"
1234
       );
1232
       );
1235
-      console.log("血管通路", this.blood_access_option);
1233
+      // console.log("血管通路", this.blood_access_option);
1236
       var date = this.$route.query && this.$route.query.date;
1234
       var date = this.$route.query && this.$route.query.date;
1237
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1235
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1238
 
1236
 
1397
             return;
1395
             return;
1398
           }
1396
           }
1399
           const ParamsQuery = this.dialysisPrescription;
1397
           const ParamsQuery = this.dialysisPrescription;
1398
+
1400
           ParamsQuery["patient"] = this.patient.id;
1399
           ParamsQuery["patient"] = this.patient.id;
1401
           ParamsQuery["record_date"] = this.record_date;
1400
           ParamsQuery["record_date"] = this.record_date;
1402
           ParamsQuery["mode"] = 1;
1401
           ParamsQuery["mode"] = 1;
1559
       if (pre.anticoagulant == 3) {
1558
       if (pre.anticoagulant == 3) {
1560
         this.dialysisPrescription.anticoagulant = "低分子肝素";
1559
         this.dialysisPrescription.anticoagulant = "低分子肝素";
1561
       }
1560
       }
1561
+      //入口
1562
+      var pre = pre;
1563
+      if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1564
+        this.zhiShow = true;
1565
+        this.huShow = true;
1566
+        this.totalShow = true;
1567
+      } else {
1568
+        this.zhiShow = false;
1569
+        this.huShow = false;
1570
+        this.totalShow = false;
1571
+      }
1562
       this.pre = pre;
1572
       this.pre = pre;
1563
       console.log("pre1", pre);
1573
       console.log("pre1", pre);
1564
       this.getPermission();
1574
       this.getPermission();
1565
-      
1575
+
1566
       let last_weight_after = 0;
1576
       let last_weight_after = 0;
1567
       let weight_before = 0;
1577
       let weight_before = 0;
1568
 
1578
 
1621
       //console.log("fffff", this.anticoagulant);
1631
       //console.log("fffff", this.anticoagulant);
1622
     },
1632
     },
1623
     handleCommit: function() {
1633
     handleCommit: function() {
1624
-      console.log("aaaa----", this.dialysisPrescription.anticoagulant);
1625
       if (this.dialysisPrescription.anticoagulant == "低分子肝素") {
1634
       if (this.dialysisPrescription.anticoagulant == "低分子肝素") {
1626
         this.dialysisPrescription.anticoagulant = 3;
1635
         this.dialysisPrescription.anticoagulant = 3;
1627
       }
1636
       }
2830
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2839
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2831
         1,
2840
         1,
2832
         this.dialysisPrescription.anticoagulant_shouji,
2841
         this.dialysisPrescription.anticoagulant_shouji,
2833
-        duration,
2842
+        this.dialysisPrescription.dialysis_duration,
2834
         this.dialysisPrescription.anticoagulant_weichi
2843
         this.dialysisPrescription.anticoagulant_weichi
2835
       );
2844
       );
2836
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2845
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2837
         this.dialysisPrescription.anticoagulant_zongliang = "";
2846
         this.dialysisPrescription.anticoagulant_zongliang = "";
2838
       }
2847
       }
2848
+
2849
+      //this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2850
+      //  1,
2851
+      //   this.dialysisPrescription.anticoagulant_shouji,
2852
+      //  duration,
2853
+      //  this.dialysisPrescription.anticoagulant_weichi
2854
+      // );
2855
+      //  if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2856
+      //    this.dialysisPrescription.anticoagulant_zongliang = "";
2857
+      //  }
2839
     },
2858
     },
2840
     "dialysisPrescription.anticoagulant_shouji": function() {
2859
     "dialysisPrescription.anticoagulant_shouji": function() {
2841
       let dialysis_duration_minute = 0;
2860
       let dialysis_duration_minute = 0;
2856
       duration =
2875
       duration =
2857
         parseFloat(dialysis_duration_hour) +
2876
         parseFloat(dialysis_duration_hour) +
2858
         parseFloat(dialysis_duration_minute) / 60;
2877
         parseFloat(dialysis_duration_minute) / 60;
2878
+
2859
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2879
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2860
         1,
2880
         1,
2861
         this.dialysisPrescription.anticoagulant_shouji,
2881
         this.dialysisPrescription.anticoagulant_shouji,
2862
-        duration,
2882
+        this.dialysisPrescription.dialysis_duration,
2863
         this.dialysisPrescription.anticoagulant_weichi
2883
         this.dialysisPrescription.anticoagulant_weichi
2864
       );
2884
       );
2865
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2885
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2866
         this.dialysisPrescription.anticoagulant_zongliang = "";
2886
         this.dialysisPrescription.anticoagulant_zongliang = "";
2867
       }
2887
       }
2888
+
2889
+      //  this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2890
+      //   1,
2891
+      //    this.dialysisPrescription.anticoagulant_shouji,
2892
+      //    duration,
2893
+      //    this.dialysisPrescription.anticoagulant_weichi
2894
+      //  );
2895
+      // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2896
+      //    this.dialysisPrescription.anticoagulant_zongliang = "";
2897
+      // }
2868
     },
2898
     },
2869
     "dialysisPrescription.anticoagulant_weichi": function() {
2899
     "dialysisPrescription.anticoagulant_weichi": function() {
2870
       let dialysis_duration_minute = 0;
2900
       let dialysis_duration_minute = 0;
2891
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2921
       this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2892
         1,
2922
         1,
2893
         this.dialysisPrescription.anticoagulant_shouji,
2923
         this.dialysisPrescription.anticoagulant_shouji,
2894
-        duration,
2924
+        this.dialysisPrescription.dialysis_duration,
2895
         this.dialysisPrescription.anticoagulant_weichi
2925
         this.dialysisPrescription.anticoagulant_weichi
2896
       );
2926
       );
2897
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2927
       if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2898
         this.dialysisPrescription.anticoagulant_zongliang = "";
2928
         this.dialysisPrescription.anticoagulant_zongliang = "";
2899
       }
2929
       }
2930
+
2931
+      // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2932
+      //   1,
2933
+      //  this.dialysisPrescription.anticoagulant_shouji,
2934
+      //   duration,
2935
+      //   this.dialysisPrescription.anticoagulant_weichi
2936
+      // );
2937
+      // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2938
+      //   this.dialysisPrescription.anticoagulant_zongliang = "";
2939
+      // }
2900
     },
2940
     },
2901
     "prescription.id": function() {
2941
     "prescription.id": function() {
2902
       if (this.prescription.id > 0) {
2942
       if (this.prescription.id > 0) {

File diff suppressed because it is too large
+ 595 - 529
src/xt_pages/dialysis/details/index.vue


File diff suppressed because it is too large
+ 2502 - 1567
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue


+ 10 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

122
                   </td>
122
                   </td>
123
                   <td style="text-align:left;margin-left:15px" colspan="2">
123
                   <td style="text-align:left;margin-left:15px" colspan="2">
124
                     透析次数:
124
                     透析次数:
125
-                    <span class="under-line">&nbsp;{{ total }}</span>
125
+                    <span class="under-line"
126
+                      >&nbsp;{{
127
+                        patientInfo.total_dialysis +
128
+                          patientInfo.user_sys_before_count
129
+                      }}</span
130
+                    >
126
                   </td>
131
                   </td>
127
                 </tr>
132
                 </tr>
128
                 <tr>
133
                 <tr>
423
                     </span>
428
                     </span>
424
                   </td>
429
                   </td>
425
                 </tr>
430
                 </tr>
426
-
427
               </table>
431
               </table>
428
             </td>
432
             </td>
429
           </tr>
433
           </tr>
808
                 压迫后内瘘震颤:
812
                 压迫后内瘘震颤:
809
                 <label-box
813
                 <label-box
810
                   :isChecked="
814
                   :isChecked="
811
-                    predialysis.internal_fistula.indexOf('震颤-存在') > -1
815
+                    afterdialysis.internal_fistula.indexOf('震颤-存在') > -1
812
                       ? true
816
                       ? true
813
                       : false
817
                       : false
814
                   "
818
                   "
817
                 &nbsp;
821
                 &nbsp;
818
                 <label-box
822
                 <label-box
819
                   :isChecked="
823
                   :isChecked="
820
-                    predialysis.internal_fistula.indexOf('震颤-减弱') > -1
824
+                    afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1
821
                       ? true
825
                       ? true
822
                       : false
826
                       : false
823
                   "
827
                   "
826
                 &nbsp;
830
                 &nbsp;
827
                 <label-box
831
                 <label-box
828
                   :isChecked="
832
                   :isChecked="
829
-                    predialysis.internal_fistula.indexOf('震颤-无') > -1
833
+                    afterdialysis.internal_fistula.indexOf('震颤-无') > -1
830
                       ? true
834
                       ? true
831
                       : false
835
                       : false
832
                   "
836
                   "
1129
       getDialysisRecord(this.queryParams).then(response => {
1133
       getDialysisRecord(this.queryParams).then(response => {
1130
         if (response.data.state === 1) {
1134
         if (response.data.state === 1) {
1131
           this.total = response.data.data.total;
1135
           this.total = response.data.data.total;
1136
+
1132
           this.adminUser = response.data.data.users;
1137
           this.adminUser = response.data.data.users;
1133
           this.users = response.data.data.users;
1138
           this.users = response.data.data.users;
1134
           var patientInfo = response.data.data.patientInfo;
1139
           var patientInfo = response.data.data.patientInfo;

+ 47 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

163
                       style="width: 70px;text-align: center"
163
                       style="width: 70px;text-align: center"
164
                     >
164
                     >
165
                       {{
165
                       {{
166
-                        patientInfo.total_dialysis
167
-                          ? patientInfo.total_dialysis
166
+                        patientInfo.total_dialysis +
167
+                        patientInfo.user_sys_before_count
168
+                          ? patientInfo.total_dialysis +
169
+                            patientInfo.user_sys_before_count
168
                           : "/"
170
                           : "/"
169
                       }}
171
                       }}
170
                     </div>
172
                     </div>
580
                       style="width: 100px;text-align: center"
582
                       style="width: 100px;text-align: center"
581
                     >
583
                     >
582
                       {{
584
                       {{
583
-                        predialysis.weight_after_last_transparency
585
+                        lastafterdialysis.weight_after_last_transparency
584
                           ? parseFloat(
586
                           ? parseFloat(
585
-                              predialysis.weight_after_last_transparency -
586
-                                predialysis.additional_weight
587
+                              lastafterdialysis.weight_after -
588
+                                lastafterdialysis.additional_weight
587
                             ).toFixed(1)
589
                             ).toFixed(1)
588
                           : "未称重"
590
                           : "未称重"
589
                       }}
591
                       }}
965
                         }}
967
                         }}
966
                       </td>
968
                       </td>
967
                       <td
969
                       <td
968
-                        v-if=" monitor.operate_time > dialysisOrder.end_time || monitor.operate_time < dialysisOrder.start_time " >
970
+                        v-if="
971
+                          monitor.operate_time > dialysisOrder.end_time ||
972
+                            monitor.operate_time < dialysisOrder.start_time
973
+                        "
974
+                      >
969
                         {{
975
                         {{
970
                           monitor.ultrafiltration_volume
976
                           monitor.ultrafiltration_volume
971
                             ? monitor.ultrafiltration_volume
977
                             ? monitor.ultrafiltration_volume
973
                         }}
979
                         }}
974
                       </td>
980
                       </td>
975
                       <td
981
                       <td
976
-                        v-if=" monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time " >
982
+                        v-if="
983
+                          monitor.operate_time <= dialysisOrder.end_time &&
984
+                            monitor.operate_time >= dialysisOrder.start_time
985
+                        "
986
+                      >
977
                         {{
987
                         {{
978
                           monitor.ultrafiltration_volume
988
                           monitor.ultrafiltration_volume
979
                             ? monitor.ultrafiltration_volume
989
                             ? monitor.ultrafiltration_volume
981
                         }}
991
                         }}
982
                       </td>
992
                       </td>
983
                       <td
993
                       <td
984
-                        v-if=" (prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12 )&& (monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time) " style="width:50px" >
985
-                        {{  monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
994
+                        v-if="
995
+                          (prescription.mode_id == 2 ||
996
+                            prescription.mode_id == 5 ||
997
+                            prescription.mode_id == 12) &&
998
+                            (monitor.operate_time <= dialysisOrder.end_time &&
999
+                              monitor.operate_time >= dialysisOrder.start_time)
1000
+                        "
1001
+                        style="width:50px"
1002
+                      >
1003
+                        {{
1004
+                          monitor.displacement_quantity
1005
+                            ? monitor.displacement_quantity
1006
+                            : 0
1007
+                        }}
986
                       </td>
1008
                       </td>
987
                       <td
1009
                       <td
988
-                        v-if=" (prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12 )&& (monitor.operate_time > dialysisOrder.end_time || monitor.operate_time < dialysisOrder.start_time) " style="width:50px" >
989
-                        {{  monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
1010
+                        v-if="
1011
+                          (prescription.mode_id == 2 ||
1012
+                            prescription.mode_id == 5 ||
1013
+                            prescription.mode_id == 12) &&
1014
+                            (monitor.operate_time > dialysisOrder.end_time ||
1015
+                              monitor.operate_time < dialysisOrder.start_time)
1016
+                        "
1017
+                        style="width:50px"
1018
+                      >
1019
+                        {{
1020
+                          monitor.displacement_quantity
1021
+                            ? monitor.displacement_quantity
1022
+                            : ""
1023
+                        }}
990
                       </td>
1024
                       </td>
991
                       <td style="line-height:16px;padding:0px;">
1025
                       <td style="line-height:16px;padding:0px;">
992
                         <div
1026
                         <div
2002
       afterdialysis: {
2036
       afterdialysis: {
2003
         complications_index: ''
2037
         complications_index: ''
2004
       },
2038
       },
2039
+      lastafterdialysis: {},
2005
       prescription: {
2040
       prescription: {
2006
         dialysate_formulation_name: '',
2041
         dialysate_formulation_name: '',
2007
         device: {}
2042
         device: {}
2211
           this.predialysis.blood_access_part_opera_id
2246
           this.predialysis.blood_access_part_opera_id
2212
         )
2247
         )
2213
         this.afterdialysis = response.data.data.AssessmentAfterDislysis
2248
         this.afterdialysis = response.data.data.AssessmentAfterDislysis
2249
+        this.lastafterdialysis = response.data.data.assessmentAfterDislysis
2214
         this.operators = response.data.data.operators
2250
         this.operators = response.data.data.operators
2215
         console.log('operators', this.operators)
2251
         console.log('operators', this.operators)
2216
         this.dialysisOrder =
2252
         this.dialysisOrder =

File diff suppressed because it is too large
+ 2251 - 2241
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue


+ 13 - 6
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue View File

190
               ></label-box>
190
               ></label-box>
191
               首剂:<span style="width:35px;display: inline-block;">{{
191
               首剂:<span style="width:35px;display: inline-block;">{{
192
                 prescription.anticoagulant_shouji &&
192
                 prescription.anticoagulant_shouji &&
193
+                (prescription.anticoagulant != "低分子肝素钙" &&
194
+                  prescription.anticoagulant != "低分子肝素钠") &&
193
                 prescription.anticoagulant == "普通肝素"
195
                 prescription.anticoagulant == "普通肝素"
194
                   ? prescription.anticoagulant_shouji
196
                   ? prescription.anticoagulant_shouji
195
                   : ""
197
                   : ""
204
               >
206
               >
205
               <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span
207
               <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span
206
               >&nbsp; 追加:<span style="width:35px;display: inline-block;">{{
208
               >&nbsp; 追加:<span style="width:35px;display: inline-block;">{{
207
-                prescription.anticoagulant_weichi
209
+                prescription.anticoagulant_weichi &&
210
+                (prescription.anticoagulant != "低分子肝素钙" &&
211
+                  prescription.anticoagulant != "低分子肝素钠")
208
                   ? prescription.anticoagulant_weichi
212
                   ? prescription.anticoagulant_weichi
209
                   : ""
213
                   : ""
210
               }}</span
214
               }}</span
223
               >
227
               >
224
               &nbsp; 总量:<span style="width:50px;display: inline-block;">{{
228
               &nbsp; 总量:<span style="width:50px;display: inline-block;">{{
225
                 prescription.anticoagulant_zongliang &&
229
                 prescription.anticoagulant_zongliang &&
226
-                (prescription.anticoagulant != "低分子肝素钙" ||
230
+                (prescription.anticoagulant != "低分子肝素钙" &&
227
                   prescription.anticoagulant != "低分子肝素钠")
231
                   prescription.anticoagulant != "低分子肝素钠")
228
                   ? prescription.anticoagulant_zongliang
232
                   ? prescription.anticoagulant_zongliang
229
                   : ""
233
                   : ""
323
               血管通路:
327
               血管通路:
324
               <label-box
328
               <label-box
325
                 :isChecked="
329
                 :isChecked="
326
-                  predialysis.blood_access_part_opera_name.indexOf('自体内瘘') >
327
-                  -1
330
+                  predialysis.blood_access_part_opera_name.indexOf('内瘘') > -1
328
                     ? true
331
                     ? true
329
                     : false
332
                     : false
330
                 "
333
                 "
364
               >&nbsp;
367
               >&nbsp;
365
               <label-box
368
               <label-box
366
                 :isChecked="
369
                 :isChecked="
367
-                  predialysis.blood_access_part_opera_name.indexOf('自体内瘘') >
370
+                  predialysis.blood_access_part_opera_name.indexOf('人造血管') >
368
                   -1
371
                   -1
369
                     ? true
372
                     ? true
373
+                    : predialysis.blood_access_part_opera_name.indexOf(
374
+                        '移植血管'
375
+                      ) > -1
376
+                    ? true
370
                     : false
377
                     : false
371
                 "
378
                 "
372
                 showValue="其他"
379
                 showValue="其他"
812
           <td>
819
           <td>
813
             <span v-if="getTime(monitor.operate_time) != ''">
820
             <span v-if="getTime(monitor.operate_time) != ''">
814
               {{
821
               {{
815
-                monitor.arterial_pressure ? monitor.arterial_pressure : "0"
822
+                monitor.venous_pressure ? monitor.venous_pressure : "0"
816
               }}</span
823
               }}</span
817
             >
824
             >
818
           </td>
825
           </td>

+ 1 - 2
src/xt_pages/user/doctorAdvice.vue View File

514
       <el-pagination
514
       <el-pagination
515
         @size-change="handleSizeChange"
515
         @size-change="handleSizeChange"
516
         @current-change="handleCurrentChange"
516
         @current-change="handleCurrentChange"
517
-
518
         :page-sizes="[10, 20, 50, 100]"
517
         :page-sizes="[10, 20, 50, 100]"
519
         :page-size="10"
518
         :page-size="10"
520
         background
519
         background
3289
       getDoctorAdviceList(this.listQuery).then(response => {
3288
       getDoctorAdviceList(this.listQuery).then(response => {
3290
         if (response.data.state == 1) {
3289
         if (response.data.state == 1) {
3291
           this.adviceTableData = response.data.data.advices;
3290
           this.adviceTableData = response.data.data.advices;
3292
-          console.log("数据是什么", this.adviceTableData);
3291
+          //console.log("数据是什么", this.adviceTableData);
3293
           var advice = response.data.data.advices;
3292
           var advice = response.data.data.advices;
3294
           var one = response.data.data.advicetwo;
3293
           var one = response.data.data.advicetwo;
3295
           console.log("advicetwo", one);
3294
           console.log("advicetwo", one);