| | |
| | | import { createRouter, createWebHistory } from 'vue-router' |
| | | import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router' |
| | | import HomeView from '../views/HomeView.vue' |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(), |
| | | //history: createWebHistory(import.meta.env.BASE_URL), |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | |
| | | name: 'main', |
| | | component: () => import('../layout/MainErpView.vue'), |
| | | children:[ |
| | | //user模块 |
| | | { |
| | | path:'user', |
| | | name: 'user', |
| | | component: () => import('../views/system/user/User.vue'), |
| | | children:[ |
| | | { |
| | | path: 'notPermission', |
| | | name: 'notPermission', |
| | | component: () => import('../views/system/user/NotPermission.vue'), |
| | | }, |
| | | { |
| | | path: 'userList', |
| | | name: 'userList', |
| | | component: () => import('../views/system/user/UserList.vue') |
| | | }, |
| | | { |
| | | name:'user', |
| | | path: '', |
| | | redirect:'/main/user/userList' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path:'role', |
| | | name: 'role', |
| | | component: () => import('../views/system/role/Role.vue'), |
| | | children:[ |
| | | { |
| | | path: 'roleList', |
| | | name: 'roleList', |
| | | component: () => import('../views/system/role/RoleList.vue') |
| | | }, |
| | | { |
| | | name:'role', |
| | | path: '', |
| | | redirect:'/main/role/roleList' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path:'userPassWord', |
| | | name: 'userPassWord', |
| | | component: () => import('../views/system/userPassWord/userPassWord.vue'), |
| | | children:[ |
| | | { |
| | | path: 'updateUserPassWord', |
| | | name: 'updateUserPassWord', |
| | | component: () => import('../views/system/userPassWord/UpdateUserPassWord.vue') |
| | | }, |
| | | { |
| | | name:'userPassWord', |
| | | path: '', |
| | | redirect:'/main/userPassWord/updateUserPassWord' |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | //sd模块 |
| | | { |
| | | path:'orderBasicData', |
| | | name: 'orderBasicData', |
| | | component: () => import('../views/sd/basicData/BasicData.vue'), |
| | | children:[ |
| | | { |
| | | path: 'searchBasicData', |
| | | name: 'searchBasicData', |
| | | component: () => import('../views/sd/basicData/SearchBasicData.vue') |
| | | }, |
| | | { |
| | | path: 'searchGlassType', |
| | | name: 'searchGlassType', |
| | | component: () => import('../views/sd/basicData/SearchGlassType.vue') |
| | | }, |
| | | { |
| | | name: 'OrderBasicData', |
| | | path: '', |
| | | redirect:'/main/orderBasicData/searchBasicData' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: 'product',//产品 |
| | | name: 'product', |
| | |
| | | component: () => import('../views/sd/product/Test11.vue') |
| | | }, |
| | | { |
| | | path: 'testSort', |
| | | name: 'testSort', |
| | | component: () => import('../views/sd/product/testSort.vue') |
| | | }, |
| | | { |
| | | name: 'product', |
| | | path: '', |
| | | redirect:'/main/product/selectProduct' |
| | | } |
| | |
| | | name: 'order', |
| | | component: () => import('../views/sd/order/Order.vue'), |
| | | children:[ |
| | | |
| | | { |
| | | path: 'selectOrder', |
| | | name: 'selectOrder', |
| | |
| | | component: () => import('../views/sd/order/OrderReport.vue'), |
| | | }, |
| | | { |
| | | path: 'orderProductSummaryReport', |
| | | name: 'orderProductSummaryReport', |
| | | component: () => import('../views/sd/order/OrderProductSummaryReport.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | | redirect:'/main/order/SelectOrder' |
| | | redirect:'/main/order/selectOrder' |
| | | } |
| | | ] |
| | | }, |
| | |
| | | component: () => import('../views/sd/delivery/DeliveryReport.vue'), |
| | | }, |
| | | { |
| | | path: 'deliveryProductReport', |
| | | name: 'deliveryProductReport', |
| | | component: () => import('../views/sd/delivery/DeliveryProductReport.vue'), |
| | | }, |
| | | { |
| | | path: 'createDelivery', |
| | | name: 'createDelivery', |
| | | component: () => import('../views/sd/delivery/CreateDelivery.vue'), |
| | | }, |
| | | { |
| | | path: 'deliveryPrinting', |
| | | name: 'deliveryPrinting', |
| | | component: () => import('../views/sd/delivery/DeliveryPrinting.vue'), |
| | | }, |
| | | |
| | | |
| | |
| | | path: 'createCustomer', |
| | | name: 'createCustomer', |
| | | component: () => import('../views/sd/customer/CreateCustomer.vue'), |
| | | }, |
| | | { |
| | | path: 'selectCustomerOrder', |
| | | name: 'selectCustomerOrder', |
| | | component: () => import('../views/sd/customer/SelectCustomerOrder.vue'), |
| | | } |
| | | ] |
| | | }, |
| | |
| | | component: () => import('../views/pp/processCard/PrintProcess.vue'), |
| | | }, |
| | | { |
| | | path: 'printLabel', |
| | | name: 'printLabel', |
| | | component: () => import('../views/pp/processCard/PrintLabel.vue'), |
| | | }, |
| | | { |
| | | path: 'printCustomLabel', |
| | | name: 'printCustomLabel', |
| | | component: () => import('../views/pp/processCard/PrintCustomLabel.vue'), |
| | | }, |
| | | { |
| | | path: 'printCustomLabelSemi', |
| | | name: 'printCustomLabelSemi', |
| | | component: () => import('../views/pp/processCard/PrintCustomLabelSemi.vue'), |
| | | }, |
| | | { |
| | | path: 'productionScheduling', |
| | | name: 'productionScheduling', |
| | | component: () => import('../views/pp/processCard/ProductionScheduling.vue'), |
| | | }, |
| | | { |
| | | path: 'selectDetailProcessCard', |
| | | name: 'selectDetailProcessCard', |
| | | component: () => import('../views/pp/processCard/SelectDetailProcessCard.vue'), |
| | | }, |
| | | { |
| | | path: 'selectPrintProject', |
| | | name: 'selectPrintProject', |
| | | component: () => import('../views/pp/processCard/SelectPrintProject.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | |
| | | component: () => import('../views/pp/reportingWorks/ReportingWorks.vue'), |
| | | children:[ |
| | | |
| | | { |
| | | path: 'selectReportingWorks', |
| | | name: 'selectReportingWorks', |
| | | component: () => import('../views/pp/reportingWorks/SelectReportingWorks.vue'), |
| | | }, |
| | | |
| | | { |
| | | path: 'addReportingWork', |
| | | name: 'addReportingWork', |
| | | component: () => import('../views/pp/reportingWorks/AddReportingWork.vue'), |
| | | }, |
| | | { |
| | | path: 'selectReportingWorks', |
| | | name: 'selectReportingWorks', |
| | | component: () => import('../views/pp/reportingWorks/SelectReportingWorks.vue'), |
| | | }, |
| | | { |
| | | path: 'qualityInspectionReview', |
| | |
| | | }, |
| | | { |
| | | path: '', |
| | | redirect:'/main/reportingWorks/SelectReportingWorks' |
| | | redirect:'/main/reportingWorks/AddReportingWork' |
| | | } |
| | | ] |
| | | }, |
| | |
| | | component: () => import('../views/pp/Replenish/SelectReplenish.vue'), |
| | | }, |
| | | { |
| | | path: 'printRepairProcess', |
| | | name: 'printRepairProcess', |
| | | component: () => import('../views/pp/Replenish/PrintRepairProcess.vue'), |
| | | }, |
| | | { |
| | | path: 'printReplenishFlowCard', |
| | | name: 'printReplenishFlowCard', |
| | | component: () => import('../views/pp/Replenish/PrintReplenishFlowCard.vue'), |
| | | }, |
| | | { |
| | | path: 'printRepairCustomLabelSemi', |
| | | name: 'printRepairCustomLabelSemi', |
| | | component: () => import('../views/pp/Replenish/PrintRepairCustomLabelSemi.vue'), |
| | | }, |
| | | { |
| | | path: 'printRepairCustomLabel', |
| | | name: 'printRepairCustomLabel', |
| | | component: () => import('../views/pp/Replenish/PrintRepairCustomLabel.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | | redirect:'/main/Replenish/SelectReplenish' |
| | | } |
| | |
| | | //返工管理 |
| | | path: 'rework', |
| | | name: 'rework', |
| | | component: () => import('../views/pp/Rework/Rework.vue'), |
| | | component: () => import('../views/pp/rework/Rework.vue'), |
| | | children:[ |
| | | |
| | | { |
| | | path: 'addRework', |
| | | name: 'addRework', |
| | | component: () => import('../views/pp/Rework/AddRework.vue'), |
| | | component: () => import('../views/pp/rework/AddRework.vue'), |
| | | }, |
| | | { |
| | | path: 'selectRework', |
| | | name: 'selectRework', |
| | | component: () => import('../views/pp/Rework/SelectRework.vue'), |
| | | component: () => import('../views/pp/rework/SelectRework.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | |
| | | component: () => import('../views/pp/report/ProductionSchedule.vue'), |
| | | }, |
| | | { |
| | | //流程卡进度 |
| | | path: 'processCardProgress', |
| | | name: 'processCardProgress', |
| | | component: () => import('../views/pp/report/ProcessCardProgress.vue'), |
| | | }, |
| | | { |
| | | //品质报表 |
| | | path: 'qualityReport', |
| | | name: 'qualityReport', |
| | |
| | | name: 'damageReport', |
| | | component: () => import('../views/pp/report/DamageReport.vue'), |
| | | }, |
| | | { |
| | | //跨工序次破报表 |
| | | path: 'crossProcessBreaking', |
| | | name: 'crossProcessBreaking', |
| | | component: () => import('../views/pp/report/crossProcessBreaking.vue'), |
| | | }, |
| | | // { |
| | | // path: '', |
| | | // redirect:'/main/report/ProductionSchedule' |
| | | // } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | //基础数据管理 |
| | | path: 'productionBasicData', |
| | | name: 'productionBasicData', |
| | | component: () => import('../views/pp/productionBasicData/ProductionBasicData.vue'), |
| | | children:[ |
| | | { |
| | | path: 'selectProductionBasicData', |
| | | name: 'selectProductionBasicData', |
| | | component: () => import('../views/pp/productionBasicData/SelectProductionBasicData.vue'), |
| | | }, |
| | | { |
| | | path: 'addBreakageReason', |
| | | name: 'addBreakageReason', |
| | | component: () => import('../views/pp/productionBasicData/AddBreakageReason.vue'), |
| | | }, |
| | | { |
| | | path: 'addBreakageType', |
| | | name: 'addBreakageType', |
| | | component: () => import('../views/pp/productionBasicData/AddBreakageType.vue'), |
| | | }, |
| | | { |
| | | path: 'addTeamGroup', |
| | | name: 'addTeamGroup', |
| | | component: () => import('../views/pp/productionBasicData/AddTeamGroup.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | | redirect:'/main/productionBasicData/SelectProductionBasicData' |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | |
| | | |
| | |
| | | path: 'finishedProductRework', |
| | | name: 'finishedProductRework', |
| | | component:()=>import('../views/mm/mainProductStock/FinishedProductRework.vue'), |
| | | }, |
| | | { |
| | | // 调拨记录 |
| | | path: 'transferRecord', |
| | | name: 'transferRecord', |
| | | component:()=>import('../views/mm/mainProductStock/TransferRecord.vue'), |
| | | }, |
| | | { |
| | | // 领出记录 |
| | | path: 'takeOutRecord', |
| | | name: 'takeOutRecord', |
| | | component:()=>import('../views/mm/mainProductStock/TakeOutRecord.vue'), |
| | | }, |
| | | { |
| | | // 返工记录 |
| | | path: 'reworkRecord', |
| | | name: 'reworkRecord', |
| | | component:()=>import('../views/mm/mainProductStock/ReworkRecord.vue'), |
| | | }, |
| | | { |
| | | // 出入库记录 |
| | | path: 'storageRecord', |
| | | name: 'storageRecord', |
| | | component:()=>import('../views/mm/mainProductStock/StorageRecord.vue'), |
| | | }, |
| | | |
| | | { |
| | |
| | | name: 'materialOutbound', |
| | | component:()=>import('../views/mm/mainIngredientStock/MaterialOutbound.vue') |
| | | }, |
| | | //出库新增 |
| | | { |
| | | path:'createOutBound', |
| | | name:'createOutBound', |
| | | component:()=>import('../views/mm/mainIngredientStock/CreateOutBound.vue') |
| | | }, |
| | | //返库 |
| | | { |
| | | path:'returnToStorage', |
| | | name:'returnToStorage', |
| | | component:()=>import('../views/mm/mainIngredientStock/ReturnToStorage.vue') |
| | | }, |
| | | |
| | | //返库新增 |
| | | { |
| | | path:'returnToStorageCreate', |
| | | name:'returnToStorageCreate', |
| | | component:()=>import('../views/mm/mainIngredientStock/ReturnToStorageCreate.vue') |
| | | }, |
| | | { |
| | | path: '', |
| | |
| | | /*----------- 仓储报表 ----------------*/ |
| | | path: 'stockReport', |
| | | name: 'stockReport', |
| | | component: () => import('../views/mm/stockReport/stockReport.vue'), |
| | | component: () => import('../views/mm/stockReport/StockReport.vue'), |
| | | children:[ |
| | | { |
| | | path: 'WarehouseReport', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | /*----------- 基础数据 ----------------*/ |
| | | path: 'warehouseBasicData', |
| | | name: 'warehouseBasicData', |
| | | component: () => import('../views/mm/basicData/WarehouseBasicData.vue'), |
| | | children: [ |
| | | { |
| | | path: 'warehouseSearchBasicData', |
| | | name: 'warehouseSearchBasicData', |
| | | component: () => import('../views/mm/basicData/WarehouseSearchBasicData.vue'), |
| | | }, |
| | | { |
| | | path: 'warehouseCreateBasicData', |
| | | name: 'warehouseCreateBasicData', |
| | | component: () => import('../views/mm/basicData/WarehouseCreateBasicData.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | | redirect: '/main/warehouseBasicData/warehouseSearchBasicData' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '', |
| | | redirect:'/main/Product' |
| | | redirect:'/main/order' |
| | | } |
| | | ] |
| | | }, |