index.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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. path: "factory",
  105. name: "订单列表",
  106. component: () => import("@/views/order/factory/index.vue"),
  107. meta: {
  108. keepAlive: true,
  109. isAuth: true,
  110. title: "订单列表"
  111. }
  112. }
  113. ]
  114. },
  115. {
  116. path: "/dealer-inventory",
  117. component: Layout,
  118. redirect: "/dealer-inventory/index",
  119. meta: {
  120. icon: "el-icon-goods",
  121. title: "经销商库存管理",
  122. keepAlive: true
  123. },
  124. children: [
  125. {
  126. path: "index",
  127. name: "经销商库存管理",
  128. component: () => import("@/views/dealer/inventory/index"),
  129. meta: {
  130. keepAlive: true,
  131. isAuth: true,
  132. title: "经销商库存管理"
  133. }
  134. }
  135. ]
  136. },
  137. {
  138. path: "/survey",
  139. component: Layout,
  140. redirect: "/survey/index",
  141. meta: {
  142. icon: "el-icon-document-checked",
  143. title: "调查问卷管理",
  144. keepAlive: true
  145. },
  146. children: [
  147. {
  148. path: "index",
  149. name: "调查问卷管理",
  150. component: () => import("@/views/survey/index"),
  151. meta: {
  152. keepAlive: true,
  153. isAuth: true,
  154. title: "调查问卷管理"
  155. }
  156. }
  157. ]
  158. },
  159. {
  160. path: "/lead",
  161. component: Layout,
  162. redirect: "/lead/index",
  163. meta: {
  164. icon: "el-icon-user",
  165. title: "销售线索管理",
  166. keepAlive: true
  167. },
  168. children: [
  169. {
  170. path: "index",
  171. name: "销售线索管理",
  172. component: () => import("@/views/lead/index"),
  173. meta: {
  174. keepAlive: true,
  175. isAuth: true,
  176. title: "销售线索管理",
  177. icon: "el-icon-user"
  178. }
  179. }
  180. ]
  181. },
  182. {
  183. path: "/marketing-activity",
  184. component: Layout,
  185. redirect: "/marketing-activity/index",
  186. meta: {
  187. icon: "el-icon-star-on",
  188. title: "营销活动管理",
  189. isAuth: true,
  190. keepAlive: true
  191. },
  192. children: [
  193. {
  194. path: "index",
  195. name: "营销活动管理",
  196. // 市场营销模块路由(第142行)
  197. component: () => import("@/views/marketing-activity/index"),
  198. meta: {
  199. keepAlive: true,
  200. isAuth: true,
  201. title: "营销活动管理",
  202. icon: "el-icon-star-on"
  203. }
  204. }
  205. ]
  206. },
  207. {
  208. path: "/claim",
  209. component: Layout,
  210. redirect: "/claim/index",
  211. meta: {
  212. icon: "el-icon-warning",
  213. isAuth: true,
  214. title: "理赔管理",
  215. keepAlive: true
  216. },
  217. children: [
  218. {
  219. path: "index",
  220. name: "理赔查询",
  221. component: () => import("@/views/claim/index"),
  222. meta: {
  223. keepAlive: true,
  224. isAuth: true,
  225. title: "理赔查询",
  226. icon: "el-icon-warning"
  227. }
  228. }
  229. ]
  230. },
  231. {
  232. path: "/search",
  233. component: Layout,
  234. redirect: "/search/comprehensive",
  235. meta: {
  236. icon: "el-icon-search",
  237. title: "综合查询",
  238. keepAlive: true
  239. },
  240. children: [
  241. {
  242. path: "invoice",
  243. name: "发票及开票信息查询",
  244. component: () => import("@/views/order/invoice/index"),
  245. meta: {
  246. keepAlive: true,
  247. isAuth: true,
  248. title: "发票及开票信息查询",
  249. icon: "el-icon-document-checked"
  250. }
  251. },
  252. {
  253. path: "comprehensive",
  254. name: "综合搜索",
  255. component: () => import("@/views/search/comprehensive"),
  256. meta: {
  257. keepAlive: true,
  258. isTab: true,
  259. isAuth: true
  260. }
  261. },
  262. {
  263. path: "shipment-status",
  264. name: "发货状态查询",
  265. component: () => import("@/views/shipment/status-query"),
  266. meta: {
  267. keepAlive: true,
  268. isTab: true,
  269. isAuth: true
  270. }
  271. }
  272. ]
  273. },
  274. {
  275. path: '/complaint',
  276. component: Layout,
  277. redirect: '/complaint/index',
  278. meta: {
  279. title: '投诉管理',
  280. isAuth: true,
  281. icon: 'icon-complaint'
  282. },
  283. children: [
  284. {
  285. path: 'index',
  286. name: '投诉列表',
  287. component: () => import('@/views/complaint/index'),
  288. meta: {
  289. title: '投诉管理',
  290. keepAlive: true
  291. }
  292. }
  293. ]
  294. },
  295. {
  296. path: "/image-store-apply",
  297. component: Layout,
  298. redirect: "/image-store-apply/index",
  299. meta: {
  300. title: '形象店申请审核',
  301. isAuth: true,
  302. keepAlive: true,
  303. },
  304. children: [
  305. {
  306. path: 'index',
  307. name: '形象店申请审核',
  308. component: () => import('@/views/image-store-apply/index'),
  309. meta: {
  310. title: '形象店申请审核',
  311. keepAlive: true,
  312. }
  313. }
  314. ]
  315. },
  316. {
  317. path: "/forecast",
  318. component: Layout,
  319. redirect: "/forecast/index",
  320. children: [
  321. {
  322. path: "index",
  323. name: "预测管理",
  324. meta: {
  325. keepAlive: true,
  326. isAuth: true
  327. },
  328. component: () =>
  329. import(
  330. /* webpackChunkName: "views" */ "@/views/forecast/index"
  331. )
  332. }
  333. ]
  334. },
  335. {
  336. path: "/forecast-audit",
  337. component: Layout,
  338. redirect: "/forecast-audit/index",
  339. meta: {
  340. icon: "el-icon-document-checked",
  341. title: "预测审批管理",
  342. keepAlive: true,
  343. isAuth: true
  344. },
  345. children: [
  346. {
  347. path: "index",
  348. name: "预测审批",
  349. meta: {
  350. keepAlive: true,
  351. isAuth: true,
  352. title: "预测审批"
  353. },
  354. component: () =>
  355. import(
  356. /* webpackChunkName: "views" */ "@/views/forecast-audit/index.vue"
  357. )
  358. }
  359. ]
  360. },
  361. {
  362. path: "/forecast-summary",
  363. component: Layout,
  364. redirect: "/forecast-summary/index",
  365. meta: {
  366. icon: "el-icon-data-analysis",
  367. title: "销售预测汇总",
  368. keepAlive: true,
  369. isAuth: true
  370. },
  371. children: [
  372. {
  373. path: "index",
  374. name: "销售预测汇总",
  375. meta: {
  376. keepAlive: true,
  377. isAuth: true,
  378. title: "销售预测汇总",
  379. icon: "el-icon-data-analysis"
  380. },
  381. component: () =>
  382. import(
  383. /* webpackChunkName: "views" */ "@/views/forecast-summary/index"
  384. )
  385. }
  386. ]
  387. },
  388. {
  389. path: "/dict-horizontal",
  390. component: Layout,
  391. redirect: "/dict-horizontal/index",
  392. children: [
  393. {
  394. path: "index",
  395. name: "字典管理",
  396. meta: {
  397. i18n: "dict"
  398. },
  399. component: () =>
  400. import(
  401. /* webpackChunkName: "views" */ "@/views/util/demo/dict-horizontal"
  402. )
  403. }
  404. ]
  405. },
  406. {
  407. path: "/dict-vertical",
  408. component: Layout,
  409. redirect: "/dict-vertical/index",
  410. children: [
  411. {
  412. path: "index",
  413. name: "字典管理",
  414. meta: {
  415. i18n: "dict"
  416. },
  417. component: () =>
  418. import(
  419. /* webpackChunkName: "views" */ "@/views/util/demo/dict-vertical"
  420. )
  421. }
  422. ]
  423. },
  424. {
  425. path: "/info",
  426. component: Layout,
  427. redirect: "/info/index",
  428. children: [
  429. {
  430. path: "index",
  431. name: "个人信息",
  432. meta: {
  433. i18n: "info"
  434. },
  435. component: () =>
  436. import(
  437. /* webpackChunkName: "views" */ "@/views/system/userinfo"
  438. )
  439. }
  440. ]
  441. }
  442. ];