// 登录
const UserLogin = () => import('../login/UserLogin.vue');
// 操作员界面
const UserHome = () => import('../login/UserHome.vue');
// 领料管理
const StockRequisition = () => import('../stock/StockRequisition.vue');
// 领料
const ApplyMaterial = () => import('../stock/ApplyMaterial.vue');
// 常用领料
const RegularRequisition = () => import('../stock/RegularRequisition.vue');
// 领料车
const StockPickingCar = () => import('../stock/StockPickingCar.vue');
// 拣货管理
const OrderPicking = () => import('../stock-out/OrderPicking.vue');
// 出库确认
const OutboundConfirm = () => import('../stock-out/OutboundConfirm.vue');
// 还料离开
// const ReturnedLeave = () => import('../stock-in/ReturnedLeave.vue');
// 离开
const MaterialInOutConfirm = () => import('../stock-out/MaterialInOutConfirm.vue');

// AGV RFID识别
const AgvRfidRecognition = () => import('../stock-out/AgvRfidRecognition.vue');
// 入库确认
const InConfirm = () => import('../stock-in/InConfirm.vue');

// 还料区管理
const ReturnManagement = () => import('../agv-process/ReturnManagement.vue');

// 送料区管理
const DeliveryManagement = () => import('../agv-process/DeliveryManagement.vue');

// 异常停泊区管理
const AbnormalManagement = () => import('../agv-process/AbnormalManagement.vue');

// 成品入库
const FinishProductIn = () => import('../finishProduct/FinishProductIn.vue');

// 成品出库
const FinishProductOut = () => import('../finishProduct/FinishProductOut.vue');

// 指纹录入
const FingerprintEnroll = () => import('../Fingerprint/FingerprintEnroll.vue');

// 指纹登录
const FingerprintLogin = () => import('../login/FingerprintLogin.vue');

// 上架区
const FeedingArea = () => import('../box/FeedingArea.vue');

// 闸机控制
const ControlGate = () => import('../gate/ControlGate.vue');

const routes = [
    { path: '/', redirect: '/fingerprint-login' },
    { path: '/login', component: UserLogin, meta: { title: '用户登录' } },
    { path: '/home', component: UserHome, meta: { title: '首页' } },
    { path: '/order-picking', component: OrderPicking, meta: { title: '拣货管理' } },
    { path: '/outbound-confirm', component: OutboundConfirm, meta: { title: '借用' } },
    { path: '/material-in-out-leave', component: MaterialInOutConfirm, meta: { title: '离开' } },

    // { path: '/returned-leave', component: ReturnedLeave, meta: { title: '还料离开' } },    
    { path: '/stock-picking-car', component: StockPickingCar, meta: { title: '领料车' } },
    { path: '/stock-requisition', component: StockRequisition, meta: { title: '领料管理' } },
    { path: '/apply-material', component: ApplyMaterial, meta: { title: '领料' } },
    { path: '/regular-requisition', component: RegularRequisition, meta: { title: '常用领料' } },
    { path: '/agv-rfid-recognition', component: AgvRfidRecognition, meta: { title: 'AGV RFID识别' } },
    { path: '/in-confirm', component: InConfirm, meta: { title: '归还' } },
    { path: '/return-management', component: ReturnManagement, meta: { title: '还料区管理' } },
    { path: '/delivery-management', component: DeliveryManagement, meta: { title: '送料区管理' } },
    { path: '/abnormal-anchorage-area', component: AbnormalManagement, meta: { title: '异常停泊区管理' } },
    { path: '/finish-product-in', component: FinishProductIn, meta: { title: '成品入库' } },
    { path: '/finish-product-out', component: FinishProductOut, meta: { title: '成品出库管理' } },
    { path: '/fingerprint-enroll', component: FingerprintEnroll, meta: { title: '指纹录入' } },
    { path: '/fingerprint-login', component: FingerprintLogin, meta: { title: '指纹登录' } },
    { path: '/feeding-area', component: FeedingArea, meta: { title: '上架区' } },
    { path: '/control-gate', component: ControlGate, meta: { title: '闸机控制' } },
];
export default routes;