XMLWAN 5 年之前
父節點
當前提交
ac7239c043

+ 2 - 1
config/dev.env.js 查看文件

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
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
   // BASE_API:'"http://localhost:9531"',
10
   // BASE_API:'"http://localhost:9531"',
11
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 157 - 169
src/api/advice.js 查看文件

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

+ 28 - 9
src/api/dialysis.js 查看文件

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

36
   })
36
   })
37
 }
37
 }
38
 export function editPatient(id, patient) {
38
 export function editPatient(id, patient) {
39
+  console.log('patient', patient)
39
   return request({
40
   return request({
40
     url: '/api/patients/edit?id=' + id + '&record_date=' + patient.record_date + '&is_infectious=' + patient.is_infectious + '&remind_cycle=' + patient.remind_cycle,
41
     url: '/api/patients/edit?id=' + id + '&record_date=' + patient.record_date + '&is_infectious=' + patient.is_infectious + '&remind_cycle=' + patient.remind_cycle,
41
     method: 'put',
42
     method: 'put',
57
   })
58
   })
58
 }
59
 }
59
 
60
 
60
-export function createPatientDialysisSolution(id, solution,mode) {
61
+export function createPatientDialysisSolution(id, solution, mode) {
61
   return request({
62
   return request({
62
-    url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63
+    url: '/api/patients/dialysissolution/create?patient=' + id + '&mode=' + mode,
63
     method: 'post',
64
     method: 'post',
64
     data: solution,
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
   return request({
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
     method: 'put',
76
     method: 'put',
75
     data: solution,
77
     data: solution,
76
-    headers:{"Permission":3},
78
+    headers: {
79
+      'Permission': 3
80
+    }
77
 
81
 
78
   })
82
   })
79
 }
83
 }
318
     url: '/api/patient/updatedryweightdata',
322
     url: '/api/patient/updatedryweightdata',
319
     method: 'Post',
323
     method: 'Post',
320
     params: params,
324
     params: params,
321
-    headers:{"Permission":3},
325
+    headers: {
326
+      'Permission': 3
327
+    }
322
 
328
 
323
   })
329
   })
324
 }
330
 }
338
     params: params
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 查看文件

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

+ 9 - 7
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

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
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
132
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
139
             <el-form-item label="其他出血情况: ">
133
             <el-form-item label="其他出血情况: ">
140
               <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
134
               <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
255
           </el-col>
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
           <el-col :span="8" v-if="isShow('皮肤')">
260
           <el-col :span="8" v-if="isShow('皮肤')">
259
             <el-form-item label="皮肤: ">
261
             <el-form-item label="皮肤: ">
260
               <el-select v-model="assessmentBeforeDislysis.skin">
262
               <el-select v-model="assessmentBeforeDislysis.skin">

+ 4 - 4
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue 查看文件

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

+ 330 - 129
src/xt_pages/user/components/PatientForm.vue 查看文件

15
             <el-col :span="7" :key="index">
15
             <el-col :span="7" :key="index">
16
               <el-form-item
16
               <el-form-item
17
                 :label="item.item_name"
17
                 :label="item.item_name"
18
-                v-if="item.range_type==1"
18
+                v-if="item.range_type == 1"
19
                 :key="item.item_id"
19
                 :key="item.item_id"
20
                 :prop="'formItem.' + index + '.value'"
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
                 </el-input>
29
                 </el-input>
25
               </el-form-item>
30
               </el-form-item>
26
               <el-form-item
31
               <el-form-item
29
                 :key="item.item_id"
34
                 :key="item.item_id"
30
                 :prop="'formItem.' + index + '.value'"
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
                   <el-option
42
                   <el-option
34
                     v-for="(optionItem, oidex) in item.select_options"
43
                     v-for="(optionItem, oidex) in item.select_options"
35
                     :key="oidex"
44
                     :key="oidex"
39
                 </el-select>
48
                 </el-select>
40
               </el-form-item>
49
               </el-form-item>
41
             </el-col>
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
           </template>
52
           </template>
44
         </el-row>
53
         </el-row>
45
       </el-form>
54
       </el-form>
53
       <bread-crumb :crumbs="crumbs"></bread-crumb>
62
       <bread-crumb :crumbs="crumbs"></bread-crumb>
54
       <div class style="float:right;color: white">
63
       <div class style="float:right;color: white">
55
         <el-button
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
           type="primary"
70
           type="primary"
58
-          v-if="this.isEdit==false"
71
+          v-if="this.isEdit == false"
59
           @click="resetForm('form')"
72
           @click="resetForm('form')"
60
           icon="el-icon-circle-plus-outline"
73
           icon="el-icon-circle-plus-outline"
61
           size="small"
74
           size="small"
62
-        >新增</el-button>
75
+          >新增</el-button
76
+        >
63
       </div>
77
       </div>
64
     </div>
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
       <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
85
       <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
68
       <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>
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
       <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>
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
         <el-row>
101
         <el-row>
84
           <el-col :span="20" class="form-table">
102
           <el-col :span="20" class="form-table">
85
             <el-row :span="20">
103
             <el-row :span="20">
86
-              <el-col :span="8" :style="isEdit?'width:360px':''">
104
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
87
                 <el-form-item label="姓名 : " class="is-required" prop="name">
105
                 <el-form-item label="姓名 : " class="is-required" prop="name">
88
                   <el-input v-model="form.name"></el-input>
106
                   <el-input v-model="form.name"></el-input>
89
                 </el-form-item>
107
                 </el-form-item>
90
               </el-col>
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
                 <el-form-item label="性别 : " class="is-required" prop="gender">
114
                 <el-form-item label="性别 : " class="is-required" prop="gender">
93
                   <el-radio-group v-model="form.gender" @change="changeGender">
115
                   <el-radio-group v-model="form.gender" @change="changeGender">
94
                     <el-radio
116
                     <el-radio
96
                       :key="item.value"
118
                       :key="item.value"
97
                       :label="item.value"
119
                       :label="item.value"
98
                       :value="item.value"
120
                       :value="item.value"
99
-                    >{{item.label}}</el-radio>
121
+                      >{{ item.label }}</el-radio
122
+                    >
100
                   </el-radio-group>
123
                   </el-radio-group>
101
                 </el-form-item>
124
                 </el-form-item>
102
               </el-col>
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
                 </el-form-item>
137
                 </el-form-item>
108
               </el-col>
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
                 <el-form-item label="年龄 : " class="is-required" prop="age">
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
                 </el-form-item>
150
                 </el-form-item>
114
               </el-col>
151
               </el-col>
115
               <template v-if="isEdit">
152
               <template v-if="isEdit">
121
                   </el-form-item>
158
                   </el-form-item>
122
                 </el-col>-->
159
                 </el-col>-->
123
 
160
 
124
-                <el-col :span="8" :style="isEdit?'width:360px':''">
161
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
125
                   <el-form-item label="透析号 : " class="is-required">
162
                   <el-form-item label="透析号 : " class="is-required">
126
                     <el-input
163
                     <el-input
127
                       v-model="form.dialysisNo"
164
                       v-model="form.dialysisNo"
142
                 </el-col>-->
179
                 </el-col>-->
143
 
180
 
144
                 <el-col :span="8">
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
                     <el-input
187
                     <el-input
147
                       v-model="form.dialysisNo"
188
                       v-model="form.dialysisNo"
148
                       placeholder="填写或自动生成"
189
                       placeholder="填写或自动生成"
150
                     ></el-input>
191
                     ></el-input>
151
                     <el-button
192
                     <el-button
152
                       style="width:35%;padding:10px 0;"
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
                       type="primary"
200
                       type="primary"
155
                       @click="generatedialysisno"
201
                       @click="generatedialysisno"
156
-                    >自动生成</el-button>
202
+                      >自动生成</el-button
203
+                    >
157
                   </el-form-item>
204
                   </el-form-item>
158
                 </el-col>
205
                 </el-col>
159
               </template>
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
                   <el-date-picker
214
                   <el-date-picker
164
                     v-model="form.birth"
215
                     v-model="form.birth"
165
                     type="date"
216
                     type="date"
172
                 </el-form-item>
223
                 </el-form-item>
173
               </el-col>
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
                   <el-date-picker
232
                   <el-date-picker
178
                     v-model="form.firstDialysisDate"
233
                     v-model="form.firstDialysisDate"
179
                     type="date"
234
                     type="date"
182
                   ></el-date-picker>
237
                   ></el-date-picker>
183
                 </el-form-item>
238
                 </el-form-item>
184
               </el-col>
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
                   <el-input v-model="form.phone" maxlength="20"></el-input>
246
                   <el-input v-model="form.phone" maxlength="20"></el-input>
188
                 </el-form-item>
247
                 </el-form-item>
189
               </el-col>
248
               </el-col>
190
-              <el-col :span="8" :style="isEdit?'width:360px':''">
249
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
191
                 <el-form-item label="家属姓名 : ">
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
                 </el-form-item>
255
                 </el-form-item>
194
               </el-col>
256
               </el-col>
195
-              <el-col :span="8" :style="isEdit?'width:360px':''">
257
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
196
                 <el-form-item label="家属电话 : " prop="homeTelephone">
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
                 </el-form-item>
263
                 </el-form-item>
199
               </el-col>
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
                   <el-radio-group v-model="form.source">
272
                   <el-radio-group v-model="form.source">
204
                     <el-radio
273
                     <el-radio
205
                       v-for="item in sourceOptions"
274
                       v-for="item in sourceOptions"
206
                       :key="item.value"
275
                       :key="item.value"
207
                       :label="item.value"
276
                       :label="item.value"
208
                       :value="item.value"
277
                       :value="item.value"
209
-                    >{{item.label}}</el-radio>
278
+                      >{{ item.label }}</el-radio
279
+                    >
210
                   </el-radio-group>
280
                   </el-radio-group>
211
                 </el-form-item>
281
                 </el-form-item>
212
               </el-col>
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
                   <el-radio-group v-model="form.lapseto">
289
                   <el-radio-group v-model="form.lapseto">
216
                     <el-radio
290
                     <el-radio
217
                       v-for="item in lapsetoOptions"
291
                       v-for="item in lapsetoOptions"
218
                       :key="item.value"
292
                       :key="item.value"
219
                       :label="item.value"
293
                       :label="item.value"
220
                       :value="item.value"
294
                       :value="item.value"
221
-                    >{{item.label}}</el-radio>
295
+                      >{{ item.label }}</el-radio
296
+                    >
222
                   </el-radio-group>
297
                   </el-radio-group>
223
                 </el-form-item>
298
                 </el-form-item>
224
               </el-col>
299
               </el-col>
229
                     <el-radio :label="1">无</el-radio>
304
                     <el-radio :label="1">无</el-radio>
230
                     <el-radio :label="2">有</el-radio>
305
                     <el-radio :label="2">有</el-radio>
231
                   </el-radio-group>
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
                     <el-checkbox
311
                     <el-checkbox
234
                       v-for="item in contagionList"
312
                       v-for="item in contagionList"
235
-                      v-if="item.type==2"
313
+                      v-if="item.type == 2"
236
                       :label="item.id"
314
                       :label="item.id"
237
                       :key="item.id"
315
                       :key="item.id"
238
                       name="contagions"
316
                       name="contagions"
239
                       :value="item.id"
317
                       :value="item.id"
240
-                    >{{item.name}}</el-checkbox>
318
+                      >{{ item.name }}</el-checkbox
319
+                    >
241
                   </el-checkbox-group>
320
                   </el-checkbox-group>
242
                 </el-form-item>
321
                 </el-form-item>
243
               </el-col>
322
               </el-col>
260
                     value-format="yyyy-MM-dd"
339
                     value-format="yyyy-MM-dd"
261
                     v-if="!isEdit"
340
                     v-if="!isEdit"
262
                   ></el-date-picker>
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
                   <!--<el-button type="primary"  v-if="isEdit">查看检验检查</el-button>-->
348
                   <!--<el-button type="primary"  v-if="isEdit">查看检验检查</el-button>-->
265
                 </el-form-item>
349
                 </el-form-item>
266
               </el-col>
350
               </el-col>
267
 
351
 
268
               <el-col :span="24">
352
               <el-col :span="24">
269
                 <el-form-item label="传染病周期提醒: ">
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
                     <el-radio :label="1">一月一次</el-radio>
358
                     <el-radio :label="1">一月一次</el-radio>
272
                     <el-radio :label="2">两月一次</el-radio>
359
                     <el-radio :label="2">两月一次</el-radio>
273
                     <el-radio :label="3">三月一次</el-radio>
360
                     <el-radio :label="3">三月一次</el-radio>
288
                 </el-form-item>
375
                 </el-form-item>
289
               </el-col>
376
               </el-col>
290
 
377
 
291
-              <el-col :span="8" :style="isEdit?'width:360px':''">
378
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
292
                 <el-form-item label="民族 : " prop="nation">
379
                 <el-form-item label="民族 : " prop="nation">
293
                   <el-input v-model="form.nation" maxlength="30"></el-input>
380
                   <el-input v-model="form.nation" maxlength="30"></el-input>
294
                 </el-form-item>
381
                 </el-form-item>
295
               </el-col>
382
               </el-col>
296
 
383
 
297
-              <el-col :span="8" :style="isEdit?'width:360px':''">
384
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
298
                 <el-form-item label="籍贯 : " prop="native_place">
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
                 </el-form-item>
390
                 </el-form-item>
301
               </el-col>
391
               </el-col>
302
 
392
 
303
-              <el-col :span="8" :style="isEdit?'width:360px':''">
393
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
304
                 <el-form-item label="家庭住址 : " prop="homeAddress">
394
                 <el-form-item label="家庭住址 : " prop="homeAddress">
305
                   <el-input v-model="form.homeAddress"></el-input>
395
                   <el-input v-model="form.homeAddress"></el-input>
306
                 </el-form-item>
396
                 </el-form-item>
307
               </el-col>
397
               </el-col>
308
 
398
 
309
               <div v-show="!generic_info_fold">
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
                   <el-form-item label="别名 : " prop="alias">
401
                   <el-form-item label="别名 : " prop="alias">
312
                     <el-input v-model="form.alias"></el-input>
402
                     <el-input v-model="form.alias"></el-input>
313
                   </el-form-item>
403
                   </el-form-item>
314
                 </el-col>
404
                 </el-col>
315
-                <el-col :span="8" :style="isEdit?'width:360px':''">
405
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
316
                   <el-form-item label="身高(cm) : " prop="height">
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
                   </el-form-item>
412
                   </el-form-item>
319
                 </el-col>
413
                 </el-col>
320
-                <el-col :span="8" :style="isEdit?'width:360px':''">
414
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
321
                   <el-form-item label="婚姻状况 : " prop="maritalStatus">
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
                       <el-option
420
                       <el-option
324
                         v-for="item in maritalOptions"
421
                         v-for="item in maritalOptions"
325
                         :key="item.id"
422
                         :key="item.id"
329
                     </el-select>
426
                     </el-select>
330
                   </el-form-item>
427
                   </el-form-item>
331
                 </el-col>
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
                   <el-form-item label="子女情况(个) : " prop="children">
434
                   <el-form-item label="子女情况(个) : " prop="children">
334
                     <el-input maxlength="5" v-model="form.children"></el-input>
435
                     <el-input maxlength="5" v-model="form.children"></el-input>
335
                   </el-form-item>
436
                   </el-form-item>
336
                   <!-- <el-form-item label=" " style="float:left;" label-width="30px">
437
                   <!-- <el-form-item label=" " style="float:left;" label-width="30px">
337
                   </el-form-item>-->
438
                   </el-form-item>-->
338
                 </el-col>
439
                 </el-col>
339
-                <el-col :span="8" :style="isEdit?'width:360px':''">
440
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
340
                   <el-form-item label="住院(门诊)号 : ">
441
                   <el-form-item label="住院(门诊)号 : ">
341
                     <el-input v-model="form.admissionNumber"></el-input>
442
                     <el-input v-model="form.admissionNumber"></el-input>
342
                   </el-form-item>
443
                   </el-form-item>
343
                 </el-col>
444
                 </el-col>
344
-                <el-col :span="8" :style="isEdit?'width:360px':''">
445
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
345
                   <el-form-item label="医保类型 : " prop="reimbursementWayID">
446
                   <el-form-item label="医保类型 : " prop="reimbursementWayID">
346
                     <el-select v-model="form.reimbursementWayID">
447
                     <el-select v-model="form.reimbursementWayID">
347
                       <el-option
448
                       <el-option
353
                     </el-select>
454
                     </el-select>
354
                   </el-form-item>
455
                   </el-form-item>
355
                 </el-col>
456
                 </el-col>
356
-                <el-col :span="8" :style="isEdit?'width:360px':''">
457
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
357
                   <el-form-item label="医保号 : " prop="healthCareNo">
458
                   <el-form-item label="医保号 : " prop="healthCareNo">
358
                     <el-input v-model="form.healthCareNo"></el-input>
459
                     <el-input v-model="form.healthCareNo"></el-input>
359
                   </el-form-item>
460
                   </el-form-item>
360
                 </el-col>
461
                 </el-col>
361
-                <el-col :span="8" :style="isEdit?'width:360px':''">
462
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
362
                   <el-form-item label="教育程度 : " prop="educationOptions">
463
                   <el-form-item label="教育程度 : " prop="educationOptions">
363
                     <el-select v-model="form.education">
464
                     <el-select v-model="form.education">
364
                       <el-option
465
                       <el-option
371
                   </el-form-item>
472
                   </el-form-item>
372
                 </el-col>
473
                 </el-col>
373
 
474
 
374
-                <el-col :span="8" :style="isEdit?'width:360px':''">
475
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
375
                   <el-form-item label="固定电话 : ">
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
                   </el-form-item>
481
                   </el-form-item>
378
                 </el-col>
482
                 </el-col>
379
 
483
 
380
-                <el-col :span="8" :style="isEdit?'width:360px':''">
484
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
381
                   <el-form-item label="费别 : ">
485
                   <el-form-item label="费别 : ">
382
                     <el-select v-model="form.expense_kind">
486
                     <el-select v-model="form.expense_kind">
383
                       <el-option
487
                       <el-option
390
                   </el-form-item>
494
                   </el-form-item>
391
                 </el-col>
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
                   <el-form-item label="透析龄(月): ">
502
                   <el-form-item label="透析龄(月): ">
395
                     <el-input v-model="form.dialysis_age"></el-input>
503
                     <el-input v-model="form.dialysis_age"></el-input>
396
                   </el-form-item>
504
                   </el-form-item>
397
                 </el-col>
505
                 </el-col>
398
 
506
 
399
-                <el-col :span="8" :style="isEdit?'width:360px':''">
507
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
400
                   <el-form-item label="亲友电话 : " prop="relative_phone">
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
                   </el-form-item>
513
                   </el-form-item>
403
                 </el-col>
514
                 </el-col>
404
-                <el-col :span="8" :style="isEdit?'width:360px':''">
515
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
405
                   <el-form-item label="亲友关系 : " prop="relative_relations">
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
                   </el-form-item>
521
                   </el-form-item>
408
                 </el-col>
522
                 </el-col>
409
-                <el-col :span="8" :style="isEdit?'width:360px':''">
523
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
410
                   <el-form-item label="职业 : " prop="profession">
524
                   <el-form-item label="职业 : " prop="profession">
411
                     <el-select v-model="form.profession">
525
                     <el-select v-model="form.profession">
412
                       <el-option
526
                       <el-option
418
                     </el-select>
532
                     </el-select>
419
                   </el-form-item>
533
                   </el-form-item>
420
                 </el-col>
534
                 </el-col>
421
-                <el-col :span="8" :style="isEdit?'width:360px':''">
535
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
422
                   <el-form-item label="工作单位 : " prop="work">
536
                   <el-form-item label="工作单位 : " prop="work">
423
                     <el-input v-model="form.work"></el-input>
537
                     <el-input v-model="form.work"></el-input>
424
                   </el-form-item>
538
                   </el-form-item>
425
                 </el-col>
539
                 </el-col>
426
-                <el-col :span="8" :style="isEdit?'width:360px':''">
540
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
427
                   <el-form-item label="单位地址 : " prop="unit_address">
541
                   <el-form-item label="单位地址 : " prop="unit_address">
428
                     <el-input v-model="form.unit_address"></el-input>
542
                     <el-input v-model="form.unit_address"></el-input>
429
                   </el-form-item>
543
                   </el-form-item>
431
               </div>
545
               </div>
432
               <el-col :span="24">
546
               <el-col :span="24">
433
                 <el-form-item>
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
                     <i class="el-icon--right" :class="generic_fold_icon"></i>
553
                     <i class="el-icon--right" :class="generic_fold_icon"></i>
438
                   </el-button>
554
                   </el-button>
439
                 </el-form-item>
555
                 </el-form-item>
443
           <el-col :span="4" align="center">
559
           <el-col :span="4" align="center">
444
             <el-upload
560
             <el-upload
445
               style="width:100%;"
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
               :data="uploadData"
567
               :data="uploadData"
448
               class="uploadHead"
568
               class="uploadHead"
449
               :multiple="false"
569
               :multiple="false"
454
               list-type="picture-card"
574
               list-type="picture-card"
455
               :before-upload="beforeAvatarUpload"
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
               <i class="el-icon-plus" v-else></i>
584
               <i class="el-icon-plus" v-else></i>
459
             </el-upload>
585
             </el-upload>
460
             <el-dialog :visible.sync="dialogVisible">
586
             <el-dialog :visible.sync="dialogVisible">
461
               <img width="100%" :src="dialogImageUrl" alt />
587
               <img width="100%" :src="dialogImageUrl" alt />
462
             </el-dialog>
588
             </el-dialog>
463
             <el-upload
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
               :data="uploadData"
595
               :data="uploadData"
466
               :multiple="false"
596
               :multiple="false"
467
               action="https://upload.qiniup.com"
597
               action="https://upload.qiniup.com"
471
               :before-upload="beforeAvatarUpload"
601
               :before-upload="beforeAvatarUpload"
472
             >
602
             >
473
               <el-button
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
                 class="uploadHeadBtn"
609
                 class="uploadHeadBtn"
476
                 type="primary"
610
                 type="primary"
477
-              >上传头像</el-button>
611
+                >上传头像</el-button
612
+              >
478
             </el-upload>
613
             </el-upload>
479
             <el-form-item>
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
             </el-form-item>
620
             </el-form-item>
482
           </el-col>
621
           </el-col>
483
         </el-row>
622
         </el-row>
522
           <el-col>
661
           <el-col>
523
             <el-form-item label="体格检查">
662
             <el-form-item label="体格检查">
524
               <el-input v-model="form.temperature" style="width: 200px;">
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
               </el-input>
670
               </el-input>
528
               <el-input v-model="form.pulse" style="width: 220px;">
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
               </el-input>
678
               </el-input>
532
               <el-input v-model="form.respiratory" style="width: 220px;">
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
               </el-input>
686
               </el-input>
536
               <!-- </el-form-item>
687
               <!-- </el-form-item>
537
               <el-form-item>-->
688
               <el-form-item>-->
538
               <el-input v-model="form.sbp" style="width: 240px;">
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
               </el-input>
696
               </el-input>
542
               <el-input v-model="form.dbp" style="width: 240px;">
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
               </el-input>
704
               </el-input>
546
             </el-form-item>
705
             </el-form-item>
547
           </el-col>
706
           </el-col>
548
           <el-col></el-col>
707
           <el-col></el-col>
549
           <el-col :span="24">
708
           <el-col :span="24">
550
             <el-form-item label prop="remark">
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
             </el-form-item>
717
             </el-form-item>
553
           </el-col>
718
           </el-col>
554
           <!--<el-col :span="24">-->
719
           <!--<el-col :span="24">-->
568
                   :label="item.id"
733
                   :label="item.id"
569
                   :key="item.id"
734
                   :key="item.id"
570
                   :value="item.id"
735
                   :value="item.id"
571
-                >{{item.name}}</el-checkbox>
736
+                  >{{ item.name }}</el-checkbox
737
+                >
572
               </el-checkbox-group>
738
               </el-checkbox-group>
573
             </el-form-item>
739
             </el-form-item>
574
           </el-col>
740
           </el-col>
575
 
741
 
576
           <div v-show="!treat_info_fold">
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
                 <el-radio-group v-model="form.is_hospital_first_dialysis">
748
                 <el-radio-group v-model="form.is_hospital_first_dialysis">
580
                   <el-radio
749
                   <el-radio
581
                     v-for="item in isHospitalFirstDialysisOptions"
750
                     v-for="item in isHospitalFirstDialysisOptions"
582
                     :key="item.value"
751
                     :key="item.value"
583
                     :label="item.value"
752
                     :label="item.value"
584
                     :value="item.value"
753
                     :value="item.value"
585
-                  >{{item.label}}</el-radio>
754
+                    >{{ item.label }}</el-radio
755
+                  >
586
                 </el-radio-group>
756
                 </el-radio-group>
587
               </el-form-item>
757
               </el-form-item>
588
             </el-col>
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
               </el-form-item>
766
               </el-form-item>
595
             </el-col>
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
               <el-form-item label="首次诊治时间 : ">
770
               <el-form-item label="首次诊治时间 : ">
600
                 <el-date-picker
771
                 <el-date-picker
601
                   v-model="form.first_treatment_date"
772
                   v-model="form.first_treatment_date"
605
                 ></el-date-picker>
776
                 ></el-date-picker>
606
               </el-form-item>
777
               </el-form-item>
607
             </el-col>
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
                 <el-input v-model="form.first_dialysis_hospital"></el-input>
784
                 <el-input v-model="form.first_dialysis_hospital"></el-input>
611
               </el-form-item>
785
               </el-form-item>
612
             </el-col>
786
             </el-col>
613
             <el-col :span="24">
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
                 <el-checkbox-group v-model="form.predialysis_condition">
792
                 <el-checkbox-group v-model="form.predialysis_condition">
616
                   <el-checkbox
793
                   <el-checkbox
617
                     v-for="item in predialysisConditionOptions"
794
                     v-for="item in predialysisConditionOptions"
618
                     :label="item.label"
795
                     :label="item.label"
619
                     :key="item.value"
796
                     :key="item.value"
620
                     :value="item.label"
797
                     :value="item.label"
621
-                  >{{item.label}}</el-checkbox>
798
+                    >{{ item.label }}</el-checkbox
799
+                  >
622
                 </el-checkbox-group>
800
                 </el-checkbox-group>
623
               </el-form-item>
801
               </el-form-item>
624
             </el-col>
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
               </el-form-item>
811
               </el-form-item>
629
             </el-col>
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
                 <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
818
                 <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
633
               </el-form-item>
819
               </el-form-item>
634
             </el-col>
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
                 <el-date-picker
826
                 <el-date-picker
638
                   v-model="form.hospital_first_dialysis_date"
827
                   v-model="form.hospital_first_dialysis_date"
639
                   type="date"
828
                   type="date"
645
           </div>
834
           </div>
646
           <el-col :span="24">
835
           <el-col :span="24">
647
             <el-form-item>
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
                 <i class="el-icon--right" :class="treat_fold_icon"></i>
842
                 <i class="el-icon--right" :class="treat_fold_icon"></i>
651
               </el-button>
843
               </el-button>
652
             </el-form-item>
844
             </el-form-item>
654
 
846
 
655
           <el-col :span="24">
847
           <el-col :span="24">
656
             <el-form-item label="登记人员 : ">
848
             <el-form-item label="登记人员 : ">
657
-              <span>{{adminusername}}</span>
849
+              <span>{{ adminusername }}</span>
658
             </el-form-item>
850
             </el-form-item>
659
           </el-col>
851
           </el-col>
660
 
852
 
661
           <el-col :span="24" align="right" class="newCol">
853
           <el-col :span="24" align="right" class="newCol">
662
             <el-form-item>
854
             <el-form-item>
663
-              <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
664
               <el-button
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
                 @click="onSubmit('form')"
867
                 @click="onSubmit('form')"
667
                 size="small"
868
                 size="small"
668
                 type="primary"
869
                 type="primary"
669
                 icon="el-icon-setting"
870
                 icon="el-icon-setting"
670
-              >保存</el-button>
871
+                >保存</el-button
872
+              >
671
               <el-button
873
               <el-button
672
-                v-if="isEdit==false"
874
+                v-if="isEdit == false"
673
                 @click="onReSubmit('form')"
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
                 icon="el-icon-document-add"
881
                 icon="el-icon-document-add"
676
                 size="small"
882
                 size="small"
677
                 type="success"
883
                 type="success"
678
-              >保存并继续新增</el-button>
884
+                >保存并继续新增</el-button
885
+              >
679
             </el-form-item>
886
             </el-form-item>
680
           </el-col>
887
           </el-col>
681
         </el-row>
888
         </el-row>
755
   dialysis_age: "",
962
   dialysis_age: "",
756
   expense_kind: "",
963
   expense_kind: "",
757
   contact_name: "",
964
   contact_name: "",
758
-  user_sys_before_count:"",
965
+  user_sys_before_count: "",
759
 
966
 
760
   formItem: [
967
   formItem: [
761
     {
968
     {
973
       dialogVisible: false,
1180
       dialogVisible: false,
974
       // typeOptions: null,
1181
       // typeOptions: null,
975
       // styleOptions: null,
1182
       // styleOptions: null,
976
-      sourceOptions: [
977
-        { value: 1, label: "门诊" },
978
-        { value: 2, label: "住院" }
979
-      ],
1183
+      sourceOptions: [{ value: 1, label: "门诊" }, { value: 2, label: "住院" }],
980
       lapsetoOptions: [
1184
       lapsetoOptions: [
981
         { value: 1, label: "留治" },
1185
         { value: 1, label: "留治" },
982
         { value: 2, label: "转出" }
1186
         { value: 2, label: "转出" }
983
       ],
1187
       ],
984
 
1188
 
985
       // partitionOptions: null,
1189
       // partitionOptions: null,
986
-      sexOptions: [
987
-        { value: 1, label: "男" },
988
-        { value: 2, label: "女" }
989
-      ],
1190
+      sexOptions: [{ value: 1, label: "男" }, { value: 2, label: "女" }],
990
       isHospitalFirstDialysisOptions: [
1191
       isHospitalFirstDialysisOptions: [
991
         { value: 1, label: "是" },
1192
         { value: 1, label: "是" },
992
         { value: 2, label: "否" }
1193
         { value: 2, label: "否" }
1183
           this.formSubmit = false;
1384
           this.formSubmit = false;
1184
           if (this.isEdit) {
1385
           if (this.isEdit) {
1185
             this.form.age = parseInt(this.form.age);
1386
             this.form.age = parseInt(this.form.age);
1387
+            this.form.user_sys_before_count = this.form.user_sys_before_count.toString();
1388
+
1186
             editPatient(this.patientID, this.form)
1389
             editPatient(this.patientID, this.form)
1187
               .then(response => {
1390
               .then(response => {
1188
                 if (response.data.state == 0) {
1391
                 if (response.data.state == 0) {
1397
             this.form.unit_address = patietInfo.unit_address;
1600
             this.form.unit_address = patietInfo.unit_address;
1398
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1601
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1399
 
1602
 
1400
-
1401
             if (patietInfo.profession > 0) {
1603
             if (patietInfo.profession > 0) {
1402
               this.form.profession = patietInfo.profession;
1604
               this.form.profession = patietInfo.profession;
1403
             }
1605
             }
1604
 .el-select-dropdown {
1806
 .el-select-dropdown {
1605
   z-index: 998 !important;
1807
   z-index: 998 !important;
1606
 }
1808
 }
1607
-.newCol{
1809
+.newCol {
1608
   position: fixed;
1810
   position: fixed;
1609
   bottom: 0;
1811
   bottom: 0;
1610
   right: 50px;
1812
   right: 50px;
1611
 }
1813
 }
1612
 </style>
1814
 </style>
1613
-

+ 1 - 0
src/xt_pages/user/doctorAdvice.vue 查看文件

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