Browse Source

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

See999 5 years ago
parent
commit
e0c3a670c7

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

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://api.xt.test.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  //BASE_API:'"http://localhost:9529"',
9
+  // BASE_API:  '"http://api.xt.test.sgjyun.com"',// //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
+  BASE_API:'"http://localhost:9531"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 127 - 28
src/api/advice.js View File

64
 
64
 
65
   })
65
   })
66
 }
66
 }
67
-export function CheckGroupAdvice(groupno,mode) {
68
-  var params = {
69
-    groupno: groupno,
70
-    mode: mode,
71
-  }
72
-  return request({
73
-    url: '/api/patients/advice/checkgroup',
74
-    method: 'Post',
75
-    params: params,
76
-    headers:{"Permission":2},
77
 
67
 
78
-  })
79
-}
80
 
68
 
81
 export function getDoctorAdviceList(params) {
69
 export function getDoctorAdviceList(params) {
82
   return request({
70
   return request({
86
   })
74
   })
87
 }
75
 }
88
 
76
 
89
-export function StopDoctorAdvice(id, reason) {
90
-  return request({
91
-    url: '/api/patients/advice/stop?id=' + id,
92
-    method: 'Post',
93
-    data: reason
94
-  })
95
-}
77
+// export function StopDoctorAdvice(id, reason,mode) {
78
+//   return request({
79
+//     url: '/api/patients/advice/stop?id=' + id+"&mode="+mode,
80
+//     method: 'Post',
81
+//     data: reason,
82
+//     headers:{"Permission":3},
83
+//
84
+//   })
85
+// }
96
 
86
 
97
-export function StopGroupAdvice(groupno, reason) {
87
+export function StopGroupAdvice(groupno, reason,mode) {
98
   return request({
88
   return request({
99
-    url: '/api/patients/advice/stopgroup?groupno=' + groupno,
89
+    url: '/api/patients/advice/stopgroup?groupno=' + groupno+"&mode="+mode,
100
     method: 'Post',
90
     method: 'Post',
101
-    data: reason
102
-  })
103
-}
91
+    data: reason,
92
+    headers:{"Permission":3},
104
 
93
 
105
-export function ExecGroupAdvice(groupno, time) {
106
-  return request({
107
-    url: '/api/patients/advice/execgroup?groupno=' + groupno + '&execution_time=' + time,
108
-    method: 'Post'
109
   })
94
   })
110
 }
95
 }
111
 
96
 
97
+
98
+
112
 export function DeleteDoctorAdvice(id,mode) {
99
 export function DeleteDoctorAdvice(id,mode) {
113
   return request({
100
   return request({
114
     url: '/api/patients/advice/delete?id=' + id+"&mode="+mode,
101
     url: '/api/patients/advice/delete?id=' + id+"&mode="+mode,
317
     data: data
304
     data: data
318
   })
305
   })
319
 }
306
 }
307
+
308
+
309
+
310
+
311
+
312
+export function EditNewDoctorAdvice(patient, id, advice,mode) {
313
+  return request({
314
+    url: '/api/patients/advice/edit?id=' + id + '&patient=' + patient+"&mode="+mode,
315
+    method: 'Put',
316
+    data: advice,
317
+    headers:{"Permission":2},
318
+
319
+  })
320
+}
321
+
322
+
323
+
324
+
325
+
326
+export function CreateNewDoctorAdvice(id, advice,mode) {
327
+  return request({
328
+    url: '/api/patients/advice/create?id=' + id+"&mode="+mode,
329
+    method: 'post',
330
+    data: advice,
331
+    headers:{"Permission":2},
332
+
333
+  })
334
+}
335
+
336
+
337
+
338
+export function CreateNewGroupAdvice(id, groupno, advices,mode) {
339
+  if (advices.remind > 0) {
340
+    return request({
341
+      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno+"&mode="+mode,
342
+      method: 'post',
343
+      data: advices,
344
+      headers:{"Permission":3},
345
+
346
+    })
347
+  } else {
348
+    return request({
349
+      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno+"&mode="+mode,
350
+      method: 'post',
351
+      data: advices,
352
+      headers:{"Permission":3},
353
+
354
+    })
355
+  }
356
+}
357
+
358
+
359
+
360
+export function DeleteNewDoctorAdvice(id,mode) {
361
+  return request({
362
+    url: '/api/patients/advice/delete?id=' + id+"&mode="+mode,
363
+    method: 'Delete',
364
+    headers:{"Permission":2},
365
+
366
+  })
367
+}
368
+
369
+
370
+
371
+export function DeleteNewGroupAdvice(groupno,mode) {
372
+  return request({
373
+    url: '/api/patients/advice/deletegroup?groupno=' + groupno+"&mode="+mode,
374
+    method: 'delete',
375
+    headers:{"Permission":3},
376
+
377
+  })
378
+}
379
+
380
+
381
+
382
+export function StopDoctorAdvice(id, reason,mode) {
383
+  return request({
384
+    url: '/api/patients/advice/stop?id=' + id+"&mode="+mode,
385
+    method: 'Post',
386
+    data: reason,
387
+    headers:{"Permission":2},
388
+
389
+  })
390
+}
391
+
392
+
393
+
394
+
395
+export function ExecGroupAdvice(groupno, time,mode) {
396
+  return request({
397
+    url: '/api/patients/advice/execgroup?groupno=' + groupno + '&execution_time=' + time+"&mode="+mode,
398
+    method: 'Post',
399
+    headers:{"Permission":2},
400
+
401
+  })
402
+}
403
+
404
+
405
+export function CheckGroupAdvice(groupno,mode) {
406
+  var params = {
407
+    groupno: groupno,
408
+    mode: mode,
409
+  }
410
+  return request({
411
+    url: '/api/patients/advice/checkgroup',
412
+    method: 'Post',
413
+    params: params,
414
+    headers:{"Permission":2},
415
+
416
+  })
417
+}
418
+

+ 1 - 1
src/api/dialysis.js View File

158
     url: '/api/dialysis/soulution',
158
     url: '/api/dialysis/soulution',
159
     method: 'Post',
159
     method: 'Post',
160
     params: params,
160
     params: params,
161
-    headers:{"Permission":3},
161
+    headers:{"Permission":2},
162
 
162
 
163
   })
163
   })
164
 }
164
 }

+ 5 - 3
src/api/patient.js View File

62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63
     method: 'post',
63
     method: 'post',
64
     data: solution,
64
     data: solution,
65
-    headers:{"Permission":2},
65
+    headers:{"Permission":3},
66
 
66
 
67
 
67
 
68
   })
68
   })
73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
74
     method: 'put',
74
     method: 'put',
75
     data: solution,
75
     data: solution,
76
-    headers:{"Permission":2},
76
+    headers:{"Permission":3},
77
 
77
 
78
   })
78
   })
79
 }
79
 }
317
   return request({
317
   return request({
318
     url: '/api/patient/updatedryweightdata',
318
     url: '/api/patient/updatedryweightdata',
319
     method: 'Post',
319
     method: 'Post',
320
-    params: params
320
+    params: params,
321
+    headers:{"Permission":3},
322
+
321
   })
323
   })
322
 }
324
 }
323
 
325
 

+ 12 - 4
src/router/modules/data_dict.js View File

16
     component: () => import('@/xt_pages/data/index'),
16
     component: () => import('@/xt_pages/data/index'),
17
     name: 'dictionary',
17
     name: 'dictionary',
18
     meta: {
18
     meta: {
19
-      title: 'field_config'
19
+      title: 'field_config',
20
+      noCache: true,
21
+
20
     }
22
     }
21
   },
23
   },
22
   {
24
   {
24
     component: () => import('@/xt_pages/data/template'),
26
     component: () => import('@/xt_pages/data/template'),
25
     name: 'template',
27
     name: 'template',
26
     meta: {
28
     meta: {
27
-      title: 'template'
29
+      title: 'template',
30
+      noCache: true,
31
+
28
     }
32
     }
29
   },
33
   },
30
   {
34
   {
32
     component: () => import('@/xt_pages/data/druguseTemplate'),
36
     component: () => import('@/xt_pages/data/druguseTemplate'),
33
     name: 'druguse',
37
     name: 'druguse',
34
     meta: {
38
     meta: {
35
-      title: 'druguse'
39
+      title: 'druguse',
40
+      noCache: true,
41
+
36
     }
42
     }
37
   }, {
43
   }, {
38
       path: '/data/showconfig',
44
       path: '/data/showconfig',
39
       component: () => import('@/xt_pages/data/showConfig'),
45
       component: () => import('@/xt_pages/data/showConfig'),
40
       name: 'showconfig',
46
       name: 'showconfig',
41
       meta: {
47
       meta: {
42
-        title: 'showconfig'
48
+        title: 'showconfig',
49
+        noCache: true,
50
+
43
       }
51
       }
44
     }
52
     }
45
   ]
53
   ]

+ 12 - 4
src/router/modules/data_upload.js View File

16
       component: () => import('@/xt_pages/upload/fast_upload'),
16
       component: () => import('@/xt_pages/upload/fast_upload'),
17
       name: 'fast_upload',
17
       name: 'fast_upload',
18
       meta: {
18
       meta: {
19
-        title: 'fast_upload'
19
+        title: 'fast_upload',
20
+        noCache: true,
21
+
20
       }
22
       }
21
     },
23
     },
22
     {
24
     {
24
       component: () => import('@/xt_pages/upload/data_upload'),
26
       component: () => import('@/xt_pages/upload/data_upload'),
25
       name: 'data_upload',
27
       name: 'data_upload',
26
       meta: {
28
       meta: {
27
-        title: 'data_upload'
29
+        title: 'data_upload',
30
+        noCache: true,
31
+
28
       }
32
       }
29
     },
33
     },
30
     {
34
     {
32
       component: () => import('@/xt_pages/upload/export'),
36
       component: () => import('@/xt_pages/upload/export'),
33
       name: 'export',
37
       name: 'export',
34
       meta: {
38
       meta: {
35
-        title: 'export'
39
+        title: 'export',
40
+        noCache: true,
41
+
36
       }
42
       }
37
     }, {
43
     }, {
38
       path: '/upload/config',
44
       path: '/upload/config',
39
       component: () => import('@/xt_pages/upload/config'),
45
       component: () => import('@/xt_pages/upload/config'),
40
       name: 'upload_config',
46
       name: 'upload_config',
41
       meta: {
47
       meta: {
42
-        title: 'upload_config'
48
+        title: 'upload_config',
49
+        noCache: true,
50
+
43
       }
51
       }
44
     },
52
     },
45
   ]
53
   ]

+ 18 - 6
src/router/modules/device.js View File

18
       component: () => import('@/xt_pages/device/zone_main'),
18
       component: () => import('@/xt_pages/device/zone_main'),
19
       name: 'deviceZoneManage',
19
       name: 'deviceZoneManage',
20
       meta: {
20
       meta: {
21
-        title: 'deviceZoneManage'
21
+        title: 'deviceZoneManage',
22
+        noCache: true,
23
+
22
       }
24
       }
23
     },
25
     },
24
     {
26
     {
26
       component: () => import('@/xt_pages/device/group_main'),
28
       component: () => import('@/xt_pages/device/group_main'),
27
       name: 'deviceGroupManage',
29
       name: 'deviceGroupManage',
28
       meta: {
30
       meta: {
29
-        title: 'deviceGroupManage'
31
+        title: 'deviceGroupManage',
32
+        noCache: true,
33
+
30
       }
34
       }
31
     },
35
     },
32
     {
36
     {
34
       component: () => import('@/xt_pages/device/number_main'),
38
       component: () => import('@/xt_pages/device/number_main'),
35
       name: 'deviceNumberManage',
39
       name: 'deviceNumberManage',
36
       meta: {
40
       meta: {
37
-        title: 'deviceNumberManage'
41
+        title: 'deviceNumberManage',
42
+        noCache: true,
43
+
38
       }
44
       }
39
     },
45
     },
40
     {
46
     {
42
       component: () => import('@/xt_pages/mode/index'),
48
       component: () => import('@/xt_pages/mode/index'),
43
       name: 'modemanagement',
49
       name: 'modemanagement',
44
       meta: {
50
       meta: {
45
-        title: 'modemanagement'
51
+        title: 'modemanagement',
52
+        noCache: true,
53
+
46
       }
54
       }
47
     },
55
     },
48
     {
56
     {
51
       // component: () => import("@/xt_pages/device/main"),
59
       // component: () => import("@/xt_pages/device/main"),
52
       name: 'dialysisMachineManage',
60
       name: 'dialysisMachineManage',
53
       meta: {
61
       meta: {
54
-        title: 'dialysisMachineManage'
62
+        title: 'dialysisMachineManage',
63
+        noCache: true,
64
+
55
       }
65
       }
56
     },
66
     },
57
     {
67
     {
61
       is_menu: false,
71
       is_menu: false,
62
       hidden: true,
72
       hidden: true,
63
       meta: {
73
       meta: {
64
-        title: '设备管理详情页'
74
+        title: '设备管理详情页',
75
+        noCache: true,
76
+
65
       }
77
       }
66
     }
78
     }
67
 
79
 

+ 12 - 4
src/router/modules/dialysis.js View File

15
       component: () => import('@/xt_pages/dialysis/schedualPatient'),
15
       component: () => import('@/xt_pages/dialysis/schedualPatient'),
16
       name: '透析记录',
16
       name: '透析记录',
17
       meta: {
17
       meta: {
18
-        title: '透析记录'
18
+        title: '透析记录',
19
+        noCache: true,
20
+
19
       }
21
       }
20
     },
22
     },
21
     {
23
     {
23
       component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
25
       component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
24
       name: 'watch',
26
       name: 'watch',
25
       meta: {
27
       meta: {
26
-        title: 'watch'
28
+        title: 'watch',
29
+        noCache: true,
30
+
27
       }
31
       }
28
     },
32
     },
29
     {
33
     {
31
       component: () => import('@/xt_pages/dialysis/bulletinBoard'),
35
       component: () => import('@/xt_pages/dialysis/bulletinBoard'),
32
       name: '数据看板',
36
       name: '数据看板',
33
       meta: {
37
       meta: {
34
-        title: '数据看板'
38
+        title: '数据看板',
39
+        noCache: true,
40
+
35
       }
41
       }
36
     },
42
     },
37
     {
43
     {
68
         title: 'details'
74
         title: 'details'
69
       },
75
       },
70
       hidden: true,
76
       hidden: true,
71
-      is_menu: false
77
+      is_menu: false,
78
+      noCache: true
79
+
72
     },
80
     },
73
     {
81
     {
74
       path: '/dialysis/print/batch',
82
       path: '/dialysis/print/batch',

+ 3 - 1
src/router/modules/integration.js View File

16
       component: () => import('@/xt_pages/integration/his_config'),
16
       component: () => import('@/xt_pages/integration/his_config'),
17
       name: 'his_config',
17
       name: 'his_config',
18
       meta: {
18
       meta: {
19
-        title: 'his_config'
19
+        title: 'his_config',
20
+        noCache: true,
21
+
20
       }
22
       }
21
     },
23
     },
22
 
24
 

+ 51 - 17
src/router/modules/qcd.js View File

15
     component: () => import('@/xt_pages/statistics/index'),
15
     component: () => import('@/xt_pages/statistics/index'),
16
     name: 'statistics',
16
     name: 'statistics',
17
     meta: {
17
     meta: {
18
-      title: 'statistics'
18
+      title: 'statistics',
19
+      noCache: true,
20
+
19
     }
21
     }
20
   },
22
   },
21
   {
23
   {
23
     component: () => import('@/xt_pages/qcd/dialysisTotal'),
25
     component: () => import('@/xt_pages/qcd/dialysisTotal'),
24
     name: 'dialysistotal',
26
     name: 'dialysistotal',
25
     meta: {
27
     meta: {
26
-      title: '透析总量'
28
+      title: '透析总量',
29
+      noCache: true,
30
+
27
     }
31
     }
28
   },
32
   },
29
   {
33
   {
31
     component: () => import('@/xt_pages/qcd/processIndicators'),
35
     component: () => import('@/xt_pages/qcd/processIndicators'),
32
     name: 'processIndicators',
36
     name: 'processIndicators',
33
     meta: {
37
     meta: {
34
-      title: '过程指标'
38
+      title: '过程指标',
39
+      noCache: true,
40
+
35
     }
41
     }
36
   },
42
   },
37
   {
43
   {
39
     component: () => import('@/xt_pages/qcd/outcomeIndicators/control'),
45
     component: () => import('@/xt_pages/qcd/outcomeIndicators/control'),
40
     name: 'outcomeIndicatorsControl',
46
     name: 'outcomeIndicatorsControl',
41
     meta: {
47
     meta: {
42
-      title: '结果指标'
48
+      title: '结果指标',
49
+      noCache: true,
50
+
43
     }
51
     }
44
   },
52
   },
45
   {
53
   {
49
     component: () => import('@/xt_pages/qcd/outcomeIndicators/query'),
57
     component: () => import('@/xt_pages/qcd/outcomeIndicators/query'),
50
     name: 'outcomeIndicatorsQuery',
58
     name: 'outcomeIndicatorsQuery',
51
     meta: {
59
     meta: {
52
-      title: '指标查询'
60
+      title: '指标查询',
61
+      noCache: true,
62
+
53
     }
63
     }
54
   },
64
   },
55
   {
65
   {
57
     component: () => import('@/xt_pages/qcd/patientAnalysis/total'),
67
     component: () => import('@/xt_pages/qcd/patientAnalysis/total'),
58
     name: 'patientAnalysisTotal',
68
     name: 'patientAnalysisTotal',
59
     meta: {
69
     meta: {
60
-      title: '患者分析'
70
+      title: '患者分析',
71
+      noCache: true,
72
+
61
     }
73
     }
62
   },
74
   },
63
   {
75
   {
67
     component: () => import('@/xt_pages/qcd/patientAnalysis/weight'),
79
     component: () => import('@/xt_pages/qcd/patientAnalysis/weight'),
68
     name: 'patientAnalysisWeight',
80
     name: 'patientAnalysisWeight',
69
     meta: {
81
     meta: {
70
-      title: '体重分析'
82
+      title: '体重分析',
83
+      noCache: true,
84
+
71
     }
85
     }
72
   },
86
   },
73
   {
87
   {
77
     component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'),
91
     component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'),
78
     name: 'patientAnalysisBloodPressure',
92
     name: 'patientAnalysisBloodPressure',
79
     meta: {
93
     meta: {
80
-      title: '血压分析'
94
+      title: '血压分析',
95
+      noCache: true,
96
+
81
     }
97
     }
82
   },
98
   },
83
   {
99
   {
87
     component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'),
103
     component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'),
88
     name: 'patientAnalysisDialysisAge',
104
     name: 'patientAnalysisDialysisAge',
89
     meta: {
105
     meta: {
90
-      title: '透析龄分析'
106
+      title: '透析龄分析',
107
+      noCache: true,
108
+
91
     }
109
     }
92
   },
110
   },
93
   {
111
   {
97
     component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'),
115
     component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'),
98
     name: 'patientAnalysisLapseto',
116
     name: 'patientAnalysisLapseto',
99
     meta: {
117
     meta: {
100
-      title: '转归分析'
118
+      title: '转归分析',
119
+      noCache: true,
120
+
101
     }
121
     }
102
   },
122
   },
103
   {
123
   {
107
     component: () => import('@/xt_pages/qcd/patientAnalysis/complication'),
127
     component: () => import('@/xt_pages/qcd/patientAnalysis/complication'),
108
     name: 'patientAnalysisComplication',
128
     name: 'patientAnalysisComplication',
109
     meta: {
129
     meta: {
110
-      title: '并发症分析'
130
+      title: '并发症分析',
131
+      noCache: true,
132
+
111
     }
133
     }
112
   },
134
   },
113
   {
135
   {
117
     component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'),
139
     component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'),
118
     name: 'patientAnalysisInfectiousDiseases',
140
     name: 'patientAnalysisInfectiousDiseases',
119
     meta: {
141
     meta: {
120
-      title: '传染病分析'
142
+      title: '传染病分析',
143
+      noCache: true,
144
+
121
     }
145
     }
122
   },
146
   },
123
   {
147
   {
127
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'),
151
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'),
128
     name: 'paPersonLapseto',
152
     name: 'paPersonLapseto',
129
     meta: {
153
     meta: {
130
-      title: '转归'
154
+      title: '转归',
155
+      noCache: true,
156
+
131
     }
157
     }
132
   },
158
   },
133
   {
159
   {
137
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'),
163
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'),
138
     name: 'paPersonWeight',
164
     name: 'paPersonWeight',
139
     meta: {
165
     meta: {
140
-      title: '体重'
166
+      title: '体重',
167
+      noCache: true,
168
+
141
     }
169
     }
142
   },
170
   },
143
   {
171
   {
147
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'),
175
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'),
148
     name: 'paPersonBloodPressure',
176
     name: 'paPersonBloodPressure',
149
     meta: {
177
     meta: {
150
-      title: '血压'
178
+      title: '血压',
179
+      noCache: true,
180
+
151
     }
181
     }
152
   },
182
   },
153
   {
183
   {
157
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'),
187
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'),
158
     name: 'paPersonIndicators',
188
     name: 'paPersonIndicators',
159
     meta: {
189
     meta: {
160
-      title: '指标控制'
190
+      title: '指标控制',
191
+      noCache: true,
192
+
161
     }
193
     }
162
   },
194
   },
163
   {
195
   {
167
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'),
199
     component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'),
168
     name: 'paPersonOralMedicine',
200
     name: 'paPersonOralMedicine',
169
     meta: {
201
     meta: {
170
-      title: '口服药'
202
+      title: '口服药',
203
+      noCache: true,
204
+
171
     }
205
     }
172
   }
206
   }
173
   ]
207
   ]

+ 6 - 2
src/router/modules/service.js View File

50
     hidden: true,
50
     hidden: true,
51
     name: 'servicePay',
51
     name: 'servicePay',
52
     meta: {
52
     meta: {
53
-      title: 'servicePay'
53
+      title: 'servicePay',
54
+      noCache: true,
55
+
54
     }
56
     }
55
   },
57
   },
56
   {
58
   {
59
     hidden: true,
61
     hidden: true,
60
     name: 'payType',
62
     name: 'payType',
61
     meta: {
63
     meta: {
62
-      title: 'payType'
64
+      title: 'payType',
65
+      noCache: true,
66
+
63
     }
67
     }
64
   },
68
   },
65
   {
69
   {

+ 6 - 2
src/router/modules/stock.js View File

20
       parentNum: 1,
20
       parentNum: 1,
21
       meta: {
21
       meta: {
22
         isChild: true,
22
         isChild: true,
23
-        title: "warehouseReceipt"
23
+        title: "warehouseReceipt",
24
+        noCache: true,
25
+
24
       }
26
       }
25
     },
27
     },
26
     {
28
     {
31
       parentNum: 2,
33
       parentNum: 2,
32
       meta: {
34
       meta: {
33
         isChild: true,
35
         isChild: true,
34
-        title: "warehouseReceiptOther"
36
+        title: "warehouseReceiptOther",
37
+        noCache: true,
38
+
35
       }
39
       }
36
     },
40
     },
37
     {
41
     {

+ 12 - 4
src/router/modules/systems.js View File

15
     component: () => import('@/xt_pages/role/admin'),
15
     component: () => import('@/xt_pages/role/admin'),
16
     name: 'adminManage',
16
     name: 'adminManage',
17
     meta: {
17
     meta: {
18
-      title: 'adminManage'
18
+      title: 'adminManage',
19
+      noCache: true,
20
+
19
     }
21
     }
20
   },
22
   },
21
   {
23
   {
23
     component: () => import('@/xt_pages/role/role'),
25
     component: () => import('@/xt_pages/role/role'),
24
     name: 'roleManage',
26
     name: 'roleManage',
25
     meta: {
27
     meta: {
26
-      title: 'roleManage'
28
+      title: 'roleManage',
29
+      noCache: true,
30
+
27
     }
31
     }
28
   },
32
   },
29
   {
33
   {
72
     component: () => import('@/xt_pages/data/index'),
76
     component: () => import('@/xt_pages/data/index'),
73
     name: 'dictionary',
77
     name: 'dictionary',
74
     meta: {
78
     meta: {
75
-      title: 'data_dictionary'
79
+      title: 'data_dictionary',
80
+      noCache: true,
81
+
76
     }
82
     }
77
   },
83
   },
78
   {
84
   {
80
     component: () => import('@/xt_pages/data/template'),
86
     component: () => import('@/xt_pages/data/template'),
81
     name: 'template',
87
     name: 'template',
82
     meta: {
88
     meta: {
83
-      title: 'template'
89
+      title: 'template',
90
+      noCache: true,
91
+
84
     }
92
     }
85
   },{
93
   },{
86
       path: '/data/prescription',
94
       path: '/data/prescription',

+ 2 - 6
src/views/layout/components/Navbar.vue View File

207
               this.$router.addRoutes(this.$store.getters.xt_permission.addRouters) // 动态添加可访问路由表
207
               this.$router.addRoutes(this.$store.getters.xt_permission.addRouters) // 动态添加可访问路由表
208
               //        next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
208
               //        next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
209
               // this.$router.replace({ path: '/' })
209
               // this.$router.replace({ path: '/' })
210
-              // window.location.reload()
210
+              window.location.reload()
211
               // this.$router.go(0)
211
               // this.$router.go(0)
212
-              this.reload()
212
+              // this.reload()
213
             })
213
             })
214
           })
214
           })
215
 
215
 
272
     }
272
     }
273
   },
273
   },
274
   created() {
274
   created() {
275
-    this.org_id = 12
276
-
277
     getOrgs().then(response => {
275
     getOrgs().then(response => {
278
       if (response.data.state === 1) {
276
       if (response.data.state === 1) {
279
           this.orgs = response.data.data.orgs;
277
           this.orgs = response.data.data.orgs;
285
       }
283
       }
286
     });
284
     });
287
 
285
 
288
-
289
-
290
   }
286
   }
291
 };
287
 };
292
 </script>
288
 </script>

+ 6 - 14
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

114
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_shouji != '0'?"mg":""}}</span>
114
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_shouji != '0'?"mg":""}}</span>
115
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_shouji != '0'?"mg":""}}</span>
115
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_shouji != '0'?"mg":""}}</span>
116
         </li>
116
         </li>
117
-       
117
+
118
 
118
 
119
         <li v-if="isShow('钙')">
119
         <li v-if="isShow('钙')">
120
           <label>钙: </label>
120
           <label>钙: </label>
127
           <span class="content">{{body_fluid}}</span>
127
           <span class="content">{{body_fluid}}</span>
128
           <span class="unit"></span>
128
           <span class="unit"></span>
129
         </li>
129
         </li>
130
-        
131
-    
130
+
131
+
132
         <li v-if="isShow('透析前使用其他特殊药物')">
132
         <li v-if="isShow('透析前使用其他特殊药物')">
133
           <label>透析前使用其他特殊药物: </label>
133
           <label>透析前使用其他特殊药物: </label>
134
           <span class="content">{{special_medicine_other}}</span>
134
           <span class="content">{{special_medicine_other}}</span>
147
           <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
147
           <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
148
         </li>
148
         </li>
149
       </ul>
149
       </ul>
150
-      
150
+
151
       <ul>
151
       <ul>
152
-        
152
+
153
          <li v-if="isShow('钠')">
153
          <li v-if="isShow('钠')">
154
           <label>钠 : </label>
154
           <label>钠 : </label>
155
           <span class="content">{{sodium != '0'?sodium:""}}</span>
155
           <span class="content">{{sodium != '0'?sodium:""}}</span>
186
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_weichi != '0'?"ml/h":""}}</span>
186
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_weichi != '0'?"ml/h":""}}</span>
187
         </li>
187
         </li>
188
 
188
 
189
-       
189
+
190
        <li v-if="isShow('钙剂量')&&getValueStr('anticoagulant','anticoagulant') == 5">
190
        <li v-if="isShow('钙剂量')&&getValueStr('anticoagulant','anticoagulant') == 5">
191
           <label>钙剂量: </label>
191
           <label>钙剂量: </label>
192
           <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>
192
           <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>
193
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{'ml'}}</span>
193
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{'ml'}}</span>
194
         </li>
194
         </li>
195
 
195
 
196
-     
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
 
196
 
205
         <li v-if="isShow('实际超滤量')">
197
         <li v-if="isShow('实际超滤量')">
206
           <label>实际超滤量: </label>
198
           <label>实际超滤量: </label>

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

239
               ></el-input>
239
               ></el-input>
240
             </el-form-item>
240
             </el-form-item>
241
           </el-col>
241
           </el-col>
242
-          <el-col :span="8" v-if="isShow('血管通路部位')">
243
-            <el-form-item label="血管通路部位: ">
244
-              <el-select v-model="form.blood_access_part_id">
245
-                <el-option :key="0" label="请选择" :value="0"></el-option>
242
+<!--          <el-col :span="8" v-if="isShow('血管通路部位')">-->
243
+<!--            <el-form-item label="血管通路部位: ">-->
244
+<!--              <el-select v-model="form.blood_access_part_id">-->
245
+<!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
246
 
246
 
247
-                <el-option
248
-                  v-for="item in vascularAccessOptions"
249
-                  :label="item.name"
250
-                  :value="item.id"
251
-                  :key="item.id"
252
-                ></el-option>
253
-              </el-select>
254
-            </el-form-item>
255
-          </el-col>
256
-          <el-col :span="8" v-if="isShow('血管通路')">
257
-            <el-form-item label="血管通路: ">
258
-              <el-select v-model="form.blood_access_part_opera_id">
259
-                <el-option :key="0" label="请选择" :value="0"></el-option>
247
+<!--                <el-option-->
248
+<!--                  v-for="item in vascularAccessOptions"-->
249
+<!--                  :label="item.name"-->
250
+<!--                  :value="item.id"-->
251
+<!--                  :key="item.id"-->
252
+<!--                ></el-option>-->
253
+<!--              </el-select>-->
254
+<!--            </el-form-item>-->
255
+<!--          </el-col>-->
256
+<!--          <el-col :span="8" v-if="isShow('血管通路')">-->
257
+<!--            <el-form-item label="血管通路: ">-->
258
+<!--              <el-select v-model="form.blood_access_part_opera_id">-->
259
+<!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
260
 
260
 
261
-                <el-option
262
-                  v-for="item in vascularAccessDescOptions"
263
-                  :label="item.name"
264
-                  :value="item.id"
265
-                  :key="item.id"
266
-                ></el-option>
267
-              </el-select>
268
-            </el-form-item>
269
-          </el-col>
261
+<!--                <el-option-->
262
+<!--                  v-for="item in vascularAccessDescOptions"-->
263
+<!--                  :label="item.name"-->
264
+<!--                  :value="item.id"-->
265
+<!--                  :key="item.id"-->
266
+<!--                ></el-option>-->
267
+<!--              </el-select>-->
268
+<!--            </el-form-item>-->
269
+<!--          </el-col>-->
270
           <!-- </el-row>
270
           <!-- </el-row>
271
 
271
 
272
         <el-row :gutter="20"> -->
272
         <el-row :gutter="20"> -->
349
 
349
 
350
 
350
 
351
                   <el-row :gutter="20"> -->
351
                   <el-row :gutter="20"> -->
352
-          <el-col :span="8" v-if="isShow('内瘘震颤和血管杂音')">
353
-            <el-form-item label="内瘘震颤和血管杂音: ">
354
-              <el-select v-model="form.tremor_noise">
355
-                <el-option :key="0" label="请选择" :value="0"></el-option>
352
+<!--          <el-col :span="8" v-if="isShow('内瘘震颤和血管杂音')">-->
353
+<!--            <el-form-item label="内瘘震颤和血管杂音: ">-->
354
+<!--              <el-select v-model="form.tremor_noise">-->
355
+<!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
356
 
356
 
357
-                <el-option
358
-                  v-for="item in this.$store.getters.tremor_noise"
359
-                  :label="item.name"
360
-                  :value="item.id"
361
-                  :key="item.id"
362
-                ></el-option>
363
-              </el-select>
364
-            </el-form-item>
365
-          </el-col>
366
-          <el-col :span="8" v-if="isShow('失衡综合症')">
367
-            <el-form-item label="失衡综合症: ">
368
-              <el-select v-model="form.disequilibrium_syndrome">
369
-                <el-option :key="0" label="请选择" :value="0"></el-option>
357
+<!--                <el-option-->
358
+<!--                  v-for="item in this.$store.getters.tremor_noise"-->
359
+<!--                  :label="item.name"-->
360
+<!--                  :value="item.id"-->
361
+<!--                  :key="item.id"-->
362
+<!--                ></el-option>-->
363
+<!--              </el-select>-->
364
+<!--            </el-form-item>-->
365
+<!--          </el-col>-->
366
+<!--          <el-col :span="8" v-if="isShow('失衡综合症')">-->
367
+<!--            <el-form-item label="失衡综合症: ">-->
368
+<!--              <el-select v-model="form.disequilibrium_syndrome">-->
369
+<!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
370
 
370
 
371
-                <el-option
372
-                  v-for="item in this.$store.getters.disequilibrium_syndrome"
373
-                  :label="item.name"
374
-                  :value="item.id"
375
-                  :key="item.id"
376
-                ></el-option>
377
-              </el-select>
378
-            </el-form-item>
379
-          </el-col>
380
-          <el-col :span="8" v-if="isShow('失衡综合症症状')">
381
-            <el-form-item label="失衡综合症症状: ">
382
-              <el-input
383
-                v-model="form.disequilibrium_syndrome_option"
384
-                readonly
385
-                @focus="showDialog('8')"
386
-              ></el-input>
387
-            </el-form-item>
388
-          </el-col>
371
+<!--                <el-option-->
372
+<!--                  v-for="item in this.$store.getters.disequilibrium_syndrome"-->
373
+<!--                  :label="item.name"-->
374
+<!--                  :value="item.id"-->
375
+<!--                  :key="item.id"-->
376
+<!--                ></el-option>-->
377
+<!--              </el-select>-->
378
+<!--            </el-form-item>-->
379
+<!--          </el-col>-->
380
+<!--          <el-col :span="8" v-if="isShow('失衡综合症症状')">-->
381
+<!--            <el-form-item label="失衡综合症症状: ">-->
382
+<!--              <el-input-->
383
+<!--                v-model="form.disequilibrium_syndrome_option"-->
384
+<!--                readonly-->
385
+<!--                @focus="showDialog('8')"-->
386
+<!--              ></el-input>-->
387
+<!--            </el-form-item>-->
388
+<!--          </el-col>-->
389
 
389
 
390
           <!-- </el-row>
390
           <!-- </el-row>
391
 
391
 

+ 11 - 5
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

12
                    >
12
                    >
13
           新增医嘱
13
           新增医嘱
14
         </el-button>
14
         </el-button>
15
-        <el-button round @click="openGroupFrom" :loading="deleLoading"
16
-                   disabled>新增医嘱
17
-        </el-button>
18
-
19
 
15
 
20
         <el-button v-if="currentRow != null" round
16
         <el-button v-if="currentRow != null" round
21
                    @click="execAdvice" :loading="deleLoading">执行医嘱
17
                    @click="execAdvice" :loading="deleLoading">执行医嘱
1028
           cancelButtonText: '取消',
1024
           cancelButtonText: '取消',
1029
           type: 'warning'
1025
           type: 'warning'
1030
         }).then(() => {
1026
         }).then(() => {
1027
+          console.log(this.currentRow)
1031
           let mode ="4"
1028
           let mode ="4"
1032
           if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id){
1029
           if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id){
1033
             mode = "5"
1030
             mode = "5"
1065
           type: 'warning'
1062
           type: 'warning'
1066
         }).then(() => {
1063
         }).then(() => {
1067
           this.deleLoading = true
1064
           this.deleLoading = true
1068
-          let mode = "4"
1065
+
1066
+
1067
+          let mode ="4"
1068
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1069
+            mode = "5"
1070
+          }
1071
+
1069
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1072
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1070
             this.deleLoading = false
1073
             this.deleLoading = false
1071
             if (response.data.state == 0) {
1074
             if (response.data.state == 0) {
1100
         }).then(() => {
1103
         }).then(() => {
1101
           this.deleLoading = true
1104
           this.deleLoading = true
1102
           let mode ="4"
1105
           let mode ="4"
1106
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1107
+            mode = "5"
1108
+          }
1103
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1109
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1104
             this.deleLoading = false
1110
             this.deleLoading = false
1105
             if (response.data.state == 0) {
1111
             if (response.data.state == 0) {

+ 21 - 19
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

651
                   }
651
                   }
652
                 }
652
                 }
653
               }
653
               }
654
-            }
655
-          })
656
-
657
-          if (isChild) {
658
-            for (const index in this.groupForm.adviceNames) {
659
-              if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.parent_row) {
660
-                for (const j in this.groupForm.adviceNames[index].children) {
661
-                  if (this.groupForm.adviceNames[index].children[j].row_key == this.groupSelectRow.row_key) {
662
-                    this.groupForm.adviceNames[index].children.splice(j, 1)
663
-                    this.$set(this.groupForm.adviceNames, index, this.groupForm.adviceNames[index])
654
+              if (isChild) {
655
+                for (const index in this.groupForm.adviceNames) {
656
+                  if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.parent_row) {
657
+                    for (const j in this.groupForm.adviceNames[index].children) {
658
+                      if (this.groupForm.adviceNames[index].children[j].row_key == this.groupSelectRow.row_key) {
659
+                        this.groupForm.adviceNames[index].children.splice(j, 1)
660
+                        this.$set(this.groupForm.adviceNames, index, this.groupForm.adviceNames[index])
661
+                        this.toggleRowExpansion()
662
+                        break
663
+                      }
664
+                    }
665
+                  }
666
+                }
667
+              } else {
668
+                for (const index in this.groupForm.adviceNames) {
669
+                  if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.row_key) {
670
+                    this.groupForm.adviceNames.splice(index, 1)
664
                     this.toggleRowExpansion()
671
                     this.toggleRowExpansion()
665
                     break
672
                     break
666
                   }
673
                   }
667
                 }
674
                 }
668
               }
675
               }
669
             }
676
             }
670
-          } else {
671
-            for (const index in this.groupForm.adviceNames) {
672
-              if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.row_key) {
673
-                this.groupForm.adviceNames.splice(index, 1)
674
-                this.toggleRowExpansion()
675
-                break
676
-              }
677
-            }
678
-          }
677
+          })
678
+
679
+
679
         }).catch(() => {
680
         }).catch(() => {
680
         })
681
         })
681
       },
682
       },
1706
           return false
1707
           return false
1707
         }
1708
         }
1708
 
1709
 
1710
+        console.log(groups[0].advice_doctor)
1709
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1711
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1710
         this.groupForm = {
1712
         this.groupForm = {
1711
           advice_type: groups[0].advice_type,
1713
           advice_type: groups[0].advice_type,

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

180
           </el-col>
180
           </el-col>
181
 
181
 
182
           <el-col :span="8">
182
           <el-col :span="8">
183
-            <el-form-item label="前次透析后:" v-if="isShow('前次透析后')">
183
+            <el-form-item label="前次透析后症状:" v-if="isShow('前次透析后症状')">
184
               <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
184
               <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
185
             </el-form-item>
185
             </el-form-item>
186
           </el-col>
186
           </el-col>

+ 1 - 8
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

43
           <el-button v-if="dialysis_order.id == 0" @click="submit" type="primary" :loading="loading">执行上机</el-button>
43
           <el-button v-if="dialysis_order.id == 0" @click="submit" type="primary" :loading="loading">执行上机</el-button>
44
           <el-button v-else type="info" :disabled="true">已上机</el-button>
44
           <el-button v-else type="info" :disabled="true">已上机</el-button>
45
           <el-button
45
           <el-button
46
-            v-if="dialysis_order.id > 0 && (isPremission || this.$store.getters.xt_user.user.id == this.creator)"
46
+            v-if="dialysis_order.id > 0"
47
             type="primary" @click="editOrder">修改上机
47
             type="primary" @click="editOrder">修改上机
48
           </el-button>
48
           </el-button>
49
 
49
 
252
           this.schedual_type = this.dialysis_order.schedual_type
252
           this.schedual_type = this.dialysis_order.schedual_type
253
         }
253
         }
254
 
254
 
255
-        if (this.dialysis_order.id > 0) {
256
-          for (let i = 0; i < this.special_premission.length; i++) {
257
-            if (this.$store.getters.xt_user.user.id == this.special_premission[i].admin_user_id) {
258
-              this.isPremission = true
259
-            }
260
-          }
261
-        }
262
 
255
 
263
         if (this.dialysis_order.id > 0) {
256
         if (this.dialysis_order.id > 0) {
264
           if (this.dialysis_order.creator == 0) {
257
           if (this.dialysis_order.creator == 0) {

+ 119 - 75
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

273
 
273
 
274
           <!-- </el-row>
274
           <!-- </el-row>
275
           <el-row :gutter="20" > -->
275
           <el-row :gutter="20" > -->
276
-          <el-col :span="8" v-if="isShows('实际超滤量')">
277
-            <el-form-item label="实际超滤量(L)">
278
-              <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>
279
-            </el-form-item>
280
-          </el-col>
276
+<!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
277
+<!--            <el-form-item label="实际超滤量(L)">-->
278
+<!--              <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>-->
279
+<!--            </el-form-item>-->
280
+<!--          </el-col>-->
281
 
281
 
282
 
282
 
283
           <!--透析耗材-->
283
           <!--透析耗材-->
1016
                   type: 'success',
1016
                   type: 'success',
1017
                   duration: 2000
1017
                   duration: 2000
1018
                 })
1018
                 })
1019
+                var date = new Date()
1020
+
1021
+                var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1022
+                var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1019
 
1023
 
1020
-                console.log(hour + ':' + minute)
1021
                 const params = {
1024
                 const params = {
1022
                   advices: results,
1025
                   advices: results,
1023
                   advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1026
                   advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1055
             const ParamsQuery = this.dialysisPrescription
1058
             const ParamsQuery = this.dialysisPrescription
1056
             ParamsQuery['patient'] = this.patient.id
1059
             ParamsQuery['patient'] = this.patient.id
1057
             ParamsQuery['record_date'] = this.record_date
1060
             ParamsQuery['record_date'] = this.record_date
1061
+            ParamsQuery['mode'] = 1
1058
             postSoulution(ParamsQuery).then(response => {
1062
             postSoulution(ParamsQuery).then(response => {
1059
               if (response.data.state == 0) {
1063
               if (response.data.state == 0) {
1060
                 this.$message.error(response.data.msg)
1064
                 this.$message.error(response.data.msg)
1067
                   duration: 2000
1071
                   duration: 2000
1068
                 })
1072
                 })
1069
                 console.log(hour + ':' + minute)
1073
                 console.log(hour + ':' + minute)
1074
+                var date = new Date()
1075
+
1076
+                var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1077
+                var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1070
 
1078
 
1071
                 const params = {
1079
                 const params = {
1072
                   advices: results,
1080
                   advices: results,
1153
             const ParamsQuery = this.dialysisPrescription
1161
             const ParamsQuery = this.dialysisPrescription
1154
             ParamsQuery['patient'] = this.patient.id
1162
             ParamsQuery['patient'] = this.patient.id
1155
             ParamsQuery['record_date'] = this.record_date
1163
             ParamsQuery['record_date'] = this.record_date
1164
+            ParamsQuery['mode'] = 1
1165
+
1156
             postSoulution(ParamsQuery).then(response => {
1166
             postSoulution(ParamsQuery).then(response => {
1157
               if (response.data.state == 0) {
1167
               if (response.data.state == 0) {
1158
                 this.$message.error(response.data.msg)
1168
                 this.$message.error(response.data.msg)
1323
               })
1333
               })
1324
             }
1334
             }
1325
           } else if (this.is_open == 2) {
1335
           } else if (this.is_open == 2) {
1336
+            var date = new Date()
1337
+
1338
+            var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1339
+            var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1340
+
1326
             if (this.waitUploadAdvices.length > 0) {
1341
             if (this.waitUploadAdvices.length > 0) {
1327
-              const params = {
1328
-                advices: this.waitUploadAdvices,
1329
-                advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1330
-                advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1331
-                advice_type: this.waitUploadAdvices[0].advice_type,
1332
-                parent_id: this.patient_id,
1333
-                start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1334
-                remark: ''
1335
-              }
1336
-              CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1337
-                var resp = rs.data
1338
-                if (resp.state == 1) {
1339
-                  // this.doctorAdvices = resp.data.advices
1340
-                  this.$emit('advice')
1341
-                } else {
1342
 
1342
 
1343
-                }
1344
-              })
1345
 
1343
 
1346
               if (this.patient.id <= 0) {
1344
               if (this.patient.id <= 0) {
1347
                 this.$message.error('没有选择患者')
1345
                 this.$message.error('没有选择患者')
1366
                     duration: 2000
1364
                     duration: 2000
1367
                   })
1365
                   })
1368
 
1366
 
1367
+                  const params = {
1368
+                    advices: this.waitUploadAdvices,
1369
+                    advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1370
+                    advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1371
+                    advice_type: this.waitUploadAdvices[0].advice_type,
1372
+                    parent_id: this.patient_id,
1373
+                    // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1374
+                    start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
1375
+
1376
+                    remark: ''
1377
+                  }
1378
+                  CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1379
+                    var resp = rs.data
1380
+                    if (resp.state == 1) {
1381
+                      // this.doctorAdvices = resp.data.advices
1382
+                      this.$emit('advice')
1383
+                    } else {
1384
+
1385
+                    }
1386
+                  })
1387
+
1369
                   const prescription_resp = response.data.data.prescription
1388
                   const prescription_resp = response.data.data.prescription
1370
                   var prescription = this.prescription
1389
                   var prescription = this.prescription
1371
                   for (var index in prescription_resp) {
1390
                   for (var index in prescription_resp) {
1491
                 })
1510
                 })
1492
               }
1511
               }
1493
             } else if (this.is_open == 2) {
1512
             } else if (this.is_open == 2) {
1494
-              if (this.waitUploadAdvices.length > 0) {
1495
-                const params = {
1496
-                  advices: this.waitUploadAdvices,
1497
-                  advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1498
-                  advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1499
-                  advice_type: this.waitUploadAdvices[0].advice_type,
1500
-                  parent_id: this.patient_id,
1501
-                  start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1502
-                  remark: ''
1503
-                }
1504
-                CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1505
-                  var resp = rs.data
1506
-                  if (resp.state == 1) {
1507
-                    // this.doctorAdvices = resp.data.advices
1508
-                    this.$emit('advice')
1509
-                  } else {
1513
+              var date = new Date()
1510
 
1514
 
1511
-                  }
1512
-                })
1515
+              var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1516
+              var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1517
+
1518
+              if (this.waitUploadAdvices.length > 0) {
1513
 
1519
 
1514
                 if (this.patient.id <= 0) {
1520
                 if (this.patient.id <= 0) {
1515
                   this.$message.error('没有选择患者')
1521
                   this.$message.error('没有选择患者')
1534
                       duration: 2000
1540
                       duration: 2000
1535
                     })
1541
                     })
1536
 
1542
 
1543
+                    const params = {
1544
+                      advices: this.waitUploadAdvices,
1545
+                      advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1546
+                      advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1547
+                      advice_type: this.waitUploadAdvices[0].advice_type,
1548
+                      parent_id: this.patient_id,
1549
+                      // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1550
+                      start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
1551
+
1552
+                      remark: ''
1553
+                    }
1554
+                    CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1555
+                      var resp = rs.data
1556
+                      if (resp.state == 1) {
1557
+                        // this.doctorAdvices = resp.data.advices
1558
+                        this.$emit('advice')
1559
+                      } else {
1560
+
1561
+                      }
1562
+                    })
1563
+
1564
+
1537
                     const prescription_resp = response.data.data.prescription
1565
                     const prescription_resp = response.data.data.prescription
1538
                     var prescription = this.prescription
1566
                     var prescription = this.prescription
1539
                     for (var index in prescription_resp) {
1567
                     for (var index in prescription_resp) {
1720
               })
1748
               })
1721
             }
1749
             }
1722
           } else if (this.is_open == 2) {
1750
           } else if (this.is_open == 2) {
1751
+            var date = new Date()
1752
+
1753
+            var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1754
+            var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1755
+
1723
             if (this.waitUploadAdvices.length > 0) {
1756
             if (this.waitUploadAdvices.length > 0) {
1724
-              const params = {
1725
-                advices: this.waitUploadAdvices,
1726
-                advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1727
-                advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1728
-                advice_type: this.waitUploadAdvices[0].advice_type,
1729
-                parent_id: this.patient_id,
1730
-                start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1731
-                remark: ''
1732
-              }
1733
-              CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1734
-                var resp = rs.data
1735
-                if (resp.state == 1) {
1736
-                  // this.doctorAdvices = resp.data.advices
1737
-                  this.$emit('advice')
1738
-                } else {
1739
 
1757
 
1740
-                }
1741
-              })
1742
 
1758
 
1743
               if (this.patient.id <= 0) {
1759
               if (this.patient.id <= 0) {
1744
                 this.$message.error('没有选择患者')
1760
                 this.$message.error('没有选择患者')
1765
                     type: 'success',
1781
                     type: 'success',
1766
                     duration: 2000
1782
                     duration: 2000
1767
                   })
1783
                   })
1784
+                  const params = {
1785
+                    advices: this.waitUploadAdvices,
1786
+                    advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1787
+                    advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1788
+                    advice_type: this.waitUploadAdvices[0].advice_type,
1789
+                    parent_id: this.patient_id,
1790
+                    // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1791
+                    start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
1792
+
1793
+                    remark: ''
1794
+                  }
1795
+                  CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1796
+                    var resp = rs.data
1797
+                    if (resp.state == 1) {
1798
+                      // this.doctorAdvices = resp.data.advices
1799
+                      this.$emit('advice')
1800
+                    } else {
1801
+
1802
+                    }
1803
+                  })
1768
 
1804
 
1769
                   const prescription_resp = response.data.data.prescription
1805
                   const prescription_resp = response.data.data.prescription
1770
                   var prescription = this.prescription
1806
                   var prescription = this.prescription
1900
                 })
1936
                 })
1901
               }
1937
               }
1902
             } else if (this.is_open == 2) {
1938
             } else if (this.is_open == 2) {
1939
+              var date = new Date()
1940
+
1941
+              var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1942
+              var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1943
+
1903
               if (this.waitUploadAdvices.length > 0) {
1944
               if (this.waitUploadAdvices.length > 0) {
1904
-                const params = {
1905
-                  advices: this.waitUploadAdvices,
1906
-                  advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1907
-                  advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1908
-                  advice_type: this.waitUploadAdvices[0].advice_type,
1909
-                  parent_id: this.patient_id,
1910
-                  start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
1911
-                  remark: ''
1912
-                }
1913
-                CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1914
-                  var resp = rs.data
1915
-                  if (resp.state == 1) {
1916
-                    // this.doctorAdvices = resp.data.advices
1917
-                    this.$emit('advice')
1918
-                  } else {
1919
 
1945
 
1920
-                  }
1921
-                })
1922
 
1946
 
1923
                 if (this.patient.id <= 0) {
1947
                 if (this.patient.id <= 0) {
1924
                   this.$message.error('没有选择患者')
1948
                   this.$message.error('没有选择患者')
1941
                       type: 'success',
1965
                       type: 'success',
1942
                       duration: 2000
1966
                       duration: 2000
1943
                     })
1967
                     })
1968
+                    const params = {
1969
+                      advices: this.waitUploadAdvices,
1970
+                      advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
1971
+                      advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1972
+                      advice_type: this.waitUploadAdvices[0].advice_type,
1973
+                      parent_id: this.patient_id,
1974
+                      // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
1975
+                      start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
1976
+
1977
+                      remark: ''
1978
+                    }
1979
+                    CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1980
+                      var resp = rs.data
1981
+                      if (resp.state == 1) {
1982
+                        // this.doctorAdvices = resp.data.advices
1983
+                        this.$emit('advice')
1984
+                      } else {
1985
+
1986
+                      }
1987
+                    })
1944
                     const prescription_resp = response.data.data.prescription
1988
                     const prescription_resp = response.data.data.prescription
1945
                     const solution_resp = response.data.data.solution
1989
                     const solution_resp = response.data.data.solution
1946
                     var prescription = this.prescription
1990
                     var prescription = this.prescription

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

30
           <!--</el-button>-->
30
           <!--</el-button>-->
31
           <!--<el-button v-else :disabled="true" type="info">未上机</el-button>-->
31
           <!--<el-button v-else :disabled="true" type="info">未上机</el-button>-->
32
           <el-button
32
           <el-button
33
-            v-if="dialysis_order.stage == 2 && (isPremission || this.$store.getters.xt_user.user.id == this.creator)"
33
+            v-if="dialysis_order.stage == 2 "
34
             type="primary" @click="modifyFinish">修改下机
34
             type="primary" @click="modifyFinish">修改下机
35
           </el-button>
35
           </el-button>
36
 
36
 

+ 4 - 3
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

965
       let mode = "1"
965
       let mode = "1"
966
        if(this.form.id > 0){
966
        if(this.form.id > 0){
967
          mode = "2"
967
          mode = "2"
968
-         if(this.form.creator > 0 && this.form.creator != this.$store.getters.xt_user.user.id){
968
+         if(this.form.monitoring_nurse > 0 && this.form.monitoring_nurse != this.$store.getters.xt_user.user.id){
969
           mode = "3"
969
           mode = "3"
970
          }
970
          }
971
       }
971
       }
1053
       })
1053
       })
1054
         .then(() => {
1054
         .then(() => {
1055
           let mode = "4"
1055
           let mode = "4"
1056
-          // if(this.table_current_row)
1057
-
1056
+          if(this.table_current_row.creator > 0 && this.table_current_row.creator != this.$store.getters.xt_user.user.id){
1057
+            mode = "5"
1058
+          }
1058
 
1059
 
1059
           const params = {
1060
           const params = {
1060
             patient_id: this.patient_id,
1061
             patient_id: this.patient_id,

File diff suppressed because it is too large
+ 1542 - 1472
src/xt_pages/user/components/EditGroupAdvice.vue


File diff suppressed because it is too large
+ 2568 - 2474
src/xt_pages/user/doctorAdvice.vue


+ 12 - 9
src/xt_pages/user/dryWeight.vue View File

3
     <patient-sidebar :id="patientID" defaultActive="1-6" v-on:tran-patient="onTranPatient"></patient-sidebar>
3
     <patient-sidebar :id="patientID" defaultActive="1-6" v-on:tran-patient="onTranPatient"></patient-sidebar>
4
     <div class="patient-app-container advice-container app-container">
4
     <div class="patient-app-container advice-container app-container">
5
       <div class="cell clearfix">
5
       <div class="cell clearfix">
6
-      当前时间: <el-input  style="width:130px;" v-model="nowtime" :disabled="true"></el-input> 
7
-         </el-time-select>&nbsp;&nbsp;
6
+      当前时间: <el-input  style="width:130px;" v-model="nowtime" :disabled="true"></el-input>
8
         干体重:<el-input style="width:100px" v-model="dryweight" :disabled="true"></el-input>&nbsp;
7
         干体重:<el-input style="width:100px" v-model="dryweight" :disabled="true"></el-input>&nbsp;
9
          <el-button size="medium" type="primary" @click="dialogVisible =true" v-show="addShow">新增</el-button>
8
          <el-button size="medium" type="primary" @click="dialogVisible =true" v-show="addShow">新增</el-button>
10
          <el-button size="medium" type="primary" @click="dialogVisible =true" v-show="adjustShow">调整</el-button>
9
          <el-button size="medium" type="primary" @click="dialogVisible =true" v-show="adjustShow">调整</el-button>
20
               {{scope.row.adjusted_value}}
19
               {{scope.row.adjusted_value}}
21
         </template>
20
         </template>
22
      </el-table-column>
21
      </el-table-column>
23
-      <el-table-column     prop="date"    label="干体重"    align="center"> 
22
+      <el-table-column     prop="date"    label="干体重"    align="center">
24
          <template slot-scope="scope">
23
          <template slot-scope="scope">
25
               {{scope.row.dry_weight}}
24
               {{scope.row.dry_weight}}
26
          </template>
25
          </template>
27
       </el-table-column>
26
       </el-table-column>
28
-      <el-table-column     prop="date"    label="医生"      align="center"> 
27
+      <el-table-column     prop="date"    label="医生"      align="center">
29
           <template slot-scope="scope">
28
           <template slot-scope="scope">
30
                 {{scope.row.user_name}}
29
                 {{scope.row.user_name}}
31
           </template>
30
           </template>
32
       </el-table-column>
31
       </el-table-column>
33
-      <el-table-column     prop="date"    label="备注"      align="center"> 
32
+      <el-table-column     prop="date"    label="备注"      align="center">
34
           <template slot-scope="scope">
33
           <template slot-scope="scope">
35
               {{scope.row.remakes}}
34
               {{scope.row.remakes}}
36
           </template>
35
           </template>
46
         align="right"
45
         align="right"
47
         layout="total, sizes, prev, pager, next, jumper"
46
         layout="total, sizes, prev, pager, next, jumper"
48
         :total="total"></el-pagination>
47
         :total="total"></el-pagination>
49
-     
48
+
50
      <el-dialog
49
      <el-dialog
51
          title="调整干体重"
50
          title="调整干体重"
52
          :visible.sync="dialogVisible"
51
          :visible.sync="dialogVisible"
75
            </el-input>
74
            </el-input>
76
         </el-form-item>
75
         </el-form-item>
77
       </el-form>
76
       </el-form>
78
-     
77
+
79
      <span slot="footer" class="dialog-footer">
78
      <span slot="footer" class="dialog-footer">
80
      <el-button @click="dialogVisible = false">取 消</el-button>
79
      <el-button @click="dialogVisible = false">取 消</el-button>
81
      <el-button type="primary" @click="UpdateDryWeightData('dryWeightForm')">确 定</el-button>
80
      <el-button type="primary" @click="UpdateDryWeightData('dryWeightForm')">确 定</el-button>
160
           doctors: this.dryWeightForm.doctors,
159
           doctors: this.dryWeightForm.doctors,
161
           remarks: this.dryWeightForm.remarks,
160
           remarks: this.dryWeightForm.remarks,
162
           patient_id: this.patientID,
161
           patient_id: this.patientID,
163
-          dryweight: this.dryweight
162
+          dryweight: this.dryweight,
163
+          mode : "1"
164
         }
164
         }
165
-  
165
+
166
         this.$refs[formName].validate((valid) => {
166
         this.$refs[formName].validate((valid) => {
167
           if (valid) {
167
           if (valid) {
168
             UpdateDryWeightData(params).then(response => {
168
             UpdateDryWeightData(params).then(response => {
173
                 const id = this.$route.params && this.$route.params.id
173
                 const id = this.$route.params && this.$route.params.id
174
                 this.getAllData(id)
174
                 this.getAllData(id)
175
                 this.getDryWeightData(id)
175
                 this.getDryWeightData(id)
176
+              }else{
177
+                this.$message.error(response.data.msg)
178
+                return false
176
               }
179
               }
177
             })
180
             })
178
           }
181
           }