router.config.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. module.exports = [
  2. {
  3. path: '/gotoLogin',
  4. name: '登录',
  5. component: 'Login/Login.js'
  6. },
  7. {
  8. path: '/404',
  9. name: '404',
  10. component: '404.js'
  11. },
  12. {
  13. path: '/500',
  14. name: '500',
  15. component: '500.js'
  16. },
  17. {
  18. path: '/403',
  19. name: '403',
  20. component: '403.js'
  21. },
  22. {
  23. path: '/',
  24. name: '要货',
  25. component: '../layouts/buyer/HomeLayout.js',
  26. icon: 'shopping-cart',
  27. routes: [
  28. {
  29. path: '/',
  30. component: 'Buyer/home/index.js'
  31. },
  32. {
  33. path: '/buyer',
  34. name: 'buyer',
  35. routes: [
  36. {
  37. path: '/buyer/noticeList',
  38. name: 'noticeList',
  39. component: 'Buyer/noticeList/index.js',
  40. },
  41. {
  42. path: '/buyer/orderListDetail',
  43. name: 'orderListDetail',
  44. component: 'Buyer/orderListDetail/index.js',
  45. },
  46. {
  47. path: '/buyer/cartList',
  48. name: 'cartList',
  49. component: 'Buyer/cartList/index.js',
  50. },
  51. {
  52. path: '/buyer/commodityDetails',
  53. name: 'commodityDetails',
  54. component: 'Buyer/commodityDetails/index.js',
  55. },
  56. {
  57. path: '/buyer/orderList/:orderStatus?',
  58. name: 'orderList',
  59. component: 'Buyer/orderList/index.js',
  60. },
  61. {
  62. path: '/buyer/orderSign',
  63. name: 'orderSign',
  64. component: 'Buyer/orderSign/index.js',
  65. },
  66. {
  67. path: '/buyer/orderEdit',
  68. name: 'orderEdit',
  69. component: 'Buyer/orderEdit/index.js',
  70. },
  71. {
  72. path: '/buyer/goodsPurchase',
  73. name: 'goodsPurchase',
  74. component: 'Buyer/goodsPurchase/index.js',
  75. },
  76. {
  77. path: '/buyer/replenishment/:label?',
  78. name: 'replenishment',
  79. component: 'Buyer/replenishment/index.js',
  80. },
  81. {
  82. path: '/buyer/announcement',
  83. name: 'announcement',
  84. component: 'Buyer/announcement/index.js',
  85. },
  86. {
  87. path: '/buyer/orderSignListDetail',
  88. name: 'orderSignListDetail',
  89. component: 'Buyer/orderSignListDetail/index.js',
  90. },
  91. {
  92. path: '/buyer/goodsSupplyList',
  93. name: 'goodsSupplyList',
  94. component: 'Buyer/goodsSupplyList/index.js',
  95. },
  96. {
  97. path: '/buyer/goodsSupplyDetail',
  98. name: 'goodsSupplyDetail',
  99. component: 'Buyer/goodsSupplyDetail/index.js',
  100. },
  101. {
  102. path: '/buyer/noticeDetail',
  103. name: 'noticeDetail',
  104. component: 'Buyer/noticeDetail/index.js',
  105. },
  106. {
  107. path: '/buyer/credit',
  108. name: 'credit',
  109. component: 'Buyer/credit/index.js',
  110. },
  111. {
  112. path: '/buyer/replenishmentParameter',
  113. name: 'replenishmentParameter',
  114. component: 'Buyer/replenishmentParameter/index.js',
  115. },
  116. {
  117. path: '/buyer/goods/GoodsDetail',
  118. name: 'GoodsDetail',
  119. component: 'Buyer/goods/goodsDetail/index.js',
  120. },
  121. {
  122. path: '/buyer/returnOrderList',
  123. name: 'returnOrderList',
  124. component: 'Buyer/returnOrderList/index.js',
  125. },
  126. {
  127. path: '/buyer/returnOrderListDetail',
  128. name: 'returnOrderListDetail',
  129. component: 'Buyer/returnOrderListDetail/index.js',
  130. },
  131. {
  132. path: '/buyer/returnOrderEdit',
  133. name: 'returnOrderEdit',
  134. component: 'Buyer/returnOrderEdit/index.js',
  135. },
  136. {
  137. path: '/buyer/myAccount/cost',
  138. name: 'cost',
  139. component: 'Buyer/myAccount/cost/index.js',
  140. },
  141. {
  142. path: '/buyer/myAccount/accountBalance/:tabIndex?',
  143. name: 'accountBalance',
  144. component: 'Buyer/myAccount/accountBalance/index.js',
  145. },
  146. {
  147. path: '/buyer/myAccount/businessInfo',
  148. name: 'businessInfo',
  149. component: 'Buyer/myAccount/businessInfo/index.js',
  150. },
  151. {
  152. path: '/buyer/myAccount/supplier',
  153. name: 'supplier',
  154. component: 'Buyer/myAccount/supplier/index.js',
  155. },
  156. {
  157. path: '/buyer/reconciliations/costReconcile',
  158. name: 'costReconcile',
  159. component: 'Buyer/reconciliations/costReconcile/index.js',
  160. },
  161. {
  162. path: '/buyer/reconciliations/dealReconcile',
  163. name: 'dealReconcile',
  164. component: 'Buyer/reconciliations/dealReconcile/index.js',
  165. },
  166. {
  167. path: '/buyer/updatePassword',
  168. name: 'updatePassword',
  169. component: 'Buyer/updatePassword/index.js',
  170. },
  171. {
  172. path: '/buyer/paymentNoticeEdit',
  173. name: 'paymentNoticeEdit',
  174. component: 'Buyer/paymentNoticeEdit/index.js',
  175. },
  176. {
  177. path: '/buyer/paymentNoticeList',
  178. name: 'paymentNoticeList',
  179. component: 'Buyer/paymentNoticeList/index.js',
  180. },
  181. {
  182. path: '/buyer/onlinePayEdit',
  183. name: 'onlinePayEdit',
  184. component: 'Buyer/onlinePayEdit/index.js',
  185. },
  186. {
  187. path: '/buyer/onlinePayList',
  188. name: 'onlinePayList',
  189. component: 'Buyer/onlinePayList/index.js',
  190. },
  191. {
  192. path: '/buyer/onlinePayList',
  193. name: 'onlinePayList',
  194. component: 'Buyer/onlinePayList/index.js',
  195. }
  196. ],
  197. }
  198. ],
  199. },
  200. ];