console.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw = {
  4. path: '/consoleManage',
  5. component: Layout,
  6. redirect: '/consoleManage/businessDataManage/companyDataManage/index',
  7. name: 'consoleManage',
  8. meta: {
  9. title: '数据报表',
  10. },
  11. children: [
  12. {
  13. path: 'businessDataManage',
  14. redirect: '/consoleManage/businessDataManage/companyDataManage/index',
  15. name: 'businessDataManage',
  16. meta: {
  17. title: '业务数据',
  18. },
  19. children: [
  20. {
  21. path: 'companyDataManage',
  22. name: 'companyDataManage',
  23. component: () => import('@/views/consoleManage/businessDataManage/companyDataManage/index.vue'),
  24. meta: {
  25. title: '保险公司',
  26. menu: true,
  27. },
  28. },
  29. {
  30. path: 'companyDataManage/companyDataManageDetail',
  31. name: 'companyDataManageDetail',
  32. component: () => import('@/views/consoleManage/businessDataManage/companyDataManage/companyDataManageDetail.vue'),
  33. meta: {
  34. title: '明细',
  35. menu: false,
  36. },
  37. },
  38. {
  39. path: 'riskDataManage',
  40. name: 'riskDataManage',
  41. component: () => import('@/views/consoleManage/businessDataManage/riskDataManage/index.vue'),
  42. meta: {
  43. title: '险种报表',
  44. menu: true,
  45. },
  46. },
  47. {
  48. path: 'riskDataManage/riskDataManageDetail',
  49. name: 'riskDataManageDetail',
  50. component: () => import('@/views/consoleManage/businessDataManage/riskDataManage/riskDataManageDetail.vue'),
  51. meta: {
  52. title: '明细',
  53. menu: false,
  54. },
  55. },
  56. {
  57. path: 'contactPersonDataManage',
  58. name: 'contactPersonDataManage',
  59. component: () => import('@/views/consoleManage/businessDataManage/contactPersonDataManage/index.vue'),
  60. meta: {
  61. title: '对接人',
  62. menu: true,
  63. },
  64. },
  65. {
  66. path: 'contactPersonDataManage/contactPersonDataManageDetail',
  67. name: 'contactPersonDataManageDetail',
  68. component: () => import('@/views/consoleManage/businessDataManage/contactPersonDataManage/contactPersonDataManageDetail.vue'),
  69. meta: {
  70. title: '明细',
  71. menu: false,
  72. },
  73. },
  74. {
  75. path: 'salesmanDataManage',
  76. name: 'salesmanDataManage',
  77. component: () => import('@/views/consoleManage/businessDataManage/salesmanDataManage/index.vue'),
  78. meta: {
  79. title: '业务员',
  80. menu: true,
  81. },
  82. },
  83. {
  84. path: 'salesmanDataManage/salesmanDataManageDetail',
  85. name: 'salesmanDataManageDetail',
  86. component: () => import('@/views/consoleManage/businessDataManage/salesmanDataManage/salesmanDataManageDetail.vue'),
  87. meta: {
  88. title: '明细',
  89. menu: false,
  90. },
  91. },
  92. {
  93. path: 'channelDataManage',
  94. name: 'channelDataManage',
  95. component: () => import('@/views/consoleManage/businessDataManage/channelDataManage/index.vue'),
  96. meta: {
  97. title: '渠道',
  98. menu: true,
  99. },
  100. },
  101. {
  102. path: 'channelDataManage/channelDataManageDetail',
  103. name: 'channelDataManageDetail',
  104. component: () => import('@/views/consoleManage/businessDataManage/channelDataManage/channelDataManageDetail.vue'),
  105. meta: {
  106. title: '明细',
  107. menu: false,
  108. },
  109. },
  110. {
  111. path: 'telemarketingDataManage',
  112. name: 'telemarketingDataManage',
  113. component: () => import('@/views/consoleManage/businessDataManage/telemarketingDataManage/index.vue'),
  114. meta: {
  115. title: '电销',
  116. menu: true,
  117. },
  118. },
  119. {
  120. path: 'telemarketingDataManage/telemarketingDataManageDetail',
  121. name: 'telemarketingDataManageDetail',
  122. component: () => import('@/views/consoleManage/businessDataManage/telemarketingDataManage/telemarketingDataManageDetail.vue'),
  123. meta: {
  124. title: '明细',
  125. menu: false,
  126. },
  127. },
  128. ],
  129. },
  130. {
  131. path: 'quotationDataManage',
  132. redirect: '/consoleManage/quotationDataManage/quotationOrderData/index',
  133. name: 'quotationDataManage',
  134. meta: {
  135. title: '报价数据',
  136. },
  137. children: [
  138. {
  139. path: 'quotationOrderData',
  140. name: 'quotationOrderData',
  141. component: () => import('@/views/consoleManage/quotationDataManage/quotationOrderData/index.vue'),
  142. meta: {
  143. title: '报价订单',
  144. menu: true,
  145. },
  146. },
  147. {
  148. path: 'companyQuotationData',
  149. name: 'companyQuotationData',
  150. component: () => import('@/views/consoleManage/quotationDataManage/companyQuotationData/index.vue'),
  151. meta: {
  152. title: '保险公司',
  153. menu: true,
  154. },
  155. },
  156. {
  157. path: 'salesmanQuotationData',
  158. name: 'salesmanQuotationData',
  159. component: () => import('@/views/consoleManage/quotationDataManage/salesmanQuotationData/index.vue'),
  160. meta: {
  161. title: '业务员',
  162. menu: true,
  163. },
  164. },
  165. {
  166. path: 'channelQuotationData',
  167. name: 'channelQuotationData',
  168. component: () => import('@/views/consoleManage/quotationDataManage/channelQuotationData/index.vue'),
  169. meta: {
  170. title: '渠道',
  171. menu: true,
  172. },
  173. },
  174. {
  175. path: 'telemarketingQuotationData',
  176. name: 'telemarketingQuotationData',
  177. component: () => import('@/views/consoleManage/quotationDataManage/telemarketingQuotationData/index.vue'),
  178. meta: {
  179. title: '电销',
  180. menu: true,
  181. },
  182. },
  183. ],
  184. },
  185. {
  186. path: 'personDataManage',
  187. redirect: '/consoleManage/personDataManage/salesmanReport/index',
  188. name: 'personDataManage',
  189. meta: {
  190. title: '人员数据',
  191. },
  192. children: [
  193. {
  194. path: 'salesmanReport',
  195. name: 'salesmanReport',
  196. component: () => import('@/views/consoleManage/personDataManage/salesmanReport/index.vue'),
  197. meta: {
  198. title: '业务员报表',
  199. menu: true,
  200. },
  201. },
  202. {
  203. path: 'salesmanReport/salesmanReportDetail',
  204. name: 'salesmanReportDetail',
  205. component: () => import('@/views/consoleManage/personDataManage/salesmanReport/salesmanReportDetail.vue'),
  206. meta: {
  207. title: '明细',
  208. menu: false,
  209. },
  210. },
  211. {
  212. path: 'salesmanDept',
  213. name: 'salesmanDept',
  214. component: () => import('@/views/consoleManage/personDataManage/salesmanDept/index.vue'),
  215. meta: {
  216. title: '业务员组织',
  217. menu: true,
  218. },
  219. },
  220. {
  221. path: 'salesmanDept/salesmanDeptDetail',
  222. name: 'salesmanDeptDetail',
  223. component: () => import('@/views/consoleManage/personDataManage/salesmanDept/salesmanDeptDetail.vue'),
  224. meta: {
  225. title: '业务明细',
  226. menu: false,
  227. },
  228. },
  229. {
  230. path: 'salesmanDept/salesmanDeptDetailPerson',
  231. name: 'salesmanDeptDetailPerson',
  232. component: () => import('@/views/consoleManage/personDataManage/salesmanDept/salesmanDeptDetailPerson.vue'),
  233. meta: {
  234. title: '人员明细',
  235. menu: false,
  236. },
  237. },
  238. {
  239. path: 'channelPersonData',
  240. name: 'channelPersonData',
  241. component: () => import('@/views/consoleManage/personDataManage/channelPersonData/index.vue'),
  242. meta: {
  243. title: '渠道数据',
  244. menu: true,
  245. },
  246. },
  247. {
  248. path: 'channelPersonData/channelPersonDataDetail',
  249. name: 'channelPersonDataDetail',
  250. component: () => import('@/views/consoleManage/personDataManage/channelPersonData/channelPersonDataDetail.vue'),
  251. meta: {
  252. title: '明细',
  253. menu: false,
  254. },
  255. },
  256. {
  257. path: 'telemarketingPersonData',
  258. name: 'telemarketingPersonData',
  259. component: () => import('@/views/consoleManage/personDataManage/telemarketingPersonData/index.vue'),
  260. meta: {
  261. title: '电销数据',
  262. menu: true,
  263. },
  264. },
  265. {
  266. path: 'telemarketingPersonData/telemarketingPersonDataDetail',
  267. name: 'telemarketingPersonDataDetail',
  268. component: () => import('@/views/consoleManage/personDataManage/telemarketingPersonData/telemarketingPersonDataDetail.vue'),
  269. meta: {
  270. title: '明细',
  271. menu: false,
  272. },
  273. },
  274. ],
  275. },
  276. {
  277. path: 'taskDataManage',
  278. redirect: '/consoleManage/taskDataManage/salesmanData/index',
  279. name: 'taskDataManage',
  280. meta: {
  281. title: '任务数据',
  282. },
  283. children: [
  284. {
  285. path: 'salesmanData',
  286. name: 'salesmanData',
  287. component: () => import('@/views/consoleManage/taskDataManage/salesmanData/index.vue'),
  288. meta: {
  289. title: '业务员',
  290. menu: true,
  291. },
  292. },
  293. {
  294. path: 'salesmanData/salesmanDataDetail',
  295. name: 'salesmanDataDetail',
  296. component: () => import('@/views/consoleManage/taskDataManage/salesmanData/salesmanDataDetail.vue'),
  297. meta: {
  298. title: '明细',
  299. menu: false,
  300. },
  301. },
  302. {
  303. path: 'channelData',
  304. name: 'channelData',
  305. component: () => import('@/views/consoleManage/taskDataManage/channelData/index.vue'),
  306. meta: {
  307. title: '渠道',
  308. menu: true,
  309. },
  310. },
  311. {
  312. path: 'channelData/channelDataDetail',
  313. name: 'channelDataDetail',
  314. component: () => import('@/views/consoleManage/taskDataManage/channelData/channelDataDetail.vue'),
  315. meta: {
  316. title: '明细',
  317. menu: false,
  318. },
  319. },
  320. {
  321. path: 'telemarketingData',
  322. name: 'telemarketingData',
  323. component: () => import('@/views/consoleManage/taskDataManage/telemarketingData/index.vue'),
  324. meta: {
  325. title: '电销',
  326. menu: true,
  327. },
  328. },
  329. {
  330. path: 'telemarketingData/telemarketingDataDetail',
  331. name: 'telemarketingDataDetail',
  332. component: () => import('@/views/consoleManage/taskDataManage/telemarketingData/telemarketingDataDetail.vue'),
  333. meta: {
  334. title: '明细',
  335. menu: false,
  336. },
  337. },
  338. {
  339. path: 'companyData',
  340. name: 'companyData',
  341. component: () => import('@/views/consoleManage/taskDataManage/companyData/index.vue'),
  342. meta: {
  343. title: '保险公司',
  344. menu: true,
  345. },
  346. },
  347. {
  348. path: 'companyData/companyDataDetail',
  349. name: 'companyDataDetail',
  350. component: () => import('@/views/consoleManage/taskDataManage/companyData/companyDataDetail.vue'),
  351. meta: {
  352. title: '明细',
  353. menu: false,
  354. },
  355. },
  356. ],
  357. },
  358. {
  359. path: 'financeDataManage',
  360. redirect: '/consoleManage/financeDataManage/costVerificationData/index',
  361. name: 'financeDataManage',
  362. meta: {
  363. title: '财务数据',
  364. },
  365. children: [
  366. {
  367. path: 'costVerificationData',
  368. name: 'costVerificationData',
  369. component: () => import('@/views/consoleManage/financeDataManage/costVerificationData/index.vue'),
  370. meta: {
  371. title: '费用校验',
  372. menu: true,
  373. },
  374. },
  375. {
  376. path: 'costVerificationData/costVerificationDataDetail',
  377. name: 'costVerificationDataDetail',
  378. component: () => import('@/views/consoleManage/financeDataManage/costVerificationData/costVerificationDataDetail.vue'),
  379. meta: {
  380. title: '明细',
  381. menu: false,
  382. },
  383. },
  384. {
  385. path: 'receivableData',
  386. name: 'receivableData',
  387. component: () => import('@/views/consoleManage/financeDataManage/receivableData/index.vue'),
  388. meta: {
  389. title: '应收',
  390. menu: true,
  391. },
  392. },
  393. {
  394. path: 'receivableData/receivableDataDetail',
  395. name: 'receivableDataDetail',
  396. component: () => import('@/views/consoleManage/financeDataManage/receivableData/receivableDataDetail.vue'),
  397. meta: {
  398. title: '明细',
  399. menu: false,
  400. },
  401. },
  402. {
  403. path: 'meetData',
  404. name: 'meetData',
  405. component: () => import('@/views/consoleManage/financeDataManage/meetData/index.vue'),
  406. meta: {
  407. title: '应付',
  408. menu: true,
  409. },
  410. },
  411. {
  412. path: 'meetData/meetDataDetail',
  413. name: 'meetDataDetail',
  414. component: () => import('@/views/consoleManage/financeDataManage/meetData/meetDataDetail.vue'),
  415. meta: {
  416. title: '明细',
  417. menu: false,
  418. },
  419. },
  420. {
  421. path: 'operatingProfitData',
  422. name: 'operatingProfitData',
  423. component: () => import('@/views/consoleManage/financeDataManage/operatingProfitData/index.vue'),
  424. meta: {
  425. title: '经营利润',
  426. menu: true,
  427. },
  428. },
  429. {
  430. path: 'personCheckData',
  431. name: 'personCheckData',
  432. component: () => import('@/views/consoleManage/financeDataManage/personCheckData/index.vue'),
  433. meta: {
  434. title: '人员审核',
  435. menu: true,
  436. },
  437. },
  438. {
  439. path: 'personCheckData/personCheckDataDetail',
  440. name: 'personCheckDataDetail',
  441. component: () => import('@/views/consoleManage/financeDataManage/personCheckData/personCheckDataDetail.vue'),
  442. meta: {
  443. title: '明细',
  444. menu: false,
  445. },
  446. },
  447. ],
  448. },
  449. ],
  450. }
  451. export default routes