Przeglądaj źródła

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

See999 5 lat temu
rodzic
commit
e0c3a670c7

+ 2 - 2
config/dev.env.js Wyświetl plik

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

+ 127 - 28
src/api/advice.js Wyświetl plik

@@ -64,19 +64,7 @@ export function CheckDoctorAdvice(patient, id,mode) {
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 69
 export function getDoctorAdviceList(params) {
82 70
   return request({
@@ -86,29 +74,28 @@ export function getDoctorAdviceList(params) {
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 88
   return request({
99
-    url: '/api/patients/advice/stopgroup?groupno=' + groupno,
89
+    url: '/api/patients/advice/stopgroup?groupno=' + groupno+"&mode="+mode,
100 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 99
 export function DeleteDoctorAdvice(id,mode) {
113 100
   return request({
114 101
     url: '/api/patients/advice/delete?id=' + id+"&mode="+mode,
@@ -317,3 +304,115 @@ export function getPrintInfo(data) {
317 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 Wyświetl plik

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

+ 5 - 3
src/api/patient.js Wyświetl plik

@@ -62,7 +62,7 @@ export function createPatientDialysisSolution(id, solution,mode) {
62 62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63 63
     method: 'post',
64 64
     data: solution,
65
-    headers:{"Permission":2},
65
+    headers:{"Permission":3},
66 66
 
67 67
 
68 68
   })
@@ -73,7 +73,7 @@ export function editPatientDialysisSolution(patient, id, solution,mode) {
73 73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
74 74
     method: 'put',
75 75
     data: solution,
76
-    headers:{"Permission":2},
76
+    headers:{"Permission":3},
77 77
 
78 78
   })
79 79
 }
@@ -317,7 +317,9 @@ export function UpdateDryWeightData(params) {
317 317
   return request({
318 318
     url: '/api/patient/updatedryweightdata',
319 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 Wyświetl plik

@@ -16,7 +16,9 @@ export default {
16 16
     component: () => import('@/xt_pages/data/index'),
17 17
     name: 'dictionary',
18 18
     meta: {
19
-      title: 'field_config'
19
+      title: 'field_config',
20
+      noCache: true,
21
+
20 22
     }
21 23
   },
22 24
   {
@@ -24,7 +26,9 @@ export default {
24 26
     component: () => import('@/xt_pages/data/template'),
25 27
     name: 'template',
26 28
     meta: {
27
-      title: 'template'
29
+      title: 'template',
30
+      noCache: true,
31
+
28 32
     }
29 33
   },
30 34
   {
@@ -32,14 +36,18 @@ export default {
32 36
     component: () => import('@/xt_pages/data/druguseTemplate'),
33 37
     name: 'druguse',
34 38
     meta: {
35
-      title: 'druguse'
39
+      title: 'druguse',
40
+      noCache: true,
41
+
36 42
     }
37 43
   }, {
38 44
       path: '/data/showconfig',
39 45
       component: () => import('@/xt_pages/data/showConfig'),
40 46
       name: 'showconfig',
41 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 Wyświetl plik

@@ -16,7 +16,9 @@ export default {
16 16
       component: () => import('@/xt_pages/upload/fast_upload'),
17 17
       name: 'fast_upload',
18 18
       meta: {
19
-        title: 'fast_upload'
19
+        title: 'fast_upload',
20
+        noCache: true,
21
+
20 22
       }
21 23
     },
22 24
     {
@@ -24,7 +26,9 @@ export default {
24 26
       component: () => import('@/xt_pages/upload/data_upload'),
25 27
       name: 'data_upload',
26 28
       meta: {
27
-        title: 'data_upload'
29
+        title: 'data_upload',
30
+        noCache: true,
31
+
28 32
       }
29 33
     },
30 34
     {
@@ -32,14 +36,18 @@ export default {
32 36
       component: () => import('@/xt_pages/upload/export'),
33 37
       name: 'export',
34 38
       meta: {
35
-        title: 'export'
39
+        title: 'export',
40
+        noCache: true,
41
+
36 42
       }
37 43
     }, {
38 44
       path: '/upload/config',
39 45
       component: () => import('@/xt_pages/upload/config'),
40 46
       name: 'upload_config',
41 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 Wyświetl plik

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

+ 12 - 4
src/router/modules/dialysis.js Wyświetl plik

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

+ 3 - 1
src/router/modules/integration.js Wyświetl plik

@@ -16,7 +16,9 @@ export default {
16 16
       component: () => import('@/xt_pages/integration/his_config'),
17 17
       name: 'his_config',
18 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 Wyświetl plik

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

+ 6 - 2
src/router/modules/service.js Wyświetl plik

@@ -50,7 +50,9 @@ export default {
50 50
     hidden: true,
51 51
     name: 'servicePay',
52 52
     meta: {
53
-      title: 'servicePay'
53
+      title: 'servicePay',
54
+      noCache: true,
55
+
54 56
     }
55 57
   },
56 58
   {
@@ -59,7 +61,9 @@ export default {
59 61
     hidden: true,
60 62
     name: 'payType',
61 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 Wyświetl plik

@@ -20,7 +20,9 @@ export default {
20 20
       parentNum: 1,
21 21
       meta: {
22 22
         isChild: true,
23
-        title: "warehouseReceipt"
23
+        title: "warehouseReceipt",
24
+        noCache: true,
25
+
24 26
       }
25 27
     },
26 28
     {
@@ -31,7 +33,9 @@ export default {
31 33
       parentNum: 2,
32 34
       meta: {
33 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 Wyświetl plik

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

+ 2 - 6
src/views/layout/components/Navbar.vue Wyświetl plik

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

+ 6 - 14
src/xt_pages/dialysis/details/DialysisPrescription.vue Wyświetl plik

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

+ 61 - 61
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Wyświetl plik

@@ -239,34 +239,34 @@
239 239
               ></el-input>
240 240
             </el-form-item>
241 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 270
           <!-- </el-row>
271 271
 
272 272
         <el-row :gutter="20"> -->
@@ -349,43 +349,43 @@
349 349
 
350 350
 
351 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 390
           <!-- </el-row>
391 391
 

+ 11 - 5
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Wyświetl plik

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

+ 21 - 19
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Wyświetl plik

@@ -651,31 +651,32 @@ export default {
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 671
                     this.toggleRowExpansion()
665 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 680
         }).catch(() => {
680 681
         })
681 682
       },
@@ -1706,6 +1707,7 @@ export default {
1706 1707
           return false
1707 1708
         }
1708 1709
 
1710
+        console.log(groups[0].advice_doctor)
1709 1711
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1710 1712
         this.groupForm = {
1711 1713
           advice_type: groups[0].advice_type,

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Wyświetl plik

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

+ 1 - 8
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Wyświetl plik

@@ -43,7 +43,7 @@
43 43
           <el-button v-if="dialysis_order.id == 0" @click="submit" type="primary" :loading="loading">执行上机</el-button>
44 44
           <el-button v-else type="info" :disabled="true">已上机</el-button>
45 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 47
             type="primary" @click="editOrder">修改上机
48 48
           </el-button>
49 49
 
@@ -252,13 +252,6 @@
252 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 256
         if (this.dialysis_order.id > 0) {
264 257
           if (this.dialysis_order.creator == 0) {

+ 119 - 75
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Wyświetl plik

@@ -273,11 +273,11 @@
273 273
 
274 274
           <!-- </el-row>
275 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,8 +1016,11 @@
1016 1016
                   type: 'success',
1017 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 1024
                 const params = {
1022 1025
                   advices: results,
1023 1026
                   advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
@@ -1055,6 +1058,7 @@
1055 1058
             const ParamsQuery = this.dialysisPrescription
1056 1059
             ParamsQuery['patient'] = this.patient.id
1057 1060
             ParamsQuery['record_date'] = this.record_date
1061
+            ParamsQuery['mode'] = 1
1058 1062
             postSoulution(ParamsQuery).then(response => {
1059 1063
               if (response.data.state == 0) {
1060 1064
                 this.$message.error(response.data.msg)
@@ -1067,6 +1071,10 @@
1067 1071
                   duration: 2000
1068 1072
                 })
1069 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 1079
                 const params = {
1072 1080
                   advices: results,
@@ -1153,6 +1161,8 @@
1153 1161
             const ParamsQuery = this.dialysisPrescription
1154 1162
             ParamsQuery['patient'] = this.patient.id
1155 1163
             ParamsQuery['record_date'] = this.record_date
1164
+            ParamsQuery['mode'] = 1
1165
+
1156 1166
             postSoulution(ParamsQuery).then(response => {
1157 1167
               if (response.data.state == 0) {
1158 1168
                 this.$message.error(response.data.msg)
@@ -1323,25 +1333,13 @@
1323 1333
               })
1324 1334
             }
1325 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 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 1344
               if (this.patient.id <= 0) {
1347 1345
                 this.$message.error('没有选择患者')
@@ -1366,6 +1364,27 @@
1366 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 1388
                   const prescription_resp = response.data.data.prescription
1370 1389
                   var prescription = this.prescription
1371 1390
                   for (var index in prescription_resp) {
@@ -1491,25 +1510,12 @@
1491 1510
                 })
1492 1511
               }
1493 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 1520
                 if (this.patient.id <= 0) {
1515 1521
                   this.$message.error('没有选择患者')
@@ -1534,6 +1540,28 @@
1534 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 1565
                     const prescription_resp = response.data.data.prescription
1538 1566
                     var prescription = this.prescription
1539 1567
                     for (var index in prescription_resp) {
@@ -1720,25 +1748,13 @@
1720 1748
               })
1721 1749
             }
1722 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 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 1759
               if (this.patient.id <= 0) {
1744 1760
                 this.$message.error('没有选择患者')
@@ -1765,6 +1781,26 @@
1765 1781
                     type: 'success',
1766 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 1805
                   const prescription_resp = response.data.data.prescription
1770 1806
                   var prescription = this.prescription
@@ -1900,25 +1936,13 @@
1900 1936
                 })
1901 1937
               }
1902 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 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 1947
                 if (this.patient.id <= 0) {
1924 1948
                   this.$message.error('没有选择患者')
@@ -1941,6 +1965,26 @@
1941 1965
                       type: 'success',
1942 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 1988
                     const prescription_resp = response.data.data.prescription
1945 1989
                     const solution_resp = response.data.data.solution
1946 1990
                     var prescription = this.prescription

+ 1 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Wyświetl plik

@@ -30,7 +30,7 @@
30 30
           <!--</el-button>-->
31 31
           <!--<el-button v-else :disabled="true" type="info">未上机</el-button>-->
32 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 34
             type="primary" @click="modifyFinish">修改下机
35 35
           </el-button>
36 36
 

+ 4 - 3
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Wyświetl plik

@@ -965,7 +965,7 @@ export default {
965 965
       let mode = "1"
966 966
        if(this.form.id > 0){
967 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 969
           mode = "3"
970 970
          }
971 971
       }
@@ -1053,8 +1053,9 @@ export default {
1053 1053
       })
1054 1054
         .then(() => {
1055 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 1060
           const params = {
1060 1061
             patient_id: this.patient_id,

Plik diff jest za duży
+ 1542 - 1472
src/xt_pages/user/components/EditGroupAdvice.vue


Plik diff jest za duży
+ 2568 - 2474
src/xt_pages/user/doctorAdvice.vue


+ 12 - 9
src/xt_pages/user/dryWeight.vue Wyświetl plik

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