See999 5 years ago
parent
commit
53fd827f6d

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

1
-import Layout from '@/views/layout/Layout'
1
+import Layout from "@/views/layout/Layout";
2
 
2
 
3
 export default {
3
 export default {
4
-  path: '/dialysis/',
4
+  path: "/dialysis/",
5
   component: Layout,
5
   component: Layout,
6
-  redirect: 'noredirect',
7
-  name: 'dialysis',
6
+  redirect: "noredirect",
7
+  name: "dialysis",
8
   alwaysShow: true,
8
   alwaysShow: true,
9
   meta: {
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
       meta: {
18
       meta: {
18
-        title: '透析记录',
19
+        title: "透析记录",
19
         noCache: true
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
       meta: {
27
       meta: {
28
-        title: 'watch',
28
+        title: "watch",
29
         noCache: true
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
       meta: {
36
       meta: {
38
-        title: '数据看板',
37
+        title: "数据看板",
39
         noCache: true
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
       hidden: true,
44
       hidden: true,
47
       is_menu: false,
45
       is_menu: false,
48
-      name: 'paper',
46
+      name: "paper",
49
       meta: {
47
       meta: {
50
-        title: 'paper',
48
+        title: "paper",
51
         noCache: true
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
       hidden: true,
55
       hidden: true,
58
       is_menu: false,
56
       is_menu: false,
59
-      name: 'dialysisPrintOrder',
57
+      name: "dialysisPrintOrder",
60
       meta: {
58
       meta: {
61
-        title: 'dialysisPrintOrder',
59
+        title: "dialysisPrintOrder",
62
         noCache: true
60
         noCache: true
63
       }
61
       }
64
     },
62
     },
67
     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
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
       meta: {
71
       meta: {
74
-        title: 'details'
72
+        title: "details"
75
       },
73
       },
76
       hidden: true,
74
       hidden: true,
77
       is_menu: false,
75
       is_menu: false,
78
       noCache: true
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
       hidden: true,
82
       hidden: true,
85
       is_menu: false,
83
       is_menu: false,
86
-      name: 'dialysis_batch_print',
84
+      name: "dialysis_batch_print",
87
       meta: {
85
       meta: {
88
-        title: '批量打印',
86
+        title: "批量打印",
89
         noCache: true
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
       hidden: true,
106
       hidden: true,
95
       is_menu: false,
107
       is_menu: false,
96
-      name: 'dialysis_batch_print_two',
108
+      name: "dialysis_batch_print_two_one",
97
       meta: {
109
       meta: {
98
-        title: '批量打印',
110
+        title: "批量打印",
99
         noCache: true
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
       hidden: true,
118
       hidden: true,
106
       is_menu: false,
119
       is_menu: false,
107
-      name: 'dialysis_batch_print_two_one',
120
+      name: "dialysis_batch_print_two_one",
108
       meta: {
121
       meta: {
109
-        title: '批量打印',
122
+        title: "批量打印",
110
         noCache: true
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
       hidden: true,
130
       hidden: true,
117
       is_menu: false,
131
       is_menu: false,
118
-      name: 'dialysis_batch_print_two_one',
132
+      name: "dialysis_batch_print_two_one",
119
       meta: {
133
       meta: {
120
-        title: '批量打印',
134
+        title: "批量打印",
121
         noCache: true
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
       hidden: true,
142
       hidden: true,
128
       is_menu: false,
143
       is_menu: false,
129
-      name: 'dialysis_batch_print_two_one',
144
+      name: "dialysis_batch_six",
130
       meta: {
145
       meta: {
131
-        title: '批量打印',
146
+        title: "批量打印",
132
         noCache: true
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
       hidden: true,
154
       hidden: true,
139
       is_menu: false,
155
       is_menu: false,
140
-      name: 'dialysis_batch_six',
156
+      name: "dialysis_batch_seven",
141
       meta: {
157
       meta: {
142
-        title: '批量打印',
158
+        title: "批量打印",
143
         noCache: true
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
       hidden: true,
166
       hidden: true,
150
       is_menu: false,
167
       is_menu: false,
151
-      name: 'dialysis_batch_seven',
168
+      name: "dialysis_batch_eight",
152
       meta: {
169
       meta: {
153
-        title: '批量打印',
170
+        title: "批量打印",
154
         noCache: true
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
       hidden: true,
178
       hidden: true,
161
       is_menu: false,
179
       is_menu: false,
162
-      name: 'dialysis_batch_eight',
180
+      name: "dialysis_batch_nine",
163
       meta: {
181
       meta: {
164
-        title: '批量打印',
182
+        title: "批量打印",
165
         noCache: true
183
         noCache: true
166
       }
184
       }
167
     },
185
     },
168
     {
186
     {
169
-      path: '/dialysis/print/batch/nine',
187
+      path: "/dialysis/print/batch/twelve",
170
       component: () =>
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
       hidden: true,
190
       hidden: true,
173
       is_menu: false,
191
       is_menu: false,
174
-      name: 'dialysis_batch_nine',
192
+      name: "dialysis_batch_nine",
175
       meta: {
193
       meta: {
176
-        title: '批量打印',
194
+        title: "批量打印",
177
         noCache: true
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
       hidden: true,
202
       hidden: true,
184
       is_menu: false,
203
       is_menu: false,
185
-      name: 'dialysis_batch_print_two_one',
204
+      name: "dialysis_batch_print_two_one",
186
       meta: {
205
       meta: {
187
-        title: '批量打印',
206
+        title: "批量打印",
188
         noCache: true
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
       hidden: true,
214
       hidden: true,
194
       is_menu: false,
215
       is_menu: false,
195
-      name: 'dialysis_batch_print_two_two',
216
+      name: "dialysis_batch_print_two_two",
196
       meta: {
217
       meta: {
197
-        title: '批量打印',
218
+        title: "批量打印",
198
         noCache: true
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
       hidden: true,
226
       hidden: true,
204
       is_menu: false,
227
       is_menu: false,
205
-      name: 'dialysis_batch_print_two_two',
228
+      name: "dialysis_batch_print_two_two",
206
       meta: {
229
       meta: {
207
-        title: '批量打印',
230
+        title: "批量打印",
208
         noCache: true
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
       hidden: true,
238
       hidden: true,
214
       is_menu: false,
239
       is_menu: false,
215
-      name: 'dialysis_batch_print_two_two',
240
+      name: "dialysis_batch_print_two_two",
216
       meta: {
241
       meta: {
217
-        title: '批量打印',
242
+        title: "批量打印",
218
         noCache: true
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
           >批量打印</el-button
130
           >批量打印</el-button
131
         >
131
         >
132
       </template>
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
     </div>
143
     </div>
134
     <div class="app-container">
144
     <div class="app-container">
135
       <!-- <div class="filter-container">
145
       <!-- <div class="filter-container">
631
         this.$router.push({ path: "/dialysis/print/batch/eight" });
641
         this.$router.push({ path: "/dialysis/print/batch/eight" });
632
       } else if (this.template_id == 9) {
642
       } else if (this.template_id == 9) {
633
         this.$router.push({ path: "/dialysis/print/batch/nine" });
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
     batchPrintActionOne: function() {
648
     batchPrintActionOne: function() {

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

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

+ 30 - 30
src/xt_permission.js View File

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
 NProgress.configure({
6
 NProgress.configure({
7
   showSpinner: false
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
 router.beforeEach((to, from, next) => {
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
   // console.log(store.getters.current_role_urls.indexOf(to.path))
31
   // console.log(store.getters.current_role_urls.indexOf(to.path))
32
   // alert('path:' + to.path)
32
   // alert('path:' + to.path)
33
   // 如果 url 带有 lt (login_token)参数,则跳转到验证 token 时等待的页面
33
   // 如果 url 带有 lt (login_token)参数,则跳转到验证 token 时等待的页面
34
   if (to.query.lt != null && to.query.lt.length > 0) {
34
   if (to.query.lt != null && to.query.lt.length > 0) {
35
     // alert('will go to verify token: ' + to.query.lt)
35
     // alert('will go to verify token: ' + to.query.lt)
36
     next({
36
     next({
37
-      path: '/token/verify',
37
+      path: "/token/verify",
38
       query: {
38
       query: {
39
         token: to.query.lt
39
         token: to.query.lt
40
       }
40
       }
41
-    })
41
+    });
42
 
42
 
43
     // 否则 如果没有 user 信息,则前往 sso 登录
43
     // 否则 如果没有 user 信息,则前往 sso 登录
44
   } else if (store.getters.xt_user.user.id === 0) {
44
   } else if (store.getters.xt_user.user.id === 0) {
45
     if (loginWhiteList.indexOf(to.path) !== -1) {
45
     if (loginWhiteList.indexOf(to.path) !== -1) {
46
       // alert('登录白名单内,跳过登录')
46
       // alert('登录白名单内,跳过登录')
47
-      next()
47
+      next();
48
     } else {
48
     } else {
49
       // alert('前往登录')
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
     // 否则 如果当前 url 不需要验证访问权限,则通过
53
     // 否则 如果当前 url 不需要验证访问权限,则通过
54
   } else if (permissionWhiteList.indexOf(to.path) !== -1) {
54
   } else if (permissionWhiteList.indexOf(to.path) !== -1) {
55
     // alert('权限验证白名单内,直接进入')
55
     // alert('权限验证白名单内,直接进入')
56
-    next()
56
+    next();
57
 
57
 
58
     // 否则 如果拥有当前 url 的权限,则通过
58
     // 否则 如果拥有当前 url 的权限,则通过
59
     // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
59
     // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
65
     // console.log(store.getters.current_role_urls)
65
     // console.log(store.getters.current_role_urls)
66
     // console.log(store.getters.current_role_urls.indexOf(to.path))
66
     // console.log(store.getters.current_role_urls.indexOf(to.path))
67
     // alert('401')
67
     // alert('401')
68
-    next()
68
+    next();
69
     // next({ path: '/404' })
69
     // next({ path: '/404' })
70
   }
70
   }
71
-})
71
+});
72
 
72
 
73
 router.afterEach(() => {
73
 router.afterEach(() => {
74
-  NProgress.done()
75
-})
74
+  NProgress.done();
75
+});