You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

860 lines
28 KiB

import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/* 所有角色可以访问/没有权限要求的基页 */
export const constantRoutes = [{
path: '/redirect',
component: Layout,
hidden: true,
children: [{
path: '/redirect/:path(.*)',
component: () => import('@/views/redirect/index.vue')
}]
},
{
path: '/',
redirect: 'index'
},
{
path: '/index',
component: Layout,
redirect: '/index',
children: [{
path: '/index',
component: () =>
import('@/views/index.vue'),
name: 'index',
meta: {
title: '主页',
noCache: true,
affix: true
}
}]
},
{
path: '/404',
component: () =>
import('@/views/404'),
hidden: true
},
{
path: '/operation',
component: Layout,
redirect: '/operation',
meta: {
title: '业务'
},
children: [
{
path: '/preregistration/preregistration',
component: () => import('@/views/operation/preregistration/preregistration.vue'),
name: 'Preregistration',
meta: { title: '预约单管理', noCache: true }
},
{
path: '/repairbill/repairbill',
component: () => import('@/views/operation/repairbill/repairbill.vue'),
name: 'RepairBill',
meta: { title: '维修单管理(登记)', noCache: true }
},
{
path: '/repairbill/repairbillBySendWork',
component: () => import('@/views/operation/repairbill/repairbillBySendWork.vue'),
name: 'RepairBillBySendWork',
meta: { title: '维修单管理(派工)', noCache: true }
},
{
path: '/repairbill/repairbillByMaintain',
component: () => import('@/views/operation/repairbill/repairbillByMaintain.vue'),
name: 'RepairBillByMaintain',
meta: { title: '维修单管理(维修)', noCache: true }
},
{
path: '/repairbill/repairbillByBeCompleted',
component: () => import('@/views/operation/repairbill/repairbillByBeCompleted.vue'),
name: 'RepairBillByBeCompleted',
meta: { title: '维修单管理(竣工)', noCache: true }
},
{
path: '/repairbill/repairbillBySettleAccounts',
component: () => import('@/views/operation/repairbill/repairbillBySettleAccounts.vue'),
name: 'RepairBillBySettleAccounts',
meta: { title: '维修单管理(结算)', noCache: true }
},
{
path: '/repairbill/repairbillBYLeaveFactory',
component: () => import('@/views/operation/repairbill/repairbillBYLeaveFactory.vue'),
name: 'RepairBillBYLeaveFactory',
meta: { title: '维修单管理(出厂)', noCache: true }
},
{
path: '/workorderquery/workorderquery',
component: () => import('@/views/operation/workorderquery/workorderquery.vue'),
name: 'WorkOrderQuery',
meta: { title: '工单查询', noCache: true }
},
{
path: '/workorderinvoicing/workorderinvoicing',
component: () => import('@/views/operation/workorderinvoicing/workorderinvoicing.vue'),
name: 'WorkOrderInvoicing',
meta: { title: '保外工单开票管理', noCache: true }
},
{
path: '/workorderreceivable/workorderreceivable',
component: () => import('@/views/operation/workorderreceivable/workorderreceivable.vue'),
name: 'WorkOrderReceivable',
meta: { title: '工单应收调差管理', noCache: true }
},
{
path: '/arrearsleavefactory/arrearsleavefactory',
component: () => import('@/views/operation/arrearsleavefactory/arrearsleavefactory.vue'),
name: 'ArrearsLeaveFactory',
meta: { title: '保外欠款出厂管理', noCache: true }
},
{
path: '/pendingclaim/pendingclaim',
component: () => import('@/views/operation/pendingclaim/pendingclaim.vue'),
name: 'PendingClaim',
meta: { title: '待索赔维修工单', noCache: true }
},
{
path: '/claimstatement/claimstatement',
component: () => import('@/views/operation/claimstatement/claimstatement.vue'),
name: 'ClaimStatement',
meta: { title: '厂家索赔单管理', noCache: true }
},
{
path: '/claimbilling/claimbilling',
component: () => import('@/views/operation/claimbilling/claimbilling.vue'),
name: 'ClaimBilling',
meta: { title: '索赔单开票管理', noCache: true }
},
{
path: '/claimpendingverification/claimpendingverification',
component: () => import('@/views/operation/claimpendingverification/claimpendingverification.vue'),
name: 'ClaimPendingVerification',
meta: { title: '工单索赔待核对', noCache: true }
},
{
path: '/claimadjustment/claimadjustment',
component: () => import('@/views/operation/claimadjustment/claimadjustment.vue'),
name: 'ClaimAdjustment',
meta: { title: '工单索赔调整', noCache: true }
},
{
path: '/workslrsettlement/workslrsettlement',
component: () => import('@/views/operation/workslrsettlement/workslrsettlement.vue'),
name: 'WorkSLRSettlement',
meta: { title: '工单反结算管理', noCache: true }
},
{
path: '/workorderreturnvisit/workorderreturnvisit',
component: () => import('@/views/operation/workorderreturnvisit/workorderreturnvisit.vue'),
name: 'WorkOrderReturnVisit',
meta: { title: '工单回访管理', noCache: true }
},
{
path: '/salesticket/salesticket',
component: () => import('@/views/operation/salesticket/salesticket.vue'),
name: 'SalesTicket',
meta: { title: '销售单管理', noCache: true }
},
{
path: '/merchandisereturn/merchandisereturn',
component: () => import('@/views/operation/merchandisereturn/merchandisereturn.vue'),
name: 'MerchandiseReturn',
meta: { title: '商品退货管理', noCache: true }
}
]
},
{
path: '/maintenanceReceive',
component: Layout,
redirect: '/maintenanceReceive',
meta: {
title: '维修领料'
},
children: [
{
path: '/maintenanceReceive/index',
component: () => import('@/views/maintenanceReceive/index.vue'),
name: 'MaintenanceReceive',
meta: {
title: '维修领料',
noCache: true
}
},
{
path: '/maintenanceReceive/maintenanceOutbound',
component: () => import('@/views/maintenanceReceive/maintenanceOutbound.vue'),
name: 'MaintenanceOutbound',
meta: {
title: '维修出库',
noCache: true
}
},
{
path: '/maintenanceReceive/maintenanceReturnBound',
component: () => import('@/views/maintenanceReceive/maintenanceReturnBound.vue'),
name: 'MaintenanceReturnBound',
meta: {
title: '维修退库',
noCache: true
}
}
]
},
{
path: '/warehouse',
component: Layout,
redirect: '/warehouse',
meta: {
title: '仓库管理'
},
children: [
{
path: '/goodsShelves/index',
component: () => import('@/views/warehouse/goodsShelves/index.vue'),
name: 'GoodsShelves',
meta: { title: '库位管理', noCache: true }
},
{
path: '/warehouseArea/index',
component: () => import('@/views/warehouse/warehouseArea/index.vue'),
name: 'WarehouseArea',
meta: { title: '库区管理', noCache: true }
},
{
path: '/warehouseAreaType/index',
component: () => import('@/views/warehouse/warehouseAreaType/index.vue'),
name: 'WarehouseAreaType',
meta: { title: '库区类型管理', noCache: true }
},
{
path: '/warehouse/index',
component: () => import('@/views/warehouse/warehouse/index.vue'),
name: 'Warehouse',
meta: { title: '仓库管理', noCache: true }
}
]
},
{
path: '/goods',
component: Layout,
redirect: '/goods',
meta: {
title: '商品管理'
},
children: [
{
path: '/brands/index',
component: () => import('@/views/goods/brands/index.vue'),
name: 'Brands',
meta: { title: '品牌管理', noCache: true }
},
{
path: '/category/index',
component: () => import('@/views/goods/category/index.vue'),
name: 'Category',
meta: { title: '商品类别', noCache: true }
},
{
path: '/factory/index',
component: () => import('@/views/goods/factory/index.vue'),
name: 'Factory',
meta: { title: '厂家管理', noCache: true }
},
{
path: '/goods/index',
component: () => import('@/views/goods/goods/index.vue'),
name: 'Goods',
meta: { title: '商品管理', noCache: true }
},
{
path: '/unit/index',
component: () => import('@/views/goods/unit/index.vue'),
name: 'Unit',
meta: { title: '计量单位', noCache: true }
}
]
},
{
path: '/storage',
component: Layout,
redirect: '/storage',
meta: {
title: '仓储'
},
children: [
{
path: '/outStorage/index',
component: () => import('@/views/storage/outStorage/index'),
name: 'OutStorage',
meta: { title: '出库管理', noCache: true }
},
{
path: '/inventory/inventory',
component: () => import('@/views/storage/inventory/inventory.vue'),
name: 'Inventory',
meta: { title: '库存查询', noCache: true }
},
{
path: '/inventory/inventoryRefer',
component: () => import('@/views/storage/inventory/inventoryRefer.vue'),
name: 'InventoryRefer',
meta: { title: '出入库查询', noCache: true }
},
{
path: '/adjustment/index',
component: () => import('@/views/storage/adjustment/index.vue'),
name: 'Adjustment',
meta: { title: '定/调价', noCache: true }
},
{
path: '/maintenanceInOrOutBound/index',
component: () => import('@/views/storage/maintenanceInOrOutBound/index.vue'),
name: 'MaintenanceInOrOutBound',
meta: { title: '维修出入库查询', noCache: true }
},
{
path: '/stocktaking/index',
component: () => import('@/views/storage/stocktaking/index'),
name: 'Stocktaking',
meta: { title: '盘点管理', noCache: true }
},
{
path: '/allocation/index',
component: () => import('@/views/storage/allocation/index'),
name: 'Allocation',
meta: { title: '调拨管理', noCache: true }
},
{
path: '/deliveryNotice/index',
component: () => import('@/views/storage/deliveryNotice/index'),
name: 'DeliveryNotice',
meta: { title: '到货通知单', noCache: true }
},
{
path: '/receivingGoods/index',
component: () => import('@/views/storage/receivingGoods/index'),
name: 'ReceivingGoods',
meta: { title: '收货单管理', noCache: true }
},
{
path: '/upShelf/index',
component: () => import('@/views/storage/upShelf/index'),
name: 'UpShelf',
meta: { title: '上架单管理', noCache: true }
},
{
path: '/oldPartsFactory/index',
component: () => import('@/views/storage/oldPartsFactory/index'),
name: 'OldPartsFactory',
meta: { title: '旧件返厂', noCache: true }
},
{
path: '/manufacturerconfirm/index',
component: () => import('@/views/storage/manufacturerconfirm/index'),
name: 'Manufacturerconfirm',
meta: { title: '厂家确认', noCache: true }
},
{
path: '/oldPartsCope/index',
component: () => import('@/views/storage/oldPartsCope/index'),
name: 'OldPartsCope',
meta: { title: '旧件处理', noCache: true }
},
{
path: '/oldPartsRecovery/index',
component: () => import('@/views/storage/oldPartsRecovery/index'),
name: 'OldPartsRecovery',
meta: { title: '旧件回收', noCache: true }
},
{
path: '/oldPartsInStorage/index',
component: () => import('@/views/storage/oldPartsInStorage/index'),
name: 'OldPartsInStorage',
meta: { title: '旧件入库', noCache: true }
},
{
path: '/oldPartsInvertory/index',
component: () => import('@/views/storage/oldPartsInvertory/index'),
name: 'OldPartsInvertory',
meta: { title: '旧件库存', noCache: true }
},
{
path: '/oldPartsInAndOutStorage/index',
component: () => import('@/views/storage/oldPartsInAndOutStorage/index'),
name: 'OldPartsInAndOutStorage',
meta: { title: '旧件出入库查询', noCache: true }
},
{
path: '/storageage/storageage',
component: () => import('@/views/storage/storageage/storageage'),
name: 'StorageAge',
meta: { title: '库龄查询', noCache: true }
},
{
path: '/carryover/carryoverstock',
component: () => import('@/views/storage/carryover/carryoverstock'),
name: 'CarryoverStock',
meta: { title: '结转库存查询', noCache: true }
},
{
path: '/carryover/carryforwardrecord',
component: () => import('@/views/storage/carryover/carryforwardrecord'),
name: 'CarryForwardRecord',
meta: { title: '结转记录查询', noCache: true }
}
]
},
{
path: '/client',
component: Layout,
redirect: '/client',
meta: {
title: '客户'
},
children: [
{
path: '/customermanagement/customermanagement',
component: () => import('@/views/client/customermanagement/customermanagement.vue'),
name: 'CustomerManagement',
meta: { title: '客户管理', noCache: true }
},
{
path: '/customerunit/customerunit',
component: () => import('@/views/client/customerunit/customerunit.vue'),
name: 'CustomerUnit',
meta: { title: '客户单位管理', noCache: true }
}
]
},
{
path: '/purchase',
component: Layout,
redirect: '/purchase',
meta: {
title: '采购'
},
children: [
{
path: '/procurement/procurement',
component: () => import('@/views/purchase/procurement/procurement.vue'),
name: 'Procurement',
meta: { title: '采购单管理', noCache: true }
},
{
path: '/purchasereturn/purchasereturn',
component: () => import('@/views/purchase/purchasereturn/purchasereturn.vue'),
name: 'PurchaseReturn',
meta: { title: '采购退货', noCache: true }
}
]
},
{
path: '/statement',
component: Layout,
redirect: '/statement',
meta: {
title: '报表'
},
children: [
{
path: '/salesstatement/merchandisesalesdetail',
component: () => import('@/views/statement/salesstatement/merchandisesalesdetail.vue'),
name: 'MerchandiseSalesDetail',
meta: { title: '销售明细商品', noCache: true }
},
{
path: '/salesstatement/merchandisesalessummary',
component: () => import('@/views/statement/salesstatement/merchandisesalessummary.vue'),
name: 'MerchandiseSalesSummary',
meta: { title: '销售汇总商品', noCache: true }
},
{
path: '/salesstatement/salestrendreport',
component: () => import('@/views/statement/salesstatement/salestrendreport.vue'),
name: 'SalesTrendReport',
meta: { title: '销售价趋势报表', noCache: true }
},
{
path: '/warehousereport/inventorystatistics',
component: () => import('@/views/statement/warehousereport/inventorystatistics.vue'),
name: 'InventoryStatistics',
meta: { title: '库存统计', noCache: true }
},
{
path: '/warehousereport/receiptandreceiptrecord',
component: () => import('@/views/statement/warehousereport/receiptandreceiptrecord.vue'),
name: 'ReceiptAndReceiptRecord',
meta: { title: '收发存明细报表', noCache: true }
},
{
path: '/purchasereport/detailedpurchasereport',
component: () => import('@/views/statement/purchasereport/detailedpurchasereport.vue'),
name: 'DetailedPurchaseReport',
meta: { title: '采购明细报表', noCache: true }
},
{
path: '/purchasereport/purchasesummaryreport',
component: () => import('@/views/statement/purchasereport/purchasesummaryreport.vue'),
name: 'PurchaseSummaryReport',
meta: { title: '采购汇总报表', noCache: true }
}
]
},
{
path: '/basicinformation',
component: Layout,
redirect: '/basicinformation',
meta: {
title: '基础信息'
},
children: [
{
path: '/maintenanceitem/maintenanceitem',
component: () => import('@/views/basicinformation/maintenanceitem/maintenanceitem.vue'),
name: 'MaintenanceItem',
meta: { title: '维修项目管理', noCache: true }
},
{
path: '/maintenanceProjectRecord/maintenanceProjectRecord',
component: () => import('@/views/basicinformation/maintenanceProjectRecord/maintenanceProjectRecord.vue'),
name: 'MaintenanceProjectRecord',
meta: { title: '维修项目备案', noCache: true }
},
{
path: '/additionitem/additionitem',
component: () => import('@/views/basicinformation/additionitem/additionitem.vue'),
name: 'AdditionItem',
meta: { title: '附加项目管理', noCache: true }
},
{
path: '/setmeal/setmeal',
component: () => import('@/views/basicinformation/setmeal/setmeal.vue'),
name: 'Setmeal',
meta: { title: '套餐管理', noCache: true }
},
{
path: '/profession/profession',
component: () => import('@/views/basicinformation/profession/profession.vue'),
name: 'Profession',
meta: { title: '工种管理', noCache: true }
},
{
path: '/subjects/subjects',
component: () => import('@/views/basicinformation/subjects/subjects.vue'),
name: 'Subjects',
meta: { title: '科目管理', noCache: true }
},
{
path: '/team/team',
component: () => import('@/views/basicinformation/team/team.vue'),
name: 'Team',
meta: { title: '班组管理', noCache: true }
},
{
path: '/suppliertype/suppliertype',
component: () => import('@/views/basicinformation/suppliertype/suppliertype.vue'),
name: 'SupplierType',
meta: { title: '供应商类型管理', noCache: true }
},
{
path: '/supplier/supplier',
component: () => import('@/views/basicinformation/supplier/supplier.vue'),
name: 'Supplier',
meta: { title: '供应商管理', noCache: true }
},
{
path: '/claimantManufacturer/claimantManufacturer',
component: () => import('@/views/basicinformation/claimantManufacturer/claimantManufacturer.vue'),
name: 'ClaimantManufacturer',
meta: { title: '索赔厂家管理', noCache: true }
}
]
},
// 采购申请管理--编辑
{
path: '/caigouFlow/procurementEdit',
component: () =>
import('@/views/workFlow/caigouFlow/procurementEdit.vue'),
name: 'ProcurementEdit'
},
// 采购申请管理--待办
{
path: '/caigouFlow/procurementDaiBan',
component: () =>
import('@/views/workFlow/caigouFlow/procurementDaiBan.vue'),
name: 'ProcurementDaiBan'
},
// 采购申请管理--已办
{
path: '/caigouFlow/procurementYiBan',
component: () =>
import('@/views/workFlow/caigouFlow/procurementYiBan.vue'),
name: 'ProcurementYiBan'
},
// 采购退货单管理--编辑
{
path: '/caigoutuihuoFlow/purchasereturnEdit',
component: () =>
import('@/views/workFlow/caigoutuihuoFlow/purchasereturnEdit.vue'),
name: 'PurchaseReturnEdit'
},
// 采购退货单管理--待办
{
path: '/caigoutuihuoFlow/purchasereturnDaiBan',
component: () =>
import('@/views/workFlow/caigoutuihuoFlow/purchasereturnDaiBan.vue'),
name: 'PurchaseReturnDaiBan'
},
// 采购退货单管理--已办
{
path: '/caigoutuihuoFlow/purchasereturnYiBan',
component: () =>
import('@/views/workFlow/caigoutuihuoFlow/purchasereturnYiBan.vue'),
name: 'PurchaseReturnYiBan'
},
// 工单反结算管理--编辑
{
path: '/fanjiesuanFlow/workslrsettlementEdit',
component: () =>
import('@/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue'),
name: 'WorkSLRSettlementEdit'
},
// 工单反结算管理--待办
{
path: '/fanjiesuanFlow/workslrsettlementDaiBan',
component: () =>
import('@/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue'),
name: 'WorkSLRSettlementDaiBan'
},
// 工单反结算管理--已办
{
path: '/fanjiesuanFlow/workslrsettlementYiBan',
component: () =>
import('@/views/workFlow/fanjiesuanFlow/workslrsettlementYiBan.vue'),
name: 'WorkSLRSettlementYiBan'
},
// 保外欠款出厂管理--编辑
{
path: '/qikuanchuchangFlow/arrearsleavefactoryEdit',
component: () =>
import('@/views/workFlow/qikuanchuchangFlow/arrearsleavefactoryEdit.vue'),
name: 'ArrearsLeaveFactoryEdit'
},
// 保外欠款出厂管理--待办
{
path: '/qikuanchuchangFlow/arrearsleavefactoryDaiBan',
component: () =>
import('@/views/workFlow/qikuanchuchangFlow/arrearsleavefactoryDaiBan.vue'),
name: 'ArrearsLeaveFactoryDaiBan'
},
// 保外欠款出厂管理--已办
{
path: '/qikuanchuchangFlow/arrearsleavefactoryYiBan',
component: () =>
import('@/views/workFlow/qikuanchuchangFlow/arrearsleavefactoryYiBan.vue'),
name: 'ArrearsLeaveFactoryYiBan'
},
// 索赔单开票管理--编辑
{
path: '/suopeikaipiaoFlow/claimbillingEdit',
component: () =>
import('@/views/workFlow/suopeikaipiaoFlow/claimbillingEdit.vue'),
name: 'ClaimBillingEdit'
},
// 索赔单开票管理--待办
{
path: '/suopeikaipiaoFlow/claimbillingDaiBan',
component: () =>
import('@/views/workFlow/suopeikaipiaoFlow/claimbillingDaiBan.vue'),
name: 'ClaimBillingDaiBan'
},
// 索赔单开票管理--已办
{
path: '/suopeikaipiaoFlow/claimbillingYiBan',
component: () =>
import('@/views/workFlow/suopeikaipiaoFlow/claimbillingYiBan.vue'),
name: 'ClaimBillingYiBan'
},
// 工单索赔调整--编辑
{
path: '/suopeitiaozhengFlow/claimadjustmentEdit',
component: () =>
import('@/views/workFlow/suopeitiaozhengFlow/claimadjustmentEdit.vue'),
name: 'ClaimAdjustmentEdit'
},
// 工单索赔调整--待办
{
path: '/suopeitiaozhengFlow/claimadjustmentDaiBan',
component: () =>
import('@/views/workFlow/suopeitiaozhengFlow/claimadjustmentDaiBan.vue'),
name: 'ClaimAdjustmentDaiBan'
},
// 工单索赔调整--已办
{
path: '/suopeitiaozhengFlow/claimadjustmentYiBan',
component: () =>
import('@/views/workFlow/suopeitiaozhengFlow/claimadjustmentYiBan.vue'),
name: 'ClaimAdjustmentYiBan'
},
// 定/调价--编辑
{
path: '/adjustmentFlow/adjustmentEdit',
component: () =>
import('@/views/workFlow/adjustmentFlow/adjustmentEdit.vue'),
name: 'AdjustmentEdit'
},
// 定/调价--待办
{
path: '/adjustmentFlow/adjustmentDaiBan',
component: () =>
import('@/views/workFlow/adjustmentFlow/adjustmentDaiBan.vue'),
name: 'AdjustmentDaiBan'
},
// 定/调价--已办
{
path: '/adjustmentFlow/adjustmentYiBan',
component: () =>
import('@/views/workFlow/adjustmentFlow/adjustmentYiBan.vue'),
name: 'AdjustmentYiBan'
},
// 保外工单开票申请管理--编辑
{
path: '/gongdankaipiaoFlow/workorderinvoicingEdit',
component: () =>
import('@/views/workFlow/gongdankaipiaoFlow/workorderinvoicingEdit.vue'),
name: 'WorkOrderInvoicingEdit'
},
// 保外工单开票申请管理--待办
{
path: '/gongdankaipiaoFlow/workorderinvoicingDaiBan',
component: () =>
import('@/views/workFlow/gongdankaipiaoFlow/workorderinvoicingDaiBan.vue'),
name: 'WorkOrderInvoicingDaiBan'
},
// 保外工单开票申请管理--已办
{
path: '/gongdankaipiaoFlow/workorderinvoicingYiBan',
component: () =>
import('@/views/workFlow/gongdankaipiaoFlow/workorderinvoicingYiBan.vue'),
name: 'WorkOrderInvoicingYiBan'
},
// 保外工单应收调差申请管理--编辑
{
path: '/gongdanyingshouFlow/workorderreceivableEdit',
component: () =>
import('@/views/workFlow/gongdanyingshouFlow/workorderreceivableEdit.vue'),
name: 'WorkOrderReceivableEdit'
},
// 保外工单应收调差申请管理--待办
{
path: '/gongdanyingshouFlow/workorderreceivableDaiBan',
component: () =>
import('@/views/workFlow/gongdanyingshouFlow/workorderreceivableDaiBan.vue'),
name: 'WorkOrderReceivableDaiBan'
},
// 保外工单应收调差申请管理--已办
{
path: '/gongdanyingshouFlow/workorderreceivableYiBan',
component: () =>
import('@/views/workFlow/gongdanyingshouFlow/workorderreceivableYiBan.vue'),
name: 'WorkOrderReceivableYiBan'
},
// 商品退货管理--编辑
{
path: '/shangpintuihuoFlow/merchandisereturnEdit',
component: () =>
import('@/views/workFlow/shangpintuihuoFlow/merchandisereturnEdit.vue'),
name: 'MerchandiseReturnEdit'
},
// 商品退货管理--待办
{
path: '/shangpintuihuoFlow/merchandisereturnDaiBan',
component: () =>
import('@/views/workFlow/shangpintuihuoFlow/merchandisereturnDaiBan.vue'),
name: 'MerchandiseReturnDaiBan'
},
// 商品退货管理--已办
{
path: '/shangpintuihuoFlow/merchandisereturnYiBan',
component: () =>
import('@/views/workFlow/shangpintuihuoFlow/merchandisereturnYiBan.vue'),
name: 'MerchandiseReturnYiBan'
},
// 厂家回收--编辑
{
path: '/oldPartsFactoryFlow/oldPartsFactoryEdit',
component: () =>
import('@/views/workFlow/oldPartsFactoryFlow/oldPartsFactoryEdit.vue'),
name: 'OldPartsFactoryEdit'
},
// 厂家回收--待办
{
path: '/oldPartsFactoryFlow/oldPartsFactoryDaiBan',
component: () =>
import('@/views/workFlow/oldPartsFactoryFlow/oldPartsFactoryDaiBan.vue'),
name: 'OldPartsFactoryDaiBan'
},
// 厂家回收--已办
{
path: '/oldPartsFactoryFlow/oldPartsFactoryYiBan',
component: () =>
import('@/views/workFlow/oldPartsFactoryFlow/oldPartsFactoryYiBan.vue'),
name: 'OldPartsFactoryYiBan'
},
// 维修项目备案 -- 编辑
{
path: '/weixiubeianFlow/maintenanceProjectRecordEdit',
component: () =>
import('@/views/workFlow/weixiubeianFlow/maintenanceProjectRecordEdit.vue'),
name: 'MaintenanceProjectRecordEdit'
},
// 维修项目备案 -- 待办
{
path: '/weixiubeianFlow/maintenanceProjectRecordDaiBan',
component: () =>
import('@/views/workFlow/weixiubeianFlow/maintenanceProjectRecordDaiBan.vue'),
name: 'MaintenanceProjectRecordDaiBan'
},
// 维修项目备案 -- 已办
{
path: '/weixiubeianFlow/maintenanceProjectRecordYiBan',
component: () =>
import('@/views/workFlow/weixiubeianFlow/maintenanceProjectRecordYiBan.vue'),
name: 'MaintenanceProjectRecordYiBan'
},
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }
]
const createRouter = () => new Router({
// mode: 'history', // require service support
scrollBehavior: () => ({
y: 0
}),
routes: constantRoutes
})
const router = createRouter()
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter() {
const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router
}
export default router