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.
254 lines
7.3 KiB
254 lines
7.3 KiB
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 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'
|
|
import InventoryJournalERP from '../views/report/InventoryJournalERP.vue'
|
|
import InventoryJournalLocation from '../views/report/InventoryJournalLocation.vue'
|
|
import InventoryBalanceERP from '../views/report/InventoryBalanceERP.vue'
|
|
import InventoryBalanceLocation from '../views/report/InventoryBalanceLocation.vue'
|
|
import InventoryBalanceEnRoute from '../views/report/InventoryBalanceEnRoute.vue'
|
|
import InventoryAgingsectionSummary from '../views/report/InventoryAgingsectionSummary.vue'
|
|
import InventoryAgingDetail from '../views/report/InventoryAgingDetail.vue'
|
|
import planNoteSummary from '../views/report/planNoteSummary.vue'
|
|
import ProductionIssueSummary from '../views/report/ProductionIssueSummary.vue'
|
|
import ProductionReturnSummary from '../views/report/ProductionReturnSummary.vue'
|
|
import ProductReceiptSummary from '../views/report/ProductReceiptSummary.vue'
|
|
import SupplierAndOrderSummary from '../views/report/SupplierAndOrderSummary.vue'
|
|
import rawScrapList from '../views/report/rawScrapList.vue'
|
|
import InventoryBookDetail from '../views/report/InventoryBookDetail.vue'
|
|
|
|
Vue.use(VueRouter)
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: Home,
|
|
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:"接口错误报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryJournalERP',
|
|
name: 'InventoryJournalERP',
|
|
component: InventoryJournalERP,
|
|
meta:{
|
|
title:"库存流水账汇总(储位)",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryJournalLocation',
|
|
name: 'InventoryJournalLocation',
|
|
component: InventoryJournalLocation,
|
|
meta:{
|
|
title:"库存流水账汇总(库位)",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryBalanceERP',
|
|
name: 'InventoryBalanceERP',
|
|
component: InventoryBalanceERP,
|
|
meta:{
|
|
title:"库存余额报表(按ERP储位)",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryBalanceLocation',
|
|
name: 'InventoryBalanceLocation',
|
|
component: InventoryBalanceLocation,
|
|
meta:{
|
|
title:"库存余额报表(按库位)",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryBalanceEnRoute',
|
|
name: 'InventoryBalanceEnRoute',
|
|
component: InventoryBalanceEnRoute,
|
|
meta:{
|
|
title:"库存余额报表(按在途库)",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryAgingsectionSummary',
|
|
name: 'InventoryAgingsectionSummary',
|
|
component: InventoryAgingsectionSummary,
|
|
meta:{
|
|
title:"库存账龄汇总报表(分段)",
|
|
}
|
|
},
|
|
{
|
|
path: '/InventoryAgingDetail',
|
|
name: 'InventoryAgingDetail',
|
|
component: InventoryAgingDetail,
|
|
meta:{
|
|
title:"库存账龄明细报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/planNoteSummary',
|
|
name: 'planNoteSummary',
|
|
component: planNoteSummary,
|
|
meta:{
|
|
title:"盘点记录汇总报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/ProductionIssueSummary',
|
|
name: 'ProductionIssueSummary',
|
|
component: ProductionIssueSummary,
|
|
meta:{
|
|
title:"生产发料汇总报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/ProductionReturnSummary',
|
|
name: 'ProductionReturnSummary',
|
|
component: ProductionReturnSummary,
|
|
meta:{
|
|
title:"生产退料汇总报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/ProductReceiptSummary',
|
|
name: 'ProductReceiptSummary',
|
|
component: ProductReceiptSummary,
|
|
meta:{
|
|
title:"完工收货汇总报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/SupplierAndOrderSummary',
|
|
name: 'SupplierAndOrderSummary',
|
|
component: SupplierAndOrderSummary,
|
|
meta:{
|
|
title:"供应商发货订单汇总报表",
|
|
}
|
|
},
|
|
{
|
|
path: '/rawScrapList',
|
|
name: 'rawScrapList',
|
|
component: rawScrapList,
|
|
meta:{
|
|
title:"原物料过期报表",
|
|
}
|
|
},
|
|
// {
|
|
// path: '/InventoryBookDetail',
|
|
// name: 'InventoryBookDetail',
|
|
// component: InventoryBookDetail,
|
|
// 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
|
|
|