index.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. import Layout from "@/page/index/";
  2. export default [
  3. {
  4. path: "/wel",
  5. component: Layout,
  6. redirect: "/wel/index",
  7. children: [
  8. {
  9. path: "index",
  10. name: "首页",
  11. meta: {
  12. i18n: "dashboard",
  13. keepAlive: true,
  14. isAuth: true
  15. },
  16. component: () =>
  17. import(/* webpackChunkName: "views" */ "@/views/wel/index")
  18. },
  19. {
  20. path: "dashboard",
  21. name: "控制台",
  22. meta: {
  23. i18n: "dashboard",
  24. menu: false,
  25. isAuth: true
  26. },
  27. component: () =>
  28. import(
  29. /* webpackChunkName: "views" */ "@/views/wel/dashboard"
  30. )
  31. }
  32. ]
  33. },
  34. {
  35. // 新增:公告页面路由配置
  36. path: "/announcement",
  37. component: Layout,
  38. redirect: "/announcement/index",
  39. meta: {
  40. title: "公告管理",
  41. icon: "el-icon-bell"
  42. },
  43. children: [
  44. {
  45. path: "index",
  46. name: "公告管理",
  47. meta: {
  48. keepAlive: true,
  49. title: "公告管理",
  50. icon: "el-icon-document"
  51. },
  52. component: () =>
  53. import(
  54. /* webpackChunkName: "announcement" */ "@/views/announcement/index"
  55. )
  56. },
  57. {
  58. path: "category",
  59. name: "分类管理",
  60. meta: {
  61. keepAlive: true,
  62. title: "分类管理",
  63. icon: "el-icon-folder"
  64. },
  65. component: () =>
  66. import(
  67. /* webpackChunkName: "announcement" */ "@/views/announcement/category/category"
  68. )
  69. }
  70. ]
  71. },
  72. {
  73. path: "/order",
  74. component: Layout,
  75. redirect: "/order/index",
  76. meta: {
  77. icon: "icon-order",
  78. title: "订单管理",
  79. keepAlive: true
  80. },
  81. children: [
  82. {
  83. path: "address",
  84. name: "客户地址管理",
  85. component: () => import("@/views/order/address/index"),
  86. meta: {
  87. keepAlive: true,
  88. isAuth: true
  89. }
  90. },
  91. // 新增:订单管理页面路由
  92. {
  93. path: "index",
  94. name: "订单管理",
  95. component: () => import("@/views/order/order/index-avue"),
  96. meta: {
  97. keepAlive: true,
  98. isAuth: true,
  99. title: "订单管理"
  100. }
  101. }
  102. ]
  103. },
  104. {
  105. path: "/dealer-inventory",
  106. component: Layout,
  107. redirect: "/dealer-inventory/index",
  108. meta: {
  109. icon: "el-icon-goods",
  110. title: "经销商库存管理",
  111. keepAlive: true
  112. },
  113. children: [
  114. {
  115. path: "index",
  116. name: "经销商库存管理",
  117. component: () => import("@/views/dealer/inventory/index"),
  118. meta: {
  119. keepAlive: true,
  120. isAuth: true,
  121. title: "经销商库存管理"
  122. }
  123. }
  124. ]
  125. },
  126. {
  127. path: "/survey",
  128. component: Layout,
  129. redirect: "/survey/index",
  130. meta: {
  131. icon: "el-icon-document-checked",
  132. title: "调查问卷管理",
  133. keepAlive: true
  134. },
  135. children: [
  136. {
  137. path: "index",
  138. name: "调查问卷管理",
  139. component: () => import("@/views/survey/index"),
  140. meta: {
  141. keepAlive: true,
  142. isAuth: true,
  143. title: "调查问卷管理"
  144. }
  145. }
  146. ]
  147. },
  148. {
  149. path: "/lead",
  150. component: Layout,
  151. redirect: "/lead/index",
  152. meta: {
  153. icon: "el-icon-user",
  154. title: "销售线索管理",
  155. keepAlive: true
  156. },
  157. children: [
  158. {
  159. path: "index",
  160. name: "销售线索管理",
  161. component: () => import("@/views/lead/index"),
  162. meta: {
  163. keepAlive: true,
  164. isAuth: true,
  165. title: "销售线索管理",
  166. icon: "el-icon-user"
  167. }
  168. }
  169. ]
  170. },
  171. {
  172. path: "/marketing-activity",
  173. component: Layout,
  174. redirect: "/marketing-activity/index",
  175. meta: {
  176. icon: "el-icon-star-on",
  177. title: "营销活动管理",
  178. isAuth: true,
  179. keepAlive: true
  180. },
  181. children: [
  182. {
  183. path: "index",
  184. name: "营销活动管理",
  185. // 市场营销模块路由(第142行)
  186. component: () => import("@/views/marketing-activity/index"),
  187. meta: {
  188. keepAlive: true,
  189. isAuth: true,
  190. title: "营销活动管理",
  191. icon: "el-icon-star-on"
  192. }
  193. }
  194. ]
  195. },
  196. {
  197. path: "/claim",
  198. component: Layout,
  199. redirect: "/claim/index",
  200. meta: {
  201. icon: "el-icon-warning",
  202. isAuth: true,
  203. title: "理赔管理",
  204. keepAlive: true
  205. },
  206. children: [
  207. {
  208. path: "index",
  209. name: "理赔查询",
  210. component: () => import("@/views/claim/index"),
  211. meta: {
  212. keepAlive: true,
  213. isAuth: true,
  214. title: "理赔查询",
  215. icon: "el-icon-warning"
  216. }
  217. }
  218. ]
  219. },
  220. {
  221. path: "/search",
  222. component: Layout,
  223. redirect: "/search/comprehensive",
  224. meta: {
  225. icon: "el-icon-search",
  226. title: "综合查询",
  227. keepAlive: true
  228. },
  229. children: [
  230. {
  231. path: "invoice",
  232. name: "发票及开票信息查询",
  233. component: () => import("@/views/order/invoice/index"),
  234. meta: {
  235. keepAlive: true,
  236. isAuth: true,
  237. title: "发票及开票信息查询",
  238. icon: "el-icon-document-checked"
  239. }
  240. },
  241. {
  242. path: "comprehensive",
  243. name: "综合搜索",
  244. component: () => import("@/views/search/comprehensive"),
  245. meta: {
  246. keepAlive: true,
  247. isTab: true,
  248. isAuth: true
  249. }
  250. },
  251. {
  252. path: "shipment-status",
  253. name: "发货状态查询",
  254. component: () => import("@/views/shipment/status-query"),
  255. meta: {
  256. keepAlive: true,
  257. isTab: true,
  258. isAuth: true
  259. }
  260. }
  261. ]
  262. },
  263. {
  264. path: '/complaint',
  265. component: Layout,
  266. redirect: '/complaint/index',
  267. meta: {
  268. title: '投诉管理',
  269. isAuth: true,
  270. icon: 'icon-complaint'
  271. },
  272. children: [
  273. {
  274. path: 'index',
  275. name: '投诉列表',
  276. component: () => import('@/views/complaint/index'),
  277. meta: {
  278. title: '投诉管理',
  279. keepAlive: true
  280. }
  281. }
  282. ]
  283. },
  284. {
  285. path: "/image-store-apply",
  286. component: Layout,
  287. redirect: "/image-store-apply/index",
  288. meta: {
  289. title: '形象店申请审核',
  290. isAuth: true,
  291. keepAlive: true,
  292. },
  293. children: [
  294. {
  295. path: 'index',
  296. name: '形象店申请审核',
  297. component: () => import('@/views/image-store-apply/index'),
  298. meta: {
  299. title: '形象店申请审核',
  300. keepAlive: true,
  301. }
  302. }
  303. ]
  304. },
  305. {
  306. path: "/forecast",
  307. component: Layout,
  308. redirect: "/forecast/index",
  309. children: [
  310. {
  311. path: "index",
  312. name: "预测管理",
  313. meta: {
  314. keepAlive: true,
  315. isAuth: true
  316. },
  317. component: () =>
  318. import(
  319. /* webpackChunkName: "views" */ "@/views/forecast/index"
  320. )
  321. }
  322. ]
  323. },
  324. {
  325. path: "/forecast-audit",
  326. component: Layout,
  327. redirect: "/forecast-audit/index",
  328. meta: {
  329. icon: "el-icon-document-checked",
  330. title: "预测审批管理",
  331. keepAlive: true,
  332. isAuth: true
  333. },
  334. children: [
  335. {
  336. path: "index",
  337. name: "预测审批",
  338. meta: {
  339. keepAlive: true,
  340. isAuth: true,
  341. title: "预测审批"
  342. },
  343. component: () =>
  344. import(
  345. /* webpackChunkName: "views" */ "@/views/forecast-audit/index.vue"
  346. )
  347. }
  348. ]
  349. },
  350. {
  351. path: "/forecast-summary",
  352. component: Layout,
  353. redirect: "/forecast-summary/index",
  354. meta: {
  355. icon: "el-icon-data-analysis",
  356. title: "销售预测汇总",
  357. keepAlive: true,
  358. isAuth: true
  359. },
  360. children: [
  361. {
  362. path: "index",
  363. name: "销售预测汇总",
  364. meta: {
  365. keepAlive: true,
  366. isAuth: true,
  367. title: "销售预测汇总",
  368. icon: "el-icon-data-analysis"
  369. },
  370. component: () =>
  371. import(
  372. /* webpackChunkName: "views" */ "@/views/forecast-summary/index"
  373. )
  374. }
  375. ]
  376. },
  377. {
  378. path: "/dict-horizontal",
  379. component: Layout,
  380. redirect: "/dict-horizontal/index",
  381. children: [
  382. {
  383. path: "index",
  384. name: "字典管理",
  385. meta: {
  386. i18n: "dict"
  387. },
  388. component: () =>
  389. import(
  390. /* webpackChunkName: "views" */ "@/views/util/demo/dict-horizontal"
  391. )
  392. }
  393. ]
  394. },
  395. {
  396. path: "/dict-vertical",
  397. component: Layout,
  398. redirect: "/dict-vertical/index",
  399. children: [
  400. {
  401. path: "index",
  402. name: "字典管理",
  403. meta: {
  404. i18n: "dict"
  405. },
  406. component: () =>
  407. import(
  408. /* webpackChunkName: "views" */ "@/views/util/demo/dict-vertical"
  409. )
  410. }
  411. ]
  412. },
  413. {
  414. path: "/info",
  415. component: Layout,
  416. redirect: "/info/index",
  417. children: [
  418. {
  419. path: "index",
  420. name: "个人信息",
  421. meta: {
  422. i18n: "info"
  423. },
  424. component: () =>
  425. import(
  426. /* webpackChunkName: "views" */ "@/views/system/userinfo"
  427. )
  428. }
  429. ]
  430. }
  431. ];