supplier.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import BasicLayout from '@/layouts/basic-layout';
  11. import Setting from "@/setting";
  12. const pre = 'supplier_';
  13. export default {
  14. // 顶部导航供应商
  15. path: `${Setting.roterPre}/supplier`,
  16. name: 'supplier',
  17. header: 'supplier',
  18. // redirect: {
  19. // name: `${pre}supplier`
  20. // },
  21. component: BasicLayout,
  22. // 供应商侧边栏
  23. children: [
  24. {
  25. path: 'supplier/index',
  26. name: `${pre}menu`,
  27. meta: {
  28. auth: ['admin-supplier-supplier-index'],
  29. title: '供应商菜单'
  30. },
  31. component: () => import('@/pages/supplier/supplierList/index')
  32. },
  33. {
  34. path: 'apply',
  35. name: `${pre}apply`,
  36. meta: {
  37. auth: ['admin-supplier-apply'],
  38. title: '供应商申请'
  39. },
  40. component: () => import('@/pages/supplier/supplierApply/index')
  41. },
  42. {
  43. path: 'menu/list',
  44. name: `${pre}menulist`,
  45. meta: {
  46. auth: ['admin-supplier-menu-list'],
  47. title: '供应商管理'
  48. },
  49. component: () => import('@/pages/supplier/supplier-supplier_list/index')
  50. },
  51. {
  52. path: 'supplierAdd/:id?',
  53. name: `${pre}supplier`,
  54. meta: {
  55. auth: ['admin-supplier-supplierAdd'],
  56. title: '供应商添加'
  57. },
  58. component: () => import('@/pages/supplier/supplierAdd/index')
  59. },
  60. {
  61. path: 'orderList/index',
  62. name: `${pre}orderList`,
  63. meta: {
  64. auth: ['admin-supplier-orderList'],
  65. title: '订单列表'
  66. },
  67. component: () => import('@/pages/supplier/orderList/index')
  68. },
  69. {
  70. path: 'afterOrder/index',
  71. name: `${pre}afterOrder`,
  72. meta: {
  73. auth: ['admin-supplier-afterOrder'],
  74. title: '售后订单'
  75. },
  76. component: () => import('@/pages/supplier/afterOrder/index')
  77. },
  78. {
  79. path: 'orderStatistics/index',
  80. name: `${pre}orderStatistics`,
  81. meta: {
  82. auth: ['admin-supplier-supplier_list'],
  83. title: '订单统计'
  84. },
  85. component: () => import('@/pages/supplier/orderStatistics/index')
  86. },
  87. {
  88. path: 'capital/index',
  89. name: `${pre}capital`,
  90. meta: {
  91. auth: ['admin-supplier-capital-index'],
  92. title: '供应商流水'
  93. },
  94. component: () => import('@/pages/supplier/capital/index')
  95. },
  96. {
  97. path: 'bill/index',
  98. name: `${pre}bill`,
  99. meta: {
  100. auth: ['admin-supplier-bill-index'],
  101. title: '账单记录'
  102. },
  103. component: () => import('@/pages/supplier/bill/index')
  104. },
  105. {
  106. path: 'cash/index',
  107. name: `${pre}cash`,
  108. meta: {
  109. auth: ['admin-supplier-cash-index'],
  110. title: '转账申请'
  111. },
  112. component: () => import('@/pages/supplier/cash/index')
  113. },
  114. {
  115. path: `finance/set`,
  116. name: `${pre}finance`,
  117. meta: {
  118. auth: ['admin-supplier-finance-set'],
  119. title: '财务设置'
  120. },
  121. props: {
  122. typeMole: 'supplier_finance'
  123. },
  124. component: () => import('@/components/fromSubmit/commonForm')
  125. }
  126. ]
  127. };