Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

See999 4 years ago
parent
commit
3d7503f611

+ 2 - 1
config/dev.env.js View File

@@ -6,8 +6,9 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10 10
   // BASE_API:'"http://localhost:9531"',
11
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
12 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

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

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

+ 28 - 9
src/api/dialysis.js View File

@@ -149,7 +149,9 @@ export function postPrescription(params) {
149 149
     url: '/api/dialysis/prescription',
150 150
     method: 'Post',
151 151
     params: params,
152
-    headers:{"Permission":2},
152
+    headers: {
153
+      'Permission': 2
154
+    }
153 155
   })
154 156
 }
155 157
 
@@ -158,7 +160,9 @@ export function postSoulution(params) {
158 160
     url: '/api/dialysis/soulution',
159 161
     method: 'Post',
160 162
     params: params,
161
-    headers:{"Permission":2},
163
+    headers: {
164
+      'Permission': 2
165
+    }
162 166
 
163 167
   })
164 168
 }
@@ -168,17 +172,22 @@ export function postDoubleCheck(params) {
168 172
     url: '/api/dialysis/dobule',
169 173
     method: 'Post',
170 174
     params: params,
171
-    headers:{"Permission":2},
175
+    headers: {
176
+      'Permission': 2
177
+    }
172 178
 
173 179
   })
174 180
 }
175 181
 
176 182
 export function postAccepts(params) {
183
+  console.log('params', params)
177 184
   return request({
178 185
     url: '/api/dialysis/accepts',
179 186
     method: 'Post',
180 187
     params: params,
181
-    headers:{"Permission":2},
188
+    headers: {
189
+      'Permission': 2
190
+    }
182 191
 
183 192
   })
184 193
 }
@@ -188,7 +197,9 @@ export function postAssessmentBeforeDislysis(params) {
188 197
     url: '/api/dialysis/assessmentbeforedislysis',
189 198
     method: 'Post',
190 199
     params: params,
191
-    headers:{"Permission":2},
200
+    headers: {
201
+      'Permission': 2
202
+    }
192 203
 
193 204
   })
194 205
 }
@@ -198,7 +209,9 @@ export function postTreatmentsummary(params) {
198 209
     url: '/api/dialysis/treatmentsummary',
199 210
     method: 'Post',
200 211
     params: params,
201
-    headers:{"Permission":2},
212
+    headers: {
213
+      'Permission': 2
214
+    }
202 215
 
203 216
   })
204 217
 }
@@ -209,7 +222,9 @@ export function postAssessmentAfterDislysis(params, data) {
209 222
     method: 'Post',
210 223
     params: params,
211 224
     data: data,
212
-    headers:{"Permission":2},
225
+    headers: {
226
+      'Permission': 2
227
+    }
213 228
 
214 229
   })
215 230
 }
@@ -228,7 +243,9 @@ export function CreateGroupAdvice(id, groupno, advices) {
228 243
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
229 244
     method: 'post',
230 245
     data: advices,
231
-    headers:{"Permission":2},
246
+    headers: {
247
+      'Permission': 2
248
+    }
232 249
 
233 250
   })
234 251
 }
@@ -246,7 +263,9 @@ export function CreateDryWeight(params) {
246 263
     url: '/api/dryweight/commit',
247 264
     method: 'post',
248 265
     params: params,
249
-    headers:{"Permission":2},
266
+    headers: {
267
+      'Permission': 2
268
+    }
250 269
 
251 270
   })
252 271
 }

+ 14 - 20
src/api/patient.js View File

@@ -36,6 +36,7 @@ export function createPatient(patient) {
36 36
   })
37 37
 }
38 38
 export function editPatient(id, patient) {
39
+  console.log('patient', patient)
39 40
   return request({
40 41
     url: '/api/patients/edit?id=' + id + '&record_date=' + patient.record_date + '&is_infectious=' + patient.is_infectious + '&remind_cycle=' + patient.remind_cycle,
41 42
     method: 'put',
@@ -57,23 +58,26 @@ export function fetchPatientDialysisSolutions(params) {
57 58
   })
58 59
 }
59 60
 
60
-export function createPatientDialysisSolution(id, solution,mode) {
61
+export function createPatientDialysisSolution(id, solution, mode) {
61 62
   return request({
62
-    url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63
+    url: '/api/patients/dialysissolution/create?patient=' + id + '&mode=' + mode,
63 64
     method: 'post',
64 65
     data: solution,
65
-    headers:{"Permission":3},
66
-
66
+    headers: {
67
+      'Permission': 3
68
+    }
67 69
 
68 70
   })
69 71
 }
70 72
 
71
-export function editPatientDialysisSolution(patient, id, solution,mode) {
73
+export function editPatientDialysisSolution(patient, id, solution, mode) {
72 74
   return request({
73
-    url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
75
+    url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id + '&mode=' + mode,
74 76
     method: 'put',
75 77
     data: solution,
76
-    headers:{"Permission":3},
78
+    headers: {
79
+      'Permission': 3
80
+    }
77 81
 
78 82
   })
79 83
 }
@@ -318,7 +322,9 @@ export function UpdateDryWeightData(params) {
318 322
     url: '/api/patient/updatedryweightdata',
319 323
     method: 'Post',
320 324
     params: params,
321
-    headers:{"Permission":3},
325
+    headers: {
326
+      'Permission': 3
327
+    }
322 328
 
323 329
   })
324 330
 }
@@ -338,15 +344,3 @@ export function getAllData(id, page, limit) {
338 344
     params: params
339 345
   })
340 346
 }
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-

+ 0 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

@@ -1283,7 +1283,6 @@ export default {
1283 1283
             isExecution = false;
1284 1284
           }
1285 1285
         }
1286
-        console.log("a");
1287 1286
         if (isExecution) {
1288 1287
           this.$message.error("所选医嘱已停止或执行");
1289 1288
           return false;

+ 9 - 7
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -128,13 +128,7 @@
128 128
 
129 129
 
130 130
 
131
-          <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('出血选项')">
132
-            <el-form-item label="出血选项: ">
133
-              <div>
134
-                <el-input v-model="assessmentBeforeDislysis.hemorrhage" @focus="showInnerDialog('6')"></el-input>
135
-              </div>
136
-            </el-form-item>
137
-          </el-col>
131
+
138 132
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
139 133
             <el-form-item label="其他出血情况: ">
140 134
               <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
@@ -255,6 +249,14 @@
255 249
           </el-col>
256 250
 
257 251
 
252
+          <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('出血选项')">
253
+            <el-form-item label="出血选项: ">
254
+              <div>
255
+                <el-input v-model="assessmentBeforeDislysis.hemorrhage" @focus="showInnerDialog('6')"></el-input>
256
+              </div>
257
+            </el-form-item>
258
+          </el-col>
259
+
258 260
           <el-col :span="8" v-if="isShow('皮肤')">
259 261
             <el-form-item label="皮肤: ">
260 262
               <el-select v-model="assessmentBeforeDislysis.skin">

+ 4 - 4
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

@@ -1248,7 +1248,7 @@
1248 1248
                   <div class="inline_block">
1249 1249
1250 1250
                     <check-box
1251
-                      :isChecked="
1251
+                      :checked="
1252 1252
                         afterdialysis.complication.indexOf('头晕') > -1
1253 1253
                           ? true
1254 1254
                           : false
@@ -1256,7 +1256,7 @@
1256 1256
                       text="头晕"
1257 1257
                     ></check-box>
1258 1258
                     <check-box
1259
-                      :isChecked="
1259
+                      :checked="
1260 1260
                         afterdialysis.complication.indexOf('头痛') > -1
1261 1261
                           ? true
1262 1262
                           : false
@@ -1264,7 +1264,7 @@
1264 1264
                       text="头痛"
1265 1265
                     ></check-box>
1266 1266
                     <check-box
1267
-                      :isChecked="
1267
+                      :checked="
1268 1268
                         afterdialysis.complication.indexOf('呕吐') > -1
1269 1269
                           ? true
1270 1270
                           : false
@@ -1272,7 +1272,7 @@
1272 1272
                       text="呕吐"
1273 1273
                     ></check-box>
1274 1274
                     <check-box
1275
-                      :isChecked="
1275
+                      :checked="
1276 1276
                         afterdialysis.complication.indexOf('低血压') > -1
1277 1277
                           ? true
1278 1278
                           : false

+ 330 - 129
src/xt_pages/user/components/PatientForm.vue View File

@@ -15,12 +15,17 @@
15 15
             <el-col :span="7" :key="index">
16 16
               <el-form-item
17 17
                 :label="item.item_name"
18
-                v-if="item.range_type==1"
18
+                v-if="item.range_type == 1"
19 19
                 :key="item.item_id"
20 20
                 :prop="'formItem.' + index + '.value'"
21 21
               >
22
-                <el-input placeholder="请填入" v-model="item.value" style="width:95%" type="number">
23
-                  <template slot="append">{{item.unit}}</template>
22
+                <el-input
23
+                  placeholder="请填入"
24
+                  v-model="item.value"
25
+                  style="width:95%"
26
+                  type="number"
27
+                >
28
+                  <template slot="append">{{ item.unit }}</template>
24 29
                 </el-input>
25 30
               </el-form-item>
26 31
               <el-form-item
@@ -29,7 +34,11 @@
29 34
                 :key="item.item_id"
30 35
                 :prop="'formItem.' + index + '.value'"
31 36
               >
32
-                <el-select v-model="item.value" placeholder="请选择" style="width:95%">
37
+                <el-select
38
+                  v-model="item.value"
39
+                  placeholder="请选择"
40
+                  style="width:95%"
41
+                >
33 42
                   <el-option
34 43
                     v-for="(optionItem, oidex) in item.select_options"
35 44
                     :key="oidex"
@@ -39,7 +48,7 @@
39 48
                 </el-select>
40 49
               </el-form-item>
41 50
             </el-col>
42
-            <el-col :span="1" :key="'form-col'+index">&nbsp;</el-col>
51
+            <el-col :span="1" :key="'form-col' + index">&nbsp;</el-col>
43 52
           </template>
44 53
         </el-row>
45 54
       </el-form>
@@ -53,17 +62,26 @@
53 62
       <bread-crumb :crumbs="crumbs"></bread-crumb>
54 63
       <div class style="float:right;color: white">
55 64
         <el-button
56
-          :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
65
+          :disabled="
66
+            $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
67
+              ? true
68
+              : false
69
+          "
57 70
           type="primary"
58
-          v-if="this.isEdit==false"
71
+          v-if="this.isEdit == false"
59 72
           @click="resetForm('form')"
60 73
           icon="el-icon-circle-plus-outline"
61 74
           size="small"
62
-        >新增</el-button>
75
+          >新增</el-button
76
+        >
63 77
       </div>
64 78
     </div>
65 79
 
66
-    <div v-if="isEdit" class style="float:right;margin-right: 35px;margin-top: 10px">
80
+    <div
81
+      v-if="isEdit"
82
+      class
83
+      style="float:right;margin-right: 35px;margin-top: 10px"
84
+    >
67 85
       <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
68 86
       <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')"  icon="el-icon-circle-plus-outline" size="small">新增</el-button>
69 87
       <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="success" icon="el-icon-setting" >保存</el-button>
@@ -83,12 +101,16 @@
83 101
         <el-row>
84 102
           <el-col :span="20" class="form-table">
85 103
             <el-row :span="20">
86
-              <el-col :span="8" :style="isEdit?'width:360px':''">
104
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
87 105
                 <el-form-item label="姓名 : " class="is-required" prop="name">
88 106
                   <el-input v-model="form.name"></el-input>
89 107
                 </el-form-item>
90 108
               </el-col>
91
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
109
+              <el-col
110
+                :span="8"
111
+                :style="isEdit ? 'width:360px' : ''"
112
+                style="height:59px;"
113
+              >
92 114
                 <el-form-item label="性别 : " class="is-required" prop="gender">
93 115
                   <el-radio-group v-model="form.gender" @change="changeGender">
94 116
                     <el-radio
@@ -96,20 +118,35 @@
96 118
                       :key="item.value"
97 119
                       :label="item.value"
98 120
                       :value="item.value"
99
-                    >{{item.label}}</el-radio>
121
+                      >{{ item.label }}</el-radio
122
+                    >
100 123
                   </el-radio-group>
101 124
                 </el-form-item>
102 125
               </el-col>
103 126
 
104
-              <el-col :span="8" :style="isEdit?'width:360px':''">
105
-                <el-form-item label="身份证号 : " class="is-required" prop="idCardNo">
106
-                  <el-input v-model="form.idCardNo" @blur="checkIdCardNo"></el-input>
127
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
128
+                <el-form-item
129
+                  label="身份证号 : "
130
+                  class="is-required"
131
+                  prop="idCardNo"
132
+                >
133
+                  <el-input
134
+                    v-model="form.idCardNo"
135
+                    @blur="checkIdCardNo"
136
+                  ></el-input>
107 137
                 </el-form-item>
108 138
               </el-col>
109 139
 
110
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
140
+              <el-col
141
+                :span="8"
142
+                :style="isEdit ? 'width:360px' : ''"
143
+                style="height:59px;"
144
+              >
111 145
                 <el-form-item label="年龄 : " class="is-required" prop="age">
112
-                  <el-input v-model="form.age" placeholder="请填写年龄"></el-input>
146
+                  <el-input
147
+                    v-model="form.age"
148
+                    placeholder="请填写年龄"
149
+                  ></el-input>
113 150
                 </el-form-item>
114 151
               </el-col>
115 152
               <template v-if="isEdit">
@@ -121,7 +158,7 @@
121 158
                   </el-form-item>
122 159
                 </el-col>-->
123 160
 
124
-                <el-col :span="8" :style="isEdit?'width:360px':''">
161
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
125 162
                   <el-form-item label="透析号 : " class="is-required">
126 163
                     <el-input
127 164
                       v-model="form.dialysisNo"
@@ -142,7 +179,11 @@
142 179
                 </el-col>-->
143 180
 
144 181
                 <el-col :span="8">
145
-                  <el-form-item label="透析号 : " class="is-required" prop="dialysisNo">
182
+                  <el-form-item
183
+                    label="透析号 : "
184
+                    class="is-required"
185
+                    prop="dialysisNo"
186
+                  >
146 187
                     <el-input
147 188
                       v-model="form.dialysisNo"
148 189
                       placeholder="填写或自动生成"
@@ -150,16 +191,26 @@
150 191
                     ></el-input>
151 192
                     <el-button
152 193
                       style="width:35%;padding:10px 0;"
153
-                      :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
194
+                      :disabled="
195
+                        $store.getters.xt_user.subscibe.state == 3 ||
196
+                        !subscibeFlag
197
+                          ? true
198
+                          : false
199
+                      "
154 200
                       type="primary"
155 201
                       @click="generatedialysisno"
156
-                    >自动生成</el-button>
202
+                      >自动生成</el-button
203
+                    >
157 204
                   </el-form-item>
158 205
                 </el-col>
159 206
               </template>
160 207
 
161
-              <el-col :span="8" :style="isEdit?'width:360px':''">
162
-                <el-form-item label="出生日期 : " class="is-required" prop="birth">
208
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
209
+                <el-form-item
210
+                  label="出生日期 : "
211
+                  class="is-required"
212
+                  prop="birth"
213
+                >
163 214
                   <el-date-picker
164 215
                     v-model="form.birth"
165 216
                     type="date"
@@ -172,8 +223,12 @@
172 223
                 </el-form-item>
173 224
               </el-col>
174 225
 
175
-              <el-col :span="6" :style="isEdit?'width:380px':''">
176
-                <el-form-item label="首次肾脏治疗时间:" prop="firstDialysisDate" label-width="150px">
226
+              <el-col :span="6" :style="isEdit ? 'width:380px' : ''">
227
+                <el-form-item
228
+                  label="首次肾脏治疗时间:"
229
+                  prop="firstDialysisDate"
230
+                  label-width="150px"
231
+                >
177 232
                   <el-date-picker
178 233
                     v-model="form.firstDialysisDate"
179 234
                     type="date"
@@ -182,43 +237,63 @@
182 237
                   ></el-date-picker>
183 238
                 </el-form-item>
184 239
               </el-col>
185
-              <el-col :span="8" :style="isEdit?'width:360px':''">
186
-                <el-form-item label="本人电话 : " class="is-required" prop="phone">
240
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
241
+                <el-form-item
242
+                  label="本人电话 : "
243
+                  class="is-required"
244
+                  prop="phone"
245
+                >
187 246
                   <el-input v-model="form.phone" maxlength="20"></el-input>
188 247
                 </el-form-item>
189 248
               </el-col>
190
-              <el-col :span="8" :style="isEdit?'width:360px':''">
249
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
191 250
                 <el-form-item label="家属姓名 : ">
192
-                  <el-input v-model="form.contact_name" maxlength="20"></el-input>
251
+                  <el-input
252
+                    v-model="form.contact_name"
253
+                    maxlength="20"
254
+                  ></el-input>
193 255
                 </el-form-item>
194 256
               </el-col>
195
-              <el-col :span="8" :style="isEdit?'width:360px':''">
257
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
196 258
                 <el-form-item label="家属电话 : " prop="homeTelephone">
197
-                  <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
259
+                  <el-input
260
+                    v-model="form.homeTelephone"
261
+                    maxlength="20"
262
+                  ></el-input>
198 263
                 </el-form-item>
199 264
               </el-col>
200 265
 
201
-              <el-col :span="8" :style="isEdit?'width:360px':''">
202
-                <el-form-item label="患者来源 : " class="is-required" prop="source">
266
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
267
+                <el-form-item
268
+                  label="患者来源 : "
269
+                  class="is-required"
270
+                  prop="source"
271
+                >
203 272
                   <el-radio-group v-model="form.source">
204 273
                     <el-radio
205 274
                       v-for="item in sourceOptions"
206 275
                       :key="item.value"
207 276
                       :label="item.value"
208 277
                       :value="item.value"
209
-                    >{{item.label}}</el-radio>
278
+                      >{{ item.label }}</el-radio
279
+                    >
210 280
                   </el-radio-group>
211 281
                 </el-form-item>
212 282
               </el-col>
213
-              <el-col :span="8" :style="isEdit?'width:360px':''">
214
-                <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto">
283
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
284
+                <el-form-item
285
+                  label="治疗状态(转归) : "
286
+                  class="is-required"
287
+                  prop="lapseto"
288
+                >
215 289
                   <el-radio-group v-model="form.lapseto">
216 290
                     <el-radio
217 291
                       v-for="item in lapsetoOptions"
218 292
                       :key="item.value"
219 293
                       :label="item.value"
220 294
                       :value="item.value"
221
-                    >{{item.label}}</el-radio>
295
+                      >{{ item.label }}</el-radio
296
+                    >
222 297
                   </el-radio-group>
223 298
                 </el-form-item>
224 299
               </el-col>
@@ -229,15 +304,19 @@
229 304
                     <el-radio :label="1">无</el-radio>
230 305
                     <el-radio :label="2">有</el-radio>
231 306
                   </el-radio-group>
232
-                  <el-checkbox-group v-model="form.contagions" v-if="form.is_infectious == '2'">
307
+                  <el-checkbox-group
308
+                    v-model="form.contagions"
309
+                    v-if="form.is_infectious == '2'"
310
+                  >
233 311
                     <el-checkbox
234 312
                       v-for="item in contagionList"
235
-                      v-if="item.type==2"
313
+                      v-if="item.type == 2"
236 314
                       :label="item.id"
237 315
                       :key="item.id"
238 316
                       name="contagions"
239 317
                       :value="item.id"
240
-                    >{{item.name}}</el-checkbox>
318
+                      >{{ item.name }}</el-checkbox
319
+                    >
241 320
                   </el-checkbox-group>
242 321
                 </el-form-item>
243 322
               </el-col>
@@ -260,14 +339,22 @@
260 339
                     value-format="yyyy-MM-dd"
261 340
                     v-if="!isEdit"
262 341
                   ></el-date-picker>
263
-                  <el-button type="primary" @click="recordCheck()" v-if="!isEdit">录入检验检查</el-button>
342
+                  <el-button
343
+                    type="primary"
344
+                    @click="recordCheck()"
345
+                    v-if="!isEdit"
346
+                    >录入检验检查</el-button
347
+                  >
264 348
                   <!--<el-button type="primary"  v-if="isEdit">查看检验检查</el-button>-->
265 349
                 </el-form-item>
266 350
               </el-col>
267 351
 
268 352
               <el-col :span="24">
269 353
                 <el-form-item label="传染病周期提醒: ">
270
-                  <el-radio-group v-model="form.remind_cycle" @change="changeCycle()">
354
+                  <el-radio-group
355
+                    v-model="form.remind_cycle"
356
+                    @change="changeCycle()"
357
+                  >
271 358
                     <el-radio :label="1">一月一次</el-radio>
272 359
                     <el-radio :label="2">两月一次</el-radio>
273 360
                     <el-radio :label="3">三月一次</el-radio>
@@ -288,38 +375,48 @@
288 375
                 </el-form-item>
289 376
               </el-col>
290 377
 
291
-              <el-col :span="8" :style="isEdit?'width:360px':''">
378
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
292 379
                 <el-form-item label="民族 : " prop="nation">
293 380
                   <el-input v-model="form.nation" maxlength="30"></el-input>
294 381
                 </el-form-item>
295 382
               </el-col>
296 383
 
297
-              <el-col :span="8" :style="isEdit?'width:360px':''">
384
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
298 385
                 <el-form-item label="籍贯 : " prop="native_place">
299
-                  <el-input v-model="form.native_place" maxlength="30"></el-input>
386
+                  <el-input
387
+                    v-model="form.native_place"
388
+                    maxlength="30"
389
+                  ></el-input>
300 390
                 </el-form-item>
301 391
               </el-col>
302 392
 
303
-              <el-col :span="8" :style="isEdit?'width:360px':''">
393
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
304 394
                 <el-form-item label="家庭住址 : " prop="homeAddress">
305 395
                   <el-input v-model="form.homeAddress"></el-input>
306 396
                 </el-form-item>
307 397
               </el-col>
308 398
 
309 399
               <div v-show="!generic_info_fold">
310
-                <el-col :span="8" :style="isEdit?'width:360px':''">
400
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
311 401
                   <el-form-item label="别名 : " prop="alias">
312 402
                     <el-input v-model="form.alias"></el-input>
313 403
                   </el-form-item>
314 404
                 </el-col>
315
-                <el-col :span="8" :style="isEdit?'width:360px':''">
405
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
316 406
                   <el-form-item label="身高(cm) : " prop="height">
317
-                    <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
407
+                    <el-input
408
+                      maxlength="5"
409
+                      v-model="form.height"
410
+                      @change="checkHeight"
411
+                    ></el-input>
318 412
                   </el-form-item>
319 413
                 </el-col>
320
-                <el-col :span="8" :style="isEdit?'width:360px':''">
414
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
321 415
                   <el-form-item label="婚姻状况 : " prop="maritalStatus">
322
-                    <el-select v-model="form.maritalStatus" placeholder="请选择婚姻状况">
416
+                    <el-select
417
+                      v-model="form.maritalStatus"
418
+                      placeholder="请选择婚姻状况"
419
+                    >
323 420
                       <el-option
324 421
                         v-for="item in maritalOptions"
325 422
                         :key="item.id"
@@ -329,19 +426,23 @@
329 426
                     </el-select>
330 427
                   </el-form-item>
331 428
                 </el-col>
332
-                <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
429
+                <el-col
430
+                  :span="8"
431
+                  style="clearfix"
432
+                  :style="isEdit ? 'width:360px' : ''"
433
+                >
333 434
                   <el-form-item label="子女情况(个) : " prop="children">
334 435
                     <el-input maxlength="5" v-model="form.children"></el-input>
335 436
                   </el-form-item>
336 437
                   <!-- <el-form-item label=" " style="float:left;" label-width="30px">
337 438
                   </el-form-item>-->
338 439
                 </el-col>
339
-                <el-col :span="8" :style="isEdit?'width:360px':''">
440
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
340 441
                   <el-form-item label="住院(门诊)号 : ">
341 442
                     <el-input v-model="form.admissionNumber"></el-input>
342 443
                   </el-form-item>
343 444
                 </el-col>
344
-                <el-col :span="8" :style="isEdit?'width:360px':''">
445
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
345 446
                   <el-form-item label="医保类型 : " prop="reimbursementWayID">
346 447
                     <el-select v-model="form.reimbursementWayID">
347 448
                       <el-option
@@ -353,12 +454,12 @@
353 454
                     </el-select>
354 455
                   </el-form-item>
355 456
                 </el-col>
356
-                <el-col :span="8" :style="isEdit?'width:360px':''">
457
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
357 458
                   <el-form-item label="医保号 : " prop="healthCareNo">
358 459
                     <el-input v-model="form.healthCareNo"></el-input>
359 460
                   </el-form-item>
360 461
                 </el-col>
361
-                <el-col :span="8" :style="isEdit?'width:360px':''">
462
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
362 463
                   <el-form-item label="教育程度 : " prop="educationOptions">
363 464
                     <el-select v-model="form.education">
364 465
                       <el-option
@@ -371,13 +472,16 @@
371 472
                   </el-form-item>
372 473
                 </el-col>
373 474
 
374
-                <el-col :span="8" :style="isEdit?'width:360px':''">
475
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
375 476
                   <el-form-item label="固定电话 : ">
376
-                    <el-input v-model="form.tell_phone" maxlength="20"></el-input>
477
+                    <el-input
478
+                      v-model="form.tell_phone"
479
+                      maxlength="20"
480
+                    ></el-input>
377 481
                   </el-form-item>
378 482
                 </el-col>
379 483
 
380
-                <el-col :span="8" :style="isEdit?'width:360px':''">
484
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
381 485
                   <el-form-item label="费别 : ">
382 486
                     <el-select v-model="form.expense_kind">
383 487
                       <el-option
@@ -390,23 +494,33 @@
390 494
                   </el-form-item>
391 495
                 </el-col>
392 496
 
393
-                <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
497
+                <el-col
498
+                  :span="8"
499
+                  :style="isEdit ? 'width:360px' : ''"
500
+                  style="height:59px;"
501
+                >
394 502
                   <el-form-item label="透析龄(月): ">
395 503
                     <el-input v-model="form.dialysis_age"></el-input>
396 504
                   </el-form-item>
397 505
                 </el-col>
398 506
 
399
-                <el-col :span="8" :style="isEdit?'width:360px':''">
507
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
400 508
                   <el-form-item label="亲友电话 : " prop="relative_phone">
401
-                    <el-input v-model="form.relative_phone" maxlength="20"></el-input>
509
+                    <el-input
510
+                      v-model="form.relative_phone"
511
+                      maxlength="20"
512
+                    ></el-input>
402 513
                   </el-form-item>
403 514
                 </el-col>
404
-                <el-col :span="8" :style="isEdit?'width:360px':''">
515
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
405 516
                   <el-form-item label="亲友关系 : " prop="relative_relations">
406
-                    <el-input v-model="form.relative_relations" maxlength="20"></el-input>
517
+                    <el-input
518
+                      v-model="form.relative_relations"
519
+                      maxlength="20"
520
+                    ></el-input>
407 521
                   </el-form-item>
408 522
                 </el-col>
409
-                <el-col :span="8" :style="isEdit?'width:360px':''">
523
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
410 524
                   <el-form-item label="职业 : " prop="profession">
411 525
                     <el-select v-model="form.profession">
412 526
                       <el-option
@@ -418,12 +532,12 @@
418 532
                     </el-select>
419 533
                   </el-form-item>
420 534
                 </el-col>
421
-                <el-col :span="8" :style="isEdit?'width:360px':''">
535
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
422 536
                   <el-form-item label="工作单位 : " prop="work">
423 537
                     <el-input v-model="form.work"></el-input>
424 538
                   </el-form-item>
425 539
                 </el-col>
426
-                <el-col :span="8" :style="isEdit?'width:360px':''">
540
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
427 541
                   <el-form-item label="单位地址 : " prop="unit_address">
428 542
                     <el-input v-model="form.unit_address"></el-input>
429 543
                   </el-form-item>
@@ -431,9 +545,11 @@
431 545
               </div>
432 546
               <el-col :span="24">
433 547
                 <el-form-item>
434
-                  <el-button type="text" @click="generic_info_fold = !generic_info_fold">
435
-                    {{ generic_info_fold ? '更多资料' :
436
-                    '收起' }}
548
+                  <el-button
549
+                    type="text"
550
+                    @click="generic_info_fold = !generic_info_fold"
551
+                  >
552
+                    {{ generic_info_fold ? "更多资料" : "收起" }}
437 553
                     <i class="el-icon--right" :class="generic_fold_icon"></i>
438 554
                   </el-button>
439 555
                 </el-form-item>
@@ -443,7 +559,11 @@
443 559
           <el-col :span="4" align="center">
444 560
             <el-upload
445 561
               style="width:100%;"
446
-              :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
562
+              :disabled="
563
+                $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
564
+                  ? true
565
+                  : false
566
+              "
447 567
               :data="uploadData"
448 568
               class="uploadHead"
449 569
               :multiple="false"
@@ -454,14 +574,24 @@
454 574
               list-type="picture-card"
455 575
               :before-upload="beforeAvatarUpload"
456 576
             >
457
-              <img width="100%" height="100%" v-if="form.avatar" :src="form.avatar" class="avatar" />
577
+              <img
578
+                width="100%"
579
+                height="100%"
580
+                v-if="form.avatar"
581
+                :src="form.avatar"
582
+                class="avatar"
583
+              />
458 584
               <i class="el-icon-plus" v-else></i>
459 585
             </el-upload>
460 586
             <el-dialog :visible.sync="dialogVisible">
461 587
               <img width="100%" :src="dialogImageUrl" alt />
462 588
             </el-dialog>
463 589
             <el-upload
464
-              :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
590
+              :disabled="
591
+                $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
592
+                  ? true
593
+                  : false
594
+              "
465 595
               :data="uploadData"
466 596
               :multiple="false"
467 597
               action="https://upload.qiniup.com"
@@ -471,13 +601,22 @@
471 601
               :before-upload="beforeAvatarUpload"
472 602
             >
473 603
               <el-button
474
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
604
+                :disabled="
605
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
606
+                    ? true
607
+                    : false
608
+                "
475 609
                 class="uploadHeadBtn"
476 610
                 type="primary"
477
-              >上传头像</el-button>
611
+                >上传头像</el-button
612
+              >
478 613
             </el-upload>
479 614
             <el-form-item>
480
-              <el-input v-model="form.avatar" type="hidden" placeholder></el-input>
615
+              <el-input
616
+                v-model="form.avatar"
617
+                type="hidden"
618
+                placeholder
619
+              ></el-input>
481 620
             </el-form-item>
482 621
           </el-col>
483 622
         </el-row>
@@ -522,33 +661,59 @@
522 661
           <el-col>
523 662
             <el-form-item label="体格检查">
524 663
               <el-input v-model="form.temperature" style="width: 200px;">
525
-                <template slot="prepend">体温:</template>
526
-                <template slot="append">℃</template>
664
+                <template slot="prepend"
665
+                  >体温:</template
666
+                >
667
+                <template slot="append"
668
+                  >℃</template
669
+                >
527 670
               </el-input>
528 671
               <el-input v-model="form.pulse" style="width: 220px;">
529
-                <template slot="prepend">脉搏:</template>
530
-                <template slot="append">次/分</template>
672
+                <template slot="prepend"
673
+                  >脉搏:</template
674
+                >
675
+                <template slot="append"
676
+                  >次/分</template
677
+                >
531 678
               </el-input>
532 679
               <el-input v-model="form.respiratory" style="width: 220px;">
533
-                <template slot="prepend">呼吸:</template>
534
-                <template slot="append">次/分</template>
680
+                <template slot="prepend"
681
+                  >呼吸:</template
682
+                >
683
+                <template slot="append"
684
+                  >次/分</template
685
+                >
535 686
               </el-input>
536 687
               <!-- </el-form-item>
537 688
               <el-form-item>-->
538 689
               <el-input v-model="form.sbp" style="width: 240px;">
539
-                <template slot="prepend">收缩压:</template>
540
-                <template slot="append">mmHg</template>
690
+                <template slot="prepend"
691
+                  >收缩压:</template
692
+                >
693
+                <template slot="append"
694
+                  >mmHg</template
695
+                >
541 696
               </el-input>
542 697
               <el-input v-model="form.dbp" style="width: 240px;">
543
-                <template slot="prepend">舒张压:</template>
544
-                <template slot="append">mmHg</template>
698
+                <template slot="prepend"
699
+                  >舒张压:</template
700
+                >
701
+                <template slot="append"
702
+                  >mmHg</template
703
+                >
545 704
               </el-input>
546 705
             </el-form-item>
547 706
           </el-col>
548 707
           <el-col></el-col>
549 708
           <el-col :span="24">
550 709
             <el-form-item label prop="remark">
551
-              <el-input type="textarea" :rows="3" v-model="form.remark" resize="none" placeholder></el-input>
710
+              <el-input
711
+                type="textarea"
712
+                :rows="3"
713
+                v-model="form.remark"
714
+                resize="none"
715
+                placeholder
716
+              ></el-input>
552 717
             </el-form-item>
553 718
           </el-col>
554 719
           <!--<el-col :span="24">-->
@@ -568,34 +733,40 @@
568 733
                   :label="item.id"
569 734
                   :key="item.id"
570 735
                   :value="item.id"
571
-                >{{item.name}}</el-checkbox>
736
+                  >{{ item.name }}</el-checkbox
737
+                >
572 738
               </el-checkbox-group>
573 739
             </el-form-item>
574 740
           </el-col>
575 741
 
576 742
           <div v-show="!treat_info_fold">
577
-            <el-col :span="6" :style="isEdit?'width:360px':''">
578
-              <el-form-item label="本院首次透析 : " prop="is_hospital_first_dialysis">
743
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
744
+              <el-form-item
745
+                label="本院首次透析 : "
746
+                prop="is_hospital_first_dialysis"
747
+              >
579 748
                 <el-radio-group v-model="form.is_hospital_first_dialysis">
580 749
                   <el-radio
581 750
                     v-for="item in isHospitalFirstDialysisOptions"
582 751
                     :key="item.value"
583 752
                     :label="item.value"
584 753
                     :value="item.value"
585
-                  >{{item.label}}</el-radio>
754
+                    >{{ item.label }}</el-radio
755
+                  >
586 756
                 </el-radio-group>
587 757
               </el-form-item>
588 758
             </el-col>
589 759
 
590
-
591
-            <el-col :span="6" :style="isEdit?'width:360px':''">
592
-                <el-form-item label="系统前透析次数 : " prop="user_sys_before_count">
593
-                  <el-input v-model="form.user_sys_before_count"></el-input>
760
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
761
+              <el-form-item
762
+                label="系统前透析次数 : "
763
+                prop="user_sys_before_count"
764
+              >
765
+                <el-input v-model="form.user_sys_before_count"></el-input>
594 766
               </el-form-item>
595 767
             </el-col>
596 768
 
597
-
598
-            <el-col :span="6" :style="isEdit?'width:360px':''">
769
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
599 770
               <el-form-item label="首次诊治时间 : ">
600 771
                 <el-date-picker
601 772
                   v-model="form.first_treatment_date"
@@ -605,35 +776,53 @@
605 776
                 ></el-date-picker>
606 777
               </el-form-item>
607 778
             </el-col>
608
-            <el-col :span="6" :style="isEdit?'width:360px':''">
609
-              <el-form-item label="首次透析医院 : " prop="first_dialysis_hospital">
779
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
780
+              <el-form-item
781
+                label="首次透析医院 : "
782
+                prop="first_dialysis_hospital"
783
+              >
610 784
                 <el-input v-model="form.first_dialysis_hospital"></el-input>
611 785
               </el-form-item>
612 786
             </el-col>
613 787
             <el-col :span="24">
614
-              <el-form-item label="透析之前情况 : " prop="predialysis_condition">
788
+              <el-form-item
789
+                label="透析之前情况 : "
790
+                prop="predialysis_condition"
791
+              >
615 792
                 <el-checkbox-group v-model="form.predialysis_condition">
616 793
                   <el-checkbox
617 794
                     v-for="item in predialysisConditionOptions"
618 795
                     :label="item.label"
619 796
                     :key="item.value"
620 797
                     :value="item.label"
621
-                  >{{item.label}}</el-checkbox>
798
+                    >{{ item.label }}</el-checkbox
799
+                  >
622 800
                 </el-checkbox-group>
623 801
               </el-form-item>
624 802
             </el-col>
625
-            <el-col :span="6" :style="isEdit?'width:360px':''">
626
-              <el-form-item label="本院前透析频率 : " prop="pre_hospital_dialysis_frequency">
627
-                <el-input v-model="form.pre_hospital_dialysis_frequency"></el-input>
803
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
804
+              <el-form-item
805
+                label="本院前透析频率 : "
806
+                prop="pre_hospital_dialysis_frequency"
807
+              >
808
+                <el-input
809
+                  v-model="form.pre_hospital_dialysis_frequency"
810
+                ></el-input>
628 811
               </el-form-item>
629 812
             </el-col>
630
-            <el-col :span="6" :style="isEdit?'width:360px':''">
631
-              <el-form-item label="本院前透析次数 : " prop="pre_hospital_dialysis_times">
813
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
814
+              <el-form-item
815
+                label="本院前透析次数 : "
816
+                prop="pre_hospital_dialysis_times"
817
+              >
632 818
                 <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
633 819
               </el-form-item>
634 820
             </el-col>
635
-            <el-col :span="6" :style="isEdit?'width:360px':''">
636
-              <el-form-item label="本院首次透析 : " prop="hospital_first_dialysis_date">
821
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
822
+              <el-form-item
823
+                label="本院首次透析 : "
824
+                prop="hospital_first_dialysis_date"
825
+              >
637 826
                 <el-date-picker
638 827
                   v-model="form.hospital_first_dialysis_date"
639 828
                   type="date"
@@ -645,8 +834,11 @@
645 834
           </div>
646 835
           <el-col :span="24">
647 836
             <el-form-item>
648
-              <el-button type="text" @click="treat_info_fold = !treat_info_fold">
649
-                {{ treat_info_fold ? '更多治疗信息' : '收起' }}
837
+              <el-button
838
+                type="text"
839
+                @click="treat_info_fold = !treat_info_fold"
840
+              >
841
+                {{ treat_info_fold ? "更多治疗信息" : "收起" }}
650 842
                 <i class="el-icon--right" :class="treat_fold_icon"></i>
651 843
               </el-button>
652 844
             </el-form-item>
@@ -654,28 +846,43 @@
654 846
 
655 847
           <el-col :span="24">
656 848
             <el-form-item label="登记人员 : ">
657
-              <span>{{adminusername}}</span>
849
+              <span>{{ adminusername }}</span>
658 850
             </el-form-item>
659 851
           </el-col>
660 852
 
661 853
           <el-col :span="24" align="right" class="newCol">
662 854
             <el-form-item>
663
-              <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
664 855
               <el-button
665
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
856
+                @click="$router.back(-1)"
857
+                icon="el-icon-refresh"
858
+                size="small"
859
+                >取消</el-button
860
+              >
861
+              <el-button
862
+                :disabled="
863
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
864
+                    ? true
865
+                    : false
866
+                "
666 867
                 @click="onSubmit('form')"
667 868
                 size="small"
668 869
                 type="primary"
669 870
                 icon="el-icon-setting"
670
-              >保存</el-button>
871
+                >保存</el-button
872
+              >
671 873
               <el-button
672
-                v-if="isEdit==false"
874
+                v-if="isEdit == false"
673 875
                 @click="onReSubmit('form')"
674
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
876
+                :disabled="
877
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
878
+                    ? true
879
+                    : false
880
+                "
675 881
                 icon="el-icon-document-add"
676 882
                 size="small"
677 883
                 type="success"
678
-              >保存并继续新增</el-button>
884
+                >保存并继续新增</el-button
885
+              >
679 886
             </el-form-item>
680 887
           </el-col>
681 888
         </el-row>
@@ -755,7 +962,7 @@ const defaultForm = {
755 962
   dialysis_age: "",
756 963
   expense_kind: "",
757 964
   contact_name: "",
758
-  user_sys_before_count:"",
965
+  user_sys_before_count: "",
759 966
 
760 967
   formItem: [
761 968
     {
@@ -973,20 +1180,14 @@ export default {
973 1180
       dialogVisible: false,
974 1181
       // typeOptions: null,
975 1182
       // styleOptions: null,
976
-      sourceOptions: [
977
-        { value: 1, label: "门诊" },
978
-        { value: 2, label: "住院" }
979
-      ],
1183
+      sourceOptions: [{ value: 1, label: "门诊" }, { value: 2, label: "住院" }],
980 1184
       lapsetoOptions: [
981 1185
         { value: 1, label: "留治" },
982 1186
         { value: 2, label: "转出" }
983 1187
       ],
984 1188
 
985 1189
       // partitionOptions: null,
986
-      sexOptions: [
987
-        { value: 1, label: "男" },
988
-        { value: 2, label: "女" }
989
-      ],
1190
+      sexOptions: [{ value: 1, label: "男" }, { value: 2, label: "女" }],
990 1191
       isHospitalFirstDialysisOptions: [
991 1192
         { value: 1, label: "是" },
992 1193
         { value: 2, label: "否" }
@@ -1183,6 +1384,8 @@ export default {
1183 1384
           this.formSubmit = false;
1184 1385
           if (this.isEdit) {
1185 1386
             this.form.age = parseInt(this.form.age);
1387
+            this.form.user_sys_before_count = this.form.user_sys_before_count.toString();
1388
+
1186 1389
             editPatient(this.patientID, this.form)
1187 1390
               .then(response => {
1188 1391
                 if (response.data.state == 0) {
@@ -1397,7 +1600,6 @@ export default {
1397 1600
             this.form.unit_address = patietInfo.unit_address;
1398 1601
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1399 1602
 
1400
-
1401 1603
             if (patietInfo.profession > 0) {
1402 1604
               this.form.profession = patietInfo.profession;
1403 1605
             }
@@ -1604,10 +1806,9 @@ export default {
1604 1806
 .el-select-dropdown {
1605 1807
   z-index: 998 !important;
1606 1808
 }
1607
-.newCol{
1809
+.newCol {
1608 1810
   position: fixed;
1609 1811
   bottom: 0;
1610 1812
   right: 50px;
1611 1813
 }
1612 1814
 </style>
1613
-

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

@@ -514,6 +514,7 @@
514 514
       <el-pagination
515 515
         @size-change="handleSizeChange"
516 516
         @current-change="handleCurrentChange"
517
+
517 518
         :page-sizes="[10, 20, 50, 100]"
518 519
         :page-size="10"
519 520
         background