router.config.js 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848
  1. // eslint-disable-next-line
  2. import {
  3. UserLayout,
  4. BasicLayout,
  5. RouteView,
  6. BlankLayout,
  7. PageView
  8. } from '@/layouts'
  9. export const asyncRouterMap = [
  10. {
  11. path: '/',
  12. name: 'index',
  13. component: BasicLayout,
  14. meta: { title: '首页' },
  15. redirect: '/home',
  16. children: [
  17. {
  18. path: '/home',
  19. name: 'home',
  20. redirect: '/home',
  21. component: PageView,
  22. meta: {
  23. title: '首页',
  24. icon: 'home'
  25. },
  26. hideChildrenInMenu: true,
  27. children: [
  28. {
  29. path: '/home',
  30. name: 'home',
  31. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  32. meta: {
  33. title: '首页',
  34. icon: 'home',
  35. hide: true
  36. }
  37. }
  38. ]
  39. },
  40. {
  41. path: '/changePwd',
  42. name: 'changePwd',
  43. component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
  44. meta: {
  45. title: '修改密码',
  46. icon: 'home'
  47. },
  48. hidden: true
  49. },
  50. // 销售管理
  51. {
  52. path: '/salesManagement',
  53. redirect: '/salesManagement/salesQuery',
  54. component: PageView,
  55. meta: {
  56. title: '销售管理',
  57. icon: 'account-book',
  58. permission: 'M_salesManage'
  59. },
  60. children: [
  61. {
  62. path: '/salesManagement/salesQuery',
  63. redirect: '/salesManagement/salesQuery/list',
  64. name: 'salesQuery',
  65. component: RouteView,
  66. meta: {
  67. title: '销售单查询',
  68. icon: 'monitor',
  69. permission: 'M_salesQueryList'
  70. },
  71. hideChildrenInMenu: true,
  72. children: [
  73. {
  74. path: 'list',
  75. name: 'salesQueryList',
  76. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  77. meta: {
  78. title: '销售单列表',
  79. icon: 'monitor',
  80. permission: 'M_salesQueryList'
  81. }
  82. },
  83. {
  84. path: 'detail/:id/:sn',
  85. name: 'salesDetail',
  86. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  87. meta: {
  88. title: '销售单详情',
  89. icon: 'monitor',
  90. hidden: true
  91. }
  92. },
  93. {
  94. path: 'add/:id/:sn/:priceType',
  95. name: 'salesAdd',
  96. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  97. meta: {
  98. title: '新增销售单',
  99. icon: 'monitor',
  100. hidden: true
  101. }
  102. },
  103. {
  104. path: 'edit/:id/:sn/:priceType',
  105. name: 'salesEdit',
  106. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  107. meta: {
  108. title: '编辑销售单',
  109. icon: 'monitor',
  110. hidden: true
  111. }
  112. }
  113. ]
  114. },
  115. {
  116. path: '/salesManagement/outboundOrder',
  117. redirect: '/salesManagement/outboundOrder/list',
  118. name: 'outboundOrder',
  119. component: RouteView,
  120. meta: {
  121. title: '出库',
  122. icon: 'export',
  123. permission: 'M_outboundList'
  124. },
  125. hideChildrenInMenu: true,
  126. children: [
  127. {
  128. path: 'list',
  129. name: 'outboundOrderList',
  130. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  131. meta: {
  132. title: '出库列表',
  133. icon: 'export',
  134. hidden: true,
  135. permission: 'M_outboundList'
  136. }
  137. },
  138. {
  139. path: 'detail/:id',
  140. name: 'outboundOrderDetail',
  141. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/detail.vue'),
  142. meta: {
  143. title: '出库明细',
  144. icon: 'export',
  145. hidden: true
  146. }
  147. }
  148. ]
  149. },
  150. {
  151. path: '/salesManagement/urgentItemsOffset',
  152. redirect: '/salesManagement/urgentItemsOffset/list',
  153. name: 'urgentItemsOffset',
  154. component: RouteView,
  155. meta: {
  156. title: '急件冲减',
  157. icon: 'rocket',
  158. permission: 'M_urgentItemsOffsetList'
  159. },
  160. hideChildrenInMenu: true,
  161. children: [
  162. {
  163. path: 'list',
  164. name: 'urgentItemsOffsetList',
  165. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/list.vue'),
  166. meta: {
  167. title: '急件冲减列表',
  168. icon: 'rocket',
  169. hidden: true,
  170. permission: 'M_urgentItemsOffsetList'
  171. }
  172. },
  173. {
  174. path: 'detail/:sn',
  175. name: 'urgentItemsOffsetDetail',
  176. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/detail.vue'),
  177. meta: {
  178. title: '急件冲减详情',
  179. icon: 'rocket',
  180. hidden: true
  181. }
  182. }
  183. ]
  184. },
  185. // {
  186. // path: '/salesManagement/salesReturn',
  187. // redirect: '/salesManagement/salesReturn/list',
  188. // name: 'salesReturn',
  189. // component: RouteView,
  190. // meta: {
  191. // title: '销售退货',
  192. // icon: 'fund'
  193. // // permission: 'M_salesReturn_list'
  194. // },
  195. // hideChildrenInMenu: true,
  196. // children: [
  197. // {
  198. // path: 'list',
  199. // name: 'salesReturnList',
  200. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  201. // meta: {
  202. // title: '退货单列表',
  203. // icon: 'fund',
  204. // hidden: true
  205. // // permission: 'M_salesReturn_list'
  206. // }
  207. // },
  208. // {
  209. // path: 'detail/:id/:sn',
  210. // name: 'salesReturnDetail',
  211. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  212. // meta: {
  213. // title: '退货单详情',
  214. // icon: 'fund',
  215. // hidden: true
  216. // // permission: 'M_salesReturn'
  217. // }
  218. // },
  219. // {
  220. // path: 'salesReturnNew',
  221. // name: 'salesReturnNew',
  222. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnNew.vue'),
  223. // meta: {
  224. // title: '新增退货单',
  225. // icon: 'fund',
  226. // hidden: true
  227. // // permission: 'M_salesReturnNew'
  228. // }
  229. // },
  230. // {
  231. // path: 'salesReturnEdit/:id',
  232. // name: 'salesReturnEdit',
  233. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnNew.vue'),
  234. // meta: {
  235. // title: '编辑退货单',
  236. // icon: 'fund',
  237. // hidden: true
  238. // // permission: 'M_salesReturnEdit'
  239. // }
  240. // }
  241. // ]
  242. // },
  243. // { 二期
  244. // path: '/salesManagement/quotation',
  245. // redirect: '/salesManagement/quotation/list',
  246. // name: 'quotation',
  247. // component: RouteView,
  248. // meta: {
  249. // title: '报价单',
  250. // icon: 'idcard'
  251. // // permission: 'M_goodsManage_list'
  252. // },
  253. // hideChildrenInMenu: true,
  254. // children: [
  255. // {
  256. // path: 'list',
  257. // name: 'quotationList',
  258. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/list.vue'),
  259. // meta: {
  260. // title: '报价单列表',
  261. // icon: 'idcard',
  262. // hidden: true
  263. // // permission: 'M_goodsManage_list'
  264. // }
  265. // },
  266. // {
  267. // path: 'add',
  268. // name: 'quotationAdd',
  269. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
  270. // meta: {
  271. // title: '新增报价单',
  272. // icon: 'idcard',
  273. // hidden: true
  274. // // permission: 'M_goodsManage_list'
  275. // }
  276. // },
  277. // {
  278. // path: 'edit/:id',
  279. // name: 'quotationEdit',
  280. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
  281. // meta: {
  282. // title: '编辑报价单',
  283. // icon: 'idcard',
  284. // hidden: true
  285. // // permission: 'M_goodsManage_list'
  286. // }
  287. // },
  288. // {
  289. // path: 'detail/:id',
  290. // name: 'quotationDetail',
  291. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/detail.vue'),
  292. // meta: {
  293. // title: '报价单详情',
  294. // icon: 'idcard',
  295. // hidden: true
  296. // // permission: 'M_goodsManage_list'
  297. // }
  298. // }
  299. // ]
  300. // },
  301. {
  302. path: '/salesManagement/giftRecord',
  303. redirect: '/salesManagement/giftRecord/list',
  304. name: 'giftRecord',
  305. component: RouteView,
  306. meta: {
  307. title: '赠品记录',
  308. icon: 'file-search',
  309. permission: 'M_giftRecordList'
  310. },
  311. hideChildrenInMenu: true,
  312. children: [
  313. {
  314. path: 'list',
  315. name: 'giftRecordList',
  316. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/giftRecord/list.vue'),
  317. meta: {
  318. title: '赠品记录列表',
  319. icon: 'file-search',
  320. hidden: true,
  321. permission: 'M_giftRecordList'
  322. }
  323. }
  324. ]
  325. }
  326. ]
  327. },
  328. // 采购管理
  329. // {
  330. // path: '/purchasingManagement',
  331. // redirect: '/purchasingManagement/purchaseOrder',
  332. // component: PageView,
  333. // meta: {
  334. // title: '采购管理',
  335. // icon: 'money-collect'
  336. // // permission: 'M_shop'
  337. // },
  338. // children: [
  339. // {
  340. // path: '/purchasingManagement/purchaseOrder',
  341. // redirect: '/purchasingManagement/purchaseOrder/list',
  342. // name: 'purchaseOrder',
  343. // component: RouteView,
  344. // meta: {
  345. // title: '采购单管理',
  346. // icon: 'money-collect'
  347. // // permission: 'M_goodsManage_list'
  348. // },
  349. // hideChildrenInMenu: true,
  350. // children: [
  351. // {
  352. // path: 'list',
  353. // name: 'purchaseOrderList',
  354. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/list.vue'),
  355. // meta: {
  356. // title: '采购单列表',
  357. // icon: 'money-collect',
  358. // hidden: true
  359. // // permission: 'M_goodsManage_list'
  360. // }
  361. // },
  362. // {
  363. // path: 'add',
  364. // name: 'purchaseOrderAdd',
  365. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  366. // meta: {
  367. // title: '新增采购单',
  368. // icon: 'money-collect',
  369. // hidden: true
  370. // // permission: 'B_goodsManage_edit'
  371. // }
  372. // },
  373. // {
  374. // path: 'edit/:id',
  375. // name: 'purchaseOrderEdit',
  376. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  377. // meta: {
  378. // title: '编辑采购单',
  379. // icon: 'money-collect',
  380. // hidden: true
  381. // // permission: 'B_goodsManage_edit'
  382. // }
  383. // },
  384. // {
  385. // path: 'detail/:id',
  386. // name: 'purchaseOrderDetail',
  387. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/detail.vue'),
  388. // meta: {
  389. // title: '采购单详情',
  390. // icon: 'money-collect',
  391. // hidden: true
  392. // // permission: 'B_goodsManage_edit'
  393. // }
  394. // },
  395. // {
  396. // path: 'warehousing/:id',
  397. // name: 'purchaseOrderWarehousing',
  398. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/warehousing.vue'),
  399. // meta: {
  400. // title: '入库',
  401. // icon: 'money-collect',
  402. // hidden: true
  403. // // permission: 'B_goodsManage_edit'
  404. // }
  405. // }
  406. // ]
  407. // },
  408. // {
  409. // path: '/purchasingManagement/purchaseReturn',
  410. // redirect: '/purchasingManagement/purchaseReturn/list',
  411. // name: 'purchaseReturn',
  412. // component: RouteView,
  413. // meta: {
  414. // title: '采购退货',
  415. // icon: 'money-collect'
  416. // // permission: 'M_goodsManage_list'
  417. // },
  418. // hideChildrenInMenu: true,
  419. // children: [
  420. // {
  421. // path: 'list',
  422. // name: 'purchaseReturnList',
  423. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/list.vue'),
  424. // meta: {
  425. // title: '采购退货列表',
  426. // icon: 'money-collect',
  427. // hidden: true
  428. // // permission: 'M_goodsManage_list'
  429. // }
  430. // },
  431. // {
  432. // path: 'add/:id/:sn',
  433. // name: 'purchaseReturnAdd',
  434. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  435. // meta: {
  436. // title: '新增采购退货单',
  437. // icon: 'money-collect',
  438. // hidden: true
  439. // // permission: 'B_goodsManage_edit'
  440. // }
  441. // },
  442. // {
  443. // path: 'edit/:id/:sn',
  444. // name: 'purchaseReturnEdit',
  445. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  446. // meta: {
  447. // title: '编辑采购退货单',
  448. // icon: 'money-collect',
  449. // hidden: true
  450. // // permission: 'B_goodsManage_edit'
  451. // }
  452. // },
  453. // {
  454. // path: 'detail/:sn',
  455. // name: 'purchaseReturnDetail',
  456. // component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/detail.vue'),
  457. // meta: {
  458. // title: '采购退货详情',
  459. // icon: 'money-collect',
  460. // hidden: true
  461. // // permission: 'B_goodsManage_edit'
  462. // }
  463. // }
  464. // ]
  465. // }
  466. // ]
  467. // },
  468. // 调拨管理
  469. {
  470. path: '/allocationManagement',
  471. redirect: '/allocationManagement/warehouseAllocation',
  472. component: PageView,
  473. meta: {
  474. title: '调拨管理',
  475. icon: 'cluster',
  476. permission: 'M_allocationManagement'
  477. },
  478. children: [
  479. {
  480. path: '/allocationManagement/warehouseAllocation',
  481. redirect: '/allocationManagement/warehouseAllocation/list',
  482. name: 'warehouseAllocation',
  483. component: RouteView,
  484. meta: {
  485. title: '仓库调拨',
  486. icon: 'gateway',
  487. permission: 'M_warehouseAllocationList'
  488. },
  489. hideChildrenInMenu: true,
  490. children: [
  491. {
  492. path: 'list',
  493. name: 'warehouseAllocationList',
  494. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/list.vue'),
  495. meta: {
  496. title: '仓库调拨列表',
  497. icon: 'gateway',
  498. hidden: true,
  499. permission: 'M_warehouseAllocationList'
  500. }
  501. },
  502. {
  503. path: 'add',
  504. name: 'warehouseAllocationAdd',
  505. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  506. meta: {
  507. title: '新增仓库调拨',
  508. icon: 'gateway',
  509. hidden: true
  510. }
  511. },
  512. {
  513. path: 'edit/:id/:sn',
  514. name: 'warehouseAllocationEdit',
  515. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  516. meta: {
  517. title: '编辑仓库调拨',
  518. icon: 'gateway',
  519. hidden: true
  520. }
  521. },
  522. {
  523. path: 'detail/:sn',
  524. name: 'warehouseAllocationDetail',
  525. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/detail.vue'),
  526. meta: {
  527. title: '仓库调拨详情',
  528. icon: 'gateway',
  529. hidden: true
  530. }
  531. }
  532. ]
  533. },
  534. // {
  535. // path: '/allocationManagement/chainTransferIn',
  536. // redirect: '/allocationManagement/chainTransferIn/list',
  537. // name: 'chainTransferIn',
  538. // component: RouteView,
  539. // meta: {
  540. // title: '连锁调入',
  541. // icon: 'cluster'
  542. // // permission: 'M_goodsManage_list'
  543. // },
  544. // hideChildrenInMenu: true,
  545. // children: [
  546. // {
  547. // path: 'list',
  548. // name: 'chainTransferInList',
  549. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/list.vue'),
  550. // meta: {
  551. // title: '连锁调入列表',
  552. // icon: 'cluster',
  553. // hidden: true
  554. // // permission: 'M_goodsManage_list'
  555. // }
  556. // },
  557. // {
  558. // path: 'add',
  559. // name: 'chainTransferInAdd',
  560. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  561. // meta: {
  562. // title: '新增连锁调入',
  563. // icon: 'cluster',
  564. // hidden: true
  565. // // permission: 'B_goodsManage_edit'
  566. // }
  567. // },
  568. // {
  569. // path: 'edit/:id',
  570. // name: 'chainTransferInEdit',
  571. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  572. // meta: {
  573. // title: '编辑连锁调入',
  574. // icon: 'cluster',
  575. // hidden: true
  576. // // permission: 'B_goodsManage_edit'
  577. // }
  578. // },
  579. // {
  580. // path: 'detail/:id/:sn',
  581. // name: 'chainTransferInDetail',
  582. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  583. // meta: {
  584. // title: '连锁调入详情',
  585. // icon: 'cluster',
  586. // hidden: true
  587. // // permission: 'B_goodsManage_edit'
  588. // }
  589. // }
  590. // ]
  591. // },
  592. // {
  593. // path: '/allocationManagement/chainTransferOut',
  594. // redirect: '/allocationManagement/chainTransferOut/list',
  595. // name: 'chainTransferOut',
  596. // component: RouteView,
  597. // meta: {
  598. // title: '连锁调出',
  599. // icon: 'pull-request'
  600. // // permission: 'M_goodsManage_list'
  601. // },
  602. // hideChildrenInMenu: true,
  603. // children: [
  604. // {
  605. // path: 'list',
  606. // name: 'chainTransferOutList',
  607. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  608. // meta: {
  609. // title: '连锁调出列表',
  610. // icon: 'pull-request',
  611. // hidden: true
  612. // // permission: 'M_goodsManage_list'
  613. // }
  614. // },
  615. // {
  616. // path: 'add',
  617. // name: 'chainTransferOutAdd',
  618. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  619. // meta: {
  620. // title: '新增连锁调出',
  621. // icon: 'pull-request',
  622. // hidden: true
  623. // // permission: 'B_goodsManage_edit'
  624. // }
  625. // },
  626. // {
  627. // path: 'edit/:id',
  628. // name: 'chainTransferOutEdit',
  629. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  630. // meta: {
  631. // title: '编辑连锁调出',
  632. // icon: 'pull-request',
  633. // hidden: true
  634. // // permission: 'B_goodsManage_edit'
  635. // }
  636. // },
  637. // {
  638. // path: 'detail/:id/:sn',
  639. // name: 'chainTransferOutDetail',
  640. // component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  641. // meta: {
  642. // title: '连锁调出详情',
  643. // icon: 'pull-request',
  644. // hidden: true
  645. // // permission: 'B_goodsManage_edit'
  646. // }
  647. // }
  648. // ]
  649. // },
  650. {
  651. path: '/allocationManagement/storeTransferOut',
  652. redirect: '/allocationManagement/storeTransferOut/list',
  653. name: 'storeTransferOut',
  654. component: RouteView,
  655. meta: {
  656. title: '店内调出',
  657. icon: 'interaction',
  658. permission: 'M_storeTransferOutList'
  659. },
  660. hideChildrenInMenu: true,
  661. children: [
  662. {
  663. path: 'list',
  664. name: 'storeTransferOutList',
  665. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  666. meta: {
  667. title: '店内调出列表',
  668. icon: 'interaction',
  669. hidden: true,
  670. permission: 'M_storeTransferOutList'
  671. }
  672. },
  673. {
  674. path: 'add/:id/:sn',
  675. name: 'storeTransferOutAdd',
  676. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  677. meta: {
  678. title: '新增店内调出',
  679. icon: 'interaction',
  680. hidden: true
  681. }
  682. },
  683. {
  684. path: 'edit/:id/:sn',
  685. name: 'storeTransferOutEdit',
  686. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  687. meta: {
  688. title: '编辑店内调出',
  689. icon: 'interaction',
  690. hidden: true
  691. }
  692. },
  693. {
  694. path: 'detail/:sn',
  695. name: 'storeTransferOutDetail',
  696. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  697. meta: {
  698. title: '店内调出详情',
  699. icon: 'interaction',
  700. hidden: true
  701. }
  702. }
  703. ]
  704. }
  705. ]
  706. },
  707. // 库存管理
  708. {
  709. path: '/inventoryManagement',
  710. redirect: '/inventoryManagement/inventoryQuery',
  711. component: PageView,
  712. meta: {
  713. title: '库存管理',
  714. icon: 'shop',
  715. permission: 'M_inventory'
  716. },
  717. children: [
  718. {
  719. path: '/inventoryManagement/inventoryQuery',
  720. redirect: '/inventoryManagement/inventoryQuery/list',
  721. name: 'inventoryQuery',
  722. component: RouteView,
  723. meta: {
  724. title: '库存查询',
  725. icon: 'monitor',
  726. permission: 'M_inventory_inventoryQuery_list'
  727. },
  728. hideChildrenInMenu: true,
  729. children: [
  730. {
  731. path: 'list',
  732. name: 'inventoryQueryList',
  733. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  734. meta: {
  735. title: '库存列表',
  736. icon: 'monitor',
  737. hidden: true,
  738. permission: 'M_inventory_inventoryQuery_list'
  739. }
  740. },
  741. {
  742. path: 'warehouseDetail/:id',
  743. name: 'inventoryQueryWarehouseDetail',
  744. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  745. meta: {
  746. title: '出入库明细',
  747. icon: 'monitor',
  748. hidden: true
  749. }
  750. }
  751. ]
  752. },
  753. // {
  754. // path: '/inventoryManagement/inventoryWarning',
  755. // name: 'inventoryWarningList',
  756. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  757. // meta: {
  758. // title: '库存预警',
  759. // icon: 'alert'
  760. // // permission: 'M_goodsShelves_0'
  761. // }
  762. // },
  763. // {
  764. // path: '/inventoryManagement/satelliteWarehouseInventory',
  765. // name: 'satelliteWarehouseInventoryList',
  766. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  767. // meta: {
  768. // title: '卫星仓库存',
  769. // icon: 'flag'
  770. // // permission: 'M_goodsShelves_0'
  771. // }
  772. // },
  773. {
  774. path: '/inventoryManagement/warehouse',
  775. redirect: '/inventoryManagement/warehouse/list',
  776. name: 'warehouse',
  777. component: RouteView,
  778. meta: {
  779. title: '仓库管理',
  780. icon: 'deployment-unit',
  781. permission: 'M_inventory_warehouse_list'
  782. },
  783. hideChildrenInMenu: true,
  784. children: [
  785. {
  786. path: 'list',
  787. name: 'warehouseList',
  788. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/list.vue'),
  789. meta: {
  790. title: '仓库列表',
  791. icon: 'deployment-unit',
  792. hidden: true,
  793. permission: 'M_inventory_warehouse_list'
  794. }
  795. },
  796. {
  797. path: '/inventoryManagement/storingLocation/:sn',
  798. name: 'storingLocationList',
  799. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  800. meta: {
  801. title: '仓位列表',
  802. icon: 'deployment-unit',
  803. hidden: true,
  804. permission: 'M_inventory_warehouse_storingLocation_list'
  805. }
  806. }
  807. ]
  808. }
  809. // {
  810. // path: '/inventoryManagement/inventoryChecking',
  811. // redirect: '/inventoryManagement/inventoryChecking/list',
  812. // name: 'inventoryChecking',
  813. // component: RouteView,
  814. // meta: {
  815. // title: '库存盘点',
  816. // icon: 'reconciliation'
  817. // // permission: 'M_goodsManage_list'
  818. // },
  819. // hideChildrenInMenu: true,
  820. // children: [
  821. // {
  822. // path: 'list',
  823. // name: 'inventoryCheckingList',
  824. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  825. // meta: {
  826. // title: '库存盘点列表',
  827. // icon: 'reconciliation',
  828. // hidden: true
  829. // // permission: 'M_goodsManage_list'
  830. // }
  831. // },
  832. // {
  833. // path: 'overall/:id',
  834. // name: 'inventoryCheckingOverall',
  835. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  836. // meta: {
  837. // title: '盘点人盘点【全盘】',
  838. // icon: 'reconciliation',
  839. // hidden: true
  840. // // permission: 'B_goodsManage_edit'
  841. // }
  842. // },
  843. // {
  844. // path: 'selfDisk/:id',
  845. // name: 'inventoryCheckingSelfDisk',
  846. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  847. // meta: {
  848. // title: '盘点人盘点【自选盘点】',
  849. // icon: 'reconciliation',
  850. // hidden: true
  851. // // permission: 'B_goodsManage_edit'
  852. // }
  853. // },
  854. // {
  855. // path: 'detail/:id',
  856. // name: 'inventoryCheckingDetail',
  857. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  858. // meta: {
  859. // title: '库存盘点详情',
  860. // icon: 'reconciliation',
  861. // hidden: true
  862. // // permission: 'B_goodsManage_edit'
  863. // }
  864. // },
  865. // {
  866. // path: 'makeInventory/:id',
  867. // name: 'inventoryCheckingMakeInventory',
  868. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  869. // meta: {
  870. // title: '待盘点【盘点】',
  871. // icon: 'reconciliation',
  872. // hidden: true
  873. // // permission: 'B_goodsManage_edit'
  874. // }
  875. // },
  876. // {
  877. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  878. // name: 'inventoryCheckingMakeInventoryDetail',
  879. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  880. // meta: {
  881. // title: '库存盘点详情',
  882. // icon: 'reconciliation',
  883. // hidden: true
  884. // // permission: 'B_goodsManage_edit'
  885. // }
  886. // },
  887. // {
  888. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  889. // name: 'inventoryCheckingFinancialAuditDetail',
  890. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  891. // meta: {
  892. // title: '库存盘点详情',
  893. // icon: 'reconciliation',
  894. // hidden: true
  895. // // permission: 'B_goodsManage_edit'
  896. // }
  897. // }
  898. // ]
  899. // }
  900. ]
  901. },
  902. // 客户管理
  903. {
  904. path: '/customerManagement',
  905. redirect: '/customerManagement/customerInfo',
  906. component: PageView,
  907. meta: {
  908. title: '客户管理',
  909. icon: 'idcard',
  910. permission: 'M_customer_customerInfo_list'
  911. },
  912. children: [
  913. {
  914. path: '/customerManagement/customerInfo',
  915. redirect: '/customerManagement/customerInfo/list',
  916. name: 'customerInfo',
  917. component: RouteView,
  918. meta: {
  919. title: '客户管理',
  920. icon: 'idcard',
  921. permission: 'M_customer_customerInfo_list'
  922. },
  923. hideChildrenInMenu: true,
  924. children: [
  925. {
  926. path: 'list',
  927. name: 'customerInfoList',
  928. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  929. meta: {
  930. title: '客户列表',
  931. icon: 'idcard',
  932. hidden: true,
  933. permission: 'M_customer_customerInfo_list'
  934. }
  935. },
  936. {
  937. path: 'add',
  938. name: 'customerInfoAdd',
  939. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  940. meta: {
  941. title: '新增客户',
  942. icon: 'idcard',
  943. hidden: true,
  944. permission: 'B_customer_customerInfo_add'
  945. }
  946. },
  947. {
  948. path: 'edit/:id',
  949. name: 'customerInfoEdit',
  950. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  951. meta: {
  952. title: '编辑客户',
  953. icon: 'idcard',
  954. hidden: true,
  955. permission: 'B_customer_customerInfo_edit'
  956. }
  957. }
  958. ]
  959. }
  960. ]
  961. },
  962. // 产品管理
  963. {
  964. path: '/productManagement',
  965. redirect: '/productManagement/productInfo',
  966. component: PageView,
  967. meta: {
  968. title: '产品管理',
  969. icon: 'shopping',
  970. permission: 'M_product'
  971. },
  972. children: [
  973. {
  974. path: '/productManagement/productInfo',
  975. redirect: '/productManagement/productInfo/list',
  976. name: 'productInfo',
  977. component: RouteView,
  978. meta: {
  979. title: '产品信息管理(自建)',
  980. icon: 'file-text',
  981. permission: 'M_product_dealerProduct_list'
  982. },
  983. hideChildrenInMenu: true,
  984. children: [
  985. {
  986. path: 'list',
  987. name: 'productInfoList',
  988. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  989. meta: {
  990. title: '产品信息列表',
  991. icon: 'file-text',
  992. hidden: true,
  993. permission: 'M_product_dealerProduct_list'
  994. }
  995. },
  996. {
  997. path: 'add',
  998. name: 'productInfoAdd',
  999. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1000. meta: {
  1001. title: '新增产品',
  1002. icon: 'file-text',
  1003. hidden: true,
  1004. permission: 'B_product_dealerProduct_add'
  1005. }
  1006. },
  1007. {
  1008. path: 'edit/:id',
  1009. name: 'productInfoEdit',
  1010. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1011. meta: {
  1012. title: '编辑产品',
  1013. icon: 'file-text',
  1014. hidden: true,
  1015. permission: 'B_product_dealerProduct_edit'
  1016. }
  1017. }
  1018. ]
  1019. },
  1020. {
  1021. path: '/productManagement/productInfoJg',
  1022. redirect: '/productManagement/productInfoJg/list',
  1023. name: 'productInfoJg',
  1024. component: RouteView,
  1025. meta: {
  1026. title: '产品信息管理(箭冠)',
  1027. icon: 'file-text',
  1028. permission: 'M_product_product_list'
  1029. },
  1030. hideChildrenInMenu: true,
  1031. children: [
  1032. {
  1033. path: 'list',
  1034. name: 'productInfoJgList',
  1035. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfoJg/list.vue'),
  1036. meta: {
  1037. title: '产品信息列表',
  1038. icon: 'file-text',
  1039. hidden: true,
  1040. permission: 'M_product_product_list'
  1041. }
  1042. }
  1043. ]
  1044. },
  1045. {
  1046. path: '/productManagement/productBrand',
  1047. redirect: '/productManagement/productBrand/list',
  1048. name: 'productBrand',
  1049. component: RouteView,
  1050. meta: {
  1051. title: '产品品牌管理',
  1052. icon: 'sketch',
  1053. permission: 'M_product_dealerProductBrand_list'
  1054. },
  1055. hideChildrenInMenu: true,
  1056. children: [
  1057. {
  1058. path: 'list',
  1059. name: 'productBrandList',
  1060. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  1061. meta: {
  1062. title: '产品品牌列表',
  1063. icon: 'sketch',
  1064. hidden: true,
  1065. permission: 'M_product_dealerProductBrand_list'
  1066. }
  1067. }
  1068. ]
  1069. },
  1070. {
  1071. path: '/productManagement/productCategory',
  1072. redirect: '/productManagement/productCategory/list',
  1073. name: 'productCategory',
  1074. component: RouteView,
  1075. meta: {
  1076. title: '产品分类管理',
  1077. icon: 'sliders',
  1078. permission: 'M_product_dealerProductType_list'
  1079. },
  1080. hideChildrenInMenu: true,
  1081. children: [
  1082. {
  1083. path: 'list',
  1084. name: 'productCategoryList',
  1085. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  1086. meta: {
  1087. title: '产品分类列表',
  1088. icon: 'sliders',
  1089. hidden: true,
  1090. permission: 'M_product_dealerProductType_list'
  1091. }
  1092. }
  1093. ]
  1094. }
  1095. ]
  1096. },
  1097. // 供应商管理
  1098. {
  1099. path: '/supplierManagement',
  1100. redirect: '/supplierManagement/supplierInfo',
  1101. component: PageView,
  1102. meta: {
  1103. title: '供应商管理',
  1104. icon: 'team',
  1105. permission: 'M_supplier_supplierInfo_list'
  1106. },
  1107. children: [
  1108. {
  1109. path: '/supplierManagement/supplierInfo',
  1110. redirect: '/supplierManagement/supplierInfo/list',
  1111. name: 'supplierInfo',
  1112. component: RouteView,
  1113. meta: {
  1114. title: '供应商管理',
  1115. icon: 'team',
  1116. permission: 'M_supplier_supplierInfo_list'
  1117. },
  1118. hideChildrenInMenu: true,
  1119. children: [
  1120. {
  1121. path: 'list',
  1122. name: 'supplierInfoList',
  1123. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  1124. meta: {
  1125. title: '供应商列表',
  1126. icon: 'team',
  1127. hidden: true,
  1128. permission: 'M_supplier_supplierInfo_list'
  1129. }
  1130. }
  1131. ]
  1132. }
  1133. ]
  1134. },
  1135. // 散件管理
  1136. {
  1137. path: '/bulkManagement',
  1138. redirect: '/bulkManagement/purchaseOrder',
  1139. component: PageView,
  1140. meta: {
  1141. title: '散件管理',
  1142. icon: 'gold',
  1143. permission: 'M_bulkWarehousing'
  1144. },
  1145. children: [
  1146. {
  1147. path: '/bulkManagement/bulkWarehousingOrder',
  1148. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  1149. name: 'bulkWarehousingOrder',
  1150. component: RouteView,
  1151. meta: {
  1152. title: '散件入库',
  1153. icon: 'gold',
  1154. permission: 'M_bulkWarehousingOrder_list'
  1155. },
  1156. hideChildrenInMenu: true,
  1157. children: [
  1158. {
  1159. path: 'list',
  1160. name: 'bulkWarehousingOrderList',
  1161. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  1162. meta: {
  1163. title: '散件入库单列表',
  1164. icon: 'gold',
  1165. hidden: true,
  1166. permission: 'M_bulkWarehousingOrder_list'
  1167. }
  1168. },
  1169. {
  1170. path: 'add/:id/:sn',
  1171. name: 'bulkWarehousingOrderAdd',
  1172. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1173. meta: {
  1174. title: '新增散件入库单',
  1175. icon: 'gold',
  1176. hidden: true
  1177. }
  1178. },
  1179. {
  1180. path: 'edit/:id/:sn',
  1181. name: 'bulkWarehousingOrderEdit',
  1182. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1183. meta: {
  1184. title: '编辑散件入库单',
  1185. icon: 'gold',
  1186. hidden: true
  1187. }
  1188. },
  1189. {
  1190. path: 'detail/:id/:sn',
  1191. name: 'bulkWarehousingOrderDetail',
  1192. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  1193. meta: {
  1194. title: '散件入库单详情',
  1195. icon: 'gold',
  1196. hidden: true
  1197. }
  1198. }
  1199. ]
  1200. }
  1201. // {
  1202. // path: '/bulkManagement/bulkReturnGoods',
  1203. // redirect: '/bulkManagement/bulkReturnGoods/list',
  1204. // name: 'bulkReturnGoods',
  1205. // component: RouteView,
  1206. // meta: {
  1207. // title: '散件退货',
  1208. // icon: 'frown'
  1209. // // permission: 'M_goodsManage_list'
  1210. // },
  1211. // hideChildrenInMenu: true,
  1212. // children: [
  1213. // {
  1214. // path: 'list',
  1215. // name: 'bulkReturnGoodsList',
  1216. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/list.vue'),
  1217. // meta: {
  1218. // title: '散件退货列表',
  1219. // icon: 'frown',
  1220. // hidden: true
  1221. // // permission: 'M_goodsManage_list'
  1222. // }
  1223. // },
  1224. // {
  1225. // path: 'add',
  1226. // name: 'bulkReturnGoodsAdd',
  1227. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1228. // meta: {
  1229. // title: '新增散件退货单',
  1230. // icon: 'frown',
  1231. // hidden: true
  1232. // // permission: 'B_goodsManage_edit'
  1233. // }
  1234. // },
  1235. // {
  1236. // path: 'edit/:id',
  1237. // name: 'bulkReturnGoodsEdit',
  1238. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1239. // meta: {
  1240. // title: '编辑散件退货单',
  1241. // icon: 'frown',
  1242. // hidden: true
  1243. // // permission: 'B_goodsManage_edit'
  1244. // }
  1245. // },
  1246. // {
  1247. // path: 'detail/:id',
  1248. // name: 'bulkReturnGoodsDetail',
  1249. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/detail.vue'),
  1250. // meta: {
  1251. // title: '散件退货单详情',
  1252. // icon: 'frown',
  1253. // hidden: true
  1254. // // permission: 'B_goodsManage_edit'
  1255. // }
  1256. // }
  1257. // ]
  1258. // }
  1259. ]
  1260. },
  1261. // 财务管理
  1262. {
  1263. path: '/financialManagement',
  1264. redirect: '/financialManagement/warehousingAudit',
  1265. component: PageView,
  1266. meta: {
  1267. title: '财务管理',
  1268. icon: 'property-safety',
  1269. permission: 'M_financial'
  1270. },
  1271. children: [
  1272. // {
  1273. // path: '/financialManagement/warehousingAudit',
  1274. // redirect: '/financialManagement/warehousingAudit/list',
  1275. // name: 'warehousingAudit',
  1276. // component: RouteView,
  1277. // meta: {
  1278. // title: '入库审核',
  1279. // icon: 'pull-request'
  1280. // // permission: 'M_goodsManage_list'
  1281. // },
  1282. // hideChildrenInMenu: true,
  1283. // children: [
  1284. // {
  1285. // path: 'list',
  1286. // name: 'warehousingAuditList',
  1287. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  1288. // meta: {
  1289. // title: '入库审核列表',
  1290. // icon: 'pull-request',
  1291. // hidden: true
  1292. // // permission: 'M_goodsManage_list'
  1293. // }
  1294. // },
  1295. // {
  1296. // path: 'detail/:id',
  1297. // name: 'warehousingAuditDetail',
  1298. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  1299. // meta: {
  1300. // title: '入库审核详情',
  1301. // icon: 'pull-request',
  1302. // hidden: true
  1303. // // permission: 'B_goodsManage_edit'
  1304. // }
  1305. // }
  1306. // ]
  1307. // },
  1308. // {
  1309. // path: '/financialManagement/inventoryReview',
  1310. // redirect: '/financialManagement/inventoryReview/list',
  1311. // name: 'inventoryReview',
  1312. // component: RouteView,
  1313. // meta: {
  1314. // title: '盘点审核',
  1315. // icon: 'laptop'
  1316. // // permission: 'M_goodsManage_list'
  1317. // },
  1318. // hideChildrenInMenu: true,
  1319. // children: [
  1320. // {
  1321. // path: 'list',
  1322. // name: 'inventoryReviewList',
  1323. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1324. // meta: {
  1325. // title: '盘点审核列表',
  1326. // icon: 'laptop',
  1327. // hidden: true
  1328. // // permission: 'M_goodsManage_list'
  1329. // }
  1330. // },
  1331. // {
  1332. // path: 'detail/:id',
  1333. // name: 'inventoryReviewDetail',
  1334. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1335. // meta: {
  1336. // title: '盘点审核详情',
  1337. // icon: 'laptop',
  1338. // hidden: true
  1339. // // permission: 'B_goodsManage_edit'
  1340. // }
  1341. // }
  1342. // ]
  1343. // },
  1344. {
  1345. path: '/financialManagement/financialPayment',
  1346. redirect: '/financialManagement/financialPayment/list',
  1347. name: 'financialPayment',
  1348. component: RouteView,
  1349. meta: {
  1350. title: '财务付款',
  1351. icon: 'pay-circle',
  1352. permission: 'M_financialPaymentList'
  1353. },
  1354. hideChildrenInMenu: true,
  1355. children: [
  1356. {
  1357. path: 'list',
  1358. name: 'financialPaymentList',
  1359. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  1360. meta: {
  1361. title: '财务付款列表',
  1362. icon: 'pay-circle',
  1363. hidden: true,
  1364. permission: 'M_financialPaymentList'
  1365. }
  1366. }
  1367. ]
  1368. },
  1369. {
  1370. path: '/financialManagement/financialCollection',
  1371. redirect: '/financialManagement/financialCollection/list',
  1372. name: 'financialCollection',
  1373. component: RouteView,
  1374. meta: {
  1375. title: '财务收款',
  1376. icon: 'money-collect',
  1377. permission: 'M_financialCollectionList'
  1378. },
  1379. hideChildrenInMenu: true,
  1380. children: [
  1381. {
  1382. path: 'list',
  1383. name: 'financialCollectionList',
  1384. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  1385. meta: {
  1386. title: '财务收款列表',
  1387. icon: 'money-collect',
  1388. hidden: true,
  1389. permission: 'M_financialCollectionList'
  1390. }
  1391. }
  1392. ]
  1393. },
  1394. {
  1395. path: '/financialManagement/expenseManagement',
  1396. redirect: '/financialManagement/expenseManagement/list',
  1397. name: 'expenseManagement',
  1398. component: RouteView,
  1399. meta: {
  1400. title: '费用管理',
  1401. icon: 'pound',
  1402. permission: 'M_expenseManagementList'
  1403. },
  1404. hideChildrenInMenu: true,
  1405. children: [
  1406. {
  1407. path: 'list',
  1408. name: 'expenseManagementList',
  1409. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  1410. meta: {
  1411. title: '费用单列表',
  1412. icon: 'pound',
  1413. hidden: true,
  1414. permission: 'M_expenseManagementList'
  1415. }
  1416. },
  1417. {
  1418. path: 'add',
  1419. name: 'expenseManagementAdd',
  1420. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1421. meta: {
  1422. title: '新增费用单',
  1423. icon: 'pound',
  1424. hidden: true
  1425. }
  1426. },
  1427. {
  1428. path: 'edit/:id',
  1429. name: 'expenseManagementEdit',
  1430. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1431. meta: {
  1432. title: '编辑费用单',
  1433. icon: 'pound',
  1434. hidden: true
  1435. }
  1436. }
  1437. ]
  1438. }
  1439. // {
  1440. // path: '/financialManagement/companyReceivablePayable',
  1441. // redirect: '/financialManagement/companyReceivablePayable/list',
  1442. // name: 'companyReceivablePayable',
  1443. // component: RouteView,
  1444. // meta: {
  1445. // title: '单位应收应付管理',
  1446. // icon: 'transaction'
  1447. // // permission: 'M_goodsManage_list'
  1448. // },
  1449. // hideChildrenInMenu: true,
  1450. // children: [
  1451. // {
  1452. // path: 'list',
  1453. // name: 'companyReceivablePayableList',
  1454. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  1455. // meta: {
  1456. // title: '单位应收应付列表',
  1457. // icon: 'transaction',
  1458. // hidden: true
  1459. // // permission: 'M_goodsManage_list'
  1460. // }
  1461. // },
  1462. // {
  1463. // path: 'receipt/:id',
  1464. // name: 'companyReceivablePayableReceipt',
  1465. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/receipt.vue'),
  1466. // meta: {
  1467. // title: '单位收款单',
  1468. // icon: 'transaction',
  1469. // hidden: true
  1470. // // permission: 'B_goodsManage_edit'
  1471. // }
  1472. // },
  1473. // {
  1474. // path: 'paymentSlip/:id',
  1475. // name: 'companyReceivablePayablePaymentSlip',
  1476. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/paymentSlip.vue'),
  1477. // meta: {
  1478. // title: '单位付款单',
  1479. // icon: 'transaction',
  1480. // hidden: true
  1481. // // permission: 'B_goodsManage_edit'
  1482. // }
  1483. // },
  1484. // {
  1485. // path: 'detail/:id',
  1486. // name: 'companyReceivablePayableDetail',
  1487. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  1488. // meta: {
  1489. // title: '单位应收应付详情',
  1490. // icon: 'transaction',
  1491. // hidden: true
  1492. // // permission: 'B_goodsManage_edit'
  1493. // }
  1494. // }
  1495. // ]
  1496. // },
  1497. // {
  1498. // path: '/financialManagement/companyCollectionPayment',
  1499. // redirect: '/financialManagement/companyCollectionPayment/list',
  1500. // name: 'companyCollectionPayment',
  1501. // component: RouteView,
  1502. // meta: {
  1503. // title: '单位收付款记录',
  1504. // icon: 'file-protect'
  1505. // // permission: 'M_goodsManage_list'
  1506. // },
  1507. // hideChildrenInMenu: true,
  1508. // children: [
  1509. // {
  1510. // path: 'list',
  1511. // name: 'companyCollectionPaymentList',
  1512. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  1513. // meta: {
  1514. // title: '单位收付款记录列表',
  1515. // icon: 'file-protect',
  1516. // hidden: true
  1517. // // permission: 'M_goodsManage_list'
  1518. // }
  1519. // },
  1520. // {
  1521. // path: 'detail/:id',
  1522. // name: 'companyCollectionPaymentDetail',
  1523. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  1524. // meta: {
  1525. // title: '单位收付款记录详情',
  1526. // icon: 'file-protect',
  1527. // hidden: true
  1528. // // permission: 'B_goodsManage_edit'
  1529. // }
  1530. // }
  1531. // ]
  1532. // },
  1533. // {
  1534. // path: '/financialManagement/withdrawalManagement',
  1535. // redirect: '/financialManagement/withdrawalManagement/list',
  1536. // name: 'withdrawalManagement',
  1537. // component: RouteView,
  1538. // meta: {
  1539. // title: '提现管理',
  1540. // icon: 'dollar'
  1541. // // permission: 'M_goodsManage_list'
  1542. // },
  1543. // hideChildrenInMenu: true,
  1544. // children: [
  1545. // {
  1546. // path: 'list',
  1547. // name: 'withdrawalManagementList',
  1548. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  1549. // meta: {
  1550. // title: '提现管理列表',
  1551. // icon: 'dollar',
  1552. // hidden: true
  1553. // // permission: 'M_goodsManage_list'
  1554. // }
  1555. // }
  1556. // ]
  1557. // },
  1558. // {
  1559. // path: '/financialManagement/ledgerRecord',
  1560. // redirect: '/financialManagement/ledgerRecord/list',
  1561. // name: 'ledgerRecord',
  1562. // component: RouteView,
  1563. // meta: {
  1564. // title: '分账记录',
  1565. // icon: 'profile'
  1566. // // permission: 'M_goodsManage_list'
  1567. // },
  1568. // hideChildrenInMenu: true,
  1569. // children: [
  1570. // {
  1571. // path: 'list',
  1572. // name: 'ledgerRecordList',
  1573. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  1574. // meta: {
  1575. // title: '分账记录列表',
  1576. // icon: 'profile',
  1577. // hidden: true
  1578. // // permission: 'M_goodsManage_list'
  1579. // }
  1580. // }
  1581. // ]
  1582. // }
  1583. ]
  1584. },
  1585. // 基础设置
  1586. {
  1587. path: '/basicData',
  1588. redirect: '/basicData/storeTransferOutTypeManagement',
  1589. component: PageView,
  1590. meta: {
  1591. title: '基础设置',
  1592. icon: 'pushpin',
  1593. permission: 'M_basicData'
  1594. },
  1595. children: [
  1596. {
  1597. path: '/basicData/storeTransferOutTypeManagement',
  1598. redirect: '/basicData/storeTransferOutTypeManagement/list',
  1599. name: 'storeTransferOutTypeManagement',
  1600. component: RouteView,
  1601. meta: {
  1602. title: '店内调出类型管理',
  1603. icon: 'interaction',
  1604. permission: 'M_basicData_storeTransferOutType_list'
  1605. },
  1606. hideChildrenInMenu: true,
  1607. children: [
  1608. {
  1609. path: 'list',
  1610. name: 'storeTransferOutTypeManagementList',
  1611. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/storeTransferOutTypeManagement/list.vue'),
  1612. meta: {
  1613. title: '店内调出类型管理列表',
  1614. icon: 'interaction',
  1615. hidden: true,
  1616. permission: 'M_basicData_storeTransferOutType_list'
  1617. }
  1618. }
  1619. ]
  1620. },
  1621. {
  1622. path: '/basicData/bulkPartsTypeManagement',
  1623. redirect: '/basicData/bulkPartsTypeManagement/list',
  1624. name: 'bulkPartsTypeManagement',
  1625. component: RouteView,
  1626. meta: {
  1627. title: '散件入库类型管理',
  1628. icon: 'gold',
  1629. permission: 'M_basicData_bulkPartsType_list'
  1630. },
  1631. hideChildrenInMenu: true,
  1632. children: [
  1633. {
  1634. path: 'list',
  1635. name: 'bulkPartsTypeManagementList',
  1636. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/bulkPartsTypeManagement/list.vue'),
  1637. meta: {
  1638. title: '散件入库类型列表',
  1639. icon: 'gold',
  1640. hidden: true,
  1641. permission: 'M_basicData_bulkPartsType_list'
  1642. }
  1643. }
  1644. ]
  1645. },
  1646. {
  1647. path: '/basicData/expenseType',
  1648. redirect: '/basicData/expenseType/list',
  1649. name: 'expenseType',
  1650. component: RouteView,
  1651. meta: {
  1652. title: '费用类型管理',
  1653. icon: 'pay-circle',
  1654. permission: 'M_basicData_expenseType_list'
  1655. },
  1656. hideChildrenInMenu: true,
  1657. children: [
  1658. {
  1659. path: 'list',
  1660. name: 'expenseTypeList',
  1661. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/expenseType/list.vue'),
  1662. meta: {
  1663. title: '费用类型列表',
  1664. icon: 'pay-circle',
  1665. hidden: true,
  1666. permission: 'M_basicData_expenseType_list'
  1667. }
  1668. }
  1669. ]
  1670. },
  1671. // {
  1672. // path: '/basicData/processSettings',
  1673. // redirect: '/basicData/processSettings/setup',
  1674. // name: 'processSettings',
  1675. // component: RouteView,
  1676. // meta: {
  1677. // title: '业务自动化设置',
  1678. // icon: 'sliders'
  1679. // // permission: 'M_goodsManage_list'
  1680. // },
  1681. // hideChildrenInMenu: true,
  1682. // children: [
  1683. // {
  1684. // path: 'setup',
  1685. // name: 'processSettingsSetup',
  1686. // component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/processSettings/setup.vue'),
  1687. // meta: {
  1688. // title: '业务自动化设置',
  1689. // icon: 'sliders',
  1690. // hidden: true
  1691. // // permission: 'M_goodsManage_list'
  1692. // }
  1693. // }
  1694. // ]
  1695. // },
  1696. {
  1697. path: '/basicData/customerTypeManagement',
  1698. redirect: '/basicData/customerTypeManagement/list',
  1699. name: 'customerTypeManagement',
  1700. component: RouteView,
  1701. meta: {
  1702. title: '客户类型管理',
  1703. icon: 'idcard',
  1704. permission: 'M_basicData_customerType_list'
  1705. },
  1706. hideChildrenInMenu: true,
  1707. children: [
  1708. {
  1709. path: 'list',
  1710. name: 'customerTypeManagementList',
  1711. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/customerTypeManagement/list.vue'),
  1712. meta: {
  1713. title: '客户类型列表',
  1714. icon: 'idcard',
  1715. hidden: true,
  1716. permission: 'M_basicData_customerType_list'
  1717. }
  1718. }
  1719. ]
  1720. }
  1721. ]
  1722. },
  1723. // auth
  1724. {
  1725. path: '/auth',
  1726. redirect: '/auth/userList',
  1727. component: PageView,
  1728. meta: {
  1729. title: '权限管理',
  1730. icon: 'lock',
  1731. permission: 'M_powerMD_0'
  1732. },
  1733. children: [
  1734. {
  1735. path: '/auth/userList',
  1736. name: 'powerUserList',
  1737. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1738. meta: {
  1739. title: '用户管理',
  1740. icon: 'user',
  1741. permission: 'M_powerMD_user_list'
  1742. }
  1743. },
  1744. {
  1745. path: '/auth/roleList',
  1746. name: 'powerRoleList',
  1747. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1748. meta: {
  1749. title: '角色管理',
  1750. icon: 'solution',
  1751. permission: 'M_powerMD_role_list'
  1752. }
  1753. }
  1754. ]
  1755. }
  1756. // 系统设置
  1757. // {
  1758. // path: '/setting',
  1759. // redirect: '/setting/userList',
  1760. // component: PageView,
  1761. // meta: {
  1762. // title: '系统设置',
  1763. // icon: 'setting'
  1764. // // permission: 'M_setting_0'
  1765. // },
  1766. // children: [
  1767. // {
  1768. // path: '/setting/dataDictionary',
  1769. // name: 'powerDD',
  1770. // component: () => import(/* webpackChunkName: "setting" */
  1771. // '@/views/power/dataDictionary/dataDictionary.vue'),
  1772. // meta: {
  1773. // title: '数据字典管理',
  1774. // icon: 'database'
  1775. // // permission: 'M_sys_dataDictionary'
  1776. // }
  1777. // },
  1778. // // {
  1779. // // path: '/setting/register',
  1780. // // name: 'powerRegister',
  1781. // // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1782. // // meta: {
  1783. // // title: '参数管理',
  1784. // // icon: 'key',
  1785. // // permission: 'M_sys_register'
  1786. // // }
  1787. // // },
  1788. // {
  1789. // path: '/setting/OperateJournal',
  1790. // name: 'powerOperateJournal',
  1791. // component: () => import(/* webpackChunkName: "setting" */
  1792. // '@/views/power/OperateJournal/OperateJournal.vue'),
  1793. // meta: {
  1794. // title: '操作日志',
  1795. // icon: 'read'
  1796. // // permission: 'M_operateJournal'
  1797. // }
  1798. // }
  1799. // ]
  1800. // }
  1801. ]
  1802. },
  1803. {
  1804. path: '*',
  1805. redirect: '/404',
  1806. hidden: true
  1807. }
  1808. ]
  1809. /**
  1810. * 基础路由
  1811. * @type { *[] }
  1812. */
  1813. export const constantRouterMap = [
  1814. {
  1815. path: '/user',
  1816. component: UserLayout,
  1817. redirect: '/user/login',
  1818. hidden: true,
  1819. children: [
  1820. {
  1821. path: 'login',
  1822. name: 'login',
  1823. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1824. },
  1825. {
  1826. path: 'register',
  1827. name: 'register',
  1828. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1829. },
  1830. {
  1831. path: 'register-result',
  1832. name: 'registerResult',
  1833. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1834. },
  1835. {
  1836. path: 'recover',
  1837. name: 'recover',
  1838. component: undefined
  1839. }
  1840. ]
  1841. },
  1842. {
  1843. path: '/404',
  1844. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1845. }
  1846. ]