import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router' import HomeView from '../views/HomeView.vue' const router = createRouter({ history: createWebHashHistory(), //history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'home', //component: HomeView component: () => import('../views/LoginView.vue') }, { path: '/login', name: 'login', component: () => import('../views/LoginView.vue') }, { path: '/main', 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') }, { path: 'updateUserName', name: 'updateUserName', component: () => import('../views/system/userPassWord/UpdateUserName.vue') }, { name:'userPassWord', path: '', redirect:'/main/userPassWord/updateUserPassWord' } ] }, { path:'glassPrice', name: 'glassPrice', component: () => import('../views/sd/glassPrice/GlassPrice.vue'), children:[ { path: 'producePriceCompute', name: 'producePriceCompute', component: () => import('../views/sd/glassPrice/ProducePriceCompute.vue') }, { path: 'glassPriceSet', name: 'glassPriceSet', component: () => import('../views/sd/glassPrice/GlassPriceSet.vue') }, { path: 'glassPriceList', name: 'glassPriceList', component: () => import('../views/sd/glassPrice/GlassPriceList.vue') }, { name: 'GlassPrice1', path: '', redirect:'/main/glassPrice/producePriceCompute' } ] }, //bom模块 { path:'bom', name: 'bom', component: () => import('../views/sd/bom/BOM.vue'), children:[ { path: 'materialBOM', name: 'materialBOM', component: () => import('../views/sd/bom/MaterialBOM.vue') }, { path: 'productBOM', name: 'productBOM', component: () => import('../views/sd/bom/ProductBOM.vue') }, { path: 'orderBOM', name: 'orderBOM', component: () => import('../views/sd/bom/OrderBOM.vue') }, { name: 'bom1', path: '', redirect:'/main/bom/orderBOM' } ] }, //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/Product.vue'), children:[ { path: 'createProduct', name: 'createProduct', component: () => import('../views/sd/product/CreateProduct.vue') }, { path: 'selectProduct', name: 'selectProduct', component: () => import('../views/sd/product/SelectProduct.vue') }, { path: 'test', name: 'test', component: () => import('../views/sd/product/Test.vue') }, { path: 'test1', name: 'test1', 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' } ] }, { path: 'order',//订单 name: 'order', component: () => import('../views/sd/order/Order.vue'), children:[ { path: 'selectOrder', name: 'selectOrder', component: () => import('../views/sd/order/SelectOrder.vue'), }, { path: 'createOrder', name: 'createOrder', component: () => import('../views/sd/order/CreateOrder.vue'), }, { path: 'updateOrderCraft', name: 'updateOrderCraft', component: () => import('../views/sd/order/UpdateOrderCraft.vue'), }, { path: 'orderSummaryReport', name: 'orderSummaryReport', component: () => import('../views/sd/order/OrderSummaryReport.vue'), }, { path: 'orderReport', name: 'orderReport', component: () => import('../views/sd/order/OrderReport.vue'), }, { path: 'orderProductSummaryReport', name: 'orderProductSummaryReport', component: () => import('../views/sd/order/OrderProductSummaryReport.vue'), }, { path: '', redirect:'/main/order/selectOrder' } ] }, { path: 'delivery',//发货 name: 'delivery', component: () => import('../views/sd/delivery/Delivery.vue'), children: [ { path: 'selectDelivery', name: 'selectDelivery', component: () => import('../views/sd/delivery/SelectDelivery.vue'), }, { path: 'selectOrderList', name: 'selectOrderList', component: () => import('../views/sd/delivery/SelectOrderList.vue'), }, { path: 'deliveryReport', name: 'deliveryReport', 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: '', redirect:'/main/delivery/selectDelivery' } ] }, { path: 'returns',//退货 name: 'returns', component: () => import('../views/sd/returns/Returns.vue'), children: [ { path: '', redirect:'/main/returns/selectReturns' }, { path: 'selectReturns', name: 'selectReturns', component: () => import('../views/sd/returns/SelectReturns.vue'), }, { path: 'createReturns', name: 'createReturns', component: () => import('../views/sd/returns/CreateReturns.vue'), }, { path: 'selectDeliveryList', name: 'selectDeliveryList', component: () => import('../views/sd/returns/SelectDeliveryList.vue'), }, { path: 'returnsReport', name: 'returnsReport', component: () => import('../views/sd/returns/ReturnsReport.vue'), } ] }, { path: 'customer',//客户 name: 'customer', component: () => import('../views/sd/customer/Customer.vue'), children: [ { path: '', redirect:'/main/customer/selectCustomer' }, { path: 'selectCustomer', name: 'selectCustomer', component: () => import('../views/sd/customer/SelectCustomer.vue'), }, { path: 'createCustomer', name: 'createCustomer', component: () => import('../views/sd/customer/CreateCustomer.vue'), }, { path: 'selectCustomerOrder', name: 'selectCustomerOrder', component: () => import('../views/sd/customer/SelectCustomerOrder.vue'), } ] }, //pp模块 { //玻璃优化 path: 'glassOptimize', name: 'glassOptimize', component: () => import('../views/pp/glassOptimize/Optimize.vue'), children:[ { path: 'optimizeProject', name: 'optimizeProject', component: () => import('../views/pp/glassOptimize/OptimizeProject.vue'), }, { path: 'optimizePrint', name: 'optimizePrint', component: () => import('../views/pp/glassOptimize/OptimizePrint.vue'), }, { path: 'OptimizationRectPrint', name: 'OptimizationRectPrint', component: () => import('../views/pp/glassOptimize/OptimizationRectPrint.vue'), }, { path: 'OptimizeControl', name: 'OptimizeControl', component: () => import('../views/pp/glassOptimize/OptimizeControl.vue'), }, { path: 'Optimization', name: 'Optimization', component: () => import('../views/pp/glassOptimize/Optimization.vue'), }, { path: 'optimizeparms', name: 'optimizeparms', component: () => import('../views/pp/glassOptimize/OptimizeParms.vue'), }, { path: '/optimizeProject/:projectNo/:thickNess/:model/:quantity/:area/:optimizeState', name: 'optimizeInfo', component: () => import('../views/pp/glassOptimize/OptimizeProject.vue') }, { path: '', redirect:'/main/glassOptimize/optimizeProject' } ] }, { //工单管理 path: 'workOrder', name: 'workOrder', component: () => import('../views/pp/workOrder/WorkOrder.vue'), children:[ { path: 'selectAddWorkOrder', name: 'selectAddWorkOrder', component: () => import('../views/pp/workOrder/SelectAddWorkOrder.vue'), }, { path: 'releaseWorkOrder', name: 'releaseWorkOrder', component: () => import('../views/pp/workOrder/ReleaseWorkOrder.vue'), }, { path: 'addWorkOrder', name: 'addWorkOrder', component: () => import('../views/pp/workOrder/AddWorkOrder.vue'), }, { path: 'selectWorkOrder', name: 'selectWorkOrder', component: () => import('../views/pp/workOrder/SelectWorkOrder.vue'), }, { path: '', redirect:'/main/workOrder/selectWorkOrder' } ] }, { //流程卡管理 path: 'processCard', name: 'processCard', component: () => import('../views/pp/processCard/ProcessCard.vue'), children:[ { path: 'addProcessCard', name: 'addProcessCard', component: () => import('../views/pp/processCard/AddProcessCard.vue'), }, { path: 'printFlowCard', name: 'printFlowCard', component: () => import('../views/pp/processCard/PrintFlowCard.vue'), }, { path: 'selectAddProcess', name: 'selectAddProcess', component: () => import('../views/pp/processCard/SelectAddProcess.vue'), }, { path: 'selectPrintFlowCard', name: 'selectPrintFlowCard', component: () => import('../views/pp/processCard/SelectPrintFlowCard.vue'), }, { path: 'selectProcessCard', name: 'selectProcessCard', component: () => import('../views/pp/processCard/SelectProcessCard.vue'), }, { path: 'processCardDetails', name: 'processCardDetails', component: () => import('../views/pp/processCard/ProcessCardDetails.vue'), }, { path: 'splittingDetails', name: 'splittingDetails', component: () => import('../views/pp/processCard/SplittingDetails.vue'), }, { path: 'printProcess', name: 'printProcess', component: () => import('../components/pp/PrintProcess.vue'), }, { path: 'printLabel', name: 'printLabel', component: () => import('../views/pp/processCard/PrintLabel.vue'), }, { path: 'printCustomLabel', name: 'printCustomLabel', component: () => import('../components/pp/PrintCustomLabel.vue'), }, { path: 'printCustomLabelSemi', name: 'printCustomLabelSemi', component: () => import('../components/pp/PrintCustomLabelSemi.vue'), }, { path: 'printCustomLabelCZ', name: 'printCustomLabelCZ', component: () => import('../views/pp/processCard/PrintCustomLabel1.vue'), }, { path: 'printCustomLabelSemiCZ', name: 'printCustomLabelSemiCZ', component: () => import('../views/pp/processCard/PrintCustomLabelSemi1.vue'), }, { path: 'printCustomLabelSemi2', name: 'printCustomLabelSemi2', component: () => import('../views/pp/processCard/PrintCustomLabelSemi2.vue'), }, { path: 'printLabel1', name: 'printLabel1', component: () => import('../views/pp/processCard/PrintLabel1.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: 'selectSortDetailProcessCard', name: 'selectSortDetailProcessCard', component: () => import('../components/pp/SelectSortDetailProcessCard.vue'), }, { path: 'printFlowCardDetails', name: 'printFlowCardDetails', component: () => import('../views/pp/processCard/PrintFlowCardDetails.vue'), }, { path: 'printCustomLabelDetails', name: 'printCustomLabelDetails', component: () => import('../components/pp/PrintCustomLabelDetails.vue'), }, { path: 'selectSortTable', name: 'selectSortTable', component: () => import('../components/pp/SelectSortTable.vue'), }, { path: 'printProjectDetails', name: 'printProjectDetails', component: () => import('../views/pp/processCard/PrintProjectDetails.vue'), }, { path: '', redirect:'/main/processCard/selectProcessCard' } ] }, { //报工管理 path: 'reportingWorks', name: 'reportingWorks', component: () => import('../views/pp/reportingWorks/ReportingWorks.vue'), children:[ { path: 'addReportingWork', name: 'addReportingWork', component: () => import('../views/pp/reportingWorks/AddReportingWork.vue'), }, { path: 'selectReportingWorks', name: 'selectReportingWorks', component: () => import('../views/pp/reportingWorks/SelectReportingWorks.vue'), }, { path: 'qualityInspectionReview', name: 'qualityInspectionReview', component: () => import('../views/pp/reportingWorks/QualityInspectionReview.vue'), }, { path: 'reportingWorkDetail', name: 'reportingWorkDetail', component: () => import('../views/pp/reportingWorks/ReportingWorkDetail.vue'), }, { path: 'qualityInReviewDetail', name: 'qualityInReviewDetail', component: () => import('../views/pp/reportingWorks/QualityInReviewDetail.vue'), }, { path: '', redirect:'/main/reportingWorks/addReportingWork' } ] }, { //补片管理 path: 'replenish', name: 'replenish', component: () => import('../views/pp/replenish/Replenish.vue'), children:[ { path: 'addReplenish', name: 'addReplenish', component: () => import('../views/pp/replenish/AddReplenish.vue'), }, { path: 'printReplenishFlowCard', name: 'printReplenishFlowCard', component: () => import('../views/pp/replenish/PrintReplenishFlowCard.vue'), }, { path: 'selectReplenish', name: 'selectReplenish', 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('../components/pp/PrintRepairCustomLabelSemi.vue'), }, { path: 'printRepairCustomLabel', name: 'printRepairCustomLabel', component: () => import('../components/pp/PrintRepairCustomLabel.vue'), }, { path: '', redirect:'/main/replenish/selectReplenish' } ] }, { //返工管理 path: 'rework', name: 'rework', component: () => import('../views/pp/rework/Rework.vue'), children:[ { path: 'addRework', name: 'addRework', component: () => import('../views/pp/rework/AddRework.vue'), }, { path: 'selectRework', name: 'selectRework', component: () => import('../views/pp/rework/SelectRework.vue'), }, { path: 'printReworkFlowCard', name: 'printReworkFlowCard', component: () => import('../views/pp/rework/PrintReworkFlowCard.vue'), }, { path: 'printReworkCustomLabelSemi', name: 'printReworkCustomLabelSemi', component: () => import('../views/pp/rework/PrintReworkCustomLabelSemi.vue'), }, { path: 'printReworkCustomLabel', name: 'printReworkCustomLabel', component: () => import('../views/pp/rework/PrintReworkCustomLabel.vue'), }, { path: '', redirect:'/main/rework/selectRework' } ] }, /*{ //BOM管理 path: 'BOM', name: 'BOM', component: () => import('../views/pp/BOM/BOM.vue'), children:[ { path: 'benchmarkBOM', name: 'benchmarkBOM', component: () => import('../views/pp/BOM/BenchmarkBOM.vue'), }, { path: 'standardBOM', name: 'standardBOM', component: () => import('../views/pp/BOM/StandardBOM.vue'), }, { path: 'orderBOM', name: 'orderBOM', component: () => import('../views/pp/BOM/OrderBOM.vue'), }, { path: 'selectBOM', name: 'selectBOM', component: () => import('../views/pp/BOM/SelectBOM.vue'), }, { path: 'orderBOMDetails', name: 'orderBOMDetails', component: () => import('../views/pp/BOM/OrderBOMDetails.vue'), }, { path: 'standardBOMDetail', name: 'standardBOMDetail', component: () => import('../views/pp/BOM/StandardBOMDetail.vue'), }, { path: '', redirect:'/main/BOM/SelectBOM' } ] },*/ { //设备管理 path: 'machine', name: 'machine', component: () => import('../views/pp/machine/Machine.vue'), children:[ { path: 'selectMachine', name: 'selectMachine', component: () => import('../views/pp/machine/SelectMachine.vue'), }, { path: 'addMachine', name: 'addMachine', component: () => import('../views/pp/machine/AddMachine.vue'), }, { path: 'maintenanceAndRepair', name: 'maintenanceAndRepair', component: () => import('../views/pp/machine/MaintenanceAndRepair.vue'), }, { path: 'addMaintenanceAndRepair', name: 'addMaintenanceAndRepair', component: () => import('../views/pp/machine/AddMaintenanceAndRepair.vue'), }, { path: '', redirect:'/main/machine/selectMachine' } ] }, { //报表管理 path: 'report', name: 'report', component: () => import('../views/pp/report/Report.vue'), children:[ { //设备产量 path: 'equipmentOutput', name: 'equipmentOutput', component: () => import('../views/pp/report/EquipmentOutput.vue'), }, { //订单BOM path: 'orderBOMOutside', name: 'orderBOMOutside', component: () => import('../views/pp/report/OrderBOMOutside.vue'), }, { //订单计划分解 path: 'orderPlanDecomposition', name: 'orderPlanDecomposition', component: () => import('../views/pp/report/OrderPlanDecomposition.vue'), }, { //订单报工 path: 'orderReportingWorks', name: 'orderReportingWorks', component: () => import('../views/pp/report/OrderReportingWorks.vue'), }, { //工序待完成 path: 'processToBeCompleted', name: 'processToBeCompleted', component: () => import('../views/pp/report/ProcessToBeCompleted.vue'), }, { //生产进度 path: 'productionSchedule', name: 'productionSchedule', component: () => import('../views/pp/report/ProductionSchedule.vue'), }, { //流程卡进度 path: 'processCardProgress', name: 'processCardProgress', component: () => import('../views/pp/report/ProcessCardProgress.vue'), }, { //品质报表 path: 'qualityReport', name: 'qualityReport', component: () => import('../views/pp/report/QualityReport.vue'), }, { //原片领料报表 path: 'rawMaterialRequisition', name: 'rawMaterialRequisition', component: () => import('../views/pp/report/RawMaterialRequisition.vue'), }, { //分架明细 path: 'splittingDetailsOutside', name: 'splittingDetailsOutside', component: () => import('../views/pp/report/SplittingDetailsOutside.vue'), }, { //任务完成情况 path: 'taskCompletionStatus', name: 'taskCompletionStatus', component: () => import('../views/pp/report/TaskCompletionStatus.vue'), }, { //班组产量 path: 'teamOutput', name: 'teamOutput', component: () => import('../views/pp/report/TeamOutput.vue'), }, { //在制品报表 path: 'workInProgress', name: 'workInProgress', component: () => import('../views/pp/report/WorkInProgress.vue'), }, { //成品率报表 path: 'yield', name: 'yield', component: () => import('../views/pp/report/Yield.vue'), }, { //次破报表 path: 'damageReport', name: 'damageReport', component: () => import('../views/pp/report/DamageReport.vue'), }, { //订单排产计划 path: 'scheduleProductionSchedule', name: 'scheduleProductionSchedule', component: () => import('../views/pp/report/ScheduleProductionSchedule.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' } ] }, //mm模块 { path: 'productStock', name: 'productStock', component: () => import('../views/mm/productStock/ProductStock.vue'), children:[ { // 成品库存 path: 'productStockList', name: 'productStockList', component: () => import('../views/mm/productStock/ProductStockList.vue'), }, { // 成品入库 path: 'createProductStock', name: 'createProductStock', component:()=> import('../views/mm/productStock/CreateProductStock.vue'), }, { // 成品出库 path: 'finishedProductOut', name: 'finishedProductOut', component:()=>import('../views/mm/productStock/FinishedProductOut.vue') }, { // 成品出库 path: 'finishedProductReturn', name: 'finishedProductReturn', component:()=>import('../views/mm/productStock/FinishedProductReturn.vue') }, { // 订单调拨 path: 'orderAllocation', name: 'orderAllocation', component:()=>import('../views/mm/productStock/OrderAllocation.vue'), }, { // 成品领出 path: 'finishedGoodsIssue', name: 'finishedGoodsIssue', component:()=>import('../views/mm/productStock/FinishedGoodsIssue.vue'), }, { // 成品返工 path: 'finishedProductRework', name: 'finishedProductRework', component:()=>import('../views/mm/productStock/FinishedProductRework.vue'), }, { // 调拨记录 path: 'transferRecord', name: 'transferRecord', component:()=>import('../views/mm/productStock/TransferRecord.vue'), }, { // 领出记录 path: 'takeOutRecord', name: 'takeOutRecord', component:()=>import('../views/mm/productStock/TakeOutRecord.vue'), }, { // 返工记录 path: 'reworkRecord', name: 'reworkRecord', component:()=>import('../views/mm/productStock/ReworkRecord.vue'), }, { // 出入库记录 path: 'storageRecord', name: 'storageRecord', component:()=>import('../views/mm/productStock/StorageRecord.vue'), }, { // 装箱打印 path: 'storageRecordPint', name: 'storageRecordPint', component:()=>import('../views/mm/productStock/StorageRecordPint.vue'), }, { path: '', redirect:'/main/productStock/productStockList' } ] }, { // 物料资料 path:'ingredients', name:'ingredients', component: () => import('../views/mm/ingredient/Ingredients.vue'), children:[ { path: 'selectIngredients', name: 'selectIngredients', component:()=>import('../views/mm/ingredient/SelectIngredients.vue') }, { path: 'createIngredients', name: 'createIngredients', component:()=>import('../views/mm/ingredient/CreateIngredients.vue') }, { path: '', redirect:'/main/ingredients/selectIngredients' } ] }, { // 物料库存 path:'ingredientsStock', name:'ingredientsStock', component: () => import('../views/mm/ingredientStock/IngredientsStock.vue'), children:[ { path: 'selectIngredientsStock', name: 'selectIngredientsStock', component:()=>import('../views/mm/ingredientStock/SelectIngredientsStock.vue') }, { path: 'selectSurplusMaterials', name: 'selectSurplusMaterials', component:()=>import('../views/mm/ingredientStock/SelectSurplusMaterials.vue') }, { path: 'accessoriesMonthlySettlement', name: 'accessoriesMonthlySettlement', component:()=>import('../views/mm/ingredientStock/AccessoriesMonthlySettlement.vue') }, { path: 'originalMonthlySettlement', name: 'originalMonthlySettlement', component:()=>import('../views/mm/ingredientStock/OriginalMonthlySettlement.vue') }, // 物料出库 { path: 'materialOutbound', name: 'materialOutbound', component:()=>import('../views/mm/ingredientStock/MaterialOutbound.vue') }, //出库新增 { path:'createOutBound', name:'createOutBound', component:()=>import('../views/mm/ingredientStock/CreateOutBound.vue') }, //返库 { path:'returnToStorage', name:'returnToStorage', component:()=>import('../views/mm/ingredientStock/ReturnToStorage.vue') }, //返库新增 { path:'returnToStorageCreate', name:'returnToStorageCreate', component:()=>import('../views/mm/ingredientStock/ReturnToStorageCreate.vue') }, //物料新增 { path:'materialAdditionRecord', name:'materialAdditionRecord', component:()=>import('../views/mm/ingredientStock/MaterialAdditionRecord.vue') }, { path: '', redirect:'/main/ingredientsStock/selectIngredientsStock' } ] }, { // 供应商管理!!! path:'trader', name:'trader', component: () => import('../views/mm/trader/Trader.vue'), children:[ { path: 'selectTrader', name: 'selectTrader', component:()=>import('../views/mm/trader/SelectTrader.vue') }, { path: 'createTrader', name: 'createTrader', component:()=>import('../views/mm/trader/CreateTrader.vue') }, { path: '', redirect:'/main/trader/SelectTrader' } ] }, /*------------- sunshiqiang Add --*/ { /*----------- 仓储报表 ----------------*/ path: 'stockReport', name: 'stockReport', component: () => import('../views/mm/stockReport/StockReport.vue'), children:[ /*----------- 新增 ----------------*/ { path: 'finishedProductDeliveryReport', name: 'finishedProductDeliveryReport', component: () => import('../views/mm/stockReport/FinishedProductDeliveryReport.vue'), }, { path: 'finishedProductInventoryReport', name: 'finishedProductInventoryReport', component: () => import('../views/mm/stockReport/FinishedProductInventoryReport.vue'), }, { path: 'finishedProductOutboundReport', name: 'finishedProductOutboundReport', component: () => import('../views/mm/stockReport/FinishedProductOutboundReport.vue'), }, { path: 'finishedProductTransferReport', name: 'finishedProductTransferReport', component: () => import('../views/mm/stockReport/FinishedProductTransferReport.vue'), },{ path: 'materialAdditionReport', name: 'materialAdditionReport', component: () => import('../views/mm/stockReport/MaterialAdditionReport.vue'), }, { path: 'materialOutboundReport', name: 'materialOutboundReport', component: () => import('../views/mm/stockReport/MaterialOutboundReport.vue'), }, { path: 'optimizeOutboundReport', name: 'optimizeOutboundReport', component: () => import('../views/mm/stockReport/OptimizeOutboundReport.vue'), }, { path: 'materialReturnReport', name: 'materialReturnReport', component: () => import('../views/mm/stockReport/MaterialReturnReport.vue'), }, { path: '', redirect: '/main/stockReport/finishedProductInventoryReport' } ] }, { /*----------- 采购订单 ----------------*/ path: 'purchaseOrder', name: 'purchaseOrder', component: () => import('../views/mm/purchaseOrder/PurchaseOrder.vue'), children: [ { path: 'SelectPurchaseOrder', name: 'SelectPurchaseOrder', component: () => import('../views/mm/purchaseOrder/Select.vue'), }, { path: 'CreatePurchaseOrder', name: 'CreatePurchaseOrder', component: () => import('../views/mm/purchaseOrder/Create.vue') }, /*----------- 新增 ----------------*/ { path: 'PaymentPurchaseOrder', name: 'PaymentPurchaseOrder', component: () => import('../views/mm/purchaseOrder/Payment.vue') }, /*----------- 退货 ----------------*/ { path: 'ReturnPurchaseOrder', name: 'ReturnPurchaseOrder', component: () => import('../views/mm/purchaseOrder/Return.vue') }, /*----------- 入库 ----------------*/ { path: 'StoragePurchaseOrder', name: 'StoragePurchaseOrder', component: () => import('../views/mm/purchaseOrder/Storage.vue') }, { path: '', redirect: '/main/purchaseOrder/SelectPurchaseOrder' } ] }, { /*----------- 采购入库 ----------------*/ path: 'purchaseStorage', name: 'purchaseStorage', component: () => import('../views/mm/purchaseStorage/PurchaseStorage.vue'), children: [ { path: 'SelectPurchaseStorage', name: 'SelectPurchaseStorage', component: () => import('../views/mm/purchaseStorage/Select.vue'), }, { path: '', redirect: '/main/purchaseStorage/SelectPurchaseStorage' } ] }, { /*----------- 采购退货 ----------------*/ path: 'purchaseReturn', name: 'purchaseReturn', component: () => import('../views/mm/purchaseReturn/PurchaseReturn.vue'), children: [ { path: 'SelectPurchaseReturn', name: 'SelectPurchaseReturn', component: () => import('../views/mm/purchaseReturn/Select.vue'), }, { path: '', redirect: '/main/purchaseReturn/SelectPurchaseReturn' } ] }, { /*----------- 基础数据 ----------------*/ 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: 'glassOptimizeThirdParty', name: 'glassOptimizeThirdParty', component: () => import('../views/pp/glassOptimizeThirdParty/Optimize.vue'), children:[ { path: 'optimizeProject1', name: 'optimizeProject1', component: () => import('../views/pp/glassOptimizeThirdParty/OptimizeProject.vue'), }, { path: 'optimizePrint', name: 'optimizePrint', component: () => import('../views/pp/glassOptimizeThirdParty/OptimizePrint.vue'), }, { path: 'OptimizationRectPrint', name: 'OptimizationRectPrint', component: () => import('../views/pp/glassOptimizeThirdParty/OptimizationRectPrint.vue'), }, { path: 'OptimizeControl', name: 'OptimizeControl', component: () => import('../views/pp/glassOptimizeThirdParty/OptimizeControl.vue'), }, { path: 'Optimization', name: 'Optimization', component: () => import('../views/pp/glassOptimizeThirdParty/Optimization.vue'), }, { path: 'optimizeparms', name: 'optimizeparms', component: () => import('../views/pp/glassOptimizeThirdParty/OptimizeParms.vue'), }, { path: '/optimizeProject/:projectNo/:thickNess/:model', name: 'optimizeInfo', component: () => import('../views/pp/glassOptimizeThirdParty/OptimizeProject.vue') }, { path: '', redirect:'/main/glassOptimizeThirdParty/optimizeProject1' } ] },*/ { path: '', redirect:'/main/order' } ] }, { path: '/register', name: 'register', component: () => import('../views/RegisterView.vue') }, { path: '/app', name: 'app', component: () => import('../views/system/app/appDownload.vue') } ] }) export default router