quoteConfig.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw = {
  4. path: '/quoteConfig/agreement',
  5. component: Layout,
  6. redirect: '/quoteConfig/agreement/agreementIndex',
  7. name: 'QuoteConfig',
  8. meta: {
  9. title: '报价配置',
  10. },
  11. children: [
  12. {
  13. path: 'agreementIndex',
  14. name: 'AgreementIndex',
  15. component: () => import('@/views/quoteConfig/agreement/agreementIndex.vue'),
  16. meta: {
  17. title: '协议管理',
  18. },
  19. children: [
  20. {
  21. path: 'agreementAdd',
  22. name: 'AgreementAdd',
  23. component: () => import('@/views/quoteConfig/agreement/agreementAdd.vue'),
  24. meta: {
  25. title: '协议添加',
  26. menu: false,
  27. activeMenu: '/quoteConfig/agreement/agreementIndex',
  28. },
  29. },
  30. {
  31. path: 'agreementCopy',
  32. name: 'AgreementCopy',
  33. component: () => import('@/views/quoteConfig/agreement/agreementCopy.vue'),
  34. meta: {
  35. title: '复制协议',
  36. menu: false,
  37. activeMenu: '/quoteConfig/agreement/agreementIndex',
  38. },
  39. },
  40. {
  41. path: 'agreementDetails',
  42. name: 'AgreementDetails',
  43. component: () => import('@/views/quoteConfig/agreement/agreementDetails.vue'),
  44. meta: {
  45. title: '协议详情',
  46. menu: false,
  47. activeMenu: '/quoteConfig/agreement/agreementIndex',
  48. },
  49. },
  50. ]
  51. },
  52. {
  53. path: 'costManagement',
  54. name: 'CostManagement',
  55. component: () => import('@/views/quoteConfig/costManagement.vue'),
  56. meta: {
  57. title: '费用管理',
  58. // auth:['role.add','role.view','role.delete','role.edit']
  59. },
  60. },
  61. {
  62. path: 'insuranceCompanyAccount',
  63. name: 'InsuranceCompanyAccount',
  64. component: () => import('@/views/quoteConfig/insuranceCompanyAccount/insuranceCompanyAccount.vue'),
  65. meta: {
  66. title: '保司账号',
  67. // auth:['role.add','role.view','role.delete','role.edit']
  68. },
  69. children: [
  70. {
  71. path: 'insuranceAccountAdd',
  72. name: 'InsuranceAccountAdd',
  73. component: () => import('@/views/quoteConfig/insuranceCompanyAccount/modules/insuranceAccountAdd.vue'),
  74. meta: {
  75. title: '保司账号',
  76. menu: false,
  77. // auth: []
  78. },
  79. }
  80. ]
  81. },
  82. {
  83. path: 'project',
  84. name: 'Project',
  85. component: () => import('@/views/quoteConfig/project/index.vue'),
  86. meta: {
  87. title: '方案管理',
  88. // auth:['role.add','role.view','role.delete','role.edit']
  89. },
  90. children: [
  91. {
  92. path: 'projectAdd',
  93. name: 'ProjectAdd',
  94. component: () => import('@/views/quoteConfig/project/modules/projectAdd.vue'),
  95. meta: {
  96. title: '方案管理',
  97. menu: false,
  98. // auth: []
  99. },
  100. }
  101. ]
  102. },
  103. {
  104. path: 'dispatchIndex',
  105. name: 'dispatchIndex',
  106. component: () => import('@/views/quoteConfig/dispatch/index.vue'),
  107. meta: {
  108. title: '协议调度',
  109. },
  110. },
  111. ],
  112. }
  113. export default routes