|
|
|
import Vue from 'vue'
|
|
|
|
import VueRouter from 'vue-router'
|
|
|
|
import Home from '../views/Home.vue'
|
|
|
|
import depositSummaryReport from '../views/report/depositSummaryReport.vue'
|
|
|
|
import depositDetailsReport from '../views/report/depositDetailsReport.vue'
|
|
|
|
import InventoryBalanceLocation from '../views/report/InventoryBalanceLocation.vue'
|
|
|
|
import ScrapDetail from '../views/report/ScrapDetail.vue'
|
|
|
|
import PurchaseReturnSummary from '../views/report/PurchaseReturnSummary.vue'
|
|
|
|
import ProductDeliverySummary from '../views/report/ProductDeliverySummary.vue'
|
|
|
|
import ProductDeliveryNoPrice from '../views/report/ProductDeliveryNoPrice.vue'
|
|
|
|
import orderSummary from '../views/report/orderSummary.vue'
|
|
|
|
import UnplannedIssueSummary from '../views/report/UnplannedIssueSummary.vue'
|
|
|
|
import UnplannedReceiptSummary from '../views/report/UnplannedReceiptSummary.vue'
|
|
|
|
import SupplierDeliver from '../views/report/SupplierDeliver.vue'
|
|
|
|
import interfaceError from '../views/report/interfaceError.vue'
|
|
|
|
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'Home',
|
|
|
|
component: Home,
|
|
|
|
meta:{
|
|
|
|
title:"报表首页",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/InventoryBalanceLocation',
|
|
|
|
name: 'InventoryBalanceLocation',
|
|
|
|
component: InventoryBalanceLocation,
|
|
|
|
meta:{
|
|
|
|
title:"库存余额报表(按库位)",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/ScrapDetail',
|
|
|
|
name: 'ScrapDetail',
|
|
|
|
component: ScrapDetail,
|
|
|
|
meta:{
|
|
|
|
title:"报废明细报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/PurchaseReturnSummary',
|
|
|
|
name: 'PurchaseReturnSummary',
|
|
|
|
component: PurchaseReturnSummary,
|
|
|
|
meta:{
|
|
|
|
title:"采购退货汇总报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/ProductDeliverySummary',
|
|
|
|
name: 'ProductDeliverySummary',
|
|
|
|
component: ProductDeliverySummary,
|
|
|
|
meta:{
|
|
|
|
title:"成品发货汇总报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/ProductDeliveryNoPrice',
|
|
|
|
name: 'ProductDeliveryNoPrice',
|
|
|
|
component: ProductDeliveryNoPrice,
|
|
|
|
meta:{
|
|
|
|
title:"成品发货汇总报表(无价格)",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/orderSummary',
|
|
|
|
name: 'orderSummary',
|
|
|
|
component: orderSummary,
|
|
|
|
meta:{
|
|
|
|
title:"订单汇总报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/UnplannedIssueSummary',
|
|
|
|
name: 'UnplannedIssueSummary',
|
|
|
|
component: UnplannedIssueSummary,
|
|
|
|
meta:{
|
|
|
|
title:"非生产领料汇总报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/UnplannedReceiptSummary',
|
|
|
|
name: 'UnplannedReceiptSummary',
|
|
|
|
component: UnplannedReceiptSummary,
|
|
|
|
meta:{
|
|
|
|
title:"非生产退料汇总报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/SupplierDeliver',
|
|
|
|
name: 'SupplierDeliver',
|
|
|
|
component: SupplierDeliver,
|
|
|
|
meta:{
|
|
|
|
title:"供应商发货报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/depositSummaryReport',
|
|
|
|
name: 'depositSummaryReport',
|
|
|
|
component: depositSummaryReport,
|
|
|
|
meta:{
|
|
|
|
title:"缴库汇总差异报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/depositDetailsReport',
|
|
|
|
name: 'depositDetailsReport',
|
|
|
|
component: depositDetailsReport,
|
|
|
|
meta:{
|
|
|
|
title:"缴库明细报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/interfaceError',
|
|
|
|
name: 'interfaceError',
|
|
|
|
component: interfaceError,
|
|
|
|
meta:{
|
|
|
|
title:"接口错误报表",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
routes
|
|
|
|
})
|
|
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
|
/* 路由发生变化修改页面title */
|
|
|
|
if (to.meta.title) {
|
|
|
|
document.title = to.meta.title
|
|
|
|
}
|
|
|
|
next()
|
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|