router.config.js 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126
  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. redirect: '/home',
  32. component: BlankLayout,
  33. meta: {
  34. title: '首页',
  35. icon: 'home',
  36. hidden: true
  37. },
  38. hideChildrenInMenu: true,
  39. children: [
  40. {
  41. path: '/home',
  42. name: 'home',
  43. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  44. meta: {
  45. title: '首页',
  46. icon: 'home',
  47. hidden: true
  48. }
  49. },
  50. {
  51. path: '/changePwd',
  52. name: 'changePwd',
  53. component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
  54. meta: {
  55. title: '修改密码',
  56. icon: 'home'
  57. },
  58. hidden: true
  59. },
  60. // 公告
  61. {
  62. path: '/notice',
  63. name: 'notice',
  64. component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
  65. meta: {
  66. title: '公告',
  67. icon: 'bell',
  68. hidden: true
  69. }
  70. }
  71. ]
  72. }
  73. ]
  74. },
  75. // 销售管理
  76. {
  77. path: '/salesManagement',
  78. redirect: '/salesManagement/salesQuery',
  79. component: PageView,
  80. meta: {
  81. title: '销售管理',
  82. icon: 'account-book',
  83. permission: 'M_salesManage'
  84. },
  85. children: [
  86. {
  87. path: '/salesManagement/salesQuery',
  88. redirect: '/salesManagement/salesQuery/list',
  89. name: 'salesQuery',
  90. component: BlankLayout,
  91. meta: {
  92. title: '销售单',
  93. icon: 'monitor',
  94. permission: 'M_salesQueryList'
  95. },
  96. hideChildrenInMenu: true,
  97. children: [
  98. {
  99. path: 'list',
  100. name: 'salesQueryList',
  101. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  102. meta: {
  103. title: '销售单列表',
  104. icon: 'monitor',
  105. hidden: true,
  106. permission: 'M_salesQueryList'
  107. }
  108. },
  109. {
  110. path: 'detail/:sn',
  111. name: 'salesDetail',
  112. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  113. meta: {
  114. title: '销售单详情',
  115. icon: 'monitor',
  116. hidden: true,
  117. permission: 'B_salesDetail'
  118. }
  119. },
  120. {
  121. path: 'add/:id/:sn/:priceType',
  122. name: 'salesAdd',
  123. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  124. meta: {
  125. title: '新增销售单',
  126. icon: 'monitor',
  127. hidden: true,
  128. permission: 'B_salesNews'
  129. }
  130. },
  131. {
  132. path: 'edit/:id/:sn/:priceType',
  133. name: 'salesEdit',
  134. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  135. meta: {
  136. title: '编辑销售单',
  137. icon: 'monitor',
  138. hidden: true,
  139. permission: 'B_salesEdit'
  140. }
  141. }
  142. ]
  143. },
  144. {
  145. path: '/salesManagement/urgentItemsOffset',
  146. redirect: '/salesManagement/urgentItemsOffset/list',
  147. name: 'urgentItemsOffset',
  148. component: BlankLayout,
  149. meta: {
  150. title: '急件冲减',
  151. icon: 'rocket',
  152. permission: 'M_urgentItemsOffsetList'
  153. },
  154. hideChildrenInMenu: true,
  155. children: [
  156. {
  157. path: 'list',
  158. name: 'urgentItemsOffsetList',
  159. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/list.vue'),
  160. meta: {
  161. title: '急件冲减列表',
  162. icon: 'rocket',
  163. hidden: true,
  164. permission: 'M_urgentItemsOffsetList'
  165. }
  166. },
  167. {
  168. path: 'detail/:sn',
  169. name: 'urgentItemsOffsetDetail',
  170. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/detail.vue'),
  171. meta: {
  172. title: '急件冲减详情',
  173. icon: 'rocket',
  174. hidden: true,
  175. replaceTab: true,
  176. permission: 'M_urgentDetail'
  177. }
  178. }
  179. ]
  180. },
  181. {
  182. path: '/salesManagement/salesReturn',
  183. redirect: '/salesManagement/salesReturn/list',
  184. name: 'salesReturn',
  185. component: BlankLayout,
  186. meta: {
  187. title: '销售退货',
  188. icon: 'fund',
  189. permission: 'M_salesReturnList'
  190. },
  191. hideChildrenInMenu: true,
  192. children: [
  193. {
  194. path: 'list',
  195. name: 'salesReturnList',
  196. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  197. meta: {
  198. title: '退货单列表',
  199. icon: 'fund',
  200. hidden: true,
  201. permission: 'M_salesReturnList'
  202. }
  203. },
  204. {
  205. path: 'detail/:id/:sn',
  206. name: 'salesReturnDetail',
  207. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  208. meta: {
  209. title: '退货单详情',
  210. icon: 'fund',
  211. hidden: true,
  212. permission: 'B_salesReturnDetail'
  213. }
  214. },
  215. {
  216. path: 'salesReturnGrabEdit/:id/:sn/:buyerSn',
  217. name: 'salesReturnGrabEdit',
  218. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  219. meta: {
  220. title: '编辑退货单(抓单)',
  221. icon: 'fund',
  222. hidden: true,
  223. permission: 'B_salesReturnEdit'
  224. }
  225. },
  226. {
  227. path: 'salesReturnEdit/:id/:sn/:buyerSn',
  228. name: 'salesReturnEdit',
  229. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  230. meta: {
  231. title: '编辑退货单(不抓单)',
  232. icon: 'fund',
  233. hidden: true,
  234. permission: 'B_salesReturnEdit'
  235. }
  236. }
  237. ]
  238. },
  239. {
  240. path: '/salesManagement/productPricing',
  241. redirect: '/salesManagement/productPricing/list',
  242. name: 'productPricing',
  243. component: BlankLayout,
  244. meta: {
  245. title: '产品报价',
  246. icon: 'file-search',
  247. permission: 'M_productPricingList'
  248. },
  249. hideChildrenInMenu: true,
  250. children: [
  251. {
  252. path: 'list',
  253. name: 'productPricingList',
  254. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/productPricing/list.vue'),
  255. meta: {
  256. title: '产品报价列表',
  257. icon: 'file-search',
  258. hidden: true,
  259. permission: 'M_productPricingList'
  260. }
  261. }
  262. ]
  263. },
  264. {
  265. path: '/salesManagement/giftRecord',
  266. redirect: '/salesManagement/giftRecord/list',
  267. name: 'giftRecord',
  268. component: BlankLayout,
  269. meta: {
  270. title: '赠品记录',
  271. icon: 'file-search',
  272. permission: 'M_giftRecordList'
  273. },
  274. hideChildrenInMenu: true,
  275. children: [
  276. {
  277. path: 'list',
  278. name: 'giftRecordList',
  279. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/giftRecord/list.vue'),
  280. meta: {
  281. title: '赠品记录列表',
  282. icon: 'file-search',
  283. hidden: true,
  284. permission: 'M_giftRecordList'
  285. }
  286. }
  287. ]
  288. },
  289. {
  290. path: '/salesManagement/salesman',
  291. redirect: '/salesManagement/salesman/list',
  292. name: 'salesman',
  293. component: BlankLayout,
  294. meta: {
  295. title: '业务员管理',
  296. icon: 'file-search',
  297. permission: 'M_salesman_list'
  298. },
  299. hideChildrenInMenu: true,
  300. children: [
  301. {
  302. path: 'list',
  303. name: 'salesmanList',
  304. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesman/list.vue'),
  305. meta: {
  306. title: '业务员列表',
  307. icon: 'file-search',
  308. hidden: true,
  309. permission: 'M_salesman_list'
  310. }
  311. }
  312. ]
  313. }
  314. ]
  315. },
  316. // 数字货架
  317. {
  318. path: '/numsGoodsShelves',
  319. redirect: '/numsGoodsShelves/shelfSet',
  320. component: PageView,
  321. meta: {
  322. title: '数字货架',
  323. icon: 'hdd',
  324. permission: 'M_numsGoodsShelves'
  325. },
  326. children: [
  327. {
  328. path: '/numsGoodsShelves/approveStore',
  329. redirect: '/numsGoodsShelves/approveStore/list',
  330. name: 'approveStore',
  331. component: BlankLayout,
  332. meta: {
  333. title: '汽修厂认证审核',
  334. icon: 'monitor',
  335. permission: 'M_approveStore'
  336. },
  337. hideChildrenInMenu: true,
  338. children: [
  339. {
  340. path: 'list',
  341. name: 'approveStoreList',
  342. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/approveStore/list.vue'),
  343. meta: {
  344. title: '汽修厂认证审核',
  345. icon: 'monitor',
  346. hidden: true,
  347. permission: 'M_approveStore'
  348. }
  349. },
  350. {
  351. path: 'authPass/:sn',
  352. name: 'approveStoreAuthPass',
  353. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/approveStore/authPass.vue'),
  354. meta: {
  355. title: '审核通过',
  356. icon: 'monitor',
  357. hidden: true,
  358. replaceTab: true
  359. }
  360. },
  361. ]
  362. },
  363. {
  364. path: '/numsGoodsShelves/shelfSet',
  365. redirect: '/numsGoodsShelves/shelfSet/list',
  366. name: 'shelfSet',
  367. component: BlankLayout,
  368. meta: {
  369. title: '货架设置',
  370. icon: 'monitor',
  371. permission: 'M_shelfSet'
  372. },
  373. hideChildrenInMenu: true,
  374. children: [
  375. {
  376. path: 'list',
  377. name: 'shelfSetList',
  378. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfSet/list.vue'),
  379. meta: {
  380. title: '货架设置列表',
  381. icon: 'monitor',
  382. hidden: true
  383. // permission: 'M_salesQueryList'
  384. }
  385. },
  386. {
  387. path: 'set/:sn',
  388. name: 'shelfSetting',
  389. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfSet/set.vue'),
  390. meta: {
  391. title: '货架设置',
  392. icon: 'monitor',
  393. hidden: true,
  394. replaceTab: true
  395. }
  396. }
  397. ]
  398. },
  399. {
  400. path: '/numsGoodsShelves/shelfMonitoring',
  401. redirect: '/numsGoodsShelves/shelfMonitoring/list',
  402. name: 'shelfMonitoring',
  403. component: BlankLayout,
  404. meta: {
  405. title: '货架监控',
  406. icon: 'monitor',
  407. permission: 'M_shelfMonitoring'
  408. },
  409. hideChildrenInMenu: true,
  410. children: [
  411. {
  412. path: 'list',
  413. name: 'shelfMonitoringList',
  414. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfMonitoring/list.vue'),
  415. meta: {
  416. title: '货架监控列表',
  417. icon: 'monitor',
  418. hidden: true
  419. // permission: 'M_salesQueryList'
  420. }
  421. },
  422. {
  423. path: 'warehouseDetail/:shelfPlaceSn/:productSn',
  424. name: 'shelfMonitoringWarehouseDetail',
  425. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfMonitoring/warehouseDetail.vue'),
  426. meta: {
  427. title: '货架监控出入库明细',
  428. icon: 'monitor',
  429. hidden: true,
  430. replaceTab: true
  431. // permission: 'M_salesQueryList'
  432. }
  433. }
  434. ]
  435. },
  436. {
  437. path: '/numsGoodsShelves/replenishmentManagement',
  438. redirect: '/numsGoodsShelves/replenishmentManagement/list',
  439. name: 'replenishmentManagement',
  440. component: BlankLayout,
  441. meta: {
  442. title: '补货管理',
  443. icon: 'monitor',
  444. permission: 'M_replenishmentManagement'
  445. },
  446. hideChildrenInMenu: true,
  447. children: [
  448. {
  449. path: 'list',
  450. name: 'replenishmentManagementList',
  451. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/replenishmentManagement/list.vue'),
  452. meta: {
  453. title: '补货管理列表',
  454. icon: 'monitor',
  455. hidden: true
  456. // permission: 'M_salesQueryList'
  457. }
  458. }
  459. ]
  460. },
  461. {
  462. path: '/numsGoodsShelves/recallManagement',
  463. redirect: '/numsGoodsShelves/recallManagement/list',
  464. name: 'recallManagement',
  465. component: BlankLayout,
  466. meta: {
  467. title: '调回管理',
  468. icon: 'monitor',
  469. permission: 'M_recallManagement'
  470. },
  471. hideChildrenInMenu: true,
  472. children: [
  473. {
  474. path: 'list',
  475. name: 'recallManagementList',
  476. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/recallManagement/list.vue'),
  477. meta: {
  478. title: '调回管理列表',
  479. icon: 'monitor',
  480. hidden: true
  481. // permission: 'M_salesQueryList'
  482. }
  483. }
  484. ]
  485. },
  486. {
  487. path: '/numsGoodsShelves/settlementManagement',
  488. redirect: '/numsGoodsShelves/settlementManagement/list',
  489. name: 'settlementManagement',
  490. component: BlankLayout,
  491. meta: {
  492. title: '结算管理',
  493. icon: 'monitor',
  494. permission: 'M_settlementManagement'
  495. },
  496. hideChildrenInMenu: true,
  497. children: [
  498. {
  499. path: 'list',
  500. name: 'settlementManagementList',
  501. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/settlementManagement/list.vue'),
  502. meta: {
  503. title: '结算管理列表',
  504. icon: 'monitor',
  505. hidden: true
  506. // permission: 'M_salesQueryList'
  507. }
  508. },
  509. {
  510. path: 'unDetail/:shelfSn/:settleType/:shelfName',
  511. name: 'unSettlementDetail',
  512. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/numsGoodsShelves/settlementManagement/unSettlementDetail.vue'),
  513. meta: {
  514. title: '待结算明细',
  515. icon: 'monitor',
  516. hidden: true,
  517. replaceTab: true
  518. // permission: 'M_salesQueryList'
  519. }
  520. },
  521. {
  522. path: 'detail/:shelfSn/:shelfName',
  523. name: 'settlementDetail',
  524. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/numsGoodsShelves/settlementManagement/settlementDetail.vue'),
  525. meta: {
  526. title: '结算历史',
  527. icon: 'monitor',
  528. hidden: true,
  529. replaceTab: true
  530. // permission: 'M_salesQueryList'
  531. }
  532. }
  533. ]
  534. },
  535. {
  536. path: '/numsGoodsShelves/withdrawalManagement',
  537. redirect: '/numsGoodsShelves/withdrawalManagement/list',
  538. name: 'ngsWithdrawalManagement',
  539. component: BlankLayout,
  540. meta: {
  541. title: '提现管理',
  542. icon: 'monitor',
  543. permission: 'M_NGS_withdrawalManagement'
  544. },
  545. hideChildrenInMenu: true,
  546. children: [
  547. {
  548. path: 'list',
  549. name: 'ngsWithdrawalManagementList',
  550. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/withdrawalManagement/list.vue'),
  551. meta: {
  552. title: '提现管理列表',
  553. icon: 'monitor',
  554. hidden: true
  555. // permission: 'M_ngsWithdrawalManagementList'
  556. }
  557. }
  558. ]
  559. },
  560. {
  561. path: '/numsGoodsShelves/recallStockManagement',
  562. redirect: '/numsGoodsShelves/recallStockManagement/list',
  563. name: 'recallStockManagement',
  564. component: BlankLayout,
  565. meta: {
  566. title: '调回入库',
  567. icon: 'monitor',
  568. permission: 'M_recallStockManagement'
  569. },
  570. hideChildrenInMenu: true,
  571. children: [
  572. {
  573. path: 'list',
  574. name: 'recallStockManagementList',
  575. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/recallStockManagement/list.vue'),
  576. meta: {
  577. title: '调回入库列表',
  578. icon: 'monitor',
  579. hidden: true
  580. // permission: 'M_salesQueryList'
  581. }
  582. },
  583. {
  584. path: 'editStock/:stockPutSn',
  585. name: 'editStock',
  586. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/numsGoodsShelves/recallStockManagement/editStock.vue'),
  587. meta: {
  588. title: '编辑入库',
  589. icon: 'monitor',
  590. hidden: true,
  591. replaceTab: true
  592. // permission: 'M_salesQueryList'
  593. }
  594. }
  595. ]
  596. },
  597. // {
  598. // path: '/numsGoodsShelves/accountManagement',
  599. // redirect: '/numsGoodsShelves/accountManagement/list',
  600. // name: 'accountManagement',
  601. // component: BlankLayout,
  602. // meta: {
  603. // title: '账户明细',
  604. // icon: 'monitor'
  605. // // permission: 'M_salesQueryList'
  606. // },
  607. // hideChildrenInMenu: true,
  608. // children: [
  609. // {
  610. // path: 'list',
  611. // name: 'accountManagementList',
  612. // component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/accountManagement/list.vue'),
  613. // meta: {
  614. // title: '账户明细列表',
  615. // icon: 'monitor',
  616. // hidden: true
  617. // // permission: 'M_salesQueryList'
  618. // }
  619. // }
  620. // ]
  621. // }
  622. ]
  623. },
  624. // 采购管理
  625. {
  626. path: '/purchasingManagement',
  627. redirect: '/purchasingManagement/purchaseOrder',
  628. component: PageView,
  629. meta: {
  630. title: '采购管理',
  631. icon: 'file-done',
  632. permission: 'M_purchasingManagement'
  633. },
  634. children: [
  635. {
  636. path: '/purchasingManagement/purchaseOrder',
  637. redirect: '/purchasingManagement/purchaseOrder/list',
  638. name: 'purchaseOrder',
  639. component: BlankLayout,
  640. meta: {
  641. title: '采购单管理',
  642. icon: 'file-done',
  643. permission: 'M_purchasingList'
  644. },
  645. hideChildrenInMenu: true,
  646. children: [
  647. {
  648. path: 'list',
  649. name: 'purchaseOrderList',
  650. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/list.vue'),
  651. meta: {
  652. title: '采购单列表',
  653. icon: 'file-done',
  654. hidden: true,
  655. permission: 'M_purchasingList'
  656. }
  657. },
  658. {
  659. path: 'add/:sn/:dealerSn',
  660. name: 'purchaseOrderAdd',
  661. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  662. meta: {
  663. title: '新增采购单',
  664. icon: 'file-done',
  665. hidden: true,
  666. permission: 'B_purchaseNew'
  667. }
  668. },
  669. {
  670. path: 'edit/:sn/:dealerSn',
  671. name: 'purchaseOrderEdit',
  672. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  673. meta: {
  674. title: '编辑采购单',
  675. icon: 'file-done',
  676. hidden: true,
  677. permission: 'B_purchaseEdit'
  678. }
  679. },
  680. {
  681. path: 'detail/:sn',
  682. name: 'purchaseOrderDetail',
  683. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/detail.vue'),
  684. meta: {
  685. title: '采购单详情',
  686. icon: 'file-done',
  687. hidden: true,
  688. replaceTab: true,
  689. permission: 'B_purchaseDetail'
  690. }
  691. },
  692. {
  693. path: 'warehousing/:sn',
  694. name: 'purchaseOrderWarehousing',
  695. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/warehousing.vue'),
  696. meta: {
  697. title: '采购入库',
  698. icon: 'file-done',
  699. hidden: true,
  700. replaceTab: true,
  701. permission: 'B_purchaseReceiving'
  702. }
  703. }
  704. ]
  705. },
  706. {
  707. path: '/purchasingManagement/signWarehousing',
  708. redirect: '/purchasingManagement/signWarehousing/list',
  709. name: 'signWarehousing',
  710. component: BlankLayout,
  711. meta: {
  712. title: '签收入库',
  713. icon: 'money-collect'
  714. // permission: 'M_signWarehousingList'
  715. },
  716. hideChildrenInMenu: true,
  717. children: [
  718. {
  719. path: 'list',
  720. name: 'signWarehousingList',
  721. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/signWarehousing/list.vue'),
  722. meta: {
  723. title: '签收入库列表',
  724. icon: 'money-collect',
  725. hidden: true
  726. // permission: 'M_signWarehousingList'
  727. }
  728. },
  729. {
  730. path: 'edit/:sn',
  731. name: 'signWarehousingEdit',
  732. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/signWarehousing/edit.vue'),
  733. meta: {
  734. title: '签收入库',
  735. icon: 'money-collect',
  736. replaceTab: true,
  737. hidden: true
  738. // permission: 'B_signWarehousingDetail'
  739. }
  740. },
  741. {
  742. path: 'stockOrderDetail/:sn',
  743. name: 'signWarehousingStockOrderDetail',
  744. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/signWarehousing/stockOrderDetail.vue'),
  745. meta: {
  746. title: '备货单详情',
  747. icon: 'money-collect',
  748. replaceTab: true,
  749. hidden: true
  750. // permission: 'B_signWarehousingStockOrderDetail'
  751. }
  752. }
  753. ]
  754. },
  755. {
  756. path: '/purchasingManagement/purchaseReturn',
  757. redirect: '/purchasingManagement/purchaseReturn/list',
  758. name: 'purchaseReturn',
  759. component: BlankLayout,
  760. meta: {
  761. title: '采购退货',
  762. icon: 'money-collect',
  763. permission: 'M_purchaseReturnList'
  764. },
  765. hideChildrenInMenu: true,
  766. children: [
  767. {
  768. path: 'list',
  769. name: 'purchaseReturnList',
  770. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/list.vue'),
  771. meta: {
  772. title: '采购退货列表',
  773. icon: 'money-collect',
  774. hidden: true,
  775. permission: 'M_purchaseReturnList'
  776. }
  777. },
  778. {
  779. path: 'add/:id/:sn/:name',
  780. name: 'purchaseReturnAdd',
  781. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  782. meta: {
  783. title: '新增采购退货单',
  784. icon: 'money-collect',
  785. hidden: true,
  786. permission: 'B_purchaseReturnNew'
  787. }
  788. },
  789. {
  790. path: 'edit/:id/:sn/:name',
  791. name: 'purchaseReturnEdit',
  792. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  793. meta: {
  794. title: '编辑采购退货单',
  795. icon: 'money-collect',
  796. hidden: true,
  797. permission: 'B_purchaseReturnEdit'
  798. }
  799. },
  800. {
  801. path: 'detail/:sn',
  802. name: 'purchaseReturnDetail',
  803. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/detail.vue'),
  804. meta: {
  805. title: '采购退货详情',
  806. icon: 'money-collect',
  807. hidden: true,
  808. permission: 'B_purchaseReturnDetail'
  809. }
  810. }
  811. ]
  812. },
  813. // 采购退货-不同步
  814. {
  815. path: '/purchasingManagement/purchaseReturnOutSync',
  816. redirect: '/purchasingManagement/purchaseReturnOutSync/list',
  817. name: 'purchaseReturnOutSync',
  818. component: BlankLayout,
  819. meta: {
  820. title: '采购退货',
  821. icon: 'money-collect',
  822. permission: 'M_purchaseReturn_outSnycList'
  823. },
  824. hideChildrenInMenu: true,
  825. children: [
  826. {
  827. path: 'list',
  828. name: 'purchaseReturnOutSyncList',
  829. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/list.vue'),
  830. meta: {
  831. title: '采购退货列表',
  832. icon: 'money-collect',
  833. hidden: true,
  834. permission: 'M_purchaseReturn_outSnycList'
  835. }
  836. },
  837. {
  838. path: 'edit/:sn',
  839. name: 'purchaseReturnOutSyncEdit',
  840. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/edit.vue'),
  841. meta: {
  842. title: '采购退货单(不抓单)',
  843. icon: 'money-collect',
  844. hidden: true,
  845. replaceTab: true,
  846. permission: 'B_purchaseReturn_outSnycAdd'
  847. }
  848. },
  849. {
  850. path: 'grapEdit/:sn/:returnTargetType',
  851. name: 'purchaseReturnOutSyncGrapEdit',
  852. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/grapEdit.vue'),
  853. meta: {
  854. title: '采购退货单(抓单)',
  855. icon: 'money-collect',
  856. hidden: true,
  857. replaceTab: true,
  858. permission: 'B_purchaseReturn_outSnycEdit'
  859. }
  860. },
  861. {
  862. path: 'detail/:sn/:grabFlag',
  863. name: 'purchaseReturnOutSyncDetail',
  864. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/detail.vue'),
  865. meta: {
  866. title: '采购退货详情',
  867. icon: 'money-collect',
  868. hidden: true,
  869. replaceTab: true,
  870. permission: 'B_purchaseReturn_outSnycDetail'
  871. }
  872. }
  873. ]
  874. }
  875. ]
  876. },
  877. // 出库管理
  878. {
  879. path: '/outboundOrderManagement',
  880. redirect: '/outboundOrderManagement/outboundOrder',
  881. component: PageView,
  882. meta: {
  883. title: '出库管理',
  884. icon: 'export',
  885. permission: 'M_outboundList'
  886. },
  887. children: [
  888. {
  889. path: '/outboundOrderManagement/outboundOrder',
  890. redirect: '/outboundOrderManagement/outboundOrder/list',
  891. name: 'outboundOrder',
  892. component: BlankLayout,
  893. meta: {
  894. title: '出库',
  895. icon: 'export',
  896. permission: 'M_outboundList'
  897. },
  898. hideChildrenInMenu: true,
  899. children: [
  900. {
  901. path: 'list',
  902. name: 'outboundOrderList',
  903. component: () => import(/* webpackChunkName: "outboundOrderManagement" */ '@/views/outboundOrderManagement/outboundOrder/list.vue'),
  904. meta: {
  905. title: '出库列表',
  906. icon: 'export',
  907. hidden: true,
  908. permission: 'M_outboundList'
  909. }
  910. }
  911. ]
  912. }
  913. ]
  914. },
  915. // 财务管理
  916. {
  917. path: '/financialManagement',
  918. redirect: '/financialManagement/warehousingAudit',
  919. component: PageView,
  920. meta: {
  921. title: '财务管理',
  922. icon: 'property-safety',
  923. permission: 'M_financial'
  924. },
  925. children: [
  926. {
  927. path: '/financialManagement/warehousingAudit',
  928. redirect: '/financialManagement/warehousingAudit/list',
  929. name: 'warehousingAudit',
  930. component: BlankLayout,
  931. meta: {
  932. title: '入库审核',
  933. icon: 'pull-request',
  934. permission: 'M_warehousingAuditList'
  935. },
  936. hideChildrenInMenu: true,
  937. children: [
  938. {
  939. path: 'list',
  940. name: 'warehousingAuditList',
  941. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  942. meta: {
  943. title: '入库审核列表',
  944. icon: 'pull-request',
  945. hidden: true,
  946. permission: 'M_warehousingAuditList'
  947. }
  948. },
  949. {
  950. path: 'detail/:sn',
  951. name: 'warehousingAuditDetail',
  952. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  953. meta: {
  954. title: '入库审核详情',
  955. icon: 'pull-request',
  956. hidden: true,
  957. permission: 'M_warehousingAudit_detail'
  958. }
  959. }
  960. ]
  961. },
  962. {
  963. path: '/financialManagement/inventoryCheckAudit',
  964. redirect: '/financialManagement/inventoryCheckAudit/list',
  965. name: 'inventoryCheckAudit',
  966. component: BlankLayout,
  967. meta: {
  968. title: '盘点审核',
  969. icon: 'laptop',
  970. permission: 'M_inventoryCheckAuditList'
  971. },
  972. hideChildrenInMenu: true,
  973. children: [
  974. {
  975. path: 'list',
  976. name: 'inventoryCheckAuditList',
  977. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryCheckAudit/list.vue'),
  978. meta: {
  979. title: '盘点审核列表',
  980. icon: 'laptop',
  981. hidden: true,
  982. permission: 'M_inventoryCheckAuditList'
  983. }
  984. }
  985. ]
  986. },
  987. {
  988. path: '/financialManagement/financialPayment',
  989. redirect: '/financialManagement/financialPayment/list',
  990. name: 'financialPayment',
  991. component: BlankLayout,
  992. meta: {
  993. title: '财务付款',
  994. icon: 'pay-circle',
  995. permission: 'M_financialPaymentList'
  996. },
  997. hideChildrenInMenu: true,
  998. children: [
  999. {
  1000. path: 'list',
  1001. name: 'financialPaymentList',
  1002. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  1003. meta: {
  1004. title: '财务付款列表',
  1005. icon: 'pay-circle',
  1006. hidden: true,
  1007. permission: 'M_financialPaymentList'
  1008. }
  1009. }
  1010. ]
  1011. },
  1012. {
  1013. path: '/financialManagement/financialCollection',
  1014. redirect: '/financialManagement/financialCollection/list',
  1015. name: 'financialCollection',
  1016. component: BlankLayout,
  1017. meta: {
  1018. title: '财务收款',
  1019. icon: 'money-collect',
  1020. permission: 'M_financialCollectionList'
  1021. },
  1022. hideChildrenInMenu: true,
  1023. children: [
  1024. {
  1025. path: 'list',
  1026. name: 'financialCollectionList',
  1027. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  1028. meta: {
  1029. title: '财务收款列表',
  1030. icon: 'money-collect',
  1031. hidden: true,
  1032. permission: 'M_financialCollectionList'
  1033. }
  1034. }
  1035. ]
  1036. },
  1037. {
  1038. path: '/financialManagement/expenseManagement',
  1039. redirect: '/financialManagement/expenseManagement/list',
  1040. name: 'expenseManagement',
  1041. component: BlankLayout,
  1042. meta: {
  1043. title: '费用管理',
  1044. icon: 'pound',
  1045. permission: 'M_expenseManagementList'
  1046. },
  1047. hideChildrenInMenu: true,
  1048. children: [
  1049. {
  1050. path: 'list',
  1051. name: 'expenseManagementList',
  1052. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  1053. meta: {
  1054. title: '费用单列表',
  1055. icon: 'pound',
  1056. hidden: true,
  1057. permission: 'M_expenseManagementList'
  1058. }
  1059. },
  1060. {
  1061. path: 'add',
  1062. name: 'expenseManagementAdd',
  1063. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1064. meta: {
  1065. title: '新增费用单',
  1066. icon: 'pound',
  1067. hidden: true,
  1068. permission: 'B_expenseNew'
  1069. }
  1070. },
  1071. {
  1072. path: 'edit/:id',
  1073. name: 'expenseManagementEdit',
  1074. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1075. meta: {
  1076. title: '编辑费用单',
  1077. icon: 'pound',
  1078. hidden: true,
  1079. permission: 'B_expenseEdit'
  1080. }
  1081. }
  1082. ]
  1083. },
  1084. {
  1085. path: '/financialManagement/companyReceivablePayable',
  1086. redirect: '/financialManagement/companyReceivablePayable/list',
  1087. name: 'companyReceivablePayable',
  1088. component: BlankLayout,
  1089. meta: {
  1090. title: '单位应收应付管理',
  1091. icon: 'transaction',
  1092. permission: 'M_companyReceivablePayableList'
  1093. },
  1094. hideChildrenInMenu: true,
  1095. children: [
  1096. {
  1097. path: 'list',
  1098. name: 'companyReceivablePayableList',
  1099. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  1100. meta: {
  1101. title: '单位应收应付列表',
  1102. icon: 'transaction',
  1103. hidden: true,
  1104. permission: 'M_companyReceivablePayableList'
  1105. }
  1106. },
  1107. {
  1108. path: 'collectionPayment/:sn/:name/:type',
  1109. name: 'companyReceivablePayableCollectionPayment',
  1110. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/collectionPayment.vue'),
  1111. meta: {
  1112. title: '编辑单位应收应付',
  1113. icon: 'transaction',
  1114. hidden: true,
  1115. permission: 'M_collectionPayment'
  1116. }
  1117. },
  1118. {
  1119. path: 'detail/:sn/:name/:type',
  1120. name: 'companyReceivablePayableDetail',
  1121. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  1122. meta: {
  1123. title: '单位应收应付详情',
  1124. icon: 'transaction',
  1125. hidden: true,
  1126. permission: 'M_companyReceivablePayable_detail'
  1127. }
  1128. }
  1129. ]
  1130. },
  1131. {
  1132. path: '/financialManagement/companyCollectionPayment',
  1133. redirect: '/financialManagement/companyCollectionPayment/list',
  1134. name: 'companyCollectionPayment',
  1135. component: BlankLayout,
  1136. meta: {
  1137. title: '单位收付款记录',
  1138. icon: 'file-protect',
  1139. permission: 'M_companyCollectionPaymentList'
  1140. },
  1141. hideChildrenInMenu: true,
  1142. children: [
  1143. {
  1144. path: 'list',
  1145. name: 'companyCollectionPaymentList',
  1146. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  1147. meta: {
  1148. title: '单位收付款记录列表',
  1149. icon: 'file-protect',
  1150. hidden: true,
  1151. permission: 'M_companyCollectionPaymentList'
  1152. }
  1153. },
  1154. {
  1155. path: 'detail/:id/:sn',
  1156. name: 'companyCollectionPaymentDetail',
  1157. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  1158. meta: {
  1159. title: '单位收付款记录详情',
  1160. icon: 'file-protect',
  1161. hidden: true,
  1162. permission: 'M_companyCollectionPayment_detail'
  1163. }
  1164. }
  1165. ]
  1166. },
  1167. {
  1168. path: '/financialManagement/withdrawalManagement',
  1169. redirect: '/financialManagement/withdrawalManagement/list',
  1170. name: 'withdrawalManagement',
  1171. component: BlankLayout,
  1172. meta: {
  1173. title: '提现管理',
  1174. icon: 'dollar',
  1175. permission: 'M_withdrawalManagementList'
  1176. },
  1177. hideChildrenInMenu: true,
  1178. children: [
  1179. {
  1180. path: 'list',
  1181. name: 'withdrawalManagementList',
  1182. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  1183. meta: {
  1184. title: '提现管理列表',
  1185. icon: 'dollar',
  1186. hidden: true,
  1187. permission: 'M_withdrawalManagementList'
  1188. }
  1189. }
  1190. ]
  1191. },
  1192. {
  1193. path: '/financialManagement/ledgerRecord',
  1194. redirect: '/financialManagement/ledgerRecord/list',
  1195. name: 'ledgerRecord',
  1196. component: BlankLayout,
  1197. meta: {
  1198. title: '分账记录',
  1199. icon: 'profile',
  1200. permission: 'M_ledgerRecordList'
  1201. },
  1202. hideChildrenInMenu: true,
  1203. children: [
  1204. {
  1205. path: 'list',
  1206. name: 'ledgerRecordList',
  1207. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  1208. meta: {
  1209. title: '分账记录列表',
  1210. icon: 'profile',
  1211. hidden: true,
  1212. permission: 'M_ledgerRecordList'
  1213. }
  1214. }
  1215. ]
  1216. },
  1217. {
  1218. path: '/financialManagement/fundAccountManagement',
  1219. redirect: '/financialManagement/fundAccountManagement/list',
  1220. name: 'fundAccountManagement',
  1221. component: BlankLayout,
  1222. meta: {
  1223. title: '资金账户管理',
  1224. icon: 'file-protect',
  1225. permission: 'M_fundAccountList'
  1226. },
  1227. hideChildrenInMenu: true,
  1228. children: [
  1229. {
  1230. path: 'list',
  1231. name: 'fundAccountList',
  1232. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/fundAccountManagement/list.vue'),
  1233. meta: {
  1234. title: '资金账户列表',
  1235. icon: 'file-protect',
  1236. hidden: true,
  1237. permission: 'M_fundAccountList'
  1238. }
  1239. },
  1240. {
  1241. path: 'detail/:sn',
  1242. name: 'fundAccountDetail',
  1243. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/fundAccountManagement/detail.vue'),
  1244. meta: {
  1245. title: '资金明细',
  1246. icon: 'file-protect',
  1247. hidden: true,
  1248. replaceTab: true,
  1249. permission: 'M_fundAccount_detail'
  1250. }
  1251. }
  1252. ]
  1253. },
  1254. ]
  1255. },
  1256. // 调拨管理
  1257. {
  1258. path: '/allocationManagement',
  1259. redirect: '/allocationManagement/warehouseAllocation',
  1260. component: PageView,
  1261. meta: {
  1262. title: '调拨管理',
  1263. icon: 'cluster',
  1264. permission: 'M_allocationManagement'
  1265. },
  1266. children: [
  1267. {
  1268. path: '/allocationManagement/warehouseAllocation',
  1269. redirect: '/allocationManagement/warehouseAllocation/list',
  1270. name: 'warehouseAllocation',
  1271. component: BlankLayout,
  1272. meta: {
  1273. title: '仓库调拨',
  1274. icon: 'gateway',
  1275. permission: 'M_warehouseAllocationList'
  1276. },
  1277. hideChildrenInMenu: true,
  1278. children: [
  1279. {
  1280. path: 'list',
  1281. name: 'warehouseAllocationList',
  1282. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/list.vue'),
  1283. meta: {
  1284. title: '仓库调拨列表',
  1285. icon: 'gateway',
  1286. hidden: true,
  1287. permission: 'M_warehouseAllocationList'
  1288. }
  1289. },
  1290. {
  1291. path: 'add',
  1292. name: 'warehouseAllocationAdd',
  1293. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  1294. meta: {
  1295. title: '新增仓库调拨',
  1296. icon: 'gateway',
  1297. hidden: true,
  1298. permission: 'B_warehouseAllocationNews'
  1299. }
  1300. },
  1301. {
  1302. path: 'edit/:id/:sn',
  1303. name: 'warehouseAllocationEdit',
  1304. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  1305. meta: {
  1306. title: '编辑仓库调拨',
  1307. icon: 'gateway',
  1308. hidden: true,
  1309. permission: 'B_warehouseAllocationEdit'
  1310. }
  1311. },
  1312. {
  1313. path: 'detail/:sn',
  1314. name: 'warehouseAllocationDetail',
  1315. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/detail.vue'),
  1316. meta: {
  1317. title: '仓库调拨详情',
  1318. icon: 'gateway',
  1319. hidden: true,
  1320. permission: 'B_warehouseAllocationDetail'
  1321. }
  1322. }
  1323. ]
  1324. },
  1325. {
  1326. path: '/allocationManagement/chainTransferIn',
  1327. redirect: '/allocationManagement/chainTransferIn/list',
  1328. name: 'chainTransferIn',
  1329. component: BlankLayout,
  1330. meta: {
  1331. title: '连锁调入',
  1332. icon: 'cluster',
  1333. permission: 'M_chainTransferInList'
  1334. },
  1335. hideChildrenInMenu: true,
  1336. children: [
  1337. {
  1338. path: 'list',
  1339. name: 'chainTransferInList',
  1340. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferIn/list.vue'),
  1341. meta: {
  1342. title: '连锁调入列表',
  1343. icon: 'cluster',
  1344. hidden: true,
  1345. permission: 'M_chainTransferInList'
  1346. }
  1347. },
  1348. {
  1349. path: 'edit/:id/:sn',
  1350. name: 'chainTransferInEdit',
  1351. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  1352. meta: {
  1353. title: '编辑连锁调入',
  1354. icon: 'cluster',
  1355. hidden: true,
  1356. permission: 'B_allocLinkagePutEdit'
  1357. }
  1358. },
  1359. {
  1360. path: 'detail/:sn',
  1361. name: 'chainTransferInDetail',
  1362. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  1363. meta: {
  1364. title: '连锁调入详情',
  1365. icon: 'cluster',
  1366. hidden: true,
  1367. permission: 'B_allocLinkagePutDetail'
  1368. }
  1369. }
  1370. ]
  1371. },
  1372. {
  1373. path: '/allocationManagement/chainTransferOut',
  1374. redirect: '/allocationManagement/chainTransferOut/list',
  1375. name: 'chainTransferOut',
  1376. component: BlankLayout,
  1377. meta: {
  1378. title: '连锁调出',
  1379. icon: 'pull-request',
  1380. permission: 'M_chainTransferOutList'
  1381. },
  1382. hideChildrenInMenu: true,
  1383. children: [
  1384. {
  1385. path: 'list',
  1386. name: 'chainTransferOutList',
  1387. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  1388. meta: {
  1389. title: '连锁调出列表',
  1390. icon: 'pull-request',
  1391. hidden: true,
  1392. permission: 'M_chainTransferOutList'
  1393. }
  1394. },
  1395. {
  1396. path: 'add/:id/:sn',
  1397. name: 'chainTransferOutAdd',
  1398. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  1399. meta: {
  1400. title: '新增连锁调出',
  1401. icon: 'pull-request',
  1402. hidden: true,
  1403. permission: 'B_allocLinkageOutNew'
  1404. }
  1405. },
  1406. {
  1407. path: 'edit/:id/:sn',
  1408. name: 'chainTransferOutEdit',
  1409. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  1410. meta: {
  1411. title: '编辑连锁调出',
  1412. icon: 'pull-request',
  1413. hidden: true,
  1414. permission: 'B_allocLinkageOutEdit'
  1415. }
  1416. },
  1417. {
  1418. path: 'detail/:sn',
  1419. name: 'chainTransferOutDetail',
  1420. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  1421. meta: {
  1422. title: '连锁调出详情',
  1423. icon: 'pull-request',
  1424. hidden: true,
  1425. permission: 'B_allocLinkageOutDetail'
  1426. }
  1427. }
  1428. ]
  1429. },
  1430. {
  1431. path: '/allocationManagement/storeTransferOut',
  1432. redirect: '/allocationManagement/storeTransferOut/list',
  1433. name: 'storeTransferOut',
  1434. component: BlankLayout,
  1435. meta: {
  1436. title: '店内调出',
  1437. icon: 'interaction',
  1438. permission: 'M_storeTransferOutList'
  1439. },
  1440. hideChildrenInMenu: true,
  1441. children: [
  1442. {
  1443. path: 'list',
  1444. name: 'storeTransferOutList',
  1445. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  1446. meta: {
  1447. title: '店内调出列表',
  1448. icon: 'interaction',
  1449. hidden: true,
  1450. permission: 'M_storeTransferOutList'
  1451. }
  1452. },
  1453. {
  1454. path: 'add/:id/:sn',
  1455. name: 'storeTransferOutAdd',
  1456. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  1457. meta: {
  1458. title: '新增店内调出',
  1459. icon: 'interaction',
  1460. hidden: true,
  1461. permission: 'B_storeTransferOutNews'
  1462. }
  1463. },
  1464. {
  1465. path: 'edit/:id/:sn',
  1466. name: 'storeTransferOutEdit',
  1467. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  1468. meta: {
  1469. title: '编辑店内调出',
  1470. icon: 'interaction',
  1471. hidden: true,
  1472. permission: 'B_storeCallOutEdit'
  1473. }
  1474. },
  1475. {
  1476. path: 'detail/:sn',
  1477. name: 'storeTransferOutDetail',
  1478. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  1479. meta: {
  1480. title: '店内调出详情',
  1481. icon: 'interaction',
  1482. hidden: true,
  1483. permission: 'B_storeCallOutDetail'
  1484. }
  1485. }
  1486. ]
  1487. }
  1488. ]
  1489. },
  1490. // 库存管理
  1491. {
  1492. path: '/inventoryManagement',
  1493. redirect: '/inventoryManagement/inventoryQuery',
  1494. component: PageView,
  1495. meta: {
  1496. title: '库存管理',
  1497. icon: 'shop',
  1498. permission: 'M_inventory'
  1499. },
  1500. children: [
  1501. {
  1502. path: '/inventoryManagement/inventoryQuery',
  1503. redirect: '/inventoryManagement/inventoryQuery/list',
  1504. name: 'inventoryQuery',
  1505. component: BlankLayout,
  1506. meta: {
  1507. title: '库存查询',
  1508. icon: 'monitor',
  1509. permission: 'M_inventoryInventoryQueryList'
  1510. },
  1511. hideChildrenInMenu: true,
  1512. children: [
  1513. {
  1514. path: 'list',
  1515. name: 'inventoryQueryList',
  1516. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  1517. meta: {
  1518. title: '库存列表',
  1519. icon: 'monitor',
  1520. hidden: true,
  1521. permission: 'M_inventoryInventoryQueryList'
  1522. }
  1523. },
  1524. {
  1525. path: 'warehouseDetail/:sn',
  1526. name: 'inventoryQueryWarehouseDetail',
  1527. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  1528. meta: {
  1529. title: '出入库明细',
  1530. icon: 'monitor',
  1531. hidden: true,
  1532. replaceTab: true,
  1533. permission: 'B_inventoryInventoryQueryStock'
  1534. }
  1535. }
  1536. ]
  1537. },
  1538. {
  1539. path: '/inventoryManagement/inventoryWarning',
  1540. name: 'inventoryWarning',
  1541. redirect: '/inventoryManagement/inventoryWarning/list',
  1542. component: BlankLayout,
  1543. meta: {
  1544. title: '库存预警',
  1545. icon: 'alert',
  1546. permission: 'M_inventoryWarningList'
  1547. },
  1548. hideChildrenInMenu: true,
  1549. children: [
  1550. {
  1551. path: 'list',
  1552. name: 'inventoryWarningList',
  1553. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  1554. meta: {
  1555. title: '库存预警',
  1556. icon: 'alert',
  1557. permission: 'M_inventoryWarningList'
  1558. }
  1559. }
  1560. ]
  1561. },
  1562. {
  1563. path: '/inventoryManagement/satelliteWarehouseInventory',
  1564. name: 'satelliteWarehouseInventory',
  1565. redirect: '/inventoryManagement/satelliteWarehouseInventory/list',
  1566. component: BlankLayout,
  1567. meta: {
  1568. title: '卫星仓库存',
  1569. icon: 'flag',
  1570. permission: 'M_satelliteWarehouseInventoryList'
  1571. },
  1572. hideChildrenInMenu: true,
  1573. children: [
  1574. {
  1575. path: 'list',
  1576. name: 'satelliteWarehouseInventoryList',
  1577. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  1578. meta: {
  1579. title: '卫星仓库存',
  1580. icon: 'flag',
  1581. permission: 'M_satelliteWarehouseInventoryList'
  1582. }
  1583. }
  1584. ]
  1585. },
  1586. {
  1587. path: '/inventoryManagement/inventoryChecking',
  1588. redirect: '/inventoryManagement/inventoryChecking/list',
  1589. name: 'inventoryChecking',
  1590. component: BlankLayout,
  1591. meta: {
  1592. title: '库存盘点',
  1593. icon: 'reconciliation',
  1594. permission: 'M_inventoryCheckingList'
  1595. },
  1596. hideChildrenInMenu: true,
  1597. children: [
  1598. {
  1599. path: 'list',
  1600. name: 'inventoryCheckingList',
  1601. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1602. meta: {
  1603. title: '库存盘点列表',
  1604. icon: 'reconciliation',
  1605. hidden: true,
  1606. permission: 'M_inventoryCheckingList'
  1607. }
  1608. },
  1609. {
  1610. path: 'overall/:id/:sn',
  1611. name: 'inventoryCheckingOverall',
  1612. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1613. meta: {
  1614. title: '编辑库存盘点【全盘】',
  1615. icon: 'reconciliation',
  1616. hidden: true,
  1617. permission: 'B_inventoryCheckingEdit'
  1618. }
  1619. },
  1620. {
  1621. path: 'selfDisk/:id/:sn',
  1622. name: 'inventoryCheckingSelfDisk',
  1623. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1624. meta: {
  1625. title: '编辑库存盘点【自选盘点】',
  1626. icon: 'reconciliation',
  1627. hidden: true,
  1628. permission: 'B_inventoryCheckingEdit'
  1629. }
  1630. },
  1631. {
  1632. path: 'makeInventory/:id/:sn',
  1633. name: 'inventoryCheckingMakeInventory',
  1634. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1635. meta: {
  1636. title: '盘点',
  1637. icon: 'reconciliation',
  1638. hidden: true,
  1639. replaceTab: true,
  1640. permission: 'B_inventoryCheckingInventory'
  1641. }
  1642. }
  1643. ]
  1644. },
  1645. {
  1646. path: '/inventoryManagement/inventoryImport',
  1647. redirect: '/inventoryManagement/inventoryImport/list',
  1648. name: 'inventoryImport',
  1649. component: BlankLayout,
  1650. meta: {
  1651. title: '库存导入',
  1652. icon: 'frown',
  1653. permission: 'M_inventoryImport'
  1654. },
  1655. hideChildrenInMenu: true,
  1656. children: [
  1657. {
  1658. path: 'list',
  1659. name: 'inventoryImportList',
  1660. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryImport/list.vue'),
  1661. meta: {
  1662. title: '库存导入列表',
  1663. icon: 'frown',
  1664. hidden: true,
  1665. permission: 'M_inventoryImport'
  1666. }
  1667. }
  1668. ]
  1669. },
  1670. {
  1671. path: '/inventoryManagement/warehouse',
  1672. redirect: '/inventoryManagement/warehouse/list',
  1673. name: 'warehouse',
  1674. component: BlankLayout,
  1675. meta: {
  1676. title: '仓库管理',
  1677. icon: 'deployment-unit',
  1678. permission: 'M_inventoryWarehouseList'
  1679. },
  1680. hideChildrenInMenu: true,
  1681. children: [
  1682. {
  1683. path: 'list',
  1684. name: 'warehouseList',
  1685. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/warehouse/list.vue'),
  1686. meta: {
  1687. title: '仓库列表',
  1688. icon: 'deployment-unit',
  1689. hidden: true,
  1690. permission: 'M_inventoryWarehouseList'
  1691. }
  1692. },
  1693. {
  1694. path: '/inventoryManagement/storingLocation/:sn',
  1695. name: 'storingLocationList',
  1696. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  1697. meta: {
  1698. title: '仓位列表',
  1699. icon: 'deployment-unit',
  1700. hidden: true,
  1701. replaceTab: true,
  1702. permission: 'M_inventoryWarehouseStoringLocationList'
  1703. }
  1704. }
  1705. ]
  1706. }
  1707. ]
  1708. },
  1709. // 散件管理
  1710. {
  1711. path: '/bulkManagement',
  1712. redirect: '/bulkManagement/purchaseOrder',
  1713. component: PageView,
  1714. meta: {
  1715. title: '散件管理',
  1716. icon: 'gold',
  1717. permission: 'M_bulkManagement'
  1718. },
  1719. children: [
  1720. {
  1721. path: '/bulkManagement/bulkWarehousingOrder',
  1722. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  1723. name: 'bulkWarehousingOrder',
  1724. component: BlankLayout,
  1725. meta: {
  1726. title: '散件入库',
  1727. icon: 'gold',
  1728. permission: 'M_bulkWarehousingOrderList'
  1729. },
  1730. hideChildrenInMenu: true,
  1731. children: [
  1732. {
  1733. path: 'list',
  1734. name: 'bulkWarehousingOrderList',
  1735. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  1736. meta: {
  1737. title: '散件入库单列表',
  1738. icon: 'gold',
  1739. hidden: true,
  1740. permission: 'M_bulkWarehousingOrderList'
  1741. }
  1742. },
  1743. {
  1744. path: 'add/:id/:sn/:supplierSn',
  1745. name: 'bulkWarehousingOrderAdd',
  1746. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1747. meta: {
  1748. title: '新增散件入库单',
  1749. icon: 'gold',
  1750. hidden: true,
  1751. permission: 'B_bulkWarehousingOrder_add'
  1752. }
  1753. },
  1754. {
  1755. path: 'edit/:id/:sn/:supplierSn',
  1756. name: 'bulkWarehousingOrderEdit',
  1757. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1758. meta: {
  1759. title: '编辑散件入库单',
  1760. icon: 'gold',
  1761. hidden: true,
  1762. permission: 'B_bulkWarehousingOrder_edit'
  1763. }
  1764. },
  1765. {
  1766. path: 'detail/:id/:sn',
  1767. name: 'bulkWarehousingOrderDetail',
  1768. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  1769. meta: {
  1770. title: '散件入库单详情',
  1771. icon: 'gold',
  1772. hidden: true,
  1773. permission: 'B_bulkWarehousingOrder_detail'
  1774. }
  1775. }
  1776. ]
  1777. },
  1778. {
  1779. path: '/bulkManagement/bulkReturnGoods',
  1780. redirect: '/bulkManagement/bulkReturnGoods/list',
  1781. name: 'bulkReturnGoods',
  1782. component: BlankLayout,
  1783. meta: {
  1784. title: '散件退货',
  1785. icon: 'frown',
  1786. permission: 'M_bulkReturnGoodsList'
  1787. },
  1788. hideChildrenInMenu: true,
  1789. children: [
  1790. {
  1791. path: 'list',
  1792. name: 'bulkReturnGoodsList',
  1793. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkReturnGoods/list.vue'),
  1794. meta: {
  1795. title: '散件退货列表',
  1796. icon: 'frown',
  1797. hidden: true,
  1798. permission: 'M_bulkReturnGoodsList'
  1799. }
  1800. },
  1801. {
  1802. path: 'edit/:id/:sn/:supplierSn',
  1803. name: 'bulkReturnGoodsEdit',
  1804. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1805. meta: {
  1806. title: '编辑散件退货单(不抓单)',
  1807. icon: 'frown',
  1808. hidden: true,
  1809. permission: 'B_bulkReturnGoodsEdit'
  1810. }
  1811. },
  1812. {
  1813. path: 'grabEdit/:id/:sn/:supplierSn',
  1814. name: 'bulkReturnGoodsGrabEdit',
  1815. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkReturnGoods/grabEdit.vue'),
  1816. meta: {
  1817. title: '编辑散件退货单(抓单)',
  1818. icon: 'frown',
  1819. hidden: true,
  1820. permission: 'B_bulkReturnGoodsEdit'
  1821. }
  1822. }
  1823. ]
  1824. },
  1825. {
  1826. path: '/bulkManagement/bulkImport',
  1827. redirect: '/bulkManagement/bulkImport/list',
  1828. name: 'bulkImport',
  1829. component: BlankLayout,
  1830. meta: {
  1831. title: '散件导入',
  1832. icon: 'frown',
  1833. permission: 'M_bulkImport'
  1834. },
  1835. hideChildrenInMenu: true,
  1836. children: [
  1837. {
  1838. path: 'list',
  1839. name: 'bulkImportList',
  1840. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkImport/list.vue'),
  1841. meta: {
  1842. title: '散件导入列表',
  1843. icon: 'frown',
  1844. hidden: true,
  1845. permission: 'M_bulkImport'
  1846. }
  1847. }
  1848. ]
  1849. }
  1850. ]
  1851. },
  1852. // 报表
  1853. {
  1854. path: '/reportData',
  1855. redirect: '/reportData/chainStockReport',
  1856. component: PageView,
  1857. meta: {
  1858. title: '报表',
  1859. icon: 'project',
  1860. permission: 'M_reportData'
  1861. },
  1862. children: [
  1863. {
  1864. path: '/reportData/salesReport',
  1865. redirect: '/reportData/salesReport/index',
  1866. name: 'salesReport',
  1867. component: BlankLayout,
  1868. meta: {
  1869. title: '销售报表',
  1870. icon: 'profile',
  1871. permission: 'M_salesReportList,M_salesDetailReportList'
  1872. },
  1873. hideChildrenInMenu: true,
  1874. children: [
  1875. {
  1876. path: 'index',
  1877. name: 'salesReportIndex',
  1878. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReport/index.vue'),
  1879. meta: {
  1880. title: '销售报表',
  1881. icon: 'profile',
  1882. hidden: true,
  1883. permission: 'M_salesReportList,M_salesDetailReportList'
  1884. }
  1885. },
  1886. {
  1887. path: 'list',
  1888. name: 'salesReportList',
  1889. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReport/list.vue'),
  1890. meta: {
  1891. title: '销售报表列表',
  1892. icon: 'profile',
  1893. hidden: true,
  1894. permission: 'M_salesReportList'
  1895. }
  1896. },
  1897. {
  1898. path: 'list',
  1899. name: 'salesDetailReportList',
  1900. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesDetailReport/list.vue'),
  1901. meta: {
  1902. title: '销售明细报表列表',
  1903. icon: 'profile',
  1904. hidden: true,
  1905. permission: 'M_salesDetailReportList'
  1906. }
  1907. }
  1908. ]
  1909. },
  1910. {
  1911. path: '/reportData/customerReport',
  1912. redirect: '/reportData/customerReport/list',
  1913. name: 'customerReport',
  1914. component: BlankLayout,
  1915. meta: {
  1916. title: '大客户报表',
  1917. icon: 'profile',
  1918. permission: 'M_customerReportList'
  1919. },
  1920. hideChildrenInMenu: true,
  1921. children: [
  1922. {
  1923. path: 'list',
  1924. name: 'customerReportList',
  1925. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/customerReport/list.vue'),
  1926. meta: {
  1927. title: '大客户报表列表',
  1928. icon: 'profile',
  1929. hidden: true,
  1930. permission: 'M_customerReportList'
  1931. }
  1932. }
  1933. ]
  1934. },
  1935. {
  1936. path: '/reportData/customerSalesDetailsReport',
  1937. redirect: '/reportData/customerSalesDetailsReport/list',
  1938. name: 'customerSalesDetailsReport',
  1939. component: BlankLayout,
  1940. meta: {
  1941. title: '客户销售明细报表',
  1942. icon: 'profile',
  1943. permission: 'M_customerSalesDetailsReport_list'
  1944. },
  1945. hideChildrenInMenu: true,
  1946. children: [
  1947. {
  1948. path: 'list',
  1949. name: 'customerSalesDetailsReportList',
  1950. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/customerSalesDetailsReport/list.vue'),
  1951. meta: {
  1952. title: '客户销售明细列表',
  1953. icon: 'profile',
  1954. hidden: true,
  1955. permission: 'M_customerSalesDetailsReport_list'
  1956. }
  1957. }
  1958. ]
  1959. },
  1960. {
  1961. path: '/reportData/salesReturnReport',
  1962. redirect: '/reportData/salesReturnReport/index',
  1963. name: 'salesReturnReport',
  1964. component: BlankLayout,
  1965. meta: {
  1966. title: '销售退货报表',
  1967. icon: 'profile',
  1968. permission: 'M_salesReturnReportList'
  1969. },
  1970. hideChildrenInMenu: true,
  1971. children: [
  1972. {
  1973. path: 'index',
  1974. name: 'salesReturnReportIndex',
  1975. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnReport/index.vue'),
  1976. meta: {
  1977. title: '销售退货报表',
  1978. icon: 'profile',
  1979. hidden: true,
  1980. permission: 'M_salesReturnReportList'
  1981. }
  1982. },
  1983. ]
  1984. },
  1985. {
  1986. path: '/reportData/stockIncomeReport',
  1987. redirect: '/reportData/stockIncomeReport/list',
  1988. name: 'stockIncomeReport',
  1989. component: BlankLayout,
  1990. meta: {
  1991. title: '库存总入报表',
  1992. icon: 'profile',
  1993. permission: 'M_stockIncomeReportList'
  1994. },
  1995. hideChildrenInMenu: true,
  1996. children: [
  1997. {
  1998. path: 'list',
  1999. name: 'stockIncomeReportList',
  2000. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockIncomeReport/list.vue'),
  2001. meta: {
  2002. title: '库存总入报表列表',
  2003. icon: 'profile',
  2004. hidden: true,
  2005. permission: 'M_stockIncomeReportList'
  2006. }
  2007. }
  2008. ]
  2009. },
  2010. {
  2011. path: '/reportData/stockExpenditureReport',
  2012. redirect: '/reportData/stockExpenditureReport/list',
  2013. name: 'stockExpenditureReport',
  2014. component: BlankLayout,
  2015. meta: {
  2016. title: '库存总出报表',
  2017. icon: 'profile',
  2018. permission: 'M_stockExpenditureReportList'
  2019. },
  2020. hideChildrenInMenu: true,
  2021. children: [
  2022. {
  2023. path: 'list',
  2024. name: 'stockExpenditureReportList',
  2025. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockExpenditureReport/list.vue'),
  2026. meta: {
  2027. title: '库存总出报表列表',
  2028. icon: 'profile',
  2029. hidden: true,
  2030. permission: 'M_stockExpenditureReportList'
  2031. }
  2032. }
  2033. ]
  2034. },
  2035. {
  2036. path: '/reportData/stockImportReport',
  2037. redirect: '/reportData/stockImportReport/index',
  2038. name: 'stockImportReport',
  2039. component: BlankLayout,
  2040. meta: {
  2041. title: '库存/散件导入报表',
  2042. icon: 'profile',
  2043. permission: 'M_stockImportReportList'
  2044. },
  2045. hideChildrenInMenu: true,
  2046. children: [
  2047. {
  2048. path: 'index',
  2049. name: 'stockImportReportIndex',
  2050. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockImportReport/index.vue'),
  2051. meta: {
  2052. title: '库存/散件导入报表',
  2053. icon: 'profile',
  2054. hidden: true,
  2055. permission: 'M_stockImportReportList'
  2056. }
  2057. },
  2058. ]
  2059. },
  2060. {
  2061. path: '/reportData/receivedSendStorageReport',
  2062. redirect: '/reportData/receivedSendStorageReport/list',
  2063. name: 'receivedSendStorageReport',
  2064. component: BlankLayout,
  2065. meta: {
  2066. title: '收发存报表',
  2067. icon: 'profile',
  2068. permission: 'M_receivedSendStorageReportList'
  2069. },
  2070. hideChildrenInMenu: true,
  2071. children: [
  2072. {
  2073. path: 'list',
  2074. name: 'receivedSendStorageReportList',
  2075. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/receivedSendStorageReport/list.vue'),
  2076. meta: {
  2077. title: '收发存报表列表',
  2078. icon: 'profile',
  2079. hidden: true,
  2080. permission: 'M_receivedSendStorageReportList'
  2081. }
  2082. }
  2083. ]
  2084. },
  2085. {
  2086. path: '/reportData/storeReceivedSendStorageReport',
  2087. redirect: '/reportData/storeReceivedSendStorageReport/list',
  2088. name: 'storeReceivedSendStorageReport',
  2089. component: BlankLayout,
  2090. meta: {
  2091. title: '门店收发存汇总报表',
  2092. icon: 'profile',
  2093. permission: 'M_storeReceivedSendStorageReport_list'
  2094. },
  2095. hideChildrenInMenu: true,
  2096. children: [
  2097. {
  2098. path: 'list',
  2099. name: 'storeReceivedSendStorageReportList',
  2100. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeReceivedSendStorageReport/list.vue'),
  2101. meta: {
  2102. title: '门店收发存汇总列表',
  2103. icon: 'profile',
  2104. hidden: true,
  2105. permission: 'M_storeReceivedSendStorageReport_list'
  2106. }
  2107. }
  2108. ]
  2109. },
  2110. {
  2111. path: '/reportData/inventoryReport',
  2112. redirect: '/reportData/inventoryReport/list',
  2113. name: 'inventoryReport',
  2114. component: BlankLayout,
  2115. meta: {
  2116. title: '盘点报表',
  2117. icon: 'profile',
  2118. permission: 'M_inventoryReportList'
  2119. },
  2120. hideChildrenInMenu: true,
  2121. children: [
  2122. {
  2123. path: 'list',
  2124. name: 'inventoryReportList',
  2125. component: () => import(/* webpackChunkName: "reportData1" */ '@/views/reportData/inventoryReport/list.vue'),
  2126. meta: {
  2127. title: '盘点报表列表',
  2128. icon: 'profile',
  2129. hidden: true,
  2130. permission: 'M_inventoryReportList'
  2131. }
  2132. }
  2133. ]
  2134. },
  2135. {
  2136. path: '/reportData/purchaseReceiptReport',
  2137. redirect: '/reportData/purchaseReceiptReport/list',
  2138. name: 'purchaseReceiptReport',
  2139. component: BlankLayout,
  2140. meta: {
  2141. title: '采购入库报表',
  2142. icon: 'profile',
  2143. permission: 'M_purchaseReceiptReportList'
  2144. },
  2145. hideChildrenInMenu: true,
  2146. children: [
  2147. {
  2148. path: 'list',
  2149. name: 'purchaseReceiptReportList',
  2150. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/purchaseReceiptReport/list.vue'),
  2151. meta: {
  2152. title: '采购入库报表列表',
  2153. icon: 'profile',
  2154. hidden: true,
  2155. permission: 'M_purchaseReceiptReportList'
  2156. }
  2157. }
  2158. ]
  2159. },
  2160. {
  2161. path: '/reportData/bulkWarehousingReport',
  2162. redirect: '/reportData/bulkWarehousingReport/index',
  2163. name: 'bulkWarehousingReport',
  2164. component: BlankLayout,
  2165. meta: {
  2166. title: '散件入库报表',
  2167. icon: 'profile',
  2168. permission: 'M_bulkWarehousingReportList'
  2169. },
  2170. hideChildrenInMenu: true,
  2171. children: [
  2172. {
  2173. path: 'index',
  2174. name: 'bulkWarehousingReportIndex',
  2175. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/bulkWarehousingReport/index.vue'),
  2176. meta: {
  2177. title: '散件入库报表',
  2178. icon: 'profile',
  2179. hidden: true,
  2180. permission: 'M_bulkWarehousingReportList'
  2181. }
  2182. },
  2183. ]
  2184. },
  2185. {
  2186. path: '/reportData/bulkReturnReport',
  2187. redirect: '/reportData/bulkReturnReport/index',
  2188. name: 'bulkReturnReport',
  2189. component: BlankLayout,
  2190. meta: {
  2191. title: '散件退货报表',
  2192. icon: 'profile',
  2193. permission: 'M_bulkReturnReportList'
  2194. },
  2195. hideChildrenInMenu: true,
  2196. children: [
  2197. {
  2198. path: 'index',
  2199. name: 'bulkReturnReportIndex',
  2200. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/bulkReturnReport/index.vue'),
  2201. meta: {
  2202. title: '散件退货报表',
  2203. icon: 'profile',
  2204. hidden: true,
  2205. permission: 'M_bulkReturnReportList'
  2206. }
  2207. },
  2208. ]
  2209. },
  2210. {
  2211. path: '/reportData/storeTransferOutReport',
  2212. redirect: '/reportData/storeTransferOutReport/index',
  2213. name: 'storeTransferOutReport',
  2214. component: BlankLayout,
  2215. meta: {
  2216. title: '店内调出报表',
  2217. icon: 'profile',
  2218. permission: 'M_storeTransferOutReportList'
  2219. },
  2220. hideChildrenInMenu: true,
  2221. children: [
  2222. {
  2223. path: 'index',
  2224. name: 'storeTransferOutReportIndex',
  2225. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeTransferOutReport/index.vue'),
  2226. meta: {
  2227. title: '店内调出报表',
  2228. icon: 'profile',
  2229. hidden: true,
  2230. permission: 'M_storeTransferOutReportList'
  2231. }
  2232. },
  2233. {
  2234. path: 'list',
  2235. name: 'storeTransferOutReportList',
  2236. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeTransferOutReport/list.vue'),
  2237. meta: {
  2238. title: '店内调出报表列表',
  2239. icon: 'profile',
  2240. hidden: true,
  2241. }
  2242. },
  2243. {
  2244. path: 'list',
  2245. name: 'storeTransferOutDetailReportList',
  2246. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeTransferOutReport/detailList.vue'),
  2247. meta: {
  2248. title: '店内调出明细报表列表',
  2249. icon: 'profile',
  2250. hidden: true,
  2251. }
  2252. }
  2253. ]
  2254. },
  2255. ]
  2256. },
  2257. // 连锁报表
  2258. {
  2259. path: '/chainReportData',
  2260. redirect: '/chainReportData/chainStockReport',
  2261. component: PageView,
  2262. meta: {
  2263. title: '连锁报表',
  2264. icon: 'fund',
  2265. permission: 'M_reportData'
  2266. },
  2267. children: [
  2268. {
  2269. path: '/chainReportData/chainSalesReport',
  2270. redirect: '/chainReportData/chainSalesReport/index',
  2271. name: 'chainSalesReport',
  2272. component: BlankLayout,
  2273. meta: {
  2274. title: '连锁销售报表',
  2275. icon: 'profile',
  2276. permission: 'M_chainSalesReportList,M_chainSalesDetailReportList'
  2277. },
  2278. hideChildrenInMenu: true,
  2279. children: [
  2280. {
  2281. path: 'index',
  2282. name: 'chainSalesReportIndex',
  2283. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesReport/index.vue'),
  2284. meta: {
  2285. title: '连锁销售报表',
  2286. icon: 'profile',
  2287. hidden: true,
  2288. permission: 'M_chainSalesReportList,M_chainSalesDetailReportList'
  2289. }
  2290. },
  2291. {
  2292. path: 'list',
  2293. name: 'chainSalesReportList',
  2294. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesReport/list.vue'),
  2295. meta: {
  2296. title: '连锁销售报表列表',
  2297. icon: 'profile',
  2298. hidden: true,
  2299. permission: 'M_chainSalesReportList'
  2300. }
  2301. },
  2302. {
  2303. path: 'detailList',
  2304. name: 'chainSalesDetailReportList',
  2305. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesDetailReport/list.vue'),
  2306. meta: {
  2307. title: '连锁销售明细报表列表',
  2308. icon: 'profile',
  2309. hidden: true,
  2310. permission: 'M_chainSalesDetailReportList'
  2311. }
  2312. }
  2313. ]
  2314. },
  2315. {
  2316. path: '/chainReportData/chainSalesDetailsCountReport',
  2317. redirect: '/chainReportData/chainSalesDetailsCountReport/list',
  2318. name: 'chainSalesDetailsCountReport',
  2319. component: BlankLayout,
  2320. meta: {
  2321. title: '连锁销售明细合计报表',
  2322. icon: 'profile',
  2323. permission: 'M_chainSalesDetailsCountReport_list'
  2324. },
  2325. hideChildrenInMenu: true,
  2326. children: [
  2327. {
  2328. path: 'list',
  2329. name: 'chainSalesDetailsCountReportList',
  2330. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesDetailsCountReport/list.vue'),
  2331. meta: {
  2332. title: '连锁销售明细合计列表',
  2333. icon: 'profile',
  2334. hidden: true,
  2335. permission: 'M_chainSalesDetailsCountReport_list'
  2336. }
  2337. }
  2338. ]
  2339. },
  2340. {
  2341. path: '/chainReportData/chainCustomerReport',
  2342. redirect: '/chainReportData/chainCustomerReport/list',
  2343. name: 'chainCustomerReport',
  2344. component: BlankLayout,
  2345. meta: {
  2346. title: '连锁大客户报表',
  2347. icon: 'profile',
  2348. permission: 'M_chainCustomerReportList'
  2349. },
  2350. hideChildrenInMenu: true,
  2351. children: [
  2352. {
  2353. path: 'list',
  2354. name: 'chainCustomerReportList',
  2355. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainCustomerReport/list.vue'),
  2356. meta: {
  2357. title: '连锁大客户报表列表',
  2358. icon: 'profile',
  2359. hidden: true,
  2360. permission: 'M_chainCustomerReportList'
  2361. }
  2362. }
  2363. ]
  2364. },
  2365. {
  2366. path: '/chainReportData/chainStockIncomeReport',
  2367. redirect: '/chainReportData/chainStockIncomeReport/list',
  2368. name: 'chainStockIncomeReport',
  2369. component: BlankLayout,
  2370. meta: {
  2371. title: '连锁库存总入报表',
  2372. icon: 'profile',
  2373. permission: 'M_chainStockIncomeReportList'
  2374. },
  2375. hideChildrenInMenu: true,
  2376. children: [
  2377. {
  2378. path: 'list',
  2379. name: 'chainStockIncomeReportList',
  2380. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainStockIncomeReport/list.vue'),
  2381. meta: {
  2382. title: '连锁库存总入报表列表',
  2383. icon: 'profile',
  2384. hidden: true,
  2385. permission: 'M_chainStockIncomeReportList'
  2386. }
  2387. }
  2388. ]
  2389. },
  2390. {
  2391. path: '/chainReportData/chainStockExpenditureReport',
  2392. redirect: '/chainReportData/chainStockExpenditureReport/list',
  2393. name: 'chainStockExpenditureReport',
  2394. component: BlankLayout,
  2395. meta: {
  2396. title: '连锁库存总出报表',
  2397. icon: 'profile',
  2398. permission: 'M_chainStockExpenditureReportList'
  2399. },
  2400. hideChildrenInMenu: true,
  2401. children: [
  2402. {
  2403. path: 'list',
  2404. name: 'chainStockExpenditureReportList',
  2405. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainStockExpenditureReport/list.vue'),
  2406. meta: {
  2407. title: '连锁库存总出报表列表',
  2408. icon: 'profile',
  2409. hidden: true,
  2410. permission: 'M_chainStockExpenditureReportList'
  2411. }
  2412. }
  2413. ]
  2414. },
  2415. {
  2416. path: '/chainReportData/chainStockReport',
  2417. redirect: '/chainReportData/chainStockReport/list',
  2418. name: 'chainStockReport',
  2419. component: BlankLayout,
  2420. meta: {
  2421. title: '连锁库存总表',
  2422. icon: 'profile',
  2423. permission: 'M_chainStockReportList'
  2424. },
  2425. hideChildrenInMenu: true,
  2426. children: [
  2427. {
  2428. path: 'list',
  2429. name: 'chainStockReportList',
  2430. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainStockReport/list.vue'),
  2431. meta: {
  2432. title: '连锁库存总表列表',
  2433. icon: 'profile',
  2434. hidden: true,
  2435. permission: 'M_chainStockReportList'
  2436. }
  2437. }
  2438. ]
  2439. },
  2440. {
  2441. path: '/chainReportData/chainPurchaseReceiptReport',
  2442. redirect: '/chainReportData/chainPurchaseReceiptReport/list',
  2443. name: 'chainPurchaseReceiptReport',
  2444. component: BlankLayout,
  2445. meta: {
  2446. title: '连锁采购入库报表',
  2447. icon: 'profile',
  2448. permission: 'M_chainPurchaseReceiptReportList'
  2449. },
  2450. hideChildrenInMenu: true,
  2451. children: [
  2452. {
  2453. path: 'list',
  2454. name: 'chainPurchaseReceiptReportList',
  2455. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainPurchaseReceiptReport/list.vue'),
  2456. meta: {
  2457. title: '连锁采购入库报表列表',
  2458. icon: 'profile',
  2459. hidden: true,
  2460. permission: 'M_chainPurchaseReceiptReportList'
  2461. }
  2462. }
  2463. ]
  2464. },
  2465. {
  2466. path: '/chainReportData/chainReceivedSendStorageReport',
  2467. redirect: '/chainReportData/chainReceivedSendStorageReport/list',
  2468. name: 'chainReceivedSendStorageReport',
  2469. component: BlankLayout,
  2470. meta: {
  2471. title: '连锁收发存报表',
  2472. icon: 'profile',
  2473. permission: 'M_chainReceivedSendStorageReportList'
  2474. },
  2475. hideChildrenInMenu: true,
  2476. children: [
  2477. {
  2478. path: 'list',
  2479. name: 'chainReceivedSendStorageReportList',
  2480. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainReceivedSendStorageReport/list.vue'),
  2481. meta: {
  2482. title: '连锁收发存报表列表',
  2483. icon: 'profile',
  2484. hidden: true,
  2485. permission: 'M_chainReceivedSendStorageReportList'
  2486. }
  2487. }
  2488. ]
  2489. }
  2490. ]
  2491. },
  2492. // 客户管理
  2493. {
  2494. path: '/customerManagement',
  2495. redirect: '/customerManagement/customerInfo',
  2496. component: PageView,
  2497. meta: {
  2498. title: '客户管理',
  2499. icon: 'idcard',
  2500. permission: 'M_customerInfoList'
  2501. },
  2502. children: [
  2503. {
  2504. path: '/customerManagement/customerInfo',
  2505. redirect: '/customerManagement/customerInfo/list',
  2506. name: 'customerInfo',
  2507. component: BlankLayout,
  2508. meta: {
  2509. title: '客户管理',
  2510. icon: 'idcard',
  2511. permission: 'M_customerInfoList'
  2512. },
  2513. hideChildrenInMenu: true,
  2514. children: [
  2515. {
  2516. path: 'list',
  2517. name: 'customerInfoList',
  2518. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  2519. meta: {
  2520. title: '客户列表',
  2521. icon: 'idcard',
  2522. hidden: true,
  2523. permission: 'M_customerInfoList'
  2524. }
  2525. },
  2526. {
  2527. path: 'add',
  2528. name: 'customerInfoAdd',
  2529. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  2530. meta: {
  2531. title: '新增客户',
  2532. icon: 'idcard',
  2533. hidden: true,
  2534. permission: 'B_customer_customerInfo_add'
  2535. }
  2536. },
  2537. {
  2538. path: 'edit/:id',
  2539. name: 'customerInfoEdit',
  2540. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  2541. meta: {
  2542. title: '编辑客户',
  2543. icon: 'idcard',
  2544. hidden: true,
  2545. permission: 'B_customer_customerInfo_edit'
  2546. }
  2547. }
  2548. ]
  2549. }
  2550. ]
  2551. },
  2552. // 产品管理
  2553. {
  2554. path: '/productManagement',
  2555. redirect: '/productManagement/productInfo',
  2556. component: PageView,
  2557. meta: {
  2558. title: '产品管理',
  2559. icon: 'shopping',
  2560. permission: 'M_product'
  2561. },
  2562. children: [
  2563. {
  2564. path: '/productManagement/productInfo',
  2565. redirect: '/productManagement/productInfo/list',
  2566. name: 'productInfo',
  2567. component: BlankLayout,
  2568. meta: {
  2569. title: '产品信息管理(自建)',
  2570. icon: 'file-text',
  2571. permission: 'M_dealerProductList'
  2572. },
  2573. hideChildrenInMenu: true,
  2574. children: [
  2575. {
  2576. path: 'list',
  2577. name: 'productInfoList',
  2578. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/list.vue'),
  2579. meta: {
  2580. title: '产品信息列表(自建)',
  2581. icon: 'file-text',
  2582. hidden: true,
  2583. permission: 'M_dealerProductList'
  2584. }
  2585. },
  2586. {
  2587. path: 'add',
  2588. name: 'productInfoAdd',
  2589. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  2590. meta: {
  2591. title: '新增产品',
  2592. icon: 'file-text',
  2593. hidden: true,
  2594. permission: 'B_product_dealerProduct_add'
  2595. }
  2596. },
  2597. {
  2598. path: 'edit/:id',
  2599. name: 'productInfoEdit',
  2600. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  2601. meta: {
  2602. title: '编辑产品',
  2603. icon: 'file-text',
  2604. hidden: true,
  2605. permission: 'B_product_dealerProduct_edit'
  2606. }
  2607. }
  2608. ]
  2609. },
  2610. {
  2611. path: '/productManagement/productInfoJg',
  2612. redirect: '/productManagement/productInfoJg/list',
  2613. name: 'productInfoJg',
  2614. component: BlankLayout,
  2615. meta: {
  2616. title: '产品信息管理(箭冠)',
  2617. icon: 'file-text',
  2618. permission: 'M_productInfoList'
  2619. },
  2620. hideChildrenInMenu: true,
  2621. children: [
  2622. {
  2623. path: 'list',
  2624. name: 'productInfoJgList',
  2625. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfoJg/list.vue'),
  2626. meta: {
  2627. title: '产品信息列表(箭冠)',
  2628. icon: 'file-text',
  2629. hidden: true,
  2630. permission: 'M_productInfoList'
  2631. }
  2632. }
  2633. ]
  2634. },
  2635. {
  2636. path: '/productManagement/productOnlineInfo',
  2637. redirect: '/productManagement/productOnlineInfo/list',
  2638. name: 'productOnlineInfo',
  2639. component: BlankLayout,
  2640. meta: {
  2641. title: '产品上线信息',
  2642. icon: 'file-text',
  2643. permission: 'M_productOnlineInfoList'
  2644. },
  2645. hideChildrenInMenu: true,
  2646. children: [
  2647. {
  2648. path: 'list',
  2649. name: 'productOnlineInfoList',
  2650. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productOnlineInfo/list.vue'),
  2651. meta: {
  2652. title: '产品上线信息列表',
  2653. icon: 'file-text',
  2654. hidden: true,
  2655. permission: 'M_productOnlineInfoList'
  2656. }
  2657. }
  2658. ]
  2659. },
  2660. {
  2661. path: '/productManagement/newProductList',
  2662. redirect: '/newProduct/list/:onlineFalg',
  2663. name: 'newProductList',
  2664. component: BlankLayout,
  2665. meta: {
  2666. title: '产品信息',
  2667. icon: 'sketch',
  2668. permission: 'M_newProductList'
  2669. },
  2670. hideChildrenInMenu: true,
  2671. children: [
  2672. // 新品列表-下线产品
  2673. {
  2674. path: '/newProduct/list/:onlineFalg',
  2675. name: 'newProductList',
  2676. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/list'),
  2677. meta: {
  2678. title: '新品信息',
  2679. icon: 'file-text',
  2680. hidden: true
  2681. }
  2682. },
  2683. // 产品详情
  2684. {
  2685. path: '/viewProduct/:sn',
  2686. name: 'viewProduct',
  2687. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/detail'),
  2688. meta: {
  2689. title: '产品详情',
  2690. icon: 'file-text',
  2691. replaceTab: true,
  2692. hidden: true
  2693. }
  2694. }
  2695. ]
  2696. },
  2697. {
  2698. path: '/productManagement/productBrand',
  2699. redirect: '/productManagement/productBrand/list',
  2700. name: 'productBrand',
  2701. component: BlankLayout,
  2702. meta: {
  2703. title: '产品品牌管理',
  2704. icon: 'sketch',
  2705. permission: 'M_dealerProductBrandList'
  2706. },
  2707. hideChildrenInMenu: true,
  2708. children: [
  2709. {
  2710. path: 'list',
  2711. name: 'productBrandList',
  2712. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productBrand/list.vue'),
  2713. meta: {
  2714. title: '产品品牌列表',
  2715. icon: 'sketch',
  2716. hidden: true,
  2717. permission: 'M_dealerProductBrandList'
  2718. }
  2719. }
  2720. ]
  2721. },
  2722. {
  2723. path: '/productManagement/productCategory',
  2724. redirect: '/productManagement/productCategory/list',
  2725. name: 'productCategory',
  2726. component: BlankLayout,
  2727. meta: {
  2728. title: '产品分类管理',
  2729. icon: 'sliders',
  2730. permission: 'M_dealerProductTypeList'
  2731. },
  2732. hideChildrenInMenu: true,
  2733. children: [
  2734. {
  2735. path: 'list',
  2736. name: 'productCategoryList',
  2737. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productCategory/list.vue'),
  2738. meta: {
  2739. title: '产品分类列表',
  2740. icon: 'sliders',
  2741. hidden: true,
  2742. permission: 'M_dealerProductTypeList'
  2743. }
  2744. }
  2745. ]
  2746. },
  2747. {
  2748. path: '/productManagement/priceChangeRecord',
  2749. redirect: '/productManagement/priceChangeRecord/list',
  2750. name: 'priceChangeRecord',
  2751. component: BlankLayout,
  2752. meta: {
  2753. title: '价格变更记录',
  2754. icon: 'sketch',
  2755. permission: 'M_priceChangeRecordList'
  2756. },
  2757. hideChildrenInMenu: true,
  2758. children: [
  2759. {
  2760. path: 'list',
  2761. name: 'priceChangeRecordList',
  2762. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  2763. meta: {
  2764. title: '价格变更记录列表',
  2765. icon: 'sketch',
  2766. hidden: true,
  2767. permission: 'M_priceChangeRecordList'
  2768. }
  2769. }
  2770. ]
  2771. }
  2772. ]
  2773. },
  2774. // 供应商管理
  2775. {
  2776. path: '/supplierManagement',
  2777. redirect: '/supplierManagement/supplierInfo',
  2778. component: PageView,
  2779. meta: {
  2780. title: '供应商管理',
  2781. icon: 'contacts',
  2782. permission: 'M_supplierInfoList'
  2783. },
  2784. children: [
  2785. {
  2786. path: '/supplierManagement/supplierInfo',
  2787. redirect: '/supplierManagement/supplierInfo/list',
  2788. name: 'supplierInfo',
  2789. component: BlankLayout,
  2790. meta: {
  2791. title: '供应商管理',
  2792. icon: 'contacts',
  2793. permission: 'M_supplierInfoList'
  2794. },
  2795. hideChildrenInMenu: true,
  2796. children: [
  2797. {
  2798. path: 'list',
  2799. name: 'supplierInfoList',
  2800. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  2801. meta: {
  2802. title: '供应商列表',
  2803. icon: 'contacts',
  2804. hidden: true,
  2805. permission: 'M_supplierInfoList'
  2806. }
  2807. }
  2808. ]
  2809. }
  2810. ]
  2811. },
  2812. // 中心店/配送店管理
  2813. {
  2814. path: '/storeManagement',
  2815. redirect: '/storeManagement/bind',
  2816. component: PageView,
  2817. meta: {
  2818. title: '中心店/配送店管理',
  2819. icon: 'bank',
  2820. permission: 'M_storeManagement'
  2821. },
  2822. children: [
  2823. {
  2824. path: '/storeManagement/bind',
  2825. redirect: '/storeManagement/bind/list',
  2826. name: 'storeManagementBind',
  2827. component: BlankLayout,
  2828. meta: {
  2829. title: '中心店/配送店绑定',
  2830. icon: 'link',
  2831. permission: 'M_storeManagementBindList'
  2832. },
  2833. hideChildrenInMenu: true,
  2834. children: [
  2835. {
  2836. path: 'list',
  2837. name: 'storeManagementBindList',
  2838. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/storeManagement/bind/list.vue'),
  2839. meta: {
  2840. title: '中心店/配送店绑定列表',
  2841. icon: 'link',
  2842. hidden: true,
  2843. permission: 'M_storeManagementBindList'
  2844. }
  2845. }
  2846. ]
  2847. },
  2848. {
  2849. path: '/storeManagement/userAuthorization',
  2850. redirect: '/storeManagement/userAuthorization/list',
  2851. name: 'storeManagementUserAuth',
  2852. component: BlankLayout,
  2853. meta: {
  2854. title: '中心店用户授权',
  2855. icon: 'link',
  2856. permission: 'M_storeManagementUserAuthList'
  2857. },
  2858. hideChildrenInMenu: true,
  2859. children: [
  2860. {
  2861. path: 'list',
  2862. name: 'storeManagementUserAuthList',
  2863. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/storeManagement/userAuthorization/list.vue'),
  2864. meta: {
  2865. title: '中心店用户授权列表',
  2866. icon: 'link',
  2867. hidden: true,
  2868. permission: 'M_storeManagementUserAuthList'
  2869. }
  2870. }
  2871. ]
  2872. }
  2873. ]
  2874. },
  2875. // 基础设置
  2876. {
  2877. path: '/basicData',
  2878. redirect: '/basicData/storeTransferOutTypeManagement',
  2879. component: PageView,
  2880. meta: {
  2881. title: '基础设置',
  2882. icon: 'setting',
  2883. permission: 'M_basicData'
  2884. },
  2885. children: [
  2886. {
  2887. path: '/basicData/storeTransferOutTypeManagement',
  2888. redirect: '/basicData/storeTransferOutTypeManagement/list',
  2889. name: 'storeTransferOutTypeManagement',
  2890. component: BlankLayout,
  2891. meta: {
  2892. title: '店内调出类型管理',
  2893. icon: 'interaction',
  2894. permission: 'M_storeTransferOutTypeList'
  2895. },
  2896. hideChildrenInMenu: true,
  2897. children: [
  2898. {
  2899. path: 'list',
  2900. name: 'storeTransferOutTypeManagementList',
  2901. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/storeTransferOutTypeManagement/list.vue'),
  2902. meta: {
  2903. title: '店内调出类型管理列表',
  2904. icon: 'interaction',
  2905. hidden: true,
  2906. permission: 'M_storeTransferOutTypeList'
  2907. }
  2908. }
  2909. ]
  2910. },
  2911. {
  2912. path: '/basicData/bulkPartsTypeManagement',
  2913. redirect: '/basicData/bulkPartsTypeManagement/list',
  2914. name: 'bulkPartsTypeManagement',
  2915. component: BlankLayout,
  2916. meta: {
  2917. title: '散件入库类型管理',
  2918. icon: 'gold',
  2919. permission: 'M_bulkPartsTypeList'
  2920. },
  2921. hideChildrenInMenu: true,
  2922. children: [
  2923. {
  2924. path: 'list',
  2925. name: 'bulkPartsTypeManagementList',
  2926. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/bulkPartsTypeManagement/list.vue'),
  2927. meta: {
  2928. title: '散件入库类型列表',
  2929. icon: 'gold',
  2930. hidden: true,
  2931. permission: 'M_bulkPartsTypeList'
  2932. }
  2933. }
  2934. ]
  2935. },
  2936. {
  2937. path: '/basicData/expenseType',
  2938. redirect: '/basicData/expenseType/list',
  2939. name: 'expenseType',
  2940. component: BlankLayout,
  2941. meta: {
  2942. title: '费用类型管理',
  2943. icon: 'pay-circle',
  2944. permission: 'M_expenseTypeList'
  2945. },
  2946. hideChildrenInMenu: true,
  2947. children: [
  2948. {
  2949. path: 'list',
  2950. name: 'expenseTypeList',
  2951. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/expenseType/list.vue'),
  2952. meta: {
  2953. title: '费用类型列表',
  2954. icon: 'pay-circle',
  2955. hidden: true,
  2956. permission: 'M_expenseTypeList'
  2957. }
  2958. }
  2959. ]
  2960. },
  2961. // {
  2962. // path: '/basicData/processSettings',
  2963. // redirect: '/basicData/processSettings/setup',
  2964. // name: 'processSettings',
  2965. // component: BlankLayout,
  2966. // meta: {
  2967. // title: '业务自动化设置',
  2968. // icon: 'sliders'
  2969. // // permission: 'M_goodsManage_list'
  2970. // },
  2971. // hideChildrenInMenu: true,
  2972. // children: [
  2973. // {
  2974. // path: 'setup',
  2975. // name: 'processSettingsSetup',
  2976. // component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/processSettings/setup.vue'),
  2977. // meta: {
  2978. // title: '业务自动化设置',
  2979. // icon: 'sliders',
  2980. // hidden: true
  2981. // // permission: 'M_goodsManage_list'
  2982. // }
  2983. // }
  2984. // ]
  2985. // },
  2986. {
  2987. path: '/basicData/customerTypeManagement',
  2988. redirect: '/basicData/customerTypeManagement/list',
  2989. name: 'customerTypeManagement',
  2990. component: BlankLayout,
  2991. meta: {
  2992. title: '客户类型管理',
  2993. icon: 'idcard',
  2994. permission: 'M_customerTypeList'
  2995. },
  2996. hideChildrenInMenu: true,
  2997. children: [
  2998. {
  2999. path: 'list',
  3000. name: 'customerTypeManagementList',
  3001. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/customerTypeManagement/list.vue'),
  3002. meta: {
  3003. title: '客户类型列表',
  3004. icon: 'idcard',
  3005. hidden: true,
  3006. permission: 'M_customerTypeList'
  3007. }
  3008. }
  3009. ]
  3010. }
  3011. ]
  3012. },
  3013. // auth
  3014. {
  3015. path: '/auth',
  3016. redirect: '/auth/userList',
  3017. component: PageView,
  3018. meta: {
  3019. title: '权限管理',
  3020. icon: 'key',
  3021. permission: 'M_powerMD_0'
  3022. },
  3023. children: [
  3024. {
  3025. path: '/auth/userList',
  3026. name: 'powerUser',
  3027. redirect: '/auth/userList/list',
  3028. component: BlankLayout,
  3029. meta: {
  3030. title: '用户管理',
  3031. icon: 'user',
  3032. permission: 'M_powerMD_user_list'
  3033. },
  3034. hideChildrenInMenu: true,
  3035. children: [
  3036. {
  3037. path: 'list',
  3038. name: 'powerUserList',
  3039. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  3040. meta: {
  3041. title: '用户管理',
  3042. icon: 'user',
  3043. permission: 'M_powerMD_user_list'
  3044. }
  3045. }
  3046. ]
  3047. },
  3048. {
  3049. path: '/auth/roleList',
  3050. name: 'powerRole',
  3051. redirect: '/auth/roleList/list',
  3052. component: BlankLayout,
  3053. meta: {
  3054. title: '角色管理',
  3055. icon: 'solution',
  3056. permission: 'M_powerMD_role_list'
  3057. },
  3058. hideChildrenInMenu: true,
  3059. children: [
  3060. {
  3061. path: 'list',
  3062. name: 'powerRoleList',
  3063. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  3064. meta: {
  3065. title: '角色管理',
  3066. icon: 'solution',
  3067. permission: 'M_powerMD_role_list'
  3068. }
  3069. }
  3070. ]
  3071. }
  3072. ]
  3073. }
  3074. ]
  3075. },
  3076. {
  3077. path: '*',
  3078. redirect: '/404',
  3079. hidden: true
  3080. }
  3081. ]
  3082. /**
  3083. * 基础路由
  3084. * @type { *[] }
  3085. */
  3086. export const constantRouterMap = [
  3087. {
  3088. path: '/user',
  3089. component: UserLayout,
  3090. redirect: '/user/login',
  3091. hidden: true,
  3092. children: [
  3093. {
  3094. path: 'login',
  3095. name: 'login',
  3096. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  3097. },
  3098. {
  3099. path: 'register',
  3100. name: 'register',
  3101. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  3102. },
  3103. {
  3104. path: 'register-result',
  3105. name: 'registerResult',
  3106. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  3107. },
  3108. {
  3109. path: 'recover',
  3110. name: 'recover',
  3111. component: undefined
  3112. }
  3113. ]
  3114. },
  3115. {
  3116. path: '/updateBrowser',
  3117. name: 'updateBrowser',
  3118. component: () => import(/* webpackChunkName: "user" */ '@/views/exception/updateBrowser')
  3119. },
  3120. {
  3121. path: '/404',
  3122. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  3123. }
  3124. ]