Browse Source

5月31日下午提交

xiaoming_global 6 years ago
parent
commit
3a1fedd03d
2 changed files with 353 additions and 431 deletions
  1. 338 416
      src/router/index.js
  2. 15 15
      src/xt_permission.js

+ 338 - 416
src/router/index.js View File

@@ -124,347 +124,346 @@ export const xt_constantRouterMap = [
124 124
 
125 125
   // ////////////////////////////
126 126
   // 本地开始
127
-  /////////////////////////////
128
-  // {
129
-  //   path: '/patients',
130
-  //   component: Layout,
131
-  //   redirect: 'noredirect',
132
-  //   name: 'User',
133
-  //   meta: {
134
-  //     title: 'user',
135
-  //     icon: 'bingren'
136
-  //   },
137
-  //   children: [
138
-  //     {
139
-  //       path: '/patients/patients',
140
-  //       component: () => import('@/xt_pages/user/patients'),
141
-  //       name: 'Patient',
142
-  //       meta: { title: 'patient', noCache: true }
143
-  //     },
144
-  //     {
145
-  //       path: '/patients/create',
146
-  //       component: () => import('@/xt_pages/user/createPatient'),
147
-  //       name: 'createPatient',
148
-  //       meta: { title: 'createPatient', noCache: true }
149
-  //     },
150
-  //     {
151
-  //       path: '/patients/patient/:id',
152
-  //       component: () => import('@/xt_pages/user/patientInfo'),
153
-  //       hidden: true,
154
-  //       is_menu: false,
155
-  //       name: 'patient Page',
156
-  //       meta: { title: 'patientPage', noCache: true }
157
-  //     },
158
-  //     {
159
-  //       path: '/patients/patient/:id/edit',
160
-  //       component: () => import('@/xt_pages/user/editPatient'),
161
-  //       hidden: true,
162
-  //       is_menu: false,
163
-  //       name: 'Edit Patient',
164
-  //       meta: { title: 'editPatient', noCache: true }
165
-  //     },
166
-  //     {
167
-  //       path: '/patients/patient/:id/dialysisSolution',
168
-  //       component: () => import('@/xt_pages/user/dialysisSolution'),
169
-  //       hidden: true,
170
-  //       is_menu: false,
171
-  //       name: 'dialysisSolution',
172
-  //       meta: { title: 'dialysisSolution', noCache: true }
173
-  //     },
174
-  //     {
175
-  //       path: '/patients/patient/:id/weight',
176
-  //       component: () => import('@/xt_pages/user/weight'),
177
-  //       hidden: true,
178
-  //       is_menu: false,
179
-  //       name: 'weight',
180
-  //       meta: { title: 'weight', noCache: true }
181
-  //     },
182
-  //     {
183
-  //       path: '/patients/patient/:id/dialysisRecord',
184
-  //       component: () => import('@/xt_pages/user/dialysisRecord'),
185
-  //       hidden: true,
186
-  //       is_menu: false,
187
-  //       name: 'dialysisRecord',
188
-  //       meta: { title: 'dialysisRecord', noCache: true }
189
-  //     },
190
-  //     {
191
-  //       path: '/patients/patient/:id/scheduling',
192
-  //       component: () => import('@/xt_pages/user/scheduling'),
193
-  //       hidden: true,
194
-  //       is_menu: false,
195
-  //       name: 'scheduling',
196
-  //       meta: { title: 'scheduling', noCache: true }
197
-  //     },
198
-  //     {
199
-  //       path: '/patients/patient/:id/doctorAdvice',
200
-  //       component: () => import('@/xt_pages/user/doctorAdvice'),
201
-  //       hidden: true,
202
-  //       is_menu: false,
203
-  //       name: 'doctorAdvice',
204
-  //       meta: { title: 'doctorAdvice', noCache: true }
205
-  //     },
206
-  //     {
207
-  //       path: '/patients/inspection',
208
-  //       component: () => import('@/xt_pages/user/inspection'),
209
-  //       hidden: true,
210
-  //       is_menu: false,
211
-  //       name: 'Inspection',
212
-  //       meta: { title: 'inspection', noCache: true }
213
-  //     },
214
-  //     {
215
-  //       path: '/patients/course',
216
-  //       component: () => import('@/xt_pages/user/courseOfDisease'),
217
-  //       hidden: true,
218
-  //       is_menu: false,
219
-  //       name: 'CourseOfDiseaseManage',
220
-  //       meta: { title: 'CourseOfDiseaseManage', noCache: true }
221
-  //     },
222
-  //     {
223
-  //       path: '/patients/rescue',
224
-  //       component: () => import('@/xt_pages/user/rescueRecord'),
225
-  //       hidden: true,
226
-  //       is_menu: false,
227
-  //       name: 'RescueRecord',
228
-  //       meta: { title: 'RescueRecord', noCache: true }
229
-  //     },
230
-  //     {
231
-  //       path: '/patients/patient/:id/proeducation',
232
-  //       component: () => import('@/xt_pages/user/proeducation'),
233
-  //       hidden: true,
234
-  //       is_menu: false,
235
-  //       name: 'proeducation',
236
-  //       meta: { title: 'proeducation', noCache: true }
237
-  //     }
238
-  //   ]
239
-  // },
240
-  // {
241
-  //   path: '/workforce',
242
-  //   component: Layout,
243
-  //   redirect: 'noredirect',
244
-  //   name: 'workforce',
245
-  //   meta: {
246
-  //     title: 'workforce',
247
-  //     icon: 'paiban'
248
-  //   },
249
-  //   children: [
250
-  //     {
251
-  //       path: '/workforce/appointment',
252
-  //       component: () => import('@/xt_pages/workforce/appointment'),
253
-  //       name: 'appointment',
254
-  //       meta: { title: 'appointment', noCache: true }
255
-  //     },
256
-  //     {
257
-  //       path: '/workforce/sign',
258
-  //       component: () => import('@/xt_pages/workforce/sign'),
259
-  //       hidden: true,
260
-  //       is_menu: false,
261
-  //       name: 'workforcesign',
262
-  //       meta: { title: 'sign', noCache: true }
263
-  //     },
264
-  //     {
265
-  //       path: '/workforce/remind',
266
-  //       component: () => import('@/xt_pages/workforce/remind'),
267
-  //       name: 'remind',
268
-  //       meta: { title: 'remind', noCache: true }
269
-  //     },
270
-  //     {
271
-  //       path: '/workforce/template',
272
-  //       component: () => import('@/xt_pages/workforce/template'),
273
-  //       name: 'workforce_template',
274
-  //       hidden: true,
275
-  //       is_menu: false,
276
-  //       meta: { title: 'workforce_template', noCache: true }
277
-  //     },
278
-  //     {
279
-  //       path: '/workforce/schedule/print',
280
-  //       component: () => import('@/xt_pages/workforce/schedule_print'),
281
-  //       name: 'schedule_print',
282
-  //       hidden: true,
283
-  //       is_menu: false,
284
-  //       meta: { title: 'schedule_print', noCache: true }
285
-  //     }
286
-  //   ]
287
-  // },
288
-  // {
289
-  //   path: '/sign',
290
-  //   component: Layout,
291
-  //   redirct: '/sign/index',
292
-  //   children: [{
293
-  //     path: '/sign',
294
-  //     component: () => import('@/xt_pages/sign/index'),
295
-  //     name: 'sign',
296
-  //     meta: { title: 'signWeight', icon: 'sign', noCache: true }
297
-  //   }]
298
-  // },
299
-  // {
300
-  //   path: '/dialysis/',
301
-  //   component: Layout,
302
-  //   redirect: 'noredirect',
303
-  //   name: 'dialysis',
304
-  //   meta: {
305
-  //     title: 'dialysis',
306
-  //     icon: 'touxi'
307
-  //   },
308
-  //   children: [
309
-  //     { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
310
-  //     {
311
-  //       path: '/dialysis/record/:id',
312
-  //       component: () => import('@/xt_pages/dialysis/dialysisPage'),
313
-  //       hidden: true,
314
-  //       is_menu: false,
315
-  //       name: 'paper',
316
-  //       meta: { title: 'paper', noCache: true }
317
-  //     },
318
-  //     {
319
-  //       path: '/dialysis/print',
320
-  //       component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
321
-  //       hidden: true,
322
-  //       is_menu: false,
323
-  //       name: 'dialysisPrintOrder',
324
-  //       meta: { title: 'dialysisPrintOrder', noCache: true }
325
-  //     },
127
+  // /////////////////////////////
128
+  {
129
+    path: '/patients',
130
+    component: Layout,
131
+    redirect: 'noredirect',
132
+    name: 'User',
133
+    meta: {
134
+      title: 'user',
135
+      icon: 'bingren'
136
+    },
137
+    children: [
138
+      {
139
+        path: '/patients/patients',
140
+        component: () => import('@/xt_pages/user/patients'),
141
+        name: 'Patient',
142
+        meta: { title: 'patient', noCache: true }
143
+      },
144
+      {
145
+        path: '/patients/create',
146
+        component: () => import('@/xt_pages/user/createPatient'),
147
+        name: 'createPatient',
148
+        meta: { title: 'createPatient', noCache: true }
149
+      },
150
+      {
151
+        path: '/patients/patient/:id',
152
+        component: () => import('@/xt_pages/user/patientInfo'),
153
+        hidden: true,
154
+        is_menu: false,
155
+        name: 'patient Page',
156
+        meta: { title: 'patientPage', noCache: true }
157
+      },
158
+      {
159
+        path: '/patients/patient/:id/edit',
160
+        component: () => import('@/xt_pages/user/editPatient'),
161
+        hidden: true,
162
+        is_menu: false,
163
+        name: 'Edit Patient',
164
+        meta: { title: 'editPatient', noCache: true }
165
+      },
166
+      {
167
+        path: '/patients/patient/:id/dialysisSolution',
168
+        component: () => import('@/xt_pages/user/dialysisSolution'),
169
+        hidden: true,
170
+        is_menu: false,
171
+        name: 'dialysisSolution',
172
+        meta: { title: 'dialysisSolution', noCache: true }
173
+      },
174
+      {
175
+        path: '/patients/patient/:id/weight',
176
+        component: () => import('@/xt_pages/user/weight'),
177
+        hidden: true,
178
+        is_menu: false,
179
+        name: 'weight',
180
+        meta: { title: 'weight', noCache: true }
181
+      },
182
+      {
183
+        path: '/patients/patient/:id/dialysisRecord',
184
+        component: () => import('@/xt_pages/user/dialysisRecord'),
185
+        hidden: true,
186
+        is_menu: false,
187
+        name: 'dialysisRecord',
188
+        meta: { title: 'dialysisRecord', noCache: true }
189
+      },
190
+      {
191
+        path: '/patients/patient/:id/scheduling',
192
+        component: () => import('@/xt_pages/user/scheduling'),
193
+        hidden: true,
194
+        is_menu: false,
195
+        name: 'scheduling',
196
+        meta: { title: 'scheduling', noCache: true }
197
+      },
198
+      {
199
+        path: '/patients/patient/:id/doctorAdvice',
200
+        component: () => import('@/xt_pages/user/doctorAdvice'),
201
+        hidden: true,
202
+        is_menu: false,
203
+        name: 'doctorAdvice',
204
+        meta: { title: 'doctorAdvice', noCache: true }
205
+      },
206
+      {
207
+        path: '/patients/inspection',
208
+        component: () => import('@/xt_pages/user/inspection'),
209
+        hidden: true,
210
+        is_menu: false,
211
+        name: 'Inspection',
212
+        meta: { title: 'inspection', noCache: true }
213
+      },
214
+      {
215
+        path: '/patients/course',
216
+        component: () => import('@/xt_pages/user/courseOfDisease'),
217
+        hidden: true,
218
+        is_menu: false,
219
+        name: 'CourseOfDiseaseManage',
220
+        meta: { title: 'CourseOfDiseaseManage', noCache: true }
221
+      },
222
+      {
223
+        path: '/patients/rescue',
224
+        component: () => import('@/xt_pages/user/rescueRecord'),
225
+        hidden: true,
226
+        is_menu: false,
227
+        name: 'RescueRecord',
228
+        meta: { title: 'RescueRecord', noCache: true }
229
+      },
230
+      {
231
+        path: '/patients/patient/:id/proeducation',
232
+        component: () => import('@/xt_pages/user/proeducation'),
233
+        hidden: true,
234
+        is_menu: false,
235
+        name: 'proeducation',
236
+        meta: { title: 'proeducation', noCache: true }
237
+      }
238
+    ]
239
+  },
240
+  {
241
+    path: '/workforce',
242
+    component: Layout,
243
+    redirect: 'noredirect',
244
+    name: 'workforce',
245
+    meta: {
246
+      title: 'workforce',
247
+      icon: 'paiban'
248
+    },
249
+    children: [
250
+      {
251
+        path: '/workforce/appointment',
252
+        component: () => import('@/xt_pages/workforce/appointment'),
253
+        name: 'appointment',
254
+        meta: { title: 'appointment', noCache: true }
255
+      },
256
+      {
257
+        path: '/workforce/sign',
258
+        component: () => import('@/xt_pages/workforce/sign'),
259
+        hidden: true,
260
+        is_menu: false,
261
+        name: 'workforcesign',
262
+        meta: { title: 'sign', noCache: true }
263
+      },
264
+      {
265
+        path: '/workforce/remind',
266
+        component: () => import('@/xt_pages/workforce/remind'),
267
+        name: 'remind',
268
+        meta: { title: 'remind', noCache: true }
269
+      },
270
+      {
271
+        path: '/workforce/template',
272
+        component: () => import('@/xt_pages/workforce/template'),
273
+        name: 'workforce_template',
274
+        hidden: true,
275
+        is_menu: false,
276
+        meta: { title: 'workforce_template', noCache: true }
277
+      },
278
+      {
279
+        path: '/workforce/schedule/print',
280
+        component: () => import('@/xt_pages/workforce/schedule_print'),
281
+        name: 'schedule_print',
282
+        hidden: true,
283
+        is_menu: false,
284
+        meta: { title: 'schedule_print', noCache: true }
285
+      }
286
+    ]
287
+  },
288
+  {
289
+    path: '/sign',
290
+    component: Layout,
291
+    redirct: '/sign/index',
292
+    children: [{
293
+      path: '/sign',
294
+      component: () => import('@/xt_pages/sign/index'),
295
+      name: 'sign',
296
+      meta: { title: 'signWeight', icon: 'sign', noCache: true }
297
+    }]
298
+  },
299
+  {
300
+    path: '/dialysis/',
301
+    component: Layout,
302
+    redirect: 'noredirect',
303
+    name: 'dialysis',
304
+    meta: {
305
+      title: 'dialysis',
306
+      icon: 'touxi'
307
+    },
308
+    children: [
309
+      { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
310
+      {
311
+        path: '/dialysis/record/:id',
312
+        component: () => import('@/xt_pages/dialysis/dialysisPage'),
313
+        hidden: true,
314
+        is_menu: false,
315
+        name: 'paper',
316
+        meta: { title: 'paper', noCache: true }
317
+      },
318
+      {
319
+        path: '/dialysis/print',
320
+        component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
321
+        hidden: true,
322
+        is_menu: false,
323
+        name: 'dialysisPrintOrder',
324
+        meta: { title: 'dialysisPrintOrder', noCache: true }
325
+      },
326 326
 
327
-  //     // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
328
-  //     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
329
-  //     { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
330
-  //     { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, hidden: true, is_menu: false },
331
-  //     {
332
-  //       path: '/dialysis/print/batch',
333
-  //       component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
334
-  //       hidden: true,
335
-  //       is_menu: false,
336
-  //       name: 'dialysis_batch_print',
337
-  //       meta: { title: '批量打印', noCache: true }
338
-  //     },
339
-  //     { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
340
-  //   ]
341
-  // },
342
-  // {
343
-  //   path: '/stock/',
344
-  //   component: Layout,
345
-  //   redirect: 'noredirect',
346
-  //   name: 'stockManage',
347
-  //   meta: { title: 'stockManage', icon: 'stock' },
348
-  //   children: [
349
-  //     {
350
-  //       path: '/stock/config',
351
-  //       component: () => import('@/xt_pages/stock/index'),
352
-  //       name: 'config',
353
-  //       meta: { title: 'config' }
354
-  //     },
355
-  //     {
356
-  //       path: '/stock/in',
357
-  //       component: () => import('@/xt_pages/stock/stockInOrder'),
358
-  //       name: 'stockInOrder',
359
-  //       meta: { title: 'stockInOrder', noCache: true }
360
-  //     }, {
361
-  //       path: '/stock/in/other',
362
-  //       component: () => import('@/xt_pages/stock/otherStockInOrder'),
363
-  //       name: 'otherStockInOrder',
364
-  //       meta: { title: 'otherStockInOrder', noCache: true }
365
-  //     }, {
366
-  //       path: '/stock/return',
367
-  //       component: () => import('@/xt_pages/stock/salesReturnOrder'),
368
-  //       name: 'salesReturnOrder',
369
-  //       meta: { title: 'salesReturnOrder', noCache: true }
370
-  //     }, {
371
-  //       path: '/stock/return/other',
372
-  //       component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
373
-  //       name: 'otherSalesReturnOrder',
374
-  //       meta: { title: 'otherSalesReturnOrder', noCache: true }
375
-  //     },
376
-  //     {
377
-  //       path: '/stock/out',
378
-  //       component: () => import('@/xt_pages/stock/stockOutOrder'),
379
-  //       name: 'stockOutOrder',
380
-  //       meta: { title: 'stockOutOrder', noCache: true }
381
-  //     }, {
382
-  //       path: '/stock/out/other',
383
-  //       component: () => import('@/xt_pages/stock/otherStockOutOrder'),
384
-  //       name: 'otherStockOutOrder',
385
-  //       meta: { title: 'otherStockOutOrder', noCache: true }
386
-  //     }, {
387
-  //       path: '/stock/cancel',
388
-  //       component: () => import('@/xt_pages/stock/cancelStockOrder'),
389
-  //       name: 'cancelStockOrder',
390
-  //       meta: { title: 'cancelStockOrder', noCache: true }
391
-  //     }, {
392
-  //       path: '/stock/cancel/other',
393
-  //       component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
394
-  //       name: 'otherCancelStockOrder',
395
-  //       meta: { title: 'otherCancelStockOrder', noCache: true }
396
-  //     }, {
397
-  //       path: '/stock/query',
398
-  //       component: () => import('@/xt_pages/stock/stockQuery'),
399
-  //       name: 'stockQuery',
400
-  //       meta: { title: 'stockQuery' }
401
-  //     }, {
402
-  //       path: '/stock/detail',
403
-  //       component: () => import('@/xt_pages/stock/stockDetailIndex'),
404
-  //       name: 'stockDetail',
405
-  //       meta: { title: 'stockDetail' }
406
-  //     },
407
-  //     {
408
-  //       path: '/stock/in/add',
409
-  //       component: () => import('@/xt_pages/stock/stockInOrderAdd'),
410
-  //       name: 'stockInOrderAdd',
411
-  //       hidden: true,
412
-  //       is_menu: false,
413
-  //       meta: { title: 'stockInOrderAdd' }
414
-  //     }, {
415
-  //       path: '/stock/in/detail',
416
-  //       component: () => import('@/xt_pages/stock/stockInDetail'),
417
-  //       name: 'stockInDetail',
418
-  //       hidden: true,
419
-  //       is_menu: false,
420
-  //       meta: { title: 'stockInDetail' }
421
-  //     }, {
422
-  //       path: '/stock/return/detail',
423
-  //       component: () => import('@/xt_pages/stock/salesReturnDetail'),
424
-  //       name: 'salesReturnDetail',
425
-  //       hidden: true,
426
-  //       is_menu: false,
427
-  //       meta: { title: 'salesReturnDetail' }
428
-  //     }, {
429
-  //       path: '/stock/return/add',
430
-  //       component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
431
-  //       name: 'salesReturnOrderAdd',
432
-  //       hidden: true,
433
-  //       is_menu: false,
434
-  //       meta: { title: 'salesReturnOrderAdd' }
435
-  //     }, {
436
-  //       path: '/stock/out/add',
437
-  //       component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
438
-  //       name: 'stockOutOrderAdd',
439
-  //       hidden: true,
440
-  //       is_menu: false,
441
-  //       meta: { title: 'stockOutOrderAdd' }
442
-  //     }, {
443
-  //       path: '/stock/out/detail',
444
-  //       component: () => import('@/xt_pages/stock/stockOutDetail'),
445
-  //       name: 'stockOutDetail',
446
-  //       hidden: true,
447
-  //       is_menu: false,
448
-  //       meta: { title: 'stockOutDetail' }
449
-  //     }, {
450
-  //       path: '/stock/cancel/add',
451
-  //       component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
452
-  //       name: 'cancelStockOrderAdd',
453
-  //       hidden: true,
454
-  //       is_menu: false,
455
-  //       meta: { title: 'cancelStockOrderAdd' }
456
-  //     }, {
457
-  //       path: '/stock/cancel/detail',
458
-  //       component: () => import('@/xt_pages/stock/cancelStockDetail'),
459
-  //       name: 'cancelStockDetail',
460
-  //       hidden: true,
461
-  //       is_menu: false,
462
-  //       meta: { title: 'cancelStockDetail' }
463
-  //     }
464
-  //   ]
465
-  // },
327
+      // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
328
+      // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
329
+      { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
330
+      { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, hidden: true, is_menu: false },
331
+      {
332
+        path: '/dialysis/print/batch',
333
+        component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
334
+        hidden: true,
335
+        is_menu: false,
336
+        name: 'dialysis_batch_print',
337
+        meta: { title: '批量打印', noCache: true }
338
+      },
339
+      { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
340
+    ]
341
+  },
342
+  {
343
+    path: '/stock/',
344
+    component: Layout,
345
+    redirect: 'noredirect',
346
+    name: 'stockManage',
347
+    meta: { title: 'stockManage', icon: 'stock' },
348
+    children: [
349
+      {
350
+        path: '/stock/config',
351
+        component: () => import('@/xt_pages/stock/index'),
352
+        name: 'config',
353
+        meta: { title: 'config' }
354
+      },
355
+      {
356
+        path: '/stock/in',
357
+        component: () => import('@/xt_pages/stock/stockInOrder'),
358
+        name: 'stockInOrder',
359
+        meta: { title: 'stockInOrder', noCache: true }
360
+      }, {
361
+        path: '/stock/in/other',
362
+        component: () => import('@/xt_pages/stock/otherStockInOrder'),
363
+        name: 'otherStockInOrder',
364
+        meta: { title: 'otherStockInOrder', noCache: true }
365
+      }, {
366
+        path: '/stock/return',
367
+        component: () => import('@/xt_pages/stock/salesReturnOrder'),
368
+        name: 'salesReturnOrder',
369
+        meta: { title: 'salesReturnOrder', noCache: true }
370
+      }, {
371
+        path: '/stock/return/other',
372
+        component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
373
+        name: 'otherSalesReturnOrder',
374
+        meta: { title: 'otherSalesReturnOrder', noCache: true }
375
+      },
376
+      {
377
+        path: '/stock/out',
378
+        component: () => import('@/xt_pages/stock/stockOutOrder'),
379
+        name: 'stockOutOrder',
380
+        meta: { title: 'stockOutOrder', noCache: true }
381
+      }, {
382
+        path: '/stock/out/other',
383
+        component: () => import('@/xt_pages/stock/otherStockOutOrder'),
384
+        name: 'otherStockOutOrder',
385
+        meta: { title: 'otherStockOutOrder', noCache: true }
386
+      }, {
387
+        path: '/stock/cancel',
388
+        component: () => import('@/xt_pages/stock/cancelStockOrder'),
389
+        name: 'cancelStockOrder',
390
+        meta: { title: 'cancelStockOrder', noCache: true }
391
+      }, {
392
+        path: '/stock/cancel/other',
393
+        component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
394
+        name: 'otherCancelStockOrder',
395
+        meta: { title: 'otherCancelStockOrder', noCache: true }
396
+      }, {
397
+        path: '/stock/query',
398
+        component: () => import('@/xt_pages/stock/stockQuery'),
399
+        name: 'stockQuery',
400
+        meta: { title: 'stockQuery' }
401
+      }, {
402
+        path: '/stock/detail',
403
+        component: () => import('@/xt_pages/stock/stockDetailIndex'),
404
+        name: 'stockDetail',
405
+        meta: { title: 'stockDetail' }
406
+      },
407
+      {
408
+        path: '/stock/in/add',
409
+        component: () => import('@/xt_pages/stock/stockInOrderAdd'),
410
+        name: 'stockInOrderAdd',
411
+        hidden: true,
412
+        is_menu: false,
413
+        meta: { title: 'stockInOrderAdd' }
414
+      }, {
415
+        path: '/stock/in/detail',
416
+        component: () => import('@/xt_pages/stock/stockInDetail'),
417
+        name: 'stockInDetail',
418
+        hidden: true,
419
+        is_menu: false,
420
+        meta: { title: 'stockInDetail' }
421
+      }, {
422
+        path: '/stock/return/detail',
423
+        component: () => import('@/xt_pages/stock/salesReturnDetail'),
424
+        name: 'salesReturnDetail',
425
+        hidden: true,
426
+        is_menu: false,
427
+        meta: { title: 'salesReturnDetail' }
428
+      }, {
429
+        path: '/stock/return/add',
430
+        component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
431
+        name: 'salesReturnOrderAdd',
432
+        hidden: true,
433
+        is_menu: false,
434
+        meta: { title: 'salesReturnOrderAdd' }
435
+      }, {
436
+        path: '/stock/out/add',
437
+        component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
438
+        name: 'stockOutOrderAdd',
439
+        hidden: true,
440
+        is_menu: false,
441
+        meta: { title: 'stockOutOrderAdd' }
442
+      }, {
443
+        path: '/stock/out/detail',
444
+        component: () => import('@/xt_pages/stock/stockOutDetail'),
445
+        name: 'stockOutDetail',
446
+        hidden: true,
447
+        is_menu: false,
448
+        meta: { title: 'stockOutDetail' }
449
+      }, {
450
+        path: '/stock/cancel/add',
451
+        component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
452
+        name: 'cancelStockOrderAdd',
453
+        hidden: true,
454
+        is_menu: false,
455
+        meta: { title: 'cancelStockOrderAdd' }
456
+      }, {
457
+        path: '/stock/cancel/detail',
458
+        component: () => import('@/xt_pages/stock/cancelStockDetail'),
459
+        name: 'cancelStockDetail',
460
+        hidden: true,
461
+        is_menu: false,
462
+        meta: { title: 'cancelStockDetail' }
463
+      }
464
+    ]
465
+  },
466 466
 
467
-<<<<<<< .mine
468 467
   {
469 468
     path: '/qcd',
470 469
     component: Layout,
@@ -540,83 +539,6 @@ export const xt_constantRouterMap = [
540 539
     component: () => import('@/xt_pages/fullscreenboard/index'),
541 540
     hidden: true
542 541
   },
543
-=======
544
-  // {
545
-  //   path: '/qcd',
546
-  //   component: Layout,
547
-  //   redirect: '/qcd/dialysistotal',
548
-  //   name: 'qcd',
549
-  //   alwaysShow: true,
550
-  //   meta: { title: '科室质控', icon: 'statistics' },
551
-  //   children: [
552
-  //     { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
553
-  //     { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
554
-  //     { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
555
-  //     { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
556
-  //     { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
557
-  //     { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
558
-  //     { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
559
-  //     { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
560
-  //     { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
561
-  //     { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
562
-  //     { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
563
-  //     { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
564
-  //     { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
565
-  //     { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
566
-  //     { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
567
-  //     { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
568
-  //     { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
569
-  //   ]
570
-  // },
571
-  // {
572
-  //   path: '/data/',
573
-  //   component: Layout,
574
-  //   redirect: 'noredirect',
575
-  //   name: 'data',
576
-  //   meta: { title: 'data_dictionary', icon: 'excel' },
577
-  //   children: [
578
-  //     { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
579
-  //     { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
580
-  //     { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
581
-  //   ]
582
-  // },
583
-  // {
584
-  //   path: '/device',
585
-  //   component: Layout,
586
-  //   redirect: '/device/main',
587
-  //   name: 'device',
588
-  //   alwaysShow: true,
589
-  //   meta: { title: 'deviceManage', icon: 'shebei' },
590
-  //   children: [
591
-  //     { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
592
-  //     { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
593
-  //     { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
594
-  //     { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
595
-  //   ]
596
-  // },
597
-  // {
598
-  //   path: '/role',
599
-  //   component: Layout,
600
-  //   redirect: '/role/admin/manage',
601
-  //   name: 'role',
602
-  //   alwaysShow: true,
603
-  //   meta: { title: 'permissionManage', icon: 'role' },
604
-  //   children: [
605
-  //     { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
606
-  //     { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
607
-  //     { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
608
-  //     { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
609
-  //     { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
610
-  //     { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
611
-  //   ]
612
-  // }, {
613
-  //   path: '/fullscreenboard',
614
-  //   component: () => import('@/xt_pages/fullscreenboard/index'),
615
-  //   hidden: true
616
-  // },
617
-
618
-
619
->>>>>>> .theirs
620 542
   // /////////////本地要end/
621 543
 ]
622 544
 

+ 15 - 15
src/xt_permission.js View File

@@ -9,21 +9,21 @@ const loginWhiteList = ['/token/verify', '/401', '/404'] // 登录验证白名
9 9
 const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名单
10 10
 
11 11
 router.beforeEach((to, from, next) => {
12
-  // 线上注释
13
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
-  //   store.dispatch('VerifyConfigList', []).then(() => {
15
-  //     next()
16
-  //   })
17
-  // }
18
-  // if (store.getters.permission_routers === undefined) {
19
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
20
-  //     next()
21
-  //   })
22
-  // } else {
23
-  //   next()
24
-  // }
25
-  // return
26
-  // 线上注释
12
+  //线上注释
13
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
+    store.dispatch('VerifyConfigList', []).then(() => {
15
+      next()
16
+    })
17
+  }
18
+  if (store.getters.permission_routers === undefined) {
19
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
20
+      next()
21
+    })
22
+  } else {
23
+    next()
24
+  }
25
+  return
26
+//线上注释
27 27
 
28 28
   NProgress.start()
29 29
   // console.log(store.getters.current_role_urls.indexOf(to.path))