| | |
| | | import Layout from "@/layout/index"; |
| | | import ParentView from "@/components/ParentView"; |
| | | import InnerLink from "@/layout/components/InnerLink"; |
| | | |
| | | import { getLoginPageSource } from "@/utils/loginSource"; // 导入登录来源判断工具 |
| | | const permission = { |
| | | state: { |
| | | routes: [], |
| | |
| | | actions: { |
| | | // 生成路由 |
| | | GenerateRoutes({ commit }) { |
| | | // 示例:根据登录来源执行不同的逻辑 |
| | | const loginSource = getLoginPageSource(); |
| | | console.log(`用户从 ${loginSource} 页面登录`); |
| | | |
| | | var HIsHide = false; |
| | | if(loginSource=="loginTMS"){ |
| | | HIsHide = true; |
| | | } |
| | | |
| | | return new Promise((resolve) => { |
| | | // 向后端请求路由数据 |
| | | let data = [ |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "销售管理", |
| | | title: "物流管理", |
| | | }, |
| | | hidden: false, |
| | | name: "Logistics", |
| | | path: "/logistics", |
| | | redirect: "noRedirect", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "运输定位", |
| | | }, |
| | | hidden: false, |
| | | name: "TransportGPS", |
| | | path: "transportGPS", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "出运单", |
| | | }, |
| | | component: () => |
| | | import("@/views/logistics/transportGPS/WL_YayBill.vue"), |
| | | hidden: false, |
| | | name: "WL_YayBill", |
| | | path: "WL_YayBill", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "运输定位", |
| | | }, |
| | | hidden: HIsHide, |
| | | name: "WayBillPaymentBill", |
| | | path: "WayBillPaymentBill", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "运单费用结算单", |
| | | }, |
| | | component: () => |
| | | import( |
| | | "@/views/logistics/WayBillPaymentBill/Pay_WayBillPaymentBillList.vue" |
| | | ), |
| | | hidden: HIsHide, |
| | | name: "payWayBillPaymentBillList", |
| | | path: "PayWayBillPaymentBillList", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | alwaysShow: true, |
| | | component: "Layout", |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "销售管理", |
| | | }, |
| | | hidden: HIsHide, |
| | | name: "Sell", |
| | | path: "/sell", |
| | | redirect: "noRedirect", |
| | |
| | | noCache: false, |
| | | title: "仓库管理", |
| | | }, |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "Warehouse", |
| | | path: "/warehouse", |
| | | redirect: "noRedirect", |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "报表统计", |
| | | }, |
| | | hidden: false, |
| | | name: "barCodeReport", |
| | | path: "BarCodeReport", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "条码出入库报表", |
| | | }, |
| | | component: () => |
| | | import( |
| | | "@/views/warehouse/BarCodeReport/Kf_BarCodeOutInReport.vue" |
| | | ), |
| | | hidden: false, |
| | | name: "Kf_BarCodeOutInReport", |
| | | path: "Kf_BarCodeOutInReport", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "条码库存报表", |
| | | }, |
| | | component: () => |
| | | import( |
| | | "@/views/warehouse/BarCodeReport/Kf_ICInventory_BarCode.vue" |
| | | ), |
| | | hidden: false, |
| | | name: "Kf_ICInventory_BarCode", |
| | | path: "Kf_ICInventory_BarCode", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "条码主档", |
| | | }, |
| | | hidden: false, |
| | |
| | | hidden: false, |
| | | name: "Gy_BarCodeBill", |
| | | path: "Gy_BarCodeBill", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "条码生成_锦隆", |
| | | }, |
| | | component: () => |
| | | import( |
| | | "@/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue" |
| | | ), |
| | | hidden: false, |
| | | name: "Gy_BarCodeBill_JinLong", |
| | | path: "Gy_BarCodeBill_JinLong", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "条码主档", |
| | | }, |
| | | component: () => |
| | | import( |
| | | "@/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue" |
| | | ), |
| | | hidden: false, |
| | | name: "Gy_BarCodeBillList", |
| | | path: "Gy_BarCodeBillList", |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | noCache: false, |
| | | title: "生产资料", |
| | | }, |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "Production", |
| | | path: "production", |
| | | redirect: "noRedirect", |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "物流基础资料", |
| | | }, |
| | | hidden: HIsHide, |
| | | name: "Transport", |
| | | path: "transport", |
| | | redirect: "noRedirect", |
| | | component: "Layout", |
| | | children: [ |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "承运合同单据", |
| | | }, |
| | | component: () => |
| | | import( |
| | | "@/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue" |
| | | ), |
| | | hidden: false, |
| | | name: "CgContractTransportBillList", |
| | | path: "cgContractTransportBillList", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "公用资料", |
| | | }, |
| | | hidden: false, |
| | |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyWarehouse/gyWarehouse.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyWarehouse", |
| | | path: "gyWarehouse", |
| | | }, |
| | |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyStockPlace/gyStockPlace.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyStockPlace", |
| | | path: "gyStockPlace", |
| | | }, |
| | |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyCartypelist/gyCartypelist.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyCartypelist", |
| | | path: "gyCartypelist", |
| | | }, |
| | | { |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyItemMoney/gyItemMoney.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyItemMoney", |
| | | path: "gyItemMoney", |
| | | }, |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "驾驶员列表", |
| | | }, |
| | | component: () => import("@/views/system/user/GyDriver.vue"), |
| | | hidden: false, |
| | | name: "gyDriver", |
| | | path: "GyDriver", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "职员列表", |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyEmployee/gyEmployee.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyEmployee", |
| | | path: "gyEmployee", |
| | | }, |
| | |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gy/gyDepartment.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyDepartment", |
| | | path: "gyDepartment", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "货币列表", |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyCurrency/gyCurrency.vue"), |
| | | hidden: HIsHide, |
| | | name: "GyCurrency", |
| | | path: "gyCurrency", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: HIsHide, |
| | | title: "计量单位列表", |
| | | }, |
| | | component: () => import("@/views/basic/gyUnit/gyUnit.vue"), |
| | | hidden: HIsHide, |
| | | name: "GyUnit", |
| | | path: "gyUnit", |
| | | }, |
| | | { |
| | | meta: { |
| | |
| | | title: "供应商列表", |
| | | }, |
| | | component: () => import("@/views/basic/gy/gySupplier.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GySupplier", |
| | | path: "gySupplier", |
| | | }, |
| | |
| | | }, |
| | | component: () => |
| | | import("@/views/gyMaterial/GyMaterial.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyMaterial", |
| | | path: "GyMaterial", |
| | | }, |
| | |
| | | title: "客户列表", |
| | | }, |
| | | component: () => import("@/views/GyCustomer/index.vue"), |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "GyCustomer", |
| | | path: "GyCustomer", |
| | | }, |
| | | { |
| | | meta: { |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "辅助属性列表", |
| | | }, |
| | | component: () => |
| | | import("@/views/basic/gyProperty/gyPropertyList.vue"), |
| | | hidden: HIsHide, |
| | | name: "GyProperty", |
| | | path: "gyProperty", |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | noCache: false, |
| | | title: "采购管理", |
| | | }, |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "Purchase", |
| | | path: "/purchase", |
| | | redirect: "noRedirect", |
| | |
| | | hidden: false, |
| | | name: "Kf_POStockInBackBillList", |
| | | path: "Kf_POStockInBackBillList", |
| | | query: "{\"type\":1}" |
| | | query: '{"type":1}', |
| | | }, |
| | | { |
| | | meta: { |
| | |
| | | hidden: false, |
| | | name: "Kf_POStockInBackBillList", |
| | | path: "Kf_POStockInBackBillList0", |
| | | query: "{\"type\":0}" |
| | | query: '{"type":0}', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | noCache: false, |
| | | title: "生产管理", |
| | | }, |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "ICMO", |
| | | path: "/icmo", |
| | | redirect: "noRedirect", |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具管理", |
| | | title: "容器管理", |
| | | }, |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "ScMould", |
| | | path: "/scMould", |
| | | redirect: "noRedirect", |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具领用出库单维护", |
| | | title: "容器领用出库单维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具领用出库单", |
| | | title: "容器领用出库单", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具领用退库单维护", |
| | | title: "容器入库单维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具领用退库单", |
| | | title: "容器入库单", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具直接调拨单维护", |
| | | title: "容器直接调拨单维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具直接调拨单", |
| | | title: "容器直接调拨单", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具入库申请单维护", |
| | | title: "容器入库申请单维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具入库申请单", |
| | | title: "容器入库申请单", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具领用申请单维护", |
| | | title: "容器领用申请单维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具领用申请单", |
| | | title: "容器领用申请单", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具调拨申请单维护", |
| | | title: "容器调拨申请单维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具调拨申请单", |
| | | title: "容器调拨申请单", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具主档", |
| | | title: "容器主档", |
| | | }, |
| | | component: () => |
| | | import("@/views/scMould/basicModeling/Gy_MouldFile.vue"), |
| | |
| | | icon: "build", |
| | | link: null, |
| | | noCache: false, |
| | | title: "器具主档维护", |
| | | title: "容器主档维护", |
| | | }, |
| | | component: () => |
| | | import( |
| | |
| | | noCache: false, |
| | | title: "系统管理", |
| | | }, |
| | | hidden: false, |
| | | hidden: HIsHide, |
| | | name: "System", |
| | | path: "/system", |
| | | redirect: "noRedirect", |
| | |
| | | noCache: false, |
| | | title: "驾驶员列表", |
| | | }, |
| | | component: () =>import("@/views/system/user/GyDriver.vue"), |
| | | component: () => import("@/views/system/user/GyDriver.vue"), |
| | | hidden: false, |
| | | name: "gyDriver", |
| | | path: "GyDriver", |