12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378 |
- // eslint-disable-next-line
- import {
- UserLayout,
- BasicLayout,
- RouteView,
- BlankLayout,
- PageView
- } from '@/layouts'
- export const asyncRouterMap = [
- {
- path: '/',
- name: 'index',
- component: BasicLayout,
- meta: {
- title: '首页'
- },
- redirect: '/home',
- children: [
- {
- path: '/home',
- name: 'home',
- redirect: '/home',
- component: PageView,
- meta: {
- title: '首页',
- icon: 'home'
- },
- hideChildrenInMenu: true,
- children: [{
- path: '/home',
- name: 'home',
- component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
- meta: {
- title: '首页',
- icon: 'home',
- hide: true
- }
- }]
- },
- {
- path: '/changePwd',
- name: 'changePwd',
- component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
- meta: {
- title: '修改密码',
- icon: 'home'
- },
- hidden: true
- },
- // 新品列表
- {
- path: '/newProduct/list/:onlineFalg',
- name: 'newProductList',
- component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/list'),
- meta: {
- title: '新品信息',
- icon: 'home'
- },
- hidden: true
- },
- // 产品详情
- {
- path: '/viewProduct/:sn',
- name: 'viewProduct',
- component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/detail'),
- meta: {
- title: '产品详情',
- icon: 'home'
- },
- hidden: true
- },
- // 销售管理
- {
- path: '/salesManagement',
- redirect: '/salesManagement/salesQuery',
- component: PageView,
- meta: {
- title: '销售管理',
- icon: 'account-book',
- permission: 'M_salesManagement'
- },
- children: [
- {
- path: '/salesManagement/salesQuery',
- redirect: '/salesManagement/salesQuery/list',
- name: 'salesQuery',
- component: BlankLayout,
- meta: {
- title: '销售单查询',
- icon: 'monitor',
- permission: 'M_salesQueryList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesQueryList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
- meta: {
- title: '销售单列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_salesQueryList'
- }
- },
- {
- path: 'detail/:sn',
- name: 'salesDetail',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
- meta: {
- title: '销售单详情',
- icon: 'monitor',
- hidden: true
- // permission: 'M_salesDetail'
- }
- },
- {
- path: 'add/:sn',
- name: 'salesAdd',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
- meta: {
- title: '新增销售单',
- icon: 'monitor',
- hidden: true
- // permission: 'M_salesNew'
- }
- },
- {
- path: 'edit/:sn',
- name: 'salesEdit',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
- meta: {
- title: '编辑销售单',
- icon: 'monitor',
- hidden: true
- // permission: 'M_salesNew'
- }
- },
- {
- path: 'waitDispatch/:salesBillSn/:dispatchBillSn',
- name: 'waitDispatch',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/waitDispatch/edit.vue'),
- meta: {
- title: '下推销售单',
- icon: 'monitor',
- replaceTab: true,
- hidden: true
- // permission: 'M_salesNew'
- }
- }
- ]
- },
- {
- path: '/salesManagement/examineVerify',
- redirect: '/salesManagement/examineVerify/list',
- name: 'examineVerify',
- component: BlankLayout,
- meta: {
- title: '备货审核',
- icon: 'audit',
- permission: 'M_examineVerifyList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'examineVerifyList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
- meta: {
- title: '备货审核列表',
- icon: 'audit',
- hidden: true,
- permission: 'M_examineVerifyList'
- }
- }
- ]
- },
- {
- path: '/salesManagement/outboundOrder',
- redirect: '/salesManagement/outboundOrder/list',
- name: 'outboundOrder',
- component: BlankLayout,
- meta: {
- title: '出库',
- icon: 'export',
- permission: 'M_outboundOrderList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'outboundOrderList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
- meta: {
- title: '出库列表',
- icon: 'export',
- hidden: true,
- permission: 'M_outboundOrderList'
- }
- }
- ]
- },
- {
- path: '/salesManagement/pushOrderManagement',
- redirect: '/salesManagement/pushOrderManagement/list',
- name: 'pushOrderManagement',
- component: BlankLayout,
- meta: {
- title: '下推订单列表',
- icon: 'vertical-align-bottom',
- permission: 'M_pushOrderManagementList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'pushOrderManagementList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/list.vue'),
- meta: {
- title: '下推订单列表',
- icon: 'vertical-align-bottom',
- hidden: true,
- permission: 'M_pushOrderManagementList'
- }
- },
- {
- path: 'detail/:sn/:type',
- name: 'pushOrderDetail',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/detail.vue'),
- meta: {
- title: '下推订单详情',
- icon: 'vertical-align-bottom',
- hidden: true
- // permission: 'M_outboundList'
- }
- }
- ]
- },
- {
- path: '/salesManagement/salesReturn',
- redirect: '/salesManagement/salesReturn/list',
- name: 'salesReturn',
- component: BlankLayout,
- meta: {
- title: '销售退货列表',
- icon: 'fund',
- permission: 'M_salesReturnList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesReturnList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
- meta: {
- title: '销售退货列表',
- icon: 'fund',
- hidden: true,
- permission: 'M_salesReturnList'
- }
- },
- {
- path: 'detail/:sn',
- name: 'salesReturnDetail',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
- meta: {
- title: '销售退货详情',
- icon: 'fund',
- hidden: true
- // permission: 'M_salesReturn'
- }
- },
- {
- path: 'salesReturnGrabEdit/:sn/:buyerSn',
- name: 'salesReturnGrabEdit',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
- meta: {
- title: '编辑销售退货(抓单)',
- icon: 'fund',
- hidden: true
- // permission: 'M_salesReturnGrabEdit'
- }
- },
- {
- path: 'salesReturnEdit/:sn/:buyerSn',
- name: 'salesReturnEdit',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
- meta: {
- title: '编辑销售退货(不抓单)',
- icon: 'fund',
- hidden: true
- // permission: 'M_salesReturnEdit'
- }
- },
- {
- path: 'check/:sn',
- name: 'salesReturnCheck',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnCheck.vue'),
- meta: {
- title: '销售退货品检',
- icon: 'fund',
- replaceTab: true,
- hidden: true
- // permission: 'M_salesReturnCheck'
- }
- }
- ]
- },
- {
- path: '/salesManagement/backorder',
- redirect: '/salesManagement/backorder/list',
- name: 'backorder',
- component: BlankLayout,
- meta: {
- title: '销售缺货列表',
- icon: 'exception',
- permission: 'M_backorderList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'backorderList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
- meta: {
- title: '销售缺货列表',
- icon: 'exception',
- hidden: true,
- permission: 'M_backorderList'
- }
- }
- ]
- },
- {
- path: '/salesManagement/shortageStatisticsC',
- redirect: '/salesManagement/shortageStatisticsC/list',
- name: 'shortageStatisticsC',
- component: BlankLayout,
- meta: {
- title: '缺货统计(按客户)',
- icon: 'file-done',
- permission: 'M_shortageStatisticsCList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'shortageStatisticsCList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/shortageStatisticsC/list.vue'),
- meta: {
- title: '缺货统计列表',
- icon: 'file-done',
- hidden: true,
- permission: 'M_shortageStatisticsCList'
- }
- }
- ]
- },
- {
- path: '/salesManagement/shortageStatisticsP',
- redirect: '/salesManagement/shortageStatisticsP/list',
- name: 'shortageStatisticsP',
- component: BlankLayout,
- meta: {
- title: '缺货统计(按产品)',
- icon: 'file-protect',
- permission: 'M_shortageStatisticsPList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'shortageStatisticsPList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/shortageStatisticsP/list.vue'),
- meta: {
- title: '缺货统计列表',
- icon: 'file-protect',
- hidden: true,
- permission: 'M_shortageStatisticsPList'
- }
- }
- ]
- },
- {
- path: '/salesManagement/priceInquiry',
- redirect: '/salesManagement/priceInquiry/list',
- name: 'priceInquiry',
- component: BlankLayout,
- meta: {
- title: '价格查询',
- icon: 'file-protect',
- permission: 'M_priceInquiryList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'priceInquiryList',
- component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/priceInquiry/list.vue'),
- meta: {
- title: '价格查询列表',
- icon: 'file-protect',
- hidden: true,
- permission: 'M_priceInquiryList'
- }
- }
- ]
- }
- ]
- },
- // 采购管理
- {
- path: '/purchasingManagement',
- redirect: '/purchasingManagement/purchaseOrder',
- component: PageView,
- meta: {
- title: '采购管理',
- icon: 'money-collect',
- permission: 'M_purchasingManagement'
- },
- children: [
- {
- path: '/purchasingManagement/bulkWarehousingOrder',
- redirect: '/purchasingManagement/bulkWarehousingOrder/list',
- name: 'bulkWarehousingOrder',
- component: BlankLayout,
- meta: {
- title: '散件入库',
- icon: 'gold',
- permission: 'M_bulkWarehousingOrderList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'bulkWarehousingOrderList',
- component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/bulkWarehousingOrder/list.vue'),
- meta: {
- title: '散件入库单列表',
- icon: 'gold',
- hidden: true,
- permission: 'M_bulkWarehousingOrderList'
- }
- },
- {
- path: 'add/:id/:sn',
- name: 'bulkWarehousingOrderAdd',
- component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
- meta: {
- title: '新增散件入库单',
- icon: 'gold',
- hidden: true
- }
- },
- {
- path: 'edit/:id/:sn',
- name: 'bulkWarehousingOrderEdit',
- component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
- meta: {
- title: '编辑散件入库单',
- icon: 'gold',
- hidden: true
- }
- }
- ]
- }
- ]
- },
- // 财务管理
- {
- path: '/financialManagement',
- redirect: '/financialManagement/returnConfirmation',
- component: PageView,
- meta: {
- title: '财务管理',
- icon: 'property-safety',
- permission: 'M_financialManagement'
- },
- children: [
- {
- path: '/financialManagement/warehousingConfirmation',
- redirect: '/financialManagement/warehousingConfirmation/list',
- name: 'warehousingConfirmation',
- component: BlankLayout,
- meta: {
- title: '入库确认',
- icon: 'vertical-align-bottom',
- permission: 'M_warehousingConfirmationList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'warehousingConfirmationList',
- component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
- meta: {
- title: '入库确认列表',
- icon: 'vertical-align-bottom',
- hidden: true,
- permission: 'M_warehousingConfirmationList'
- }
- }
- ]
- },
- {
- path: '/financialManagement/returnConfirmation',
- redirect: '/financialManagement/returnConfirmation/list',
- name: 'returnConfirmation',
- component: BlankLayout,
- meta: {
- title: '退货确认',
- icon: 'vertical-align-top',
- permission: 'M_returnConfirmationList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'returnConfirmationList',
- component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
- meta: {
- title: '退货确认列表',
- icon: 'vertical-align-top',
- hidden: true,
- permission: 'M_returnConfirmationList'
- }
- }
- ]
- },
- {
- path: '/financialManagement/inventoryConfirmation',
- redirect: '/financialManagement/inventoryConfirmation/list',
- name: 'inventoryConfirmation',
- component: BlankLayout,
- meta: {
- title: '盘点确认',
- icon: 'monitor',
- permission: 'M_inventoryConfirmationList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'inventoryConfirmationList',
- component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryConfirmation/list.vue'),
- meta: {
- title: '盘点确认列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_inventoryConfirmationList'
- }
- },
- {
- path: 'detail/:sn',
- name: 'inventoryConfirmationDetail',
- component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryConfirmation/detail.vue'),
- meta: {
- title: '盘点确认详情',
- icon: 'monitor',
- hidden: true,
- permission: 'B_inventoryConfirmationDetail'
- }
- }
- ]
- },
- {
- path: '/financialManagement/financialCollection',
- redirect: '/financialManagement/financialCollection/list',
- name: 'financialCollection',
- component: BlankLayout,
- meta: {
- title: '财务收款',
- icon: 'pay-circle',
- permission: 'M_financialCollectionList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'financialCollectionList',
- component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
- meta: {
- title: '财务收款列表',
- icon: 'pay-circle',
- hidden: true,
- permission: 'M_financialCollectionList'
- }
- }
- ]
- }
- ]
- },
- // 库存管理
- {
- path: '/inventoryManagement',
- redirect: '/inventoryManagement/inventoryQuery',
- component: PageView,
- meta: {
- title: '库存管理',
- icon: 'shop',
- permission: 'M_inventoryManagement'
- },
- children: [
- {
- path: '/inventoryManagement/inventoryQuery',
- redirect: '/inventoryManagement/inventoryQuery/list',
- name: 'inventoryQuery',
- component: BlankLayout,
- meta: {
- title: '库存查询',
- icon: 'monitor',
- permission: 'M_inventoryQueryList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'inventoryQueryList',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
- meta: {
- title: '库存列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_inventoryQueryList'
- }
- },
- {
- path: 'warehouseDetail/:sn',
- name: 'inventoryQueryWarehouseDetail',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
- meta: {
- title: '出入库明细',
- icon: 'monitor',
- replaceTab: true,
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- },
- {
- path: '/inventoryManagement/inventoryCheck',
- redirect: '/inventoryManagement/inventoryCheck/list/0',
- name: 'inventoryCheck',
- component: BlankLayout,
- meta: {
- title: '库存盘点',
- icon: 'monitor',
- permission: 'M_inventoryCheckList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list/:type',
- name: 'inventoryCheckList',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryCheck/list.vue'),
- meta: {
- title: '库存盘点列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_inventoryCheckList'
- }
- },
- {
- path: 'detail/:sn',
- name: 'inventoryCheckDetail',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryCheck/detail.vue'),
- meta: {
- title: '库存盘点详情',
- icon: 'monitor',
- hidden: true,
- replaceTab: true,
- permission: 'B_inventoryCheckDetail'
- }
- }
- ]
- },
- {
- path: '/inventoryManagement/makeInventory',
- redirect: '/inventoryManagement/makeInventory/list',
- name: 'makeInventory',
- component: BlankLayout,
- meta: {
- title: '盘点人盘点',
- icon: 'monitor',
- permission: 'M_inventoryMakeInventoryList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'makeInventoryList',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/makeInventory/list.vue'),
- meta: {
- title: '盘点人盘点列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_inventoryMakeInventoryList'
- }
- },
- {
- path: 'check/:sn',
- name: 'makeInventoryCheck',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/makeInventory/check.vue'),
- meta: {
- title: '盘点人盘点',
- icon: 'monitor',
- hidden: true,
- replaceTab: true,
- permission: 'B_inventoryMakeInventoryCheck'
- }
- }
- ]
- },
- {
- path: '/inventoryManagement/supervisionDisk',
- redirect: '/inventoryManagement/supervisionDisk/list',
- name: 'supervisionDisk',
- component: BlankLayout,
- meta: {
- title: '监盘人盘点',
- icon: 'monitor',
- permission: 'M_supervisionDiskList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'supervisionDiskList',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/supervisionDisk/list.vue'),
- meta: {
- title: '监盘人盘点列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_supervisionDiskList'
- }
- },
- {
- path: 'check/:sn',
- name: 'supervisionDiskCheck',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/supervisionDisk/check.vue'),
- meta: {
- title: '监盘人监盘',
- icon: 'monitor',
- replaceTab: true,
- hidden: true,
- permission: 'B_supervisionDiskCheck'
- }
- }
- ]
- },
- {
- path: '/inventoryManagement/inventoryWarning',
- name: 'inventoryWarningList',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
- meta: {
- title: '库存预警',
- icon: 'alert',
- permission: 'M_inventoryWarningList'
- }
- },
- {
- path: '/inventoryManagement/intelligentReplenishment',
- redirect: '/inventoryManagement/intelligentReplenishment/list',
- name: 'intelligentReplenishment',
- component: BlankLayout,
- meta: {
- title: '智能补货',
- icon: 'monitor',
- permission: 'M_intelligentReplenishmentList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'intelligentReplenishmentList',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/list.vue'),
- meta: {
- title: '智能补货列表',
- icon: 'monitor',
- hidden: true,
- permission: 'M_intelligentReplenishmentList'
- }
- },
- {
- path: 'add/:sn',
- name: 'intelligentReplenishmentAdd',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
- meta: {
- title: '新增智能补货',
- icon: 'monitor',
- hidden: true
- }
- },
- {
- path: 'edit/:sn',
- name: 'intelligentReplenishmentEdit',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
- meta: {
- title: '编辑智能补货',
- icon: 'monitor',
- hidden: true
- }
- },
- {
- path: 'set',
- name: 'intelligentReplenishmentSet',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/set.vue'),
- meta: {
- title: '基础信息设置',
- icon: 'monitor',
- hidden: true
- }
- },
- {
- path: 'import',
- name: 'intelligentReplenishmentImport',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/import.vue'),
- meta: {
- title: '确认导入',
- icon: 'monitor',
- hidden: true
- }
- },
- {
- path: 'explainXsbz',
- name: 'intelligentReplenishmentExplainXsbz',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/explainXsbz.vue'),
- meta: {
- title: '销售保障法-说明',
- icon: 'monitor',
- hidden: true
- }
- },
- {
- path: 'explainQspj',
- name: 'intelligentReplenishmentExplainQspj',
- component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/intelligentReplenishment/explainQspj.vue'),
- meta: {
- title: '趋势平均法-说明',
- icon: 'monitor',
- hidden: true
- }
- }
- ]
- }
- ]
- },
- // 调拨管理
- {
- path: '/allocationManagement',
- redirect: '/allocationManagement/transferOut',
- component: PageView,
- meta: {
- title: '调拨管理',
- icon: 'cluster',
- permission: 'M_allocationManagement'
- },
- children: [
- {
- path: '/allocationManagement/transferOut',
- redirect: '/allocationManagement/transferOut/list',
- name: 'transferOut',
- component: BlankLayout,
- meta: {
- title: '调拨列表',
- icon: 'pull-request',
- permission: 'M_transferOutList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'transferOutList',
- component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/list.vue'),
- meta: {
- title: '调拨列表',
- icon: 'pull-request',
- hidden: true,
- permission: 'M_transferOutList'
- }
- },
- {
- path: 'add/:sn/:dealerLevel',
- name: 'transferOutAdd',
- component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/edit.vue'),
- meta: {
- title: '新增调拨单',
- icon: 'pull-request',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'edit/:sn/:dealerLevel',
- name: 'transferOutEdit',
- component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/edit.vue'),
- meta: {
- title: '编辑调拨单',
- icon: 'pull-request',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'detail/:sn',
- name: 'transferOutDetail',
- component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/transferOut/detail.vue'),
- meta: {
- title: '调拨单详情',
- icon: 'pull-request',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- }
- ]
- },
- // 报表
- {
- path: '/reportData',
- redirect: '/reportData/salesOrderTotal',
- component: PageView,
- meta: {
- title: '报表',
- icon: 'project',
- permission: 'M_reportData'
- },
- children: [
- {
- path: '/reportData/salesOrderTotal',
- redirect: '/reportData/salesOrderTotal/list',
- name: 'salesOrderTotal',
- component: BlankLayout,
- meta: {
- title: '销售(开单统计)',
- icon: 'profile',
- permission: 'M_salesOrderTotalList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesOrderTotalList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesOrderTotal/list.vue'),
- meta: {
- title: '销售(开单统计)列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesOrderTotalList'
- }
- }
- ]
- },
- {
- path: '/reportData/salesDetails',
- redirect: '/reportData/salesDetails/list',
- name: 'salesDetails',
- component: BlankLayout,
- meta: {
- title: '销售明细(开单统计)',
- icon: 'profile',
- permission: 'M_salesDetailsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesDetailsList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesDetails/list.vue'),
- meta: {
- title: '销售明细列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesDetailsList'
- }
- }
- ]
- },
- {
- path: '/reportData/actualSalesReport',
- redirect: '/reportData/actualSalesReport/list',
- name: 'actualSalesReport',
- component: BlankLayout,
- meta: {
- title: '实售销售报表',
- icon: 'profile',
- permission: 'M_actualSalesReportList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'actualSalesReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/actualSalesReport/list.vue'),
- meta: {
- title: '实售销售列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_actualSalesReportList'
- }
- }
- ]
- },
- {
- path: '/reportData/salesAmountReport',
- redirect: '/reportData/salesAmountReport/list',
- name: 'salesAmountReport',
- component: BlankLayout,
- meta: {
- title: '开单销售报表',
- icon: 'profile',
- permission: 'M_salesAmountReportList'
- },
- hideChildrenInMenu: true,
- children: [{
- path: 'list',
- name: 'salesAmountReportList',
- component: () => import(/* webpackChunkName: "reportData" */
- '@/views/reportData/salesAmountReport/list.vue'),
- meta: {
- title: '开单销售报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesAmountReportList'
- }
- }]
- },
- {
- path: '/reportData/salesSlipReport',
- redirect: '/reportData/salesSlipReport/list',
- name: 'salesSlipReport',
- component: BlankLayout,
- meta: {
- title: '开单销售单报表',
- icon: 'profile',
- permission: 'M_salesSlipReportList'
- },
- hideChildrenInMenu: true,
- children: [{
- path: 'list',
- name: 'salesSlipReportList',
- component: () => import(/* webpackChunkName: "reportData" */
- '@/views/reportData/salesSlipReport/list.vue'),
- meta: {
- title: '开单销售单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesSlipReportList'
- }
- }]
- },
- {
- path: '/reportData/allocationOrderTotal',
- redirect: '/reportData/allocationOrderTotal/list',
- name: 'allocationOrderTotal',
- component: BlankLayout,
- meta: {
- title: '调拨开单统计',
- icon: 'profile',
- permission: 'M_allocationOrderTotalList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'allocationOrderTotalList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationOrderTotal/list.vue'),
- meta: {
- title: '调拨开单列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_allocationOrderTotalList'
- }
- }
- ]
- },
- {
- path: '/reportData/allocationDetails',
- redirect: '/reportData/allocationDetails/list',
- name: 'allocationDetails',
- component: BlankLayout,
- meta: {
- title: '调拨明细',
- icon: 'profile',
- permission: 'M_allocationDetailsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'allocationDetailsList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationDetails/list.vue'),
- meta: {
- title: '调拨明细列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_allocationDetailsList'
- }
- }
- ]
- },
- {
- path: '/reportData/salesReturnsReport',
- redirect: '/reportData/salesReturnsReport/list',
- name: 'salesReturnsReport',
- component: BlankLayout,
- meta: {
- title: '销售退货单报表',
- icon: 'profile',
- permission: 'M_salesReturnsReportList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesReturnsReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnsReport/list.vue'),
- meta: {
- title: '销售退货单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesReturnsReportList'
- }
- }
- ]
- },
- {
- path: '/reportData/salesReturnDetailReport',
- redirect: '/reportData/salesReturnDetailReport/list',
- name: 'salesReturnDetailReport',
- component: BlankLayout,
- meta: {
- title: '销售退货明细报表',
- icon: 'profile',
- permission: 'M_salesReturnDetailReportList'
- },
- hideChildrenInMenu: true,
- children: [{
- path: 'list',
- name: 'salesReturnDetailReportList',
- component: () => import(/* webpackChunkName: "reportData" */
- '@/views/reportData/salesReturnDetailReport/list.vue'),
- meta: {
- title: '销售退货明细报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesReturnDetailReportList'
- }
- }]
- },
- {
- path: '/reportData/salesReturnReport',
- redirect: '/reportData/salesReturnReport/list',
- name: 'salesReturnReport',
- component: BlankLayout,
- meta: {
- title: '实售退货报表',
- icon: 'profile',
- permission: 'M_salesReturnReportList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesReturnReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnReport/list.vue'),
- meta: {
- title: '实售退货列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesReturnReportList'
- }
- }
- ]
- },
- {
- path: '/reportData/billingReturnReport',
- redirect: '/reportData/billingReturnReport/list',
- name: 'billingReturnReport',
- component: BlankLayout,
- meta: {
- title: '开单退货报表',
- icon: 'profile',
- permission: 'M_billingReturnReportList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'billingReturnReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/billingReturnReport/list.vue'),
- meta: {
- title: '开单退货列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_billingReturnReportList'
- }
- }
- ]
- },
- {
- path: '/reportData/returnSlipReport',
- redirect: '/reportData/returnSlipReport/list',
- name: 'returnSlipReport',
- component: BlankLayout,
- meta: {
- title: '开单退货单报表',
- icon: 'profile',
- permission: 'M_returnSlipReportList'
- },
- hideChildrenInMenu: true,
- children: [{
- path: 'list',
- name: 'returnSlipReportList',
- component: () => import(/* webpackChunkName: "reportData" */
- '@/views/reportData/returnSlipReport/list.vue'),
- meta: {
- title: '开单退货单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_returnSlipReportList'
- }
- }]
- },
- {
- path: '/reportData/hPriceDifferenceDetailReport',
- redirect: '/reportData/hPriceDifferenceDetailReport/list',
- name: 'hPriceDifferenceDetailReport',
- component: BlankLayout,
- meta: {
- title: '总部差价明细报表',
- icon: 'profile',
- permission: 'M_hPriceDifferenceDetailReportList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'hPriceDifferenceDetailReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/hPriceDifferenceDetailReport/list.vue'),
- meta: {
- title: '总部差价明细列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_hPriceDifferenceDetailReportList'
- }
- }
- ]
- },
- {
- path: '/reportData/priceDifferenceDetailReport',
- redirect: '/reportData/priceDifferenceDetailReport/list',
- name: 'priceDifferenceDetailReport',
- component: BlankLayout,
- meta: {
- title: '差价明细报表',
- icon: 'profile',
- permission: 'M_priceDifferenceDetailReportList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'priceDifferenceDetailReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/priceDifferenceDetailReport/list.vue'),
- meta: {
- title: '差价明细列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_priceDifferenceDetailReportList'
- }
- }
- ]
- },
- {
- path: '/reportData/regionTypeSalesReport',
- redirect: '/reportData/regionTypeSalesReport/list',
- name: 'regionTypeSalesReport',
- component: BlankLayout,
- meta: {
- title: '各省品类实售明细',
- icon: 'profile'
- // permission: 'M_nationalCustomerCostStatisticsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'regionTypeSalesReportList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/regionTypeSalesReport/list.vue'),
- meta: {
- title: '各省品类实售明细',
- icon: 'profile',
- hidden: true
- // permission: 'M_nationalCustomerCostStatisticsList'
- }
- }
- ]
- },
- {
- path: '/reportData/warehousingOrder',
- redirect: '/reportData/warehousingOrder/list',
- name: 'warehousingOrder',
- component: BlankLayout,
- meta: {
- title: '入库单报表',
- icon: 'profile',
- permission: 'M_warehousingOrderList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'warehousingOrderList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/warehousingOrder/list.vue'),
- meta: {
- title: '入库单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_warehousingOrderList'
- }
- }
- ]
- },
- {
- path: '/reportData/warehousingOrderDetail',
- redirect: '/reportData/warehousingOrderDetail/list',
- name: 'warehousingOrderDetail',
- component: BlankLayout,
- meta: {
- title: '入库单明细报表',
- icon: 'profile',
- permission: 'M_warehousingOrderDetailList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'warehousingOrderDetailList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/warehousingOrderDetail/list.vue'),
- meta: {
- title: '入库单明细报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_warehousingOrderDetailList'
- }
- }
- ]
- },
- {
- path: '/reportData/salesPresentation',
- redirect: '/reportData/salesPresentation/list',
- name: 'salesPresentation',
- component: BlankLayout,
- meta: {
- title: '销售交单报表',
- icon: 'profile',
- permission: 'M_salesPresentationList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'salesPresentationList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesPresentation/list.vue'),
- meta: {
- title: '销售交单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_salesPresentationList'
- }
- }
- ]
- },
- {
- path: '/reportData/allocationPresentation',
- redirect: '/reportData/allocationPresentation/list',
- name: 'allocationPresentation',
- component: BlankLayout,
- meta: {
- title: '调拨交单报表',
- icon: 'profile',
- permission: 'M_allocationPresentationList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'allocationPresentationList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationPresentation/list.vue'),
- meta: {
- title: '调拨交单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_allocationPresentationList'
- }
- }
- ]
- },
- {
- path: '/reportData/returnGoodsPresentation',
- redirect: '/reportData/returnGoodsPresentation/list',
- name: 'returnGoodsPresentation',
- component: BlankLayout,
- meta: {
- title: '退货交单报表',
- icon: 'profile',
- permission: 'M_returnGoodsPresentationList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'returnGoodsPresentationList',
- component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/returnGoodsPresentation/list.vue'),
- meta: {
- title: '退货交单报表列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_returnGoodsPresentationList'
- }
- }
- ]
- }
- // {
- // path: '/reportData/allCountryCostReport',
- // redirect: '/reportData/allCountryCostReport/list',
- // name: 'allCountryCostReport',
- // component: BlankLayout,
- // meta: {
- // title: '全国费用统计报表',
- // icon: 'profile'
- // // permission: 'M_nationalCustomerCostStatisticsList'
- // },
- // hideChildrenInMenu: true,
- // children: [
- // {
- // path: 'list',
- // name: 'allCountryCostReportList',
- // component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allCountryCostReport/list.vue'),
- // meta: {
- // title: '全国费用统计报表',
- // icon: 'profile',
- // hidden: true
- // // permission: 'M_nationalCustomerCostStatisticsList'
- // }
- // }
- // ]
- // }
- ]
- },
- // 数据导出
- {
- path: '/dataExport',
- redirect: '/dataExport/exportCheck',
- component: PageView,
- meta: {
- title: '数据导出',
- icon: 'money-collect',
- permission: 'M_dataExport'
- },
- children: [
- {
- path: '/dataExport/exportCheck',
- redirect: '/dataExport/exportCheck/list',
- name: 'exportCheck',
- component: BlankLayout,
- meta: {
- title: '导出盘点',
- icon: 'gold',
- permission: 'M_exportCheck'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'exportCheckList',
- component: () => import(/* webpackChunkName: "dataExport" */ '@/views/dataExport/exportCheck/list.vue'),
- meta: {
- title: '导出盘点',
- icon: 'gold',
- hidden: true,
- permission: 'M_exportCheck'
- }
- }
- ]
- }
- ]
- },
- // 产品管理
- {
- path: '/productManagement',
- redirect: '/productManagement/productInfo',
- component: PageView,
- meta: {
- title: '产品管理',
- icon: 'shopping',
- permission: 'M_productManagement'
- },
- children: [
- {
- path: '/productManagement/productInfo',
- redirect: '/productManagement/productInfo/list',
- name: 'productInfo',
- component: BlankLayout,
- meta: {
- title: '产品列表',
- icon: 'gold',
- permission: 'M_productInfoList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productInfoList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/list.vue'),
- meta: {
- title: '产品列表',
- icon: 'gold',
- hidden: true,
- permission: 'M_productInfoList'
- }
- },
- {
- path: 'add',
- name: 'productInfoAdd',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
- meta: {
- title: '新增产品',
- icon: 'gold',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'edit/:id/:sn',
- name: 'productInfoEdit',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
- meta: {
- title: '编辑产品',
- icon: 'gold',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- },
- {
- path: '/productManagement/productPricing',
- redirect: '/productManagement/productPricing/list',
- name: 'productPricing',
- component: BlankLayout,
- meta: {
- title: '产品定价',
- icon: 'transaction',
- permission: 'M_productPricingList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productPricingList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productPricing/list.vue'),
- meta: {
- title: '产品定价列表',
- icon: 'transaction',
- hidden: true,
- permission: 'M_productPricingList'
- }
- }
- ]
- },
- {
- path: '/productManagement/productLaunchAudit',
- redirect: '/productManagement/productLaunchAudit/list',
- name: 'productLaunchAudit',
- component: BlankLayout,
- meta: {
- title: '产品上线审核',
- icon: 'rise',
- permission: 'M_productLaunchAuditList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productLaunchAuditList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLaunchAudit/list.vue'),
- meta: {
- title: '产品上线审核列表',
- icon: 'rise',
- hidden: true,
- permission: 'M_productLaunchAuditList'
- }
- }
- ]
- },
- {
- path: '/productManagement/productOfflineAudit',
- redirect: '/productManagement/productOfflineAudit/list',
- name: 'productOfflineAudit',
- component: BlankLayout,
- meta: {
- title: '产品下线审核',
- icon: 'fall',
- permission: 'M_productOfflineAuditList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productOfflineAuditList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productOfflineAudit/list.vue'),
- meta: {
- title: '产品下线审核列表',
- icon: 'fall',
- hidden: true,
- permission: 'M_productOfflineAuditList'
- }
- }
- ]
- },
- {
- path: '/productManagement/priceChangeRecord',
- redirect: '/productManagement/priceChangeRecord/list',
- name: 'priceChangeRecord',
- component: BlankLayout,
- meta: {
- title: '价格变更记录',
- icon: 'profile',
- permission: 'M_priceChangeRecordList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'priceChangeRecordList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/priceChangeRecord/list.vue'),
- meta: {
- title: '价格变更记录列表',
- icon: 'profile',
- hidden: true,
- permission: 'M_priceChangeRecordList'
- }
- }
- ]
- },
- {
- path: '/productManagement/productUniversal',
- redirect: '/productManagement/productUniversal/list',
- name: 'productUniversal',
- component: BlankLayout,
- meta: {
- title: '通用产品管理',
- icon: 'deployment-unit',
- permission: 'M_productUniversalList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productUniversalList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productUniversal/list.vue'),
- meta: {
- title: '通用产品列表',
- icon: 'deployment-unit',
- hidden: true,
- permission: 'M_productUniversalList'
- }
- }
- ]
- },
- {
- path: '/productManagement/productLevel',
- redirect: '/productManagement/productLevel/list',
- name: 'productLevel',
- component: BlankLayout,
- meta: {
- title: '产品级别管理',
- icon: 'fund',
- permission: 'M_productLevelList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productLevelList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLevel/list.vue'),
- meta: {
- title: '产品级别列表',
- icon: 'fund',
- hidden: true,
- permission: 'M_productLevelList'
- }
- }
- ]
- },
- {
- path: '/productManagement/productBrand',
- redirect: '/productManagement/productBrand/list',
- name: 'productBrand',
- component: BlankLayout,
- meta: {
- title: '产品品牌管理',
- icon: 'file-ppt',
- permission: 'M_productBrandList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productBrandList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productBrand/list.vue'),
- meta: {
- title: '产品品牌列表',
- icon: 'file-ppt',
- hidden: true,
- permission: 'M_productBrandList'
- }
- }
- ]
- },
- {
- path: '/productManagement/productCategory',
- redirect: '/productManagement/productCategory/list',
- name: 'productCategory',
- component: BlankLayout,
- meta: {
- title: '产品分类管理',
- icon: 'radar-chart',
- permission: 'M_productCategoryList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productCategoryList',
- component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productCategory/list.vue'),
- meta: {
- title: '产品分类列表',
- icon: 'radar-chart',
- hidden: true,
- permission: 'M_productCategoryList'
- }
- }
- ]
- }
- ]
- },
- // 经销商管理
- {
- path: '/dealerManagement',
- redirect: '/dealerManagement/marketingDivisionSet',
- component: PageView,
- meta: {
- title: '经销商管理',
- icon: 'idcard',
- permission: 'M_dealerManagement'
- },
- children: [
- {
- path: '/dealerManagement/merchantInfoManagement',
- redirect: '/dealerManagement/merchantInfoManagement/list',
- name: 'merchantInfoManagement',
- component: BlankLayout,
- meta: {
- title: '经销商资料管理',
- icon: 'file-text',
- permission: 'M_merchantInfoManagementList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'merchantInfoManagementList',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/list.vue'),
- meta: {
- title: '经销商资料列表',
- icon: 'file-text',
- hidden: true,
- permission: 'M_merchantInfoManagementList'
- }
- },
- {
- path: 'add',
- name: 'merchantInfoManagementAdd',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
- meta: {
- title: '新增经销商',
- icon: 'file-text',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'edit/:id',
- name: 'merchantInfoManagementEdit',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
- meta: {
- title: '编辑经销商',
- icon: 'file-text',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'permissionSetting/:sn',
- name: 'merchantInfoManagementSet',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/permissionSetting.vue'),
- meta: {
- title: '经销权设置',
- icon: 'file-text',
- replaceTab: true,
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- },
- {
- path: '/dealerManagement/dealerAccountManagement',
- redirect: '/dealerManagement/dealerAccountManagement/list',
- name: 'dealerAccountManagement',
- component: BlankLayout,
- meta: {
- title: '经销商账号管理',
- icon: 'team',
- permission: 'M_dealerAccountManagementList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'dealerAccountManagementList',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
- meta: {
- title: '经销商账号列表',
- icon: 'team',
- hidden: true,
- permission: 'M_dealerAccountManagementList'
- }
- }
- ]
- },
- {
- path: '/dealerManagement/dealerRelationshipBinding',
- redirect: '/dealerManagement/dealerRelationshipBinding/list',
- name: 'dealerRelationshipBinding',
- component: BlankLayout,
- meta: {
- title: '经销商关系绑定',
- icon: 'share-alt',
- permission: 'M_dealerRelationshipBindingList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'dealerRelationshipBindingList',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
- meta: {
- title: '经销商关系绑定列表',
- icon: 'share-alt',
- hidden: true,
- permission: 'M_dealerRelationshipBindingList'
- }
- }
- ]
- },
- {
- path: '/dealerManagement/rebateSettings',
- redirect: '/dealerManagement/rebateSettings/list',
- name: 'rebateSettings',
- component: BlankLayout,
- meta: {
- title: '差价归属设置',
- icon: 'stock',
- permission: 'M_rebateSettingsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'rebateSettingsList',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/rebateSettings/list.vue'),
- meta: {
- title: '差价归属设置列表',
- icon: 'stock',
- hidden: true,
- permission: 'M_rebateSettingsList'
- }
- }
- ]
- },
- {
- path: '/dealerManagement/marketingDivisionSet',
- redirect: '/dealerManagement/marketingDivisionSet/list',
- name: 'marketingDivisionSet',
- component: BlankLayout,
- meta: {
- title: '营销分区设置',
- icon: 'setting',
- permission: 'M_marketingDivisionSetList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'marketingDivisionSetList',
- component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
- meta: {
- title: '营销分区列表',
- icon: 'setting',
- hidden: true,
- permission: 'M_marketingDivisionSetList'
- }
- }
- ]
- }
- ]
- },
- // 供应商管理
- {
- path: '/supplierManagement',
- redirect: '/supplierManagement/supplierInfo',
- component: PageView,
- meta: {
- title: '供应商管理',
- icon: 'team',
- permission: 'M_supplierManagement'
- },
- children: [
- {
- path: '/supplierManagement/supplierInfo',
- redirect: '/supplierManagement/supplierInfo/list',
- name: 'supplierInfo',
- component: BlankLayout,
- meta: {
- title: '供应商列表',
- icon: 'team',
- permission: 'M_supplierInfoList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'supplierInfoList',
- component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
- meta: {
- title: '供应商列表',
- icon: 'team',
- hidden: true,
- permission: 'M_supplierInfoList'
- }
- },
- {
- path: 'add',
- name: 'supplierInfoAdd',
- component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
- meta: {
- title: '新增供应商',
- icon: 'team',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'edit/:id',
- name: 'supplierInfoEdit',
- component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
- meta: {
- title: '编辑供应商',
- icon: 'team',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'associatedProduct/:sn/:name',
- name: 'associatedProduct',
- component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProduct/add.vue'),
- meta: {
- title: '关联产品',
- icon: 'team',
- replaceTab: true,
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- },
- {
- path: '/supplierManagement/associatedProductDetails',
- redirect: '/supplierManagement/associatedProductDetails/list',
- name: 'associatedProductDetails',
- component: BlankLayout,
- meta: {
- title: '关联产品明细表',
- icon: 'build',
- permission: 'M_associatedProductDetailsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'associatedProductDetailsList',
- component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
- meta: {
- title: '关联产品明细列表',
- icon: 'build',
- hidden: true,
- permission: 'M_associatedProductDetailsList'
- }
- }
- ]
- }
- ]
- },
- // 促销管理
- {
- path: '/promotionRulesManagement',
- redirect: '/promotionRulesManagement/promotionRules',
- component: PageView,
- meta: {
- title: '促销管理',
- icon: 'rocket',
- permission: 'M_promotionRulesManagement'
- },
- children: [
- {
- path: '/promotionRulesManagement/promotionRules',
- redirect: '/promotionRulesManagement/promotionRules/list',
- name: 'promotionRules',
- component: BlankLayout,
- meta: {
- title: '促销规则管理',
- icon: 'thunderbolt',
- permission: 'M_promotionRulesList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'promotionRulesManagementList',
- component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
- meta: {
- title: '促销规则列表',
- icon: 'thunderbolt',
- hidden: true,
- permission: 'M_promotionRulesList'
- }
- },
- {
- path: 'detail/:id/:sn',
- name: 'promotionRulesManagementDetail',
- component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
- meta: {
- title: '促销规则详情',
- icon: 'thunderbolt',
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- },
- {
- path: 'rule/:id/:sn',
- name: 'promotionRulesManagementRule',
- component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
- meta: {
- title: '促销规则设置',
- icon: 'thunderbolt',
- replaceTab: true,
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- },
- {
- path: '/promotionRulesManagement/orderStatistics',
- redirect: '/promotionRulesManagement/orderStatistics/list',
- name: 'orderStatistics',
- component: BlankLayout,
- meta: {
- title: '促销订单统计',
- icon: 'contacts',
- permission: 'M_orderStatisticsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'orderStatisticsList',
- component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
- meta: {
- title: '订单统计列表',
- icon: 'contacts',
- hidden: true,
- permission: 'M_orderStatisticsList'
- }
- }
- ]
- },
- {
- path: '/promotionRulesManagement/productStatistics',
- redirect: '/promotionRulesManagement/productStatistics/list',
- name: 'productStatistics',
- component: BlankLayout,
- meta: {
- title: '促销产品统计',
- icon: 'file-ppt',
- permission: 'M_productStatisticsList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'productStatisticsList',
- component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
- meta: {
- title: '产品统计列表',
- icon: 'file-ppt',
- hidden: true,
- permission: 'M_productStatisticsList'
- }
- }
- ]
- }
- ]
- },
- // 基础设置
- {
- path: '/basicData',
- redirect: '/basicData/warehouse',
- component: PageView,
- meta: {
- title: '基础设置',
- icon: 'pushpin',
- permission: 'M_basicData'
- },
- children: [
- {
- path: '/basicData/warehouse',
- redirect: '/basicData/warehouse/list',
- name: 'warehouse',
- component: BlankLayout,
- meta: {
- title: '仓库管理',
- icon: 'deployment-unit',
- permission: 'M_warehouseList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'warehouseList',
- component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/warehouse/list.vue'),
- meta: {
- title: '仓库列表',
- icon: 'deployment-unit',
- hidden: true,
- permission: 'M_warehouseList'
- }
- },
- {
- path: '/basicData/storingLocation/:sn',
- name: 'storingLocationList',
- component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
- meta: {
- title: '仓位列表',
- icon: 'deployment-unit',
- replaceTab: true,
- hidden: true
- // permission: 'B_goodsManage_edit'
- }
- }
- ]
- },
- {
- path: '/basicData/transferTypeManagement',
- redirect: '/basicData/transferTypeManagement/list',
- name: 'transferTypeManagement',
- component: BlankLayout,
- meta: {
- title: '调拨类型管理',
- icon: 'interaction',
- permission: 'M_transferTypeManagementList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'transferTypeManagementList',
- component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/transferTypeManagement/list.vue'),
- meta: {
- title: '调拨类型列表',
- icon: 'interaction',
- hidden: true,
- permission: 'M_transferTypeManagementList'
- }
- }
- ]
- }
- ]
- },
- // 权限管理
- {
- path: '/auth',
- redirect: '/auth/userList',
- component: PageView,
- meta: {
- title: '权限管理',
- icon: 'lock',
- permission: 'M_auth_0'
- },
- children: [
- {
- path: '/auth/userList',
- name: 'powerUserList',
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
- meta: {
- title: '用户管理',
- icon: 'user',
- permission: 'M_userList'
- }
- },
- {
- path: '/auth/roleList',
- name: 'powerRoleList',
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
- meta: {
- title: '角色管理',
- icon: 'solution',
- permission: 'M_roleList'
- }
- },
- {
- path: '/menusAuth/adminMenus',
- name: 'adminMenus',
- component: () => import(/* webpackChunkName: "auth" */ '@/views/bnSetting/menu/adminMenus.vue'),
- meta: {
- title: '菜单管理',
- icon: 'appstore',
- permission: 'M_menuList'
- }
- }
- ]
- },
- // 系统设置
- {
- path: '/setting',
- redirect: '/setting/userList',
- component: PageView,
- meta: {
- title: '系统设置',
- icon: 'setting',
- permission: 'M_systemSet'
- },
- children: [
- {
- path: '/setting/dataDictionary',
- name: 'powerDD',
- component: () => import(/* webpackChunkName: "setting" */
- '@/views/power/dataDictionary/dataDictionary.vue'),
- meta: {
- title: '数据字典管理',
- icon: 'database',
- permission: 'M_dataD_lookup'
- }
- },
- // {
- // path: '/setting/register',
- // name: 'powerRegister',
- // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
- // meta: {
- // title: '参数管理',
- // icon: 'key',
- // permission: 'M_sys_register'
- // }
- // },
- {
- path: '/setting/OperateJournal',
- name: 'powerOperateJournal',
- component: () => import(/* webpackChunkName: "setting" */
- '@/views/power/OperateJournal/OperateJournal.vue'),
- meta: {
- title: '操作日志',
- icon: 'read',
- permission: 'M_OperateJournalList'
- }
- },
- {
- path: '/setting/noticeManagement',
- redirect: '/setting/noticeManagement/list',
- name: 'noticeManagement',
- component: BlankLayout,
- meta: {
- title: '公告管理',
- icon: 'sketch',
- permission: 'M_noticeManagementList'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: 'list',
- name: 'noticeManagementList',
- component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/noticeManagement/list.vue'),
- meta: {
- title: '公告列表',
- icon: 'sketch',
- hidden: true,
- permission: 'M_noticeManagementList'
- }
- }
- ]
- }
- ]
- },
- // 公告
- {
- path: '/notice',
- name: 'notice',
- component: () => import(/* webpackChunkName: "home" */ '@/views/setting/notice/list'),
- meta: {
- title: '公告',
- icon: 'bell'
- },
- hidden: true
- }
- ]
- },
- {
- path: '*',
- redirect: '/404',
- hidden: true
- }
- ]
- /**
- * 基础路由
- * @type { *[] }
- */
- export const constantRouterMap = [
- {
- path: '/user',
- component: UserLayout,
- redirect: '/user/login',
- hidden: true,
- children: [
- {
- path: 'login',
- name: 'login',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
- },
- {
- path: 'register',
- name: 'register',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
- },
- {
- path: 'register-result',
- name: 'registerResult',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
- },
- {
- path: 'recover',
- name: 'recover',
- component: undefined
- }
- ]
- },
- {
- path: '/404',
- component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
- }
- ]
|