route.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. import Layout from '@/layout/index';
  2. const contractManagementRouter = {
  3. path: '/contractManagement',
  4. component: Layout,
  5. redirect: '/contractManagement',
  6. name: 'contractManagement',
  7. alwaysShow: true, // will always show the root menu
  8. meta: {
  9. title: 'contractManagement',
  10. module: 'contractManagement',
  11. icon: 'cg'
  12. },
  13. children: [
  14. {
  15. path: 'salesContract',
  16. component: () =>
  17. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContract'),
  18. name: 'salesContract',
  19. meta: {
  20. title: 'salesContract',
  21. shortcutEntrance: 'contractManagement',
  22. module: 'contractManagement.salesContract',
  23. permissicon: [],
  24. keepAlive: true
  25. // module: 'procurement.sparepart.applDetail'
  26. }
  27. },
  28. // 采购合同
  29. {
  30. path: 'purchaseContract',
  31. component: () =>
  32. import(/* webpackChunkName: "sparepartList" */ '@/views/contractManagement/purchaseContract'),
  33. name: 'purchaseContract',
  34. meta: {
  35. title: 'purchaseContract',
  36. shortcutEntrance: 'contractManagement',
  37. module: 'contractManagement.purchaseContract',
  38. permissicon: [],
  39. keepAlive: true
  40. }
  41. },
  42. {
  43. path: 'purchaseContractExamine',
  44. component: () =>
  45. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/purchaseContractExamine'),
  46. name: 'purchaseContractExamine',
  47. meta: {
  48. title: 'purchaseContractExamine',
  49. shortcutEntrance: 'contractManagement',
  50. module: 'contractManagement.salesContract.purchaseContractExamine',
  51. permissicon: [],
  52. keepAlive: true
  53. // module: 'procurement.sparepart.applDetail'
  54. },
  55. hidden: true
  56. },
  57. {
  58. path: 'purchaseContractEdit',
  59. component: () =>
  60. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/purchaseContractEdit'),
  61. name: 'purchaseContractEdit',
  62. meta: {
  63. title: 'purchaseContractEdit',
  64. shortcutEntrance: 'contractManagement',
  65. module: 'contractManagement.salesContract.purchaseContractEdit',
  66. permissicon: [],
  67. keepAlive: true
  68. // module: 'procurement.sparepart.applDetail'
  69. },
  70. hidden: true
  71. },
  72. {
  73. path: 'purchaseContractAdd',
  74. component: () =>
  75. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/purchaseContractAdd'),
  76. name: 'purchaseContractAdd',
  77. meta: {
  78. title: 'purchaseContractAdd',
  79. shortcutEntrance: 'contractManagement',
  80. module: 'contractManagement.salesContract.purchaseContractAdd',
  81. permissicon: [],
  82. keepAlive: true
  83. // module: 'procurement.sparepart.applDetail'
  84. },
  85. hidden: true
  86. },
  87. {
  88. path: 'salesContractExamine',
  89. component: () =>
  90. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractExamine'),
  91. name: 'salesContractExamine',
  92. meta: {
  93. title: 'salesContractExamine',
  94. shortcutEntrance: 'contractManagement',
  95. module: 'contractManagement.salesContract.salesContractExamine',
  96. permissicon: [],
  97. keepAlive: true
  98. // module: 'procurement.sparepart.applDetail'
  99. },
  100. hidden: true
  101. },
  102. {
  103. path: 'salesContractEdit',
  104. component: () =>
  105. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractEdit'),
  106. name: 'salesContractEdit',
  107. meta: {
  108. title: 'salesContractEdit',
  109. shortcutEntrance: 'contractManagement',
  110. module: 'contractManagement.salesContract.salesContractEdit',
  111. permissicon: [],
  112. keepAlive: true
  113. // module: 'procurement.sparepart.applDetail'
  114. },
  115. hidden: true
  116. },
  117. {
  118. path: 'salesContractAdd',
  119. component: () =>
  120. import(/* webpackChunkName: "applDetail" */ '@/views/contractManagement/salesContractAdd'),
  121. name: 'salesContractAdd',
  122. meta: {
  123. title: 'salesContractAdd',
  124. shortcutEntrance: 'contractManagement',
  125. module: 'contractManagement.salesContract.salesContractAdd',
  126. permissicon: [],
  127. keepAlive: true
  128. // module: 'procurement.sparepart.applDetail'
  129. },
  130. hidden: true
  131. }
  132. ],
  133. };
  134. export default contractManagementRouter;