Browse Source

报表权限

chenrui 3 năm trước cách đây
mục cha
commit
0c002b9b51
1 tập tin đã thay đổi với 34 bổ sung34 xóa
  1. 34 34
      src/config/router.config.js

+ 34 - 34
src/config/router.config.js

@@ -1796,8 +1796,8 @@ export const asyncRouterMap = [
         component: PageView,
         meta: {
           title: '报表',
-          icon: 'project'
-          // permission: 'M_basicData'
+          icon: 'project',
+          permission: 'M_reportData'
         },
         children: [
           {
@@ -1807,8 +1807,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '连锁库存总表(天)',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_chainStockReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1819,8 +1819,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '连锁库存总表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_chainStockReportList'
                 }
               }
             ]
@@ -1832,8 +1832,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '连锁销售报表(天)',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_chainSalesReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1844,8 +1844,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '连锁销售报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_chainSalesReportList'
                 }
               }
             ]
@@ -1857,8 +1857,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '连锁销售明细报表(天)',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_chainSalesDetailReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1869,8 +1869,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '连锁销售明细报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_chainSalesDetailReportList'
                 }
               }
             ]
@@ -1882,8 +1882,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '连锁收发存报表',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_chainReceivedSendStorageReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1894,8 +1894,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '连锁收发存报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_chainReceivedSendStorageReportList'
                 }
               }
             ]
@@ -1907,8 +1907,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '大客户报表(天)',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_customerReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1919,8 +1919,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '大客户报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_customerReportList'
                 }
               }
             ]
@@ -1932,8 +1932,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '库存总入报表',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_stockIncomeReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1944,8 +1944,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '库存总入报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_stockIncomeReportList'
                 }
               }
             ]
@@ -1957,8 +1957,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '库存总出报表',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_stockExpenditureReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1969,8 +1969,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '库存总出报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_stockExpenditureReportList'
                 }
               }
             ]
@@ -1982,8 +1982,8 @@ export const asyncRouterMap = [
             component: RouteView,
             meta: {
               title: '收发存报表',
-              icon: 'profile'
-              // permission: 'M_warehouseList'
+              icon: 'profile',
+              permission: 'M_receivedSendStorageReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -1994,8 +1994,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '收发存报表列表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_warehouseList'
+                  hidden: true,
+                  permission: 'M_receivedSendStorageReportList'
                 }
               }
             ]