Files
mes-ui-d2/src/router/modules/planning-production.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

import layoutHeaderAside from '@/layout/header-aside'
const meta = { auth: true }
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)
export default {
path: '/planning_production',
component: layoutHeaderAside,
children: (pre => [
{
path: 'index',
name: `${pre}index`,
meta: { ...meta, title: '计划与生产', root: '/planning_production' },
component: _import('system/function/module-index')
},
{
path: 'production_batch_management/batch',
name: `${pre}production_batch_management-batch`,
meta: { ...meta, cache: true, title: '批次列表' },
component: _import('planning-production/batch-management/batch-list')
},
{
path: 'production_batch_management/batch_tray',
name: `${pre}production_batch_management-batch_tray`,
meta: { ...meta, cache: true, title: '批次托盘' },
component: _import('planning-production/batch-management/tray-tracking')
},
{
path: 'production_batch_management/bad',
name: `${pre}production_batch_management-bad`,
meta: { ...meta, cache: true, title: '生产批次不良报表' },
component: _import('planning-production/batch-management/batch-defect-report')
}
])('planning_production-')
}