| | |
| | | import { createRouter, createWebHistory } from 'vue-router' |
| | | import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router' |
| | | import HomeView from '../views/HomeView.vue' |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(), |
| | | //history: createWebHistory(import.meta.env.BASE_URL), |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | |
| | | component: () => import('../layout/MainErpView.vue'), |
| | | children:[ |
| | | //sd模块 |
| | | { |
| | | path:'orderBasicData', |
| | | name: 'orderBasicData', |
| | | component: () => import('../views/sd/basicData/BasicData.vue'), |
| | | children:[ |
| | | { |
| | | path: 'searchBasicData', |
| | | name: 'searchBasicData', |
| | | component: () => import('../views/sd/basicData/SearchBasicData.vue') |
| | | }, |
| | | { |
| | | name: 'OrderBasicData', |
| | | path: '', |
| | | redirect:'/main/orderBasicData/searchBasicData' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: 'product',//产品 |
| | | name: 'product', |
| | |
| | | name: 'createDelivery', |
| | | component: () => import('../views/sd/delivery/CreateDelivery.vue'), |
| | | }, |
| | | { |
| | | path: 'deliveryPrinting', |
| | | name: 'deliveryPrinting', |
| | | component: () => import('../views/sd/delivery/DeliveryPrinting.vue'), |
| | | }, |
| | | |
| | | |
| | | { |
| | |
| | | path: 'createCustomer', |
| | | name: 'createCustomer', |
| | | component: () => import('../views/sd/customer/CreateCustomer.vue'), |
| | | }, |
| | | { |
| | | path: 'selectCustomerOrder', |
| | | name: 'selectCustomerOrder', |
| | | component: () => import('../views/sd/customer/SelectCustomerOrder.vue'), |
| | | } |
| | | ] |
| | | }, |
| | |
| | | path: 'productionScheduling', |
| | | name: 'productionScheduling', |
| | | component: () => import('../views/pp/processCard/ProductionScheduling.vue'), |
| | | }, |
| | | { |
| | | path: 'selectDetailProcessCard', |
| | | name: 'selectDetailProcessCard', |
| | | component: () => import('../views/pp/processCard/SelectDetailProcessCard.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | |
| | | name: 'damageReport', |
| | | component: () => import('../views/pp/report/DamageReport.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' |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | |
| | | |
| | |
| | | /*----------- 仓储报表 ----------------*/ |
| | | path: 'stockReport', |
| | | name: 'stockReport', |
| | | component: () => import('../views/mm/stockReport/stockReport.vue'), |
| | | component: () => import('../views/mm/stockReport/StockReport.vue'), |
| | | children:[ |
| | | { |
| | | path: 'WarehouseReport', |