router.config.js 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863
  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/: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: 'salesReturnGrabEdit/:id/:sn/:buyerSn',
  221. name: 'salesReturnGrabEdit',
  222. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  223. meta: {
  224. title: '编辑退货单(抓单)',
  225. icon: 'fund',
  226. hidden: true
  227. // permission: 'M_salesReturnGrabEdit'
  228. }
  229. },
  230. {
  231. path: 'salesReturnEdit/:id/:sn/:buyerSn',
  232. name: 'salesReturnEdit',
  233. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.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/:sn',
  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/:sn',
  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/:sn',
  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/:sn',
  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: 'edit/:id/:sn',
  559. name: 'chainTransferInEdit',
  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: 'detail/:sn',
  570. name: 'chainTransferInDetail',
  571. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  572. meta: {
  573. title: '连锁调入详情',
  574. icon: 'cluster',
  575. hidden: true
  576. // permission: 'B_goodsManage_edit'
  577. }
  578. }
  579. ]
  580. },
  581. {
  582. path: '/allocationManagement/chainTransferOut',
  583. redirect: '/allocationManagement/chainTransferOut/list',
  584. name: 'chainTransferOut',
  585. component: RouteView,
  586. meta: {
  587. title: '连锁调出',
  588. icon: 'pull-request'
  589. // permission: 'M_goodsManage_list'
  590. },
  591. hideChildrenInMenu: true,
  592. children: [
  593. {
  594. path: 'list',
  595. name: 'chainTransferOutList',
  596. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  597. meta: {
  598. title: '连锁调出列表',
  599. icon: 'pull-request',
  600. hidden: true
  601. // permission: 'M_goodsManage_list'
  602. }
  603. },
  604. {
  605. path: 'add/:id/:sn',
  606. name: 'chainTransferOutAdd',
  607. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  608. meta: {
  609. title: '新增连锁调出',
  610. icon: 'pull-request',
  611. hidden: true
  612. // permission: 'B_goodsManage_edit'
  613. }
  614. },
  615. {
  616. path: 'edit/:id/:sn',
  617. name: 'chainTransferOutEdit',
  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: 'detail/:sn',
  628. name: 'chainTransferOutDetail',
  629. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  630. meta: {
  631. title: '连锁调出详情',
  632. icon: 'pull-request',
  633. hidden: true
  634. // permission: 'B_goodsManage_edit'
  635. }
  636. }
  637. ]
  638. },
  639. {
  640. path: '/allocationManagement/storeTransferOut',
  641. redirect: '/allocationManagement/storeTransferOut/list',
  642. name: 'storeTransferOut',
  643. component: RouteView,
  644. meta: {
  645. title: '店内调出',
  646. icon: 'interaction'
  647. // permission: 'M_storeTransferOutList'
  648. },
  649. hideChildrenInMenu: true,
  650. children: [
  651. {
  652. path: 'list',
  653. name: 'storeTransferOutList',
  654. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  655. meta: {
  656. title: '店内调出列表',
  657. icon: 'interaction',
  658. hidden: true,
  659. permission: 'M_storeTransferOutList'
  660. }
  661. },
  662. {
  663. path: 'add/:id/:sn',
  664. name: 'storeTransferOutAdd',
  665. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  666. meta: {
  667. title: '新增店内调出',
  668. icon: 'interaction',
  669. hidden: true
  670. }
  671. },
  672. {
  673. path: 'edit/:id/:sn',
  674. name: 'storeTransferOutEdit',
  675. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  676. meta: {
  677. title: '编辑店内调出',
  678. icon: 'interaction',
  679. hidden: true
  680. }
  681. },
  682. {
  683. path: 'detail/:sn',
  684. name: 'storeTransferOutDetail',
  685. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  686. meta: {
  687. title: '店内调出详情',
  688. icon: 'interaction',
  689. hidden: true
  690. }
  691. }
  692. ]
  693. }
  694. ]
  695. },
  696. // 库存管理
  697. {
  698. path: '/inventoryManagement',
  699. redirect: '/inventoryManagement/inventoryQuery',
  700. component: PageView,
  701. meta: {
  702. title: '库存管理',
  703. icon: 'shop',
  704. permission: 'M_inventory'
  705. },
  706. children: [
  707. {
  708. path: '/inventoryManagement/inventoryQuery',
  709. redirect: '/inventoryManagement/inventoryQuery/list',
  710. name: 'inventoryQuery',
  711. component: RouteView,
  712. meta: {
  713. title: '库存查询',
  714. icon: 'monitor',
  715. permission: 'M_inventory_inventoryQuery_list'
  716. },
  717. hideChildrenInMenu: true,
  718. children: [
  719. {
  720. path: 'list',
  721. name: 'inventoryQueryList',
  722. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  723. meta: {
  724. title: '库存列表',
  725. icon: 'monitor',
  726. hidden: true,
  727. permission: 'M_inventory_inventoryQuery_list'
  728. }
  729. },
  730. {
  731. path: 'warehouseDetail/:sn',
  732. name: 'inventoryQueryWarehouseDetail',
  733. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  734. meta: {
  735. title: '出入库明细',
  736. icon: 'monitor',
  737. hidden: true
  738. }
  739. }
  740. ]
  741. },
  742. {
  743. path: '/inventoryManagement/inventoryWarning',
  744. name: 'inventoryWarningList',
  745. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  746. meta: {
  747. title: '库存预警',
  748. icon: 'alert'
  749. // permission: 'M_goodsShelves_0'
  750. }
  751. },
  752. // {
  753. // path: '/inventoryManagement/satelliteWarehouseInventory',
  754. // name: 'satelliteWarehouseInventoryList',
  755. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  756. // meta: {
  757. // title: '卫星仓库存',
  758. // icon: 'flag'
  759. // // permission: 'M_goodsShelves_0'
  760. // }
  761. // },
  762. {
  763. path: '/inventoryManagement/warehouse',
  764. redirect: '/inventoryManagement/warehouse/list',
  765. name: 'warehouse',
  766. component: RouteView,
  767. meta: {
  768. title: '仓库管理',
  769. icon: 'deployment-unit',
  770. permission: 'M_inventory_warehouse_list'
  771. },
  772. hideChildrenInMenu: true,
  773. children: [
  774. {
  775. path: 'list',
  776. name: 'warehouseList',
  777. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/list.vue'),
  778. meta: {
  779. title: '仓库列表',
  780. icon: 'deployment-unit',
  781. hidden: true,
  782. permission: 'M_inventory_warehouse_list'
  783. }
  784. },
  785. {
  786. path: '/inventoryManagement/storingLocation/:sn',
  787. name: 'storingLocationList',
  788. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  789. meta: {
  790. title: '仓位列表',
  791. icon: 'deployment-unit',
  792. hidden: true,
  793. permission: 'M_inventory_warehouse_storingLocation_list'
  794. }
  795. }
  796. ]
  797. }
  798. // 二期
  799. // {
  800. // path: '/inventoryManagement/inventoryChecking',
  801. // redirect: '/inventoryManagement/inventoryChecking/list',
  802. // name: 'inventoryChecking',
  803. // component: RouteView,
  804. // meta: {
  805. // title: '库存盘点',
  806. // icon: 'reconciliation'
  807. // // permission: 'M_goodsManage_list'
  808. // },
  809. // hideChildrenInMenu: true,
  810. // children: [
  811. // {
  812. // path: 'list',
  813. // name: 'inventoryCheckingList',
  814. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  815. // meta: {
  816. // title: '库存盘点列表',
  817. // icon: 'reconciliation',
  818. // hidden: true
  819. // // permission: 'M_goodsManage_list'
  820. // }
  821. // },
  822. // {
  823. // path: 'overall/:id',
  824. // name: 'inventoryCheckingOverall',
  825. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  826. // meta: {
  827. // title: '盘点人盘点【全盘】',
  828. // icon: 'reconciliation',
  829. // hidden: true
  830. // // permission: 'B_goodsManage_edit'
  831. // }
  832. // },
  833. // {
  834. // path: 'selfDisk/:id',
  835. // name: 'inventoryCheckingSelfDisk',
  836. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  837. // meta: {
  838. // title: '盘点人盘点【自选盘点】',
  839. // icon: 'reconciliation',
  840. // hidden: true
  841. // // permission: 'B_goodsManage_edit'
  842. // }
  843. // },
  844. // {
  845. // path: 'detail/:id',
  846. // name: 'inventoryCheckingDetail',
  847. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  848. // meta: {
  849. // title: '库存盘点详情',
  850. // icon: 'reconciliation',
  851. // hidden: true
  852. // // permission: 'B_goodsManage_edit'
  853. // }
  854. // },
  855. // {
  856. // path: 'makeInventory/:id',
  857. // name: 'inventoryCheckingMakeInventory',
  858. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  859. // meta: {
  860. // title: '待盘点【盘点】',
  861. // icon: 'reconciliation',
  862. // hidden: true
  863. // // permission: 'B_goodsManage_edit'
  864. // }
  865. // },
  866. // {
  867. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  868. // name: 'inventoryCheckingMakeInventoryDetail',
  869. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  870. // meta: {
  871. // title: '库存盘点详情',
  872. // icon: 'reconciliation',
  873. // hidden: true
  874. // // permission: 'B_goodsManage_edit'
  875. // }
  876. // },
  877. // {
  878. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  879. // name: 'inventoryCheckingFinancialAuditDetail',
  880. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  881. // meta: {
  882. // title: '库存盘点详情',
  883. // icon: 'reconciliation',
  884. // hidden: true
  885. // // permission: 'B_goodsManage_edit'
  886. // }
  887. // }
  888. // ]
  889. // }
  890. ]
  891. },
  892. // 客户管理
  893. {
  894. path: '/customerManagement',
  895. redirect: '/customerManagement/customerInfo',
  896. component: PageView,
  897. meta: {
  898. title: '客户管理',
  899. icon: 'idcard',
  900. permission: 'M_customer_customerInfo_list'
  901. },
  902. children: [
  903. {
  904. path: '/customerManagement/customerInfo',
  905. redirect: '/customerManagement/customerInfo/list',
  906. name: 'customerInfo',
  907. component: RouteView,
  908. meta: {
  909. title: '客户管理',
  910. icon: 'idcard',
  911. permission: 'M_customer_customerInfo_list'
  912. },
  913. hideChildrenInMenu: true,
  914. children: [
  915. {
  916. path: 'list',
  917. name: 'customerInfoList',
  918. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  919. meta: {
  920. title: '客户列表',
  921. icon: 'idcard',
  922. hidden: true,
  923. permission: 'M_customer_customerInfo_list'
  924. }
  925. },
  926. {
  927. path: 'add',
  928. name: 'customerInfoAdd',
  929. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  930. meta: {
  931. title: '新增客户',
  932. icon: 'idcard',
  933. hidden: true,
  934. permission: 'B_customer_customerInfo_add'
  935. }
  936. },
  937. {
  938. path: 'edit/:id',
  939. name: 'customerInfoEdit',
  940. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  941. meta: {
  942. title: '编辑客户',
  943. icon: 'idcard',
  944. hidden: true,
  945. permission: 'B_customer_customerInfo_edit'
  946. }
  947. }
  948. ]
  949. }
  950. ]
  951. },
  952. // 产品管理
  953. {
  954. path: '/productManagement',
  955. redirect: '/productManagement/productInfo',
  956. component: PageView,
  957. meta: {
  958. title: '产品管理',
  959. icon: 'shopping',
  960. permission: 'M_product'
  961. },
  962. children: [
  963. {
  964. path: '/productManagement/productInfo',
  965. redirect: '/productManagement/productInfo/list',
  966. name: 'productInfo',
  967. component: RouteView,
  968. meta: {
  969. title: '产品信息管理(自建)',
  970. icon: 'file-text',
  971. permission: 'M_product_dealerProduct_list'
  972. },
  973. hideChildrenInMenu: true,
  974. children: [
  975. {
  976. path: 'list',
  977. name: 'productInfoList',
  978. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  979. meta: {
  980. title: '产品信息列表',
  981. icon: 'file-text',
  982. hidden: true,
  983. permission: 'M_product_dealerProduct_list'
  984. }
  985. },
  986. {
  987. path: 'add',
  988. name: 'productInfoAdd',
  989. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  990. meta: {
  991. title: '新增产品',
  992. icon: 'file-text',
  993. hidden: true,
  994. permission: 'B_product_dealerProduct_add'
  995. }
  996. },
  997. {
  998. path: 'edit/:id',
  999. name: 'productInfoEdit',
  1000. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1001. meta: {
  1002. title: '编辑产品',
  1003. icon: 'file-text',
  1004. hidden: true,
  1005. permission: 'B_product_dealerProduct_edit'
  1006. }
  1007. }
  1008. ]
  1009. },
  1010. {
  1011. path: '/productManagement/productInfoJg',
  1012. redirect: '/productManagement/productInfoJg/list',
  1013. name: 'productInfoJg',
  1014. component: RouteView,
  1015. meta: {
  1016. title: '产品信息管理(箭冠)',
  1017. icon: 'file-text',
  1018. permission: 'M_product_product_list'
  1019. },
  1020. hideChildrenInMenu: true,
  1021. children: [
  1022. {
  1023. path: 'list',
  1024. name: 'productInfoJgList',
  1025. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfoJg/list.vue'),
  1026. meta: {
  1027. title: '产品信息列表',
  1028. icon: 'file-text',
  1029. hidden: true,
  1030. permission: 'M_product_product_list'
  1031. }
  1032. }
  1033. ]
  1034. },
  1035. {
  1036. path: '/productManagement/productBrand',
  1037. redirect: '/productManagement/productBrand/list',
  1038. name: 'productBrand',
  1039. component: RouteView,
  1040. meta: {
  1041. title: '产品品牌管理',
  1042. icon: 'sketch',
  1043. permission: 'M_product_dealerProductBrand_list'
  1044. },
  1045. hideChildrenInMenu: true,
  1046. children: [
  1047. {
  1048. path: 'list',
  1049. name: 'productBrandList',
  1050. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  1051. meta: {
  1052. title: '产品品牌列表',
  1053. icon: 'sketch',
  1054. hidden: true,
  1055. permission: 'M_product_dealerProductBrand_list'
  1056. }
  1057. }
  1058. ]
  1059. },
  1060. {
  1061. path: '/productManagement/productCategory',
  1062. redirect: '/productManagement/productCategory/list',
  1063. name: 'productCategory',
  1064. component: RouteView,
  1065. meta: {
  1066. title: '产品分类管理',
  1067. icon: 'sliders',
  1068. permission: 'M_product_dealerProductType_list'
  1069. },
  1070. hideChildrenInMenu: true,
  1071. children: [
  1072. {
  1073. path: 'list',
  1074. name: 'productCategoryList',
  1075. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  1076. meta: {
  1077. title: '产品分类列表',
  1078. icon: 'sliders',
  1079. hidden: true,
  1080. permission: 'M_product_dealerProductType_list'
  1081. }
  1082. }
  1083. ]
  1084. },
  1085. {
  1086. path: '/productManagement/priceChangeRecord',
  1087. redirect: '/productManagement/priceChangeRecord/list',
  1088. name: 'priceChangeRecord',
  1089. component: RouteView,
  1090. meta: {
  1091. title: '价格变更记录',
  1092. icon: 'sketch'
  1093. // permission: 'M_goodsManage_list'
  1094. },
  1095. hideChildrenInMenu: true,
  1096. children: [
  1097. {
  1098. path: 'list',
  1099. name: 'priceChangeRecordList',
  1100. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  1101. meta: {
  1102. title: '价格变更记录列表',
  1103. icon: 'sketch',
  1104. hidden: true
  1105. // permission: 'M_goodsManage_list'
  1106. }
  1107. }
  1108. ]
  1109. }
  1110. ]
  1111. },
  1112. // 供应商管理
  1113. {
  1114. path: '/supplierManagement',
  1115. redirect: '/supplierManagement/supplierInfo',
  1116. component: PageView,
  1117. meta: {
  1118. title: '供应商管理',
  1119. icon: 'team',
  1120. permission: 'M_supplier_supplierInfo_list'
  1121. },
  1122. children: [
  1123. {
  1124. path: '/supplierManagement/supplierInfo',
  1125. redirect: '/supplierManagement/supplierInfo/list',
  1126. name: 'supplierInfo',
  1127. component: RouteView,
  1128. meta: {
  1129. title: '供应商管理',
  1130. icon: 'team',
  1131. permission: 'M_supplier_supplierInfo_list'
  1132. },
  1133. hideChildrenInMenu: true,
  1134. children: [
  1135. {
  1136. path: 'list',
  1137. name: 'supplierInfoList',
  1138. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  1139. meta: {
  1140. title: '供应商列表',
  1141. icon: 'team',
  1142. hidden: true,
  1143. permission: 'M_supplier_supplierInfo_list'
  1144. }
  1145. }
  1146. ]
  1147. }
  1148. ]
  1149. },
  1150. // 散件管理
  1151. {
  1152. path: '/bulkManagement',
  1153. redirect: '/bulkManagement/purchaseOrder',
  1154. component: PageView,
  1155. meta: {
  1156. title: '散件管理',
  1157. icon: 'gold',
  1158. permission: 'M_bulkWarehousing'
  1159. },
  1160. children: [
  1161. {
  1162. path: '/bulkManagement/bulkWarehousingOrder',
  1163. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  1164. name: 'bulkWarehousingOrder',
  1165. component: RouteView,
  1166. meta: {
  1167. title: '散件入库',
  1168. icon: 'gold',
  1169. permission: 'M_bulkWarehousingOrder_list'
  1170. },
  1171. hideChildrenInMenu: true,
  1172. children: [
  1173. {
  1174. path: 'list',
  1175. name: 'bulkWarehousingOrderList',
  1176. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  1177. meta: {
  1178. title: '散件入库单列表',
  1179. icon: 'gold',
  1180. hidden: true,
  1181. permission: 'M_bulkWarehousingOrder_list'
  1182. }
  1183. },
  1184. {
  1185. path: 'add/:id/:sn',
  1186. name: 'bulkWarehousingOrderAdd',
  1187. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1188. meta: {
  1189. title: '新增散件入库单',
  1190. icon: 'gold',
  1191. hidden: true
  1192. }
  1193. },
  1194. {
  1195. path: 'edit/:id/:sn',
  1196. name: 'bulkWarehousingOrderEdit',
  1197. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1198. meta: {
  1199. title: '编辑散件入库单',
  1200. icon: 'gold',
  1201. hidden: true
  1202. }
  1203. },
  1204. {
  1205. path: 'detail/:id/:sn',
  1206. name: 'bulkWarehousingOrderDetail',
  1207. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  1208. meta: {
  1209. title: '散件入库单详情',
  1210. icon: 'gold',
  1211. hidden: true
  1212. }
  1213. }
  1214. ]
  1215. }
  1216. // {
  1217. // path: '/bulkManagement/bulkReturnGoods',
  1218. // redirect: '/bulkManagement/bulkReturnGoods/list',
  1219. // name: 'bulkReturnGoods',
  1220. // component: RouteView,
  1221. // meta: {
  1222. // title: '散件退货',
  1223. // icon: 'frown'
  1224. // // permission: 'M_goodsManage_list'
  1225. // },
  1226. // hideChildrenInMenu: true,
  1227. // children: [
  1228. // {
  1229. // path: 'list',
  1230. // name: 'bulkReturnGoodsList',
  1231. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/list.vue'),
  1232. // meta: {
  1233. // title: '散件退货列表',
  1234. // icon: 'frown',
  1235. // hidden: true
  1236. // // permission: 'M_goodsManage_list'
  1237. // }
  1238. // },
  1239. // {
  1240. // path: 'add',
  1241. // name: 'bulkReturnGoodsAdd',
  1242. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1243. // meta: {
  1244. // title: '新增散件退货单',
  1245. // icon: 'frown',
  1246. // hidden: true
  1247. // // permission: 'B_goodsManage_edit'
  1248. // }
  1249. // },
  1250. // {
  1251. // path: 'edit/:id',
  1252. // name: 'bulkReturnGoodsEdit',
  1253. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1254. // meta: {
  1255. // title: '编辑散件退货单',
  1256. // icon: 'frown',
  1257. // hidden: true
  1258. // // permission: 'B_goodsManage_edit'
  1259. // }
  1260. // },
  1261. // {
  1262. // path: 'detail/:id',
  1263. // name: 'bulkReturnGoodsDetail',
  1264. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/detail.vue'),
  1265. // meta: {
  1266. // title: '散件退货单详情',
  1267. // icon: 'frown',
  1268. // hidden: true
  1269. // // permission: 'B_goodsManage_edit'
  1270. // }
  1271. // }
  1272. // ]
  1273. // }
  1274. ]
  1275. },
  1276. // 财务管理
  1277. {
  1278. path: '/financialManagement',
  1279. redirect: '/financialManagement/warehousingAudit',
  1280. component: PageView,
  1281. meta: {
  1282. title: '财务管理',
  1283. icon: 'property-safety'
  1284. // permission: 'M_financial'
  1285. },
  1286. children: [
  1287. {
  1288. path: '/financialManagement/warehousingAudit',
  1289. redirect: '/financialManagement/warehousingAudit/list',
  1290. name: 'warehousingAudit',
  1291. component: RouteView,
  1292. meta: {
  1293. title: '入库审核',
  1294. icon: 'pull-request'
  1295. // permission: 'M_goodsManage_list'
  1296. },
  1297. hideChildrenInMenu: true,
  1298. children: [
  1299. {
  1300. path: 'list',
  1301. name: 'warehousingAuditList',
  1302. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  1303. meta: {
  1304. title: '入库审核列表',
  1305. icon: 'pull-request',
  1306. hidden: true
  1307. // permission: 'M_goodsManage_list'
  1308. }
  1309. },
  1310. {
  1311. path: 'detail/:sn',
  1312. name: 'warehousingAuditDetail',
  1313. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  1314. meta: {
  1315. title: '入库审核详情',
  1316. icon: 'pull-request',
  1317. hidden: true
  1318. // permission: 'B_goodsManage_edit'
  1319. }
  1320. }
  1321. ]
  1322. },
  1323. // {
  1324. // path: '/financialManagement/inventoryReview',
  1325. // redirect: '/financialManagement/inventoryReview/list',
  1326. // name: 'inventoryReview',
  1327. // component: RouteView,
  1328. // meta: {
  1329. // title: '盘点审核',
  1330. // icon: 'laptop'
  1331. // // permission: 'M_goodsManage_list'
  1332. // },
  1333. // hideChildrenInMenu: true,
  1334. // children: [
  1335. // {
  1336. // path: 'list',
  1337. // name: 'inventoryReviewList',
  1338. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1339. // meta: {
  1340. // title: '盘点审核列表',
  1341. // icon: 'laptop',
  1342. // hidden: true
  1343. // // permission: 'M_goodsManage_list'
  1344. // }
  1345. // },
  1346. // {
  1347. // path: 'detail/:id',
  1348. // name: 'inventoryReviewDetail',
  1349. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1350. // meta: {
  1351. // title: '盘点审核详情',
  1352. // icon: 'laptop',
  1353. // hidden: true
  1354. // // permission: 'B_goodsManage_edit'
  1355. // }
  1356. // }
  1357. // ]
  1358. // },
  1359. {
  1360. path: '/financialManagement/financialPayment',
  1361. redirect: '/financialManagement/financialPayment/list',
  1362. name: 'financialPayment',
  1363. component: RouteView,
  1364. meta: {
  1365. title: '财务付款',
  1366. icon: 'pay-circle',
  1367. permission: 'M_financialPaymentList'
  1368. },
  1369. hideChildrenInMenu: true,
  1370. children: [
  1371. {
  1372. path: 'list',
  1373. name: 'financialPaymentList',
  1374. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  1375. meta: {
  1376. title: '财务付款列表',
  1377. icon: 'pay-circle',
  1378. hidden: true,
  1379. permission: 'M_financialPaymentList'
  1380. }
  1381. }
  1382. ]
  1383. },
  1384. {
  1385. path: '/financialManagement/financialCollection',
  1386. redirect: '/financialManagement/financialCollection/list',
  1387. name: 'financialCollection',
  1388. component: RouteView,
  1389. meta: {
  1390. title: '财务收款',
  1391. icon: 'money-collect',
  1392. permission: 'M_financialCollectionList'
  1393. },
  1394. hideChildrenInMenu: true,
  1395. children: [
  1396. {
  1397. path: 'list',
  1398. name: 'financialCollectionList',
  1399. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  1400. meta: {
  1401. title: '财务收款列表',
  1402. icon: 'money-collect',
  1403. hidden: true,
  1404. permission: 'M_financialCollectionList'
  1405. }
  1406. }
  1407. ]
  1408. },
  1409. {
  1410. path: '/financialManagement/expenseManagement',
  1411. redirect: '/financialManagement/expenseManagement/list',
  1412. name: 'expenseManagement',
  1413. component: RouteView,
  1414. meta: {
  1415. title: '费用管理',
  1416. icon: 'pound'
  1417. // permission: 'M_expenseManagementList'
  1418. },
  1419. hideChildrenInMenu: true,
  1420. children: [
  1421. {
  1422. path: 'list',
  1423. name: 'expenseManagementList',
  1424. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  1425. meta: {
  1426. title: '费用单列表',
  1427. icon: 'pound',
  1428. hidden: true
  1429. // permission: 'M_expenseManagementList'
  1430. }
  1431. },
  1432. {
  1433. path: 'add',
  1434. name: 'expenseManagementAdd',
  1435. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1436. meta: {
  1437. title: '新增费用单',
  1438. icon: 'pound',
  1439. hidden: true
  1440. }
  1441. },
  1442. {
  1443. path: 'edit/:id',
  1444. name: 'expenseManagementEdit',
  1445. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1446. meta: {
  1447. title: '编辑费用单',
  1448. icon: 'pound',
  1449. hidden: true
  1450. }
  1451. }
  1452. ]
  1453. },
  1454. {
  1455. path: '/financialManagement/companyReceivablePayable',
  1456. redirect: '/financialManagement/companyReceivablePayable/list',
  1457. name: 'companyReceivablePayable',
  1458. component: RouteView,
  1459. meta: {
  1460. title: '单位应收应付管理',
  1461. icon: 'transaction'
  1462. // permission: 'M_goodsManage_list'
  1463. },
  1464. hideChildrenInMenu: true,
  1465. children: [
  1466. {
  1467. path: 'list',
  1468. name: 'companyReceivablePayableList',
  1469. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  1470. meta: {
  1471. title: '单位应收应付列表',
  1472. icon: 'transaction',
  1473. hidden: true
  1474. // permission: 'M_goodsManage_list'
  1475. }
  1476. },
  1477. {
  1478. path: 'collectionPayment/:sn/:name',
  1479. name: 'companyReceivablePayableCollectionPayment',
  1480. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/collectionPayment.vue'),
  1481. meta: {
  1482. title: '单位应收应付',
  1483. icon: 'transaction',
  1484. hidden: true
  1485. // permission: 'B_goodsManage_edit'
  1486. }
  1487. },
  1488. {
  1489. path: 'detail/:sn/:name',
  1490. name: 'companyReceivablePayableDetail',
  1491. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  1492. meta: {
  1493. title: '单位应收应付详情',
  1494. icon: 'transaction',
  1495. hidden: true
  1496. // permission: 'B_goodsManage_edit'
  1497. }
  1498. }
  1499. ]
  1500. },
  1501. {
  1502. path: '/financialManagement/companyCollectionPayment',
  1503. redirect: '/financialManagement/companyCollectionPayment/list',
  1504. name: 'companyCollectionPayment',
  1505. component: RouteView,
  1506. meta: {
  1507. title: '单位收付款记录',
  1508. icon: 'file-protect'
  1509. // permission: 'M_goodsManage_list'
  1510. },
  1511. hideChildrenInMenu: true,
  1512. children: [
  1513. {
  1514. path: 'list',
  1515. name: 'companyCollectionPaymentList',
  1516. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  1517. meta: {
  1518. title: '单位收付款记录列表',
  1519. icon: 'file-protect',
  1520. hidden: true
  1521. // permission: 'M_goodsManage_list'
  1522. }
  1523. },
  1524. {
  1525. path: 'detail/:id/:sn',
  1526. name: 'companyCollectionPaymentDetail',
  1527. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  1528. meta: {
  1529. title: '单位收付款记录详情',
  1530. icon: 'file-protect',
  1531. hidden: true
  1532. // permission: 'B_goodsManage_edit'
  1533. }
  1534. }
  1535. ]
  1536. }
  1537. // {
  1538. // path: '/financialManagement/withdrawalManagement',
  1539. // redirect: '/financialManagement/withdrawalManagement/list',
  1540. // name: 'withdrawalManagement',
  1541. // component: RouteView,
  1542. // meta: {
  1543. // title: '提现管理',
  1544. // icon: 'dollar'
  1545. // // permission: 'M_goodsManage_list'
  1546. // },
  1547. // hideChildrenInMenu: true,
  1548. // children: [
  1549. // {
  1550. // path: 'list',
  1551. // name: 'withdrawalManagementList',
  1552. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  1553. // meta: {
  1554. // title: '提现管理列表',
  1555. // icon: 'dollar',
  1556. // hidden: true
  1557. // // permission: 'M_goodsManage_list'
  1558. // }
  1559. // }
  1560. // ]
  1561. // },
  1562. // {
  1563. // path: '/financialManagement/ledgerRecord',
  1564. // redirect: '/financialManagement/ledgerRecord/list',
  1565. // name: 'ledgerRecord',
  1566. // component: RouteView,
  1567. // meta: {
  1568. // title: '分账记录',
  1569. // icon: 'profile'
  1570. // // permission: 'M_goodsManage_list'
  1571. // },
  1572. // hideChildrenInMenu: true,
  1573. // children: [
  1574. // {
  1575. // path: 'list',
  1576. // name: 'ledgerRecordList',
  1577. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  1578. // meta: {
  1579. // title: '分账记录列表',
  1580. // icon: 'profile',
  1581. // hidden: true
  1582. // // permission: 'M_goodsManage_list'
  1583. // }
  1584. // }
  1585. // ]
  1586. // }
  1587. ]
  1588. },
  1589. // 基础设置
  1590. {
  1591. path: '/basicData',
  1592. redirect: '/basicData/storeTransferOutTypeManagement',
  1593. component: PageView,
  1594. meta: {
  1595. title: '基础设置',
  1596. icon: 'pushpin',
  1597. permission: 'M_basicData'
  1598. },
  1599. children: [
  1600. {
  1601. path: '/basicData/storeTransferOutTypeManagement',
  1602. redirect: '/basicData/storeTransferOutTypeManagement/list',
  1603. name: 'storeTransferOutTypeManagement',
  1604. component: RouteView,
  1605. meta: {
  1606. title: '店内调出类型管理',
  1607. icon: 'interaction',
  1608. permission: 'M_basicData_storeTransferOutType_list'
  1609. },
  1610. hideChildrenInMenu: true,
  1611. children: [
  1612. {
  1613. path: 'list',
  1614. name: 'storeTransferOutTypeManagementList',
  1615. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/storeTransferOutTypeManagement/list.vue'),
  1616. meta: {
  1617. title: '店内调出类型管理列表',
  1618. icon: 'interaction',
  1619. hidden: true,
  1620. permission: 'M_basicData_storeTransferOutType_list'
  1621. }
  1622. }
  1623. ]
  1624. },
  1625. {
  1626. path: '/basicData/bulkPartsTypeManagement',
  1627. redirect: '/basicData/bulkPartsTypeManagement/list',
  1628. name: 'bulkPartsTypeManagement',
  1629. component: RouteView,
  1630. meta: {
  1631. title: '散件入库类型管理',
  1632. icon: 'gold',
  1633. permission: 'M_basicData_bulkPartsType_list'
  1634. },
  1635. hideChildrenInMenu: true,
  1636. children: [
  1637. {
  1638. path: 'list',
  1639. name: 'bulkPartsTypeManagementList',
  1640. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/bulkPartsTypeManagement/list.vue'),
  1641. meta: {
  1642. title: '散件入库类型列表',
  1643. icon: 'gold',
  1644. hidden: true,
  1645. permission: 'M_basicData_bulkPartsType_list'
  1646. }
  1647. }
  1648. ]
  1649. },
  1650. {
  1651. path: '/basicData/expenseType',
  1652. redirect: '/basicData/expenseType/list',
  1653. name: 'expenseType',
  1654. component: RouteView,
  1655. meta: {
  1656. title: '费用类型管理',
  1657. icon: 'pay-circle',
  1658. permission: 'M_basicData_expenseType_list'
  1659. },
  1660. hideChildrenInMenu: true,
  1661. children: [
  1662. {
  1663. path: 'list',
  1664. name: 'expenseTypeList',
  1665. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/expenseType/list.vue'),
  1666. meta: {
  1667. title: '费用类型列表',
  1668. icon: 'pay-circle',
  1669. hidden: true,
  1670. permission: 'M_basicData_expenseType_list'
  1671. }
  1672. }
  1673. ]
  1674. },
  1675. // {
  1676. // path: '/basicData/processSettings',
  1677. // redirect: '/basicData/processSettings/setup',
  1678. // name: 'processSettings',
  1679. // component: RouteView,
  1680. // meta: {
  1681. // title: '业务自动化设置',
  1682. // icon: 'sliders'
  1683. // // permission: 'M_goodsManage_list'
  1684. // },
  1685. // hideChildrenInMenu: true,
  1686. // children: [
  1687. // {
  1688. // path: 'setup',
  1689. // name: 'processSettingsSetup',
  1690. // component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/processSettings/setup.vue'),
  1691. // meta: {
  1692. // title: '业务自动化设置',
  1693. // icon: 'sliders',
  1694. // hidden: true
  1695. // // permission: 'M_goodsManage_list'
  1696. // }
  1697. // }
  1698. // ]
  1699. // },
  1700. {
  1701. path: '/basicData/customerTypeManagement',
  1702. redirect: '/basicData/customerTypeManagement/list',
  1703. name: 'customerTypeManagement',
  1704. component: RouteView,
  1705. meta: {
  1706. title: '客户类型管理',
  1707. icon: 'idcard',
  1708. permission: 'M_basicData_customerType_list'
  1709. },
  1710. hideChildrenInMenu: true,
  1711. children: [
  1712. {
  1713. path: 'list',
  1714. name: 'customerTypeManagementList',
  1715. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/customerTypeManagement/list.vue'),
  1716. meta: {
  1717. title: '客户类型列表',
  1718. icon: 'idcard',
  1719. hidden: true,
  1720. permission: 'M_basicData_customerType_list'
  1721. }
  1722. }
  1723. ]
  1724. }
  1725. ]
  1726. },
  1727. // auth
  1728. {
  1729. path: '/auth',
  1730. redirect: '/auth/userList',
  1731. component: PageView,
  1732. meta: {
  1733. title: '权限管理',
  1734. icon: 'lock',
  1735. permission: 'M_powerMD_0'
  1736. },
  1737. children: [
  1738. {
  1739. path: '/auth/userList',
  1740. name: 'powerUserList',
  1741. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1742. meta: {
  1743. title: '用户管理',
  1744. icon: 'user',
  1745. permission: 'M_powerMD_user_list'
  1746. }
  1747. },
  1748. {
  1749. path: '/auth/roleList',
  1750. name: 'powerRoleList',
  1751. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1752. meta: {
  1753. title: '角色管理',
  1754. icon: 'solution',
  1755. permission: 'M_powerMD_role_list'
  1756. }
  1757. }
  1758. ]
  1759. },
  1760. // 系统设置
  1761. // {
  1762. // path: '/setting',
  1763. // redirect: '/setting/userList',
  1764. // component: PageView,
  1765. // meta: {
  1766. // title: '系统设置',
  1767. // icon: 'setting'
  1768. // // permission: 'M_setting_0'
  1769. // },
  1770. // children: [
  1771. // {
  1772. // path: '/setting/dataDictionary',
  1773. // name: 'powerDD',
  1774. // component: () => import(/* webpackChunkName: "setting" */
  1775. // '@/views/power/dataDictionary/dataDictionary.vue'),
  1776. // meta: {
  1777. // title: '数据字典管理',
  1778. // icon: 'database'
  1779. // // permission: 'M_sys_dataDictionary'
  1780. // }
  1781. // },
  1782. // // {
  1783. // // path: '/setting/register',
  1784. // // name: 'powerRegister',
  1785. // // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1786. // // meta: {
  1787. // // title: '参数管理',
  1788. // // icon: 'key',
  1789. // // permission: 'M_sys_register'
  1790. // // }
  1791. // // },
  1792. // {
  1793. // path: '/setting/OperateJournal',
  1794. // name: 'powerOperateJournal',
  1795. // component: () => import(/* webpackChunkName: "setting" */
  1796. // '@/views/power/OperateJournal/OperateJournal.vue'),
  1797. // meta: {
  1798. // title: '操作日志',
  1799. // icon: 'read'
  1800. // // permission: 'M_operateJournal'
  1801. // }
  1802. // }
  1803. // ]
  1804. // }
  1805. // 公告
  1806. {
  1807. path: '/notice',
  1808. name: 'notice',
  1809. component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
  1810. meta: {
  1811. title: '公告',
  1812. icon: 'bell'
  1813. },
  1814. hidden: true
  1815. }
  1816. ]
  1817. },
  1818. {
  1819. path: '*',
  1820. redirect: '/404',
  1821. hidden: true
  1822. }
  1823. ]
  1824. /**
  1825. * 基础路由
  1826. * @type { *[] }
  1827. */
  1828. export const constantRouterMap = [
  1829. {
  1830. path: '/user',
  1831. component: UserLayout,
  1832. redirect: '/user/login',
  1833. hidden: true,
  1834. children: [
  1835. {
  1836. path: 'login',
  1837. name: 'login',
  1838. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1839. },
  1840. {
  1841. path: 'register',
  1842. name: 'register',
  1843. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1844. },
  1845. {
  1846. path: 'register-result',
  1847. name: 'registerResult',
  1848. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1849. },
  1850. {
  1851. path: 'recover',
  1852. name: 'recover',
  1853. component: undefined
  1854. }
  1855. ]
  1856. },
  1857. {
  1858. path: '/404',
  1859. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1860. }
  1861. ]