productManagement.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. import {
  2. UserLayout,
  3. BasicLayout,
  4. BlankLayout,
  5. BigScreen,
  6. PageView
  7. } from '@/layouts'
  8. export default {
  9. path: '/productManagement',
  10. redirect: '/productManagement/productInfo',
  11. component: PageView,
  12. meta: {
  13. title: '产品管理',
  14. icon: 'shopping',
  15. permission: 'M_productManagement'
  16. },
  17. children: [
  18. {
  19. path: '/productManagement/productInfo',
  20. redirect: '/productManagement/productInfo/list',
  21. name: 'productInfo',
  22. component: BlankLayout,
  23. meta: {
  24. title: '产品列表',
  25. icon: 'gold',
  26. permission: 'M_productInfoList'
  27. },
  28. hideChildrenInMenu: true,
  29. children: [
  30. {
  31. path: 'list',
  32. name: 'productInfoList',
  33. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/list.vue'),
  34. meta: {
  35. title: '产品列表',
  36. icon: 'gold',
  37. hidden: true,
  38. permission: 'M_productInfoList'
  39. }
  40. },
  41. {
  42. path: 'add',
  43. name: 'productInfoAdd',
  44. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  45. meta: {
  46. title: '新增产品',
  47. icon: 'gold',
  48. hidden: true
  49. // permission: 'B_goodsManage_edit'
  50. }
  51. },
  52. {
  53. path: 'edit/:id/:sn',
  54. name: 'productInfoEdit',
  55. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  56. meta: {
  57. title: '编辑产品',
  58. icon: 'gold',
  59. hidden: true
  60. // permission: 'B_goodsManage_edit'
  61. }
  62. }
  63. ]
  64. },
  65. {
  66. path: '/productManagement/productPricing',
  67. redirect: '/productManagement/productPricing/list',
  68. name: 'productPricing',
  69. component: BlankLayout,
  70. meta: {
  71. title: '产品定价',
  72. icon: 'transaction',
  73. permission: 'M_productPricingList'
  74. },
  75. hideChildrenInMenu: true,
  76. children: [
  77. {
  78. path: 'list',
  79. name: 'productPricingList',
  80. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productPricing/list.vue'),
  81. meta: {
  82. title: '产品定价列表',
  83. icon: 'transaction',
  84. hidden: true,
  85. permission: 'M_productPricingList'
  86. }
  87. }
  88. ]
  89. },
  90. {
  91. path: '/productManagement/productLaunchAudit',
  92. redirect: '/productManagement/productLaunchAudit/list',
  93. name: 'productLaunchAudit',
  94. component: BlankLayout,
  95. meta: {
  96. title: '产品上线审核',
  97. icon: 'rise',
  98. permission: 'M_productLaunchAuditList'
  99. },
  100. hideChildrenInMenu: true,
  101. children: [
  102. {
  103. path: 'list',
  104. name: 'productLaunchAuditList',
  105. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLaunchAudit/list.vue'),
  106. meta: {
  107. title: '产品上线审核列表',
  108. icon: 'rise',
  109. hidden: true,
  110. permission: 'M_productLaunchAuditList'
  111. }
  112. }
  113. ]
  114. },
  115. {
  116. path: '/productManagement/newProduct',
  117. redirect: '/productManagement/newProduct/list/onlineInfo/1',
  118. name: 'productLaunchInfo',
  119. component: BlankLayout,
  120. meta: {
  121. title: '产品上线信息',
  122. icon: 'rise',
  123. permission: 'M_productLaunchInfoList'
  124. },
  125. hideChildrenInMenu: true,
  126. children: [
  127. {
  128. path: 'list/:type/:onlineFalg',
  129. name: 'productLaunchInfoList',
  130. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/list.vue'),
  131. meta: {
  132. title: '产品上线信息列表',
  133. icon: 'rise',
  134. hidden: true,
  135. permission: 'M_productLaunchInfoList'
  136. }
  137. }
  138. ]
  139. },
  140. {
  141. path: '/productManagement/productOfflineAudit',
  142. redirect: '/productManagement/productOfflineAudit/list',
  143. name: 'productOfflineAudit',
  144. component: BlankLayout,
  145. meta: {
  146. title: '产品下线审核',
  147. icon: 'fall',
  148. permission: 'M_productOfflineAuditList'
  149. },
  150. hideChildrenInMenu: true,
  151. children: [
  152. {
  153. path: 'list',
  154. name: 'productOfflineAuditList',
  155. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productOfflineAudit/list.vue'),
  156. meta: {
  157. title: '产品下线审核列表',
  158. icon: 'fall',
  159. hidden: true,
  160. permission: 'M_productOfflineAuditList'
  161. }
  162. }
  163. ]
  164. },
  165. {
  166. path: '/productManagement/productNotOnline',
  167. redirect: '/productManagement/productNotOnline/list',
  168. name: 'productNotOnline',
  169. component: BlankLayout,
  170. meta: {
  171. title: '产品状态信息',
  172. icon: 'fall',
  173. permission: 'M_productNotOnlineList'
  174. },
  175. hideChildrenInMenu: true,
  176. children: [
  177. {
  178. path: 'list',
  179. name: 'productNotOnlineList',
  180. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productNotOnline/list.vue'),
  181. meta: {
  182. title: '产品状态信息列表',
  183. icon: 'fall',
  184. hidden: true,
  185. permission: 'M_productNotOnlineList'
  186. }
  187. }
  188. ]
  189. },
  190. {
  191. path: '/productManagement/priceChangeRecord',
  192. redirect: '/productManagement/priceChangeRecord/list',
  193. name: 'priceChangeRecord',
  194. component: BlankLayout,
  195. meta: {
  196. title: '价格变更记录',
  197. icon: 'profile',
  198. permission: 'M_priceChangeRecordList'
  199. },
  200. hideChildrenInMenu: true,
  201. children: [
  202. {
  203. path: 'list',
  204. name: 'priceChangeRecordList',
  205. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  206. meta: {
  207. title: '价格变更记录列表',
  208. icon: 'profile',
  209. hidden: true,
  210. permission: 'M_priceChangeRecordList'
  211. }
  212. }
  213. ]
  214. },
  215. {
  216. path: '/productManagement/productUniversal',
  217. redirect: '/productManagement/productUniversal/list',
  218. name: 'productUniversal',
  219. component: BlankLayout,
  220. meta: {
  221. title: '通用产品管理',
  222. icon: 'deployment-unit',
  223. permission: 'M_productUniversalList'
  224. },
  225. hideChildrenInMenu: true,
  226. children: [
  227. {
  228. path: 'list',
  229. name: 'productUniversalList',
  230. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productUniversal/list.vue'),
  231. meta: {
  232. title: '通用产品列表',
  233. icon: 'deployment-unit',
  234. hidden: true,
  235. permission: 'M_productUniversalList'
  236. }
  237. }
  238. ]
  239. },
  240. {
  241. path: '/productManagement/productLevel',
  242. redirect: '/productManagement/productLevel/list',
  243. name: 'productLevel',
  244. component: BlankLayout,
  245. meta: {
  246. title: '产品级别管理',
  247. icon: 'fund',
  248. permission: 'M_productLevelList'
  249. },
  250. hideChildrenInMenu: true,
  251. children: [
  252. {
  253. path: 'list',
  254. name: 'productLevelList',
  255. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLevel/list.vue'),
  256. meta: {
  257. title: '产品级别列表',
  258. icon: 'fund',
  259. hidden: true,
  260. permission: 'M_productLevelList'
  261. }
  262. }
  263. ]
  264. },
  265. {
  266. path: '/productManagement/productBrand',
  267. redirect: '/productManagement/productBrand/list',
  268. name: 'productBrand',
  269. component: BlankLayout,
  270. meta: {
  271. title: '产品品牌管理',
  272. icon: 'file-ppt',
  273. permission: 'M_productBrandList'
  274. },
  275. hideChildrenInMenu: true,
  276. children: [
  277. {
  278. path: 'list',
  279. name: 'productBrandList',
  280. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productBrand/list.vue'),
  281. meta: {
  282. title: '产品品牌列表',
  283. icon: 'file-ppt',
  284. hidden: true,
  285. permission: 'M_productBrandList'
  286. }
  287. }
  288. ]
  289. },
  290. {
  291. path: '/productManagement/productCategory',
  292. redirect: '/productManagement/productCategory/list',
  293. name: 'productCategory',
  294. component: BlankLayout,
  295. meta: {
  296. title: '产品分类管理',
  297. icon: 'radar-chart',
  298. permission: 'M_productCategoryList'
  299. },
  300. hideChildrenInMenu: true,
  301. children: [
  302. {
  303. path: 'list',
  304. name: 'productCategoryList',
  305. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productCategory/list.vue'),
  306. meta: {
  307. title: '产品分类列表',
  308. icon: 'radar-chart',
  309. hidden: true,
  310. permission: 'M_productCategoryList'
  311. }
  312. }
  313. ]
  314. },
  315. {
  316. path: '/productManagement/shelfNoManage',
  317. redirect: '/productManagement/shelfNoManage/list',
  318. name: 'shelfNoManage',
  319. component: BlankLayout,
  320. meta: {
  321. title: '货位编号管理',
  322. icon: 'radar-chart',
  323. permission: 'M_shelfNoManageList'
  324. },
  325. hideChildrenInMenu: true,
  326. children: [
  327. {
  328. path: 'list',
  329. name: 'shelfNoManageList',
  330. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/shelfNoManage/list.vue'),
  331. meta: {
  332. title: '货位编号管理',
  333. icon: 'radar-chart',
  334. hidden: true,
  335. permission: 'M_shelfNoManageList'
  336. }
  337. }
  338. ]
  339. },
  340. {
  341. path: '/productManagement/productSourcePath',
  342. redirect: '/productManagement/productSourcePath/list',
  343. name: 'productSourcePath',
  344. component: BlankLayout,
  345. meta: {
  346. title: '唯一码追溯列表',
  347. icon: 'radar-chart',
  348. permission: 'M_productSourcePathList'
  349. },
  350. hideChildrenInMenu: true,
  351. children: [
  352. {
  353. path: 'list',
  354. name: 'productSourcePathList',
  355. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productSourcePath/list.vue'),
  356. meta: {
  357. title: '唯一码追溯列表',
  358. icon: 'radar-chart',
  359. hidden: true,
  360. permission: 'M_productSourcePathList'
  361. }
  362. }
  363. ]
  364. },
  365. {
  366. path: '/productManagement/foreignTradeGoods',
  367. redirect: '/productManagement/foreignTradeGoods/list',
  368. name: 'foreignTradeGoods',
  369. component: BlankLayout,
  370. meta: {
  371. title: '外贸产品',
  372. icon: 'radar-chart',
  373. permission: 'M_foreignTradeGoodsList'
  374. },
  375. hideChildrenInMenu: true,
  376. children: [
  377. {
  378. path: 'list',
  379. name: 'foreignTradeGoodsList',
  380. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/foreignTradeGoods/list.vue'),
  381. meta: {
  382. title: '外贸产品',
  383. icon: 'radar-chart',
  384. hidden: true,
  385. permission: 'M_foreignTradeGoodsList'
  386. }
  387. }
  388. ]
  389. }
  390. ]
  391. }