See999 4 years ago
parent
commit
53fd827f6d

+ 117 - 93
src/router/modules/dialysis.js View File

@@ -1,64 +1,62 @@
1
-import Layout from '@/views/layout/Layout'
1
+import Layout from "@/views/layout/Layout";
2 2
 
3 3
 export default {
4
-  path: '/dialysis/',
4
+  path: "/dialysis/",
5 5
   component: Layout,
6
-  redirect: 'noredirect',
7
-  name: 'dialysis',
6
+  redirect: "noredirect",
7
+  name: "dialysis",
8 8
   alwaysShow: true,
9 9
   meta: {
10
-    title: 'dialysis',
11
-    icon: 'touxi'
10
+    title: "dialysis",
11
+    icon: "touxi"
12 12
   },
13
-  children: [{
14
-      path: '/dialysis/dialysisrecord',
15
-      component: () => import('@/xt_pages/dialysis/schedualPatient'),
16
-      name: '透析记录',
13
+  children: [
14
+    {
15
+      path: "/dialysis/dialysisrecord",
16
+      component: () => import("@/xt_pages/dialysis/schedualPatient"),
17
+      name: "透析记录",
17 18
       meta: {
18
-        title: '透析记录',
19
+        title: "透析记录",
19 20
         noCache: true
20
-
21 21
       }
22 22
     },
23 23
     {
24
-      path: '/dialysis/watch',
25
-      component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
26
-      name: 'watch',
24
+      path: "/dialysis/watch",
25
+      component: () => import("@/xt_pages/dialysis/bloodPresssWatch"),
26
+      name: "watch",
27 27
       meta: {
28
-        title: 'watch',
28
+        title: "watch",
29 29
         noCache: true
30
-
31 30
       }
32 31
     },
33 32
     {
34
-      path: '/dialysis/board',
35
-      component: () => import('@/xt_pages/dialysis/bulletinBoard'),
36
-      name: '数据看板',
33
+      path: "/dialysis/board",
34
+      component: () => import("@/xt_pages/dialysis/bulletinBoard"),
35
+      name: "数据看板",
37 36
       meta: {
38
-        title: '数据看板',
37
+        title: "数据看板",
39 38
         noCache: true
40
-
41 39
       }
42 40
     },
43 41
     {
44
-      path: '/dialysis/record/:id',
45
-      component: () => import('@/xt_pages/dialysis/dialysisPage'),
42
+      path: "/dialysis/record/:id",
43
+      component: () => import("@/xt_pages/dialysis/dialysisPage"),
46 44
       hidden: true,
47 45
       is_menu: false,
48
-      name: 'paper',
46
+      name: "paper",
49 47
       meta: {
50
-        title: 'paper',
48
+        title: "paper",
51 49
         noCache: true
52 50
       }
53 51
     },
54 52
     {
55
-      path: '/dialysis/print',
56
-      component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
53
+      path: "/dialysis/print",
54
+      component: () => import("@/xt_pages/dialysis/dialysisPrintOrder"),
57 55
       hidden: true,
58 56
       is_menu: false,
59
-      name: 'dialysisPrintOrder',
57
+      name: "dialysisPrintOrder",
60 58
       meta: {
61
-        title: 'dialysisPrintOrder',
59
+        title: "dialysisPrintOrder",
62 60
         noCache: true
63 61
       }
64 62
     },
@@ -67,157 +65,183 @@ export default {
67 65
     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
68 66
 
69 67
     {
70
-      path: '/dialysis/details',
71
-      component: () => import('@/xt_pages/dialysis/details'),
72
-      name: 'details',
68
+      path: "/dialysis/details",
69
+      component: () => import("@/xt_pages/dialysis/details"),
70
+      name: "details",
73 71
       meta: {
74
-        title: 'details'
72
+        title: "details"
75 73
       },
76 74
       hidden: true,
77 75
       is_menu: false,
78 76
       noCache: true
79
-
80 77
     },
81 78
     {
82
-      path: '/dialysis/print/batch',
83
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
79
+      path: "/dialysis/print/batch",
80
+      component: () =>
81
+        import("@/xt_pages/dialysis/batch_print/batch_print_order"),
84 82
       hidden: true,
85 83
       is_menu: false,
86
-      name: 'dialysis_batch_print',
84
+      name: "dialysis_batch_print",
87 85
       meta: {
88
-        title: '批量打印',
86
+        title: "批量打印",
89 87
         noCache: true
90 88
       }
91
-    }, {
92
-      path: '/dialysis/print/batch/other',
93
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
89
+    },
90
+    {
91
+      path: "/dialysis/print/batch/other",
92
+      component: () =>
93
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_other"),
94
+      hidden: true,
95
+      is_menu: false,
96
+      name: "dialysis_batch_print_two",
97
+      meta: {
98
+        title: "批量打印",
99
+        noCache: true
100
+      }
101
+    },
102
+    {
103
+      path: "/dialysis/print/batch/three",
104
+      component: () =>
105
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_three"),
94 106
       hidden: true,
95 107
       is_menu: false,
96
-      name: 'dialysis_batch_print_two',
108
+      name: "dialysis_batch_print_two_one",
97 109
       meta: {
98
-        title: '批量打印',
110
+        title: "批量打印",
99 111
         noCache: true
100 112
       }
101 113
     },
102 114
     {
103
-      path: '/dialysis/print/batch/three',
104
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_three'),
115
+      path: "/dialysis/print/batch/four",
116
+      component: () =>
117
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_four"),
105 118
       hidden: true,
106 119
       is_menu: false,
107
-      name: 'dialysis_batch_print_two_one',
120
+      name: "dialysis_batch_print_two_one",
108 121
       meta: {
109
-        title: '批量打印',
122
+        title: "批量打印",
110 123
         noCache: true
111 124
       }
112 125
     },
113 126
     {
114
-      path: '/dialysis/print/batch/four',
115
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_four'),
127
+      path: "/dialysis/print/batch/five",
128
+      component: () =>
129
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_five"),
116 130
       hidden: true,
117 131
       is_menu: false,
118
-      name: 'dialysis_batch_print_two_one',
132
+      name: "dialysis_batch_print_two_one",
119 133
       meta: {
120
-        title: '批量打印',
134
+        title: "批量打印",
121 135
         noCache: true
122 136
       }
123 137
     },
124 138
     {
125
-      path: '/dialysis/print/batch/five',
126
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five'),
139
+      path: "/dialysis/print/batch/six",
140
+      component: () =>
141
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_six"),
127 142
       hidden: true,
128 143
       is_menu: false,
129
-      name: 'dialysis_batch_print_two_one',
144
+      name: "dialysis_batch_six",
130 145
       meta: {
131
-        title: '批量打印',
146
+        title: "批量打印",
132 147
         noCache: true
133 148
       }
134 149
     },
135 150
     {
136
-      path: '/dialysis/print/batch/six',
137
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_six'),
151
+      path: "/dialysis/print/batch/seven",
152
+      component: () =>
153
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_seven"),
138 154
       hidden: true,
139 155
       is_menu: false,
140
-      name: 'dialysis_batch_six',
156
+      name: "dialysis_batch_seven",
141 157
       meta: {
142
-        title: '批量打印',
158
+        title: "批量打印",
143 159
         noCache: true
144 160
       }
145 161
     },
146 162
     {
147
-      path: '/dialysis/print/batch/seven',
148
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_seven'),
163
+      path: "/dialysis/print/batch/eight",
164
+      component: () =>
165
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_eight"),
149 166
       hidden: true,
150 167
       is_menu: false,
151
-      name: 'dialysis_batch_seven',
168
+      name: "dialysis_batch_eight",
152 169
       meta: {
153
-        title: '批量打印',
170
+        title: "批量打印",
154 171
         noCache: true
155 172
       }
156 173
     },
157 174
     {
158
-      path: '/dialysis/print/batch/eight',
159
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_eight'),
175
+      path: "/dialysis/print/batch/nine",
176
+      component: () =>
177
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_nine"),
160 178
       hidden: true,
161 179
       is_menu: false,
162
-      name: 'dialysis_batch_eight',
180
+      name: "dialysis_batch_nine",
163 181
       meta: {
164
-        title: '批量打印',
182
+        title: "批量打印",
165 183
         noCache: true
166 184
       }
167 185
     },
168 186
     {
169
-      path: '/dialysis/print/batch/nine',
187
+      path: "/dialysis/print/batch/twelve",
170 188
       component: () =>
171
-        import('@/xt_pages/dialysis/batch_print/batch_print_order_nine'),
189
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_twelve"),
172 190
       hidden: true,
173 191
       is_menu: false,
174
-      name: 'dialysis_batch_nine',
192
+      name: "dialysis_batch_nine",
175 193
       meta: {
176
-        title: '批量打印',
194
+        title: "批量打印",
177 195
         noCache: true
178 196
       }
179 197
     },
180 198
     {
181
-      path: '/dialysis/print/batch/otherone',
182
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
199
+      path: "/dialysis/print/batch/otherone",
200
+      component: () =>
201
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_other_one"),
183 202
       hidden: true,
184 203
       is_menu: false,
185
-      name: 'dialysis_batch_print_two_one',
204
+      name: "dialysis_batch_print_two_one",
186 205
       meta: {
187
-        title: '批量打印',
206
+        title: "批量打印",
188 207
         noCache: true
189 208
       }
190
-    }, {
191
-      path: '/dialysis/print/batch/othertwo',
192
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_two'),
209
+    },
210
+    {
211
+      path: "/dialysis/print/batch/othertwo",
212
+      component: () =>
213
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_other_two"),
193 214
       hidden: true,
194 215
       is_menu: false,
195
-      name: 'dialysis_batch_print_two_two',
216
+      name: "dialysis_batch_print_two_two",
196 217
       meta: {
197
-        title: '批量打印',
218
+        title: "批量打印",
198 219
         noCache: true
199 220
       }
200
-    }, {
201
-      path: '/dialysis/print/batch/fiveone',
202
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_one'),
221
+    },
222
+    {
223
+      path: "/dialysis/print/batch/fiveone",
224
+      component: () =>
225
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_five_one"),
203 226
       hidden: true,
204 227
       is_menu: false,
205
-      name: 'dialysis_batch_print_two_two',
228
+      name: "dialysis_batch_print_two_two",
206 229
       meta: {
207
-        title: '批量打印',
230
+        title: "批量打印",
208 231
         noCache: true
209 232
       }
210
-    }, {
211
-      path: '/dialysis/print/batch/fivetwo',
212
-      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_two'),
233
+    },
234
+    {
235
+      path: "/dialysis/print/batch/fivetwo",
236
+      component: () =>
237
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_five_two"),
213 238
       hidden: true,
214 239
       is_menu: false,
215
-      name: 'dialysis_batch_print_two_two',
240
+      name: "dialysis_batch_print_two_two",
216 241
       meta: {
217
-        title: '批量打印',
242
+        title: "批量打印",
218 243
         noCache: true
219 244
       }
220 245
     }
221
-
222 246
   ]
223
-}
247
+};

File diff suppressed because it is too large
+ 2425 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -130,6 +130,16 @@
130 130
           >批量打印</el-button
131 131
         >
132 132
       </template>
133
+      <template v-if="this.template_id == 12">
134
+        <el-button
135
+          size="small"
136
+          icon="el-icon-printer"
137
+          :disabled="selecting_schs.length == 0"
138
+          @click="batchPrintAction"
139
+          type="primary"
140
+          >批量打印</el-button
141
+        >
142
+      </template>
133 143
     </div>
134 144
     <div class="app-container">
135 145
       <!-- <div class="filter-container">
@@ -631,6 +641,8 @@ export default {
631 641
         this.$router.push({ path: "/dialysis/print/batch/eight" });
632 642
       } else if (this.template_id == 9) {
633 643
         this.$router.push({ path: "/dialysis/print/batch/nine" });
644
+      } else if (this.template_id == 12) {
645
+        this.$router.push({ path: "/dialysis/print/batch/twelve" });
634 646
       }
635 647
     },
636 648
     batchPrintActionOne: function() {

+ 9 - 5
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue View File

@@ -45,12 +45,16 @@
45 45
             <td width="140" style="border:none;text-align: left;">
46 46
               <div>
47 47
                 <label-box
48
-                  showValue="住院"
49
-                  :isChecked="patientInfo_source_1 ? true : false"
48
+                  showValue="门诊"
49
+                  :isChecked="
50
+                    receiverTreatmentAccess.condition == 2 ? true : false
51
+                  "
50 52
                 ></label-box>
51 53
                 <label-box
52
-                  showValue="门诊"
53
-                  :isChecked="patientInfo_source_2 ? true : false"
54
+                  showValue="住院"
55
+                  :isChecked="
56
+                    receiverTreatmentAccess.condition == 1 ? true : false
57
+                  "
54 58
                 ></label-box>
55 59
               </div>
56 60
             </td>
@@ -1344,7 +1348,7 @@
1344 1348
               &nbsp;
1345 1349
               <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
1346 1350
               <span v-if="doctorForm.url !== ''">
1347
-                <img style="height:20px" :src="doctorForm.url" />
1351
+                <img class="es-img" :src="doctorForm.url" />
1348 1352
               </span>
1349 1353
             </span>
1350 1354
             护士签名

+ 30 - 30
src/xt_permission.js View File

@@ -1,59 +1,59 @@
1
-import router from './router'
2
-import store from './store'
3
-import NProgress from 'nprogress' // progress bar
4
-import 'nprogress/nprogress.css' // progress bar style
1
+import router from "./router";
2
+import store from "./store";
3
+import NProgress from "nprogress"; // progress bar
4
+import "nprogress/nprogress.css"; // progress bar style
5 5
 
6 6
 NProgress.configure({
7 7
   showSpinner: false
8
-}) // NProgress Configuration
8
+}); // NProgress Configuration
9 9
 
10
-const loginWhiteList = ['/token/verify', '/401', '/404'] // 登录验证白名单
11
-const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名单
10
+const loginWhiteList = ["/token/verify", "/401", "/404"]; // 登录验证白名单
11
+const permissionWhiteList = loginWhiteList.concat(["/"]); // 权限验证白名单
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
 
30
-  NProgress.start()
30
+  NProgress.start();
31 31
   // console.log(store.getters.current_role_urls.indexOf(to.path))
32 32
   // alert('path:' + to.path)
33 33
   // 如果 url 带有 lt (login_token)参数,则跳转到验证 token 时等待的页面
34 34
   if (to.query.lt != null && to.query.lt.length > 0) {
35 35
     // alert('will go to verify token: ' + to.query.lt)
36 36
     next({
37
-      path: '/token/verify',
37
+      path: "/token/verify",
38 38
       query: {
39 39
         token: to.query.lt
40 40
       }
41
-    })
41
+    });
42 42
 
43 43
     // 否则 如果没有 user 信息,则前往 sso 登录
44 44
   } else if (store.getters.xt_user.user.id === 0) {
45 45
     if (loginWhiteList.indexOf(to.path) !== -1) {
46 46
       // alert('登录白名单内,跳过登录')
47
-      next()
47
+      next();
48 48
     } else {
49 49
       // alert('前往登录')
50
-      window.location.href = process.env.BASE_API + '/login' // sso 地址
50
+      window.location.href = process.env.BASE_API + "/login"; // sso 地址
51 51
     }
52 52
 
53 53
     // 否则 如果当前 url 不需要验证访问权限,则通过
54 54
   } else if (permissionWhiteList.indexOf(to.path) !== -1) {
55 55
     // alert('权限验证白名单内,直接进入')
56
-    next()
56
+    next();
57 57
 
58 58
     // 否则 如果拥有当前 url 的权限,则通过
59 59
     // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
@@ -65,11 +65,11 @@ router.beforeEach((to, from, next) => {
65 65
     // console.log(store.getters.current_role_urls)
66 66
     // console.log(store.getters.current_role_urls.indexOf(to.path))
67 67
     // alert('401')
68
-    next()
68
+    next();
69 69
     // next({ path: '/404' })
70 70
   }
71
-})
71
+});
72 72
 
73 73
 router.afterEach(() => {
74
-  NProgress.done()
75
-})
74
+  NProgress.done();
75
+});