xsy.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. /**
  2. * meta 参数说明
  3. * form:表单路由,存在或ture,也要后台配置,前端校验
  4. * mode:功能入口路由,存在或ture,也要后台配置,前端校验
  5. */
  6. const routesXsy = [
  7. /***公共***/
  8. {
  9. path: '/xsy',
  10. component: () => import('../views-xsy/Layout.vue'),
  11. children: [
  12. //审批
  13. {
  14. path: 'approval',
  15. component: () => import('../views-xsy/Layout.vue'),
  16. children: [
  17. //审批-个人
  18. {
  19. path: 'info',
  20. name: 'XsyApprovalInfo',
  21. component: () => import('../views-xsy/Approval/Info.vue'),
  22. meta: {
  23. requireAuth: false,
  24. role: [],
  25. title: '申请详情',
  26. }
  27. },
  28. //审批-领导
  29. {
  30. path: 'infosp',
  31. name: 'XsyApprovalInfoSp',
  32. component: () => import('../views-xsy/Approval/InfoSp.vue'),
  33. meta: {
  34. requireAuth: false,
  35. role: [],
  36. title: '申请详情',
  37. }
  38. },
  39. //审批列表-领导
  40. {
  41. path: 'list',
  42. name: 'XsyApprovalList',
  43. component: () => import('../views-xsy/Approval/List.vue'),
  44. meta: {
  45. requireAuth: false,
  46. role: [],
  47. title: '申请列表',
  48. }
  49. },
  50. //审批列表-待办
  51. {
  52. path: 'need',
  53. name: 'XsyApprovalNeed',
  54. component: () => import('../views-xsy/Approval/Need.vue'),
  55. meta: {
  56. requireAuth: false,
  57. role: [],
  58. title: '申请列表',
  59. }
  60. },
  61. ]
  62. },
  63. //申请调班
  64. {
  65. path: 'applyClass',
  66. component: () => import('../views-xsy/Layout.vue'),
  67. children: [
  68. //调班记录
  69. {
  70. path: 'list',
  71. name: 'XsyApplyClassList',
  72. component: () => import('../views-xsy/ApplyClass/List.vue'),
  73. meta: {
  74. requireAuth: false,
  75. role: [],
  76. title: '调班记录',
  77. }
  78. },
  79. //申请调班
  80. {
  81. path: 'add',
  82. name: 'XsyApplyClassAdd',
  83. component: () => import('../views-xsy/ApplyClass/Add.vue'),
  84. meta: {
  85. requireAuth: false,
  86. role: [],
  87. title: '申请调班',
  88. }
  89. },
  90. //选择班次
  91. {
  92. path: 'class',
  93. name: 'XsyApplyClassClass',
  94. component: () => import('../views-xsy/ApplyClass/Class.vue'),
  95. meta: {
  96. requireAuth: false,
  97. role: [],
  98. title: '申请调班',
  99. }
  100. },
  101. //申请详情
  102. {
  103. path: 'info',
  104. name: 'XsyApplyClassInfo',
  105. component: () => import('../views-xsy/ApplyClass/Info.vue'),
  106. meta: {
  107. requireAuth: false,
  108. role: [],
  109. title: '申请详情',
  110. }
  111. },
  112. //申请详情
  113. {
  114. path: 'my',
  115. name: 'XsyApplyClassMy',
  116. component: () => import('../views-xsy/ApplyClass/My.vue'),
  117. meta: {
  118. requireAuth: false,
  119. role: [],
  120. title: '排班表',
  121. }
  122. },
  123. ]
  124. },
  125. //安排调班
  126. {
  127. path: 'planClass',
  128. component: () => import('../views-xsy/Layout.vue'),
  129. children: [
  130. //排班记录
  131. {
  132. path: 'list',
  133. name: 'XsyPlanClassList',
  134. component: () => import('../views-xsy/PlanClass/List.vue'),
  135. meta: {
  136. requireAuth: false,
  137. role: [],
  138. title: '排班记录',
  139. }
  140. },
  141. //安排调班
  142. {
  143. path: 'add',
  144. name: 'XsyPlanClassAdd',
  145. component: () => import('../views-xsy/PlanClass/Add.vue'),
  146. meta: {
  147. requireAuth: false,
  148. role: [],
  149. title: '安排调班',
  150. }
  151. },
  152. //选择人员
  153. {
  154. path: 'person',
  155. name: 'XsyPlanClassPerson',
  156. component: () => import('../views-xsy/PlanClass/Person.vue'),
  157. meta: {
  158. requireAuth: false,
  159. role: [],
  160. title: '选择人员',
  161. }
  162. },
  163. //选择班次
  164. {
  165. path: 'class',
  166. name: 'XsyPlanClassClass',
  167. component: () => import('../views-xsy/PlanClass/Class.vue'),
  168. meta: {
  169. requireAuth: false,
  170. role: [],
  171. title: '选择班次',
  172. }
  173. },
  174. //调班详情
  175. {
  176. path: 'info',
  177. name: 'XsyPlanClassInfo',
  178. component: () => import('../views-xsy/PlanClass/Info.vue'),
  179. meta: {
  180. requireAuth: false,
  181. role: [],
  182. title: '调班详情',
  183. }
  184. },
  185. ]
  186. },//调班审核
  187. {
  188. path: 'approvalClass',
  189. component: () => import('../views-xsy/Layout.vue'),
  190. children: [
  191. //调班审核
  192. {
  193. path: 'list',
  194. name: 'XsyApprovalClassList',
  195. component: () => import('../views-xsy/ApprovalClass/List.vue'),
  196. meta: {
  197. requireAuth: false,
  198. role: [],
  199. title: '调班审核',
  200. }
  201. },
  202. //调班申请详情
  203. {
  204. path: 'info',
  205. name: 'XsyApprovalClassInfo',
  206. component: () => import('../views-xsy/ApprovalClass/Info.vue'),
  207. meta: {
  208. requireAuth: false,
  209. role: [],
  210. title: '调班申请详情',
  211. }
  212. },
  213. ]
  214. },{//批量补卡
  215. path: 'cardReplacement',
  216. component: () => import('../views-xsy/Layout.vue'),
  217. children: [
  218. //批量补卡记录
  219. {
  220. path: 'list',
  221. name: 'XsyCardReplacementList',
  222. component: () => import('../views-xsy/CardReplacement/List.vue'),
  223. meta: {
  224. requireAuth: false,
  225. role: [],
  226. title: '批量补卡记录',
  227. }
  228. },
  229. //申请补卡
  230. {
  231. path: 'add',
  232. name: 'XsyCardReplacementAdd',
  233. component: () => import('../views-xsy/CardReplacement/Add.vue'),
  234. meta: {
  235. requireAuth: false,
  236. role: [],
  237. title: '申请补卡',
  238. }
  239. },
  240. //选择人员
  241. {
  242. path: 'person',
  243. name: 'XsyCardReplacementPerson',
  244. component: () => import('../views-xsy/CardReplacement/Person.vue'),
  245. meta: {
  246. requireAuth: false,
  247. role: [],
  248. title: '选择人员',
  249. }
  250. },
  251. //申请详情
  252. {
  253. path: 'info',
  254. name: 'XsyCardReplacementInfo',
  255. component: () => import('../views-xsy/CardReplacement/Info.vue'),
  256. meta: {
  257. requireAuth: false,
  258. role: [],
  259. title: '申请详情',
  260. }
  261. },
  262. //审批列表
  263. {
  264. path: 'splist',
  265. name: 'XsyCardReplacementSplist',
  266. component: () => import('../views-xsy/CardReplacement/Splist.vue'),
  267. meta: {
  268. requireAuth: false,
  269. role: [],
  270. title: '审批列表',
  271. }
  272. },
  273. ]
  274. },{//批量加班
  275. path: 'workOvertime',
  276. component: () => import('../views-xsy/Layout.vue'),
  277. children: [
  278. //批量加班记录
  279. {
  280. path: 'list',
  281. name: 'XsyWorkOvertimeList',
  282. component: () => import('../views-xsy/WorkOvertime/List.vue'),
  283. meta: {
  284. requireAuth: false,
  285. role: [],
  286. title: '批量加班记录',
  287. }
  288. },
  289. //申请加班
  290. {
  291. path: 'add',
  292. name: 'XsyWorkOvertimeAdd',
  293. component: () => import('../views-xsy/WorkOvertime/Add.vue'),
  294. meta: {
  295. requireAuth: false,
  296. role: [],
  297. title: '申请加班',
  298. }
  299. },
  300. //批量加班记录
  301. {
  302. path: 'list3',
  303. name: 'XsyWorkOvertimeList3',
  304. component: () => import('../views-xsy/WorkOvertime/List3.vue'),
  305. meta: {
  306. requireAuth: false,
  307. role: [],
  308. title: '安排加班记录',
  309. }
  310. },
  311. //申请加班
  312. {
  313. path: 'add3',
  314. name: 'XsyWorkOvertimeAdd3',
  315. component: () => import('../views-xsy/WorkOvertime/Add3.vue'),
  316. meta: {
  317. requireAuth: false,
  318. role: [],
  319. title: '安排加班',
  320. }
  321. },
  322. //选择人员
  323. {
  324. path: 'person',
  325. name: 'XsyWorkOvertimePerson',
  326. component: () => import('../views-xsy/WorkOvertime/Person.vue'),
  327. meta: {
  328. requireAuth: false,
  329. role: [],
  330. title: '选择人员',
  331. }
  332. },
  333. //申请详情
  334. {
  335. path: 'info',
  336. name: 'XsyWorkOvertimeInfo',
  337. component: () => import('../views-xsy/WorkOvertime/Info.vue'),
  338. meta: {
  339. requireAuth: false,
  340. role: [],
  341. title: '申请详情',
  342. }
  343. },
  344. //审批列表
  345. {
  346. path: 'verifyList',
  347. name: 'XsyWorkOvertimeVerifyList',
  348. component: () => import('../views-xsy/WorkOvertime/VerifyList.vue'),
  349. meta: {
  350. requireAuth: false,
  351. role: [],
  352. title: '申请详情',
  353. }
  354. },
  355. ]
  356. },{//携物出场
  357. path: 'commerce',
  358. component: () => import('../views-xsy/Layout.vue'),
  359. children: [
  360. //携出申请列表
  361. {
  362. path: 'list',
  363. name: 'XsyCommerceList',
  364. component: () => import('../views-xsy/Commerce/List.vue'),
  365. meta: {
  366. requireAuth: false,
  367. role: [],
  368. title: '携出申请列表',
  369. }
  370. },
  371. //携带物品申请
  372. {
  373. path: 'add',
  374. name: 'XsyCommerceAdd',
  375. component: () => import('../views-xsy/Commerce/Add.vue'),
  376. meta: {
  377. requireAuth: false,
  378. role: [],
  379. title: '携带物品申请',
  380. }
  381. },
  382. //携出申请详情
  383. {
  384. path: 'info2',
  385. name: 'XsyCommerceInfo2',
  386. component: () => import('../views-xsy/Commerce/Info2.vue'),
  387. meta: {
  388. requireAuth: false,
  389. role: [],
  390. title: '携出申请详情',
  391. }
  392. },//携出申请详情 - 二维码
  393. {
  394. path: 'info',
  395. name: 'XsyCommerceInfo',
  396. component: () => import('../views-xsy/Commerce/Info.vue'),
  397. meta: {
  398. requireAuth: false,
  399. role: [],
  400. title: '携出申请详情',
  401. }
  402. },
  403. ]
  404. },{//物品放行
  405. path: 'release',
  406. component: () => import('../views-xsy/Layout.vue'),
  407. children: [
  408. //物品放行审核列表
  409. {
  410. path: 'list',
  411. name: 'XsyReleaseList',
  412. component: () => import('../views-xsy/Release/List.vue'),
  413. meta: {
  414. requireAuth: false,
  415. role: [],
  416. title: '物品放行审核列表',
  417. }
  418. },
  419. //物品放行审核详情
  420. {
  421. path: 'info',
  422. name: 'XsyReleaseInfo',
  423. component: () => import('../views-xsy/Release/Info.vue'),
  424. meta: {
  425. requireAuth: false,
  426. role: [],
  427. title: '物品放行审核详情',
  428. }
  429. },
  430. ]
  431. },{//扫码放行
  432. path: 'scan',
  433. component: () => import('../views-xsy/Layout.vue'),
  434. children: [
  435. //扫码放行
  436. {
  437. path: 'add',
  438. name: 'XsyScanAdd',
  439. component: () => import('../views-xsy/Scan/Add.vue'),
  440. meta: {
  441. requireAuth: false,
  442. role: [],
  443. title: '扫码放行',
  444. }
  445. },
  446. //放行记录
  447. {
  448. path: 'list',
  449. name: 'XsyScanList',
  450. component: () => import('../views-xsy/Scan/List.vue'),
  451. meta: {
  452. requireAuth: false,
  453. role: [],
  454. title: '放行记录',
  455. }
  456. },
  457. //核验详情
  458. {
  459. path: 'info',
  460. name: 'XsyScanInfo',
  461. component: () => import('../views-xsy/Scan/Info.vue'),
  462. meta: {
  463. requireAuth: false,
  464. role: [],
  465. title: '核验详情',
  466. }
  467. },
  468. ]
  469. },{//来客接待进餐申请
  470. path: 'treat',
  471. component: () => import('../views-xsy/Layout.vue'),
  472. children: [
  473. //来客接待进餐申请
  474. {
  475. path: 'list',
  476. name: 'XsyTreatList',
  477. component: () => import('../views-xsy/Treat/List.vue'),
  478. meta: {
  479. requireAuth: false,
  480. role: [],
  481. title: '来客接待进餐申请',
  482. }
  483. },
  484. //申请接待
  485. {
  486. path: 'add',
  487. name: 'XsyTreatAdd',
  488. component: () => import('../views-xsy/Treat/Add.vue'),
  489. meta: {
  490. requireAuth: false,
  491. role: [],
  492. title: '申请接待',
  493. }
  494. },
  495. //申请详情
  496. {
  497. path: 'info',
  498. name: 'XsyTreatInfo',
  499. component: () => import('../views-xsy/Treat/Info.vue'),
  500. meta: {
  501. requireAuth: false,
  502. role: [],
  503. title: '申请详情',
  504. }
  505. },
  506. ]
  507. },{//来客接待进餐审核
  508. path: 'treatApproval',
  509. component: () => import('../views-xsy/Layout.vue'),
  510. children: [
  511. //来客接待进餐审核
  512. {
  513. path: 'list',
  514. name: 'XsyTreatApprovalList',
  515. component: () => import('../views-xsy/TreatApproval/List.vue'),
  516. meta: {
  517. requireAuth: false,
  518. role: [],
  519. title: '来客接待进餐审核',
  520. }
  521. },
  522. //申请详情
  523. {
  524. path: 'info',
  525. name: 'XsyTreatApprovalInfo',
  526. component: () => import('../views-xsy/TreatApproval/Info.vue'),
  527. meta: {
  528. requireAuth: false,
  529. role: [],
  530. title: '申请详情',
  531. }
  532. },
  533. ]
  534. },{//饭卡
  535. path: 'meal',
  536. component: () => import('../views-xsy/Layout.vue'),
  537. children: [
  538. //饭卡主页
  539. {
  540. path: '',
  541. name: 'XsyMealHome',
  542. component: () => import('../views-xsy/Meal/Home.vue'),
  543. meta: {
  544. requireAuth: false,
  545. role: [],
  546. title: '消息列表',
  547. }
  548. },
  549. //就餐记录
  550. {
  551. path: 'list',
  552. name: 'XsyMealList',
  553. component: () => import('../views-xsy/Meal/List.vue'),
  554. meta: {
  555. requireAuth: false,
  556. role: [],
  557. title: '消息列表',
  558. }
  559. },
  560. //就餐详情
  561. {
  562. path: 'info',
  563. name: 'XsyMealInfo',
  564. component: () => import('../views-xsy/Meal/Info.vue'),
  565. meta: {
  566. requireAuth: false,
  567. role: [],
  568. title: '就餐详情',
  569. }
  570. },
  571. //充值记录
  572. {
  573. path: 'recharge',
  574. name: 'XsyMealRecharge',
  575. component: () => import('../views-xsy/Meal/Recharge.vue'),
  576. meta: {
  577. requireAuth: false,
  578. role: [],
  579. title: '充值记录',
  580. }
  581. },
  582. //充值明细
  583. {
  584. path: 'rechargeinfo',
  585. name: 'XsyMealRechargeinfo',
  586. component: () => import('../views-xsy/Meal/Rechargeinfo.vue'),
  587. meta: {
  588. requireAuth: false,
  589. role: [],
  590. title: '充值明细',
  591. }
  592. },
  593. ]
  594. },
  595. {//饭卡
  596. path: 'beautify',
  597. component: () => import('../views-xsy/Layout.vue'),
  598. children: [
  599. //
  600. {
  601. path: 'page1',
  602. name: 'XsyBeautifyPage1',
  603. component: () => import('../views-xsy/Beautify/Page1.vue'),
  604. meta: {
  605. requireAuth: false,
  606. role: [],
  607. title: '',
  608. }
  609. },
  610. //
  611. {
  612. path: 'page2',
  613. name: 'XsyBeautifyPage2',
  614. component: () => import('../views-xsy/Beautify/Page2.vue'),
  615. meta: {
  616. requireAuth: false,
  617. role: [],
  618. title: '',
  619. }
  620. },
  621. //
  622. {
  623. path: 'page3',
  624. name: 'XsyBeautifyPage3',
  625. component: () => import('../views-xsy/Beautify/Page3.vue'),
  626. meta: {
  627. requireAuth: false,
  628. role: [],
  629. title: '',
  630. }
  631. },
  632. //
  633. {
  634. path: 'page4',
  635. name: 'XsyBeautifyPage4',
  636. component: () => import('../views-xsy/Beautify/Page4.vue'),
  637. meta: {
  638. requireAuth: false,
  639. role: [],
  640. title: '',
  641. }
  642. },
  643. //
  644. {
  645. path: 'page5',
  646. name: 'XsyBeautifyPage5',
  647. component: () => import('../views-xsy/Beautify/Page5.vue'),
  648. meta: {
  649. requireAuth: false,
  650. role: [],
  651. title: '',
  652. }
  653. },
  654. //
  655. {
  656. path: 'page6',
  657. name: 'XsyBeautifyPage6',
  658. component: () => import('../views-xsy/Beautify/Page6.vue'),
  659. meta: {
  660. requireAuth: false,
  661. role: [],
  662. title: '',
  663. }
  664. },
  665. //
  666. {
  667. path: 'page7',
  668. name: 'XsyBeautifyPage7',
  669. component: () => import('../views-xsy/Beautify/Page7.vue'),
  670. meta: {
  671. requireAuth: false,
  672. role: [],
  673. title: '',
  674. }
  675. },
  676. //
  677. {
  678. path: 'page8',
  679. name: 'XsyBeautifyPage8',
  680. component: () => import('../views-xsy/Beautify/Page8.vue'),
  681. meta: {
  682. requireAuth: false,
  683. role: [],
  684. title: '',
  685. }
  686. },
  687. //
  688. {
  689. path: 'page9',
  690. name: 'XsyBeautifyPage9',
  691. component: () => import('../views-xsy/Beautify/Page9.vue'),
  692. meta: {
  693. requireAuth: false,
  694. role: [],
  695. title: '',
  696. }
  697. },
  698. ]
  699. },
  700. ],
  701. }
  702. ]
  703. export default routesXsy