瀏覽代碼

路由调整

立航 饭 1 天之前
父節點
當前提交
4c341009b4
共有 2 個文件被更改,包括 15 次插入15 次删除
  1. 13 13
      src/router/index.js
  2. 2 2
      src/views/orders/batchImportWeightV2.vue

+ 13 - 13
src/router/index.js

@@ -478,7 +478,7 @@ export const asyncRoutes = [
             cache: true,
             title: '空派',
             icon: 'el-icon-s-promotion',
-            roles: ['系统管理员', '客服', '行运易','销售', '仓库管理员', '物流管理员', '财务'] // you can set roles in root nav
+            roles: ['系统管理员', '客服', '行运易', '销售', '仓库管理员', '物流管理员', '财务'] // you can set roles in root nav
           },
           children: [
             {
@@ -505,7 +505,7 @@ export const asyncRoutes = [
               name: 'Income',
               meta: {
                 title: '空派收入',
-                roles: ['系统管理员', '行运易', '客服', '财务','销售'] // or you can only set roles in sub nav
+                roles: ['系统管理员', '行运易', '客服', '财务', '销售'] // or you can only set roles in sub nav
               }
             },
             {
@@ -523,7 +523,7 @@ export const asyncRoutes = [
               name: 'GrossSales',
               meta: {
                 title: '销售毛利报表',
-                roles: ['系统管理员', '行运易', '客服', '财务','销售'] // or you can only set roles in sub nav
+                roles: ['系统管理员', '行运易', '客服', '财务', '销售'] // or you can only set roles in sub nav
               }
             }
           ]
@@ -596,7 +596,7 @@ export const asyncRoutes = [
             title: '郑州E速宝下单',
             roles: ['系统管理员', '客服'] // or you can only set roles in sub nav
           }
-        },{
+        }, {
           path: 'paymentIoss',
           component: () => import('@/views/orders/temporaryPaymentIOSS'),
           name: 'TemporaryPaymentIOSS',
@@ -663,7 +663,7 @@ export const asyncRoutes = [
           name: 'BatchImportWeight',
           meta: {
             title: '批量导入实重',
-            roles: ['系统管理员', '财务'] // or you can only set roles in sub nav
+            roles: ['系统管理员', '财务', '计费重更新'] // or you can only set roles in sub nav
           }
         },
         {
@@ -737,7 +737,7 @@ export const asyncRoutes = [
             title: '上门取件预报',
             roles: ['系统管理员', '客服'] // or you can only set roles in sub nav
           }
-        },
+        }
         ]
       },
       {
@@ -803,7 +803,7 @@ export const asyncRoutes = [
           cache: true,
           title: '日志',
           icon: 'el-icon-notebook-2',
-          roles: ['系统管理员', '客服', '行运易', '仓库管理员','销售'] // you can set roles in root nav
+          roles: ['系统管理员', '客服', '行运易', '仓库管理员', '销售'] // you can set roles in root nav
         },
         children: [
           {
@@ -868,7 +868,7 @@ export const asyncRoutes = [
               title: '欠费提醒记录',
               roles: ['系统管理员', '仓库管理员', '行运易', '销售'] // or you can only set roles in sub nav
             }
-          },
+          }
         ]
       },
       {
@@ -1005,7 +1005,7 @@ export const asyncRoutes = [
             title: '运费试算',
             roles: ['系统管理员', '行运易', '客服'] // or you can only set roles in sub nav
           }
-        },
+        }
           // , {
           //   path: 'previewTemp',
           //   component: () => import('@/views/imageGenerate/previewTemp'),
@@ -1047,7 +1047,7 @@ export const asyncRoutes = [
           title: '意大利清关箱号',
           roles: ['系统管理员', '客服', '行运易']
         }
-      },
+      }
     ]
   },
   {
@@ -1317,7 +1317,7 @@ export const asyncRoutes = [
           title: 'E速宝轨迹预警',
           roles: ['系统管理员', '行运易', '客服'] // or you can only set roles in sub nav
         }
-      },{
+      }, {
         path: 'trackMonitor',
         component: () => import('@/views/tracking/ESuibao/trackMonitor'),
         name: 'TrackMonitor',
@@ -1664,7 +1664,7 @@ export const asyncRoutes = [
           cache: true,
           title: '申报',
           icon: 'el-icon-money',
-          roles: ['系统管理员','行运易', '客服', '渠道运营'] // you can set roles in root nav
+          roles: ['系统管理员', '行运易', '客服', '渠道运营'] // you can set roles in root nav
         },
 
         children: [
@@ -1755,7 +1755,7 @@ export const asyncRoutes = [
               title: '服务商重量随机调整',
               roles: ['系统管理员', '渠道运营'] // or you can only set roles in sub nav
             }
-          },
+          }
         ]
       }
     ]

+ 2 - 2
src/views/orders/batchImportWeightV2.vue

@@ -162,7 +162,7 @@ export default {
   data() {
     const validatePositiveInteger = ({ cellValue }) => {
       if (!Number.isInteger(cellValue) || cellValue <= 0) {
-        return new Error('实重(KG)必须是正整数');
+        return new Error('实重(KG)必须是正整数')
       }
       return true
     }
@@ -324,7 +324,7 @@ export default {
     },
     // 校验表头
     checkArrayHead(arr) {
-      const xlsxHead = ["运单号", "实重(KG)", "收货时间"]
+      const xlsxHead = ['运单号', '实重(KG)', '收货时间']
       if (arr && arr.length !== xlsxHead.length) return false
       if (arr.every((item, index) => item === xlsxHead[index])) {
         return true