import Vue from 'vue' import Router from 'vue-router' import { getEnvInfo } from '@/utils/utils' Vue.use(Router) // 访问web前缀 const { webPrefix } = getEnvInfo() const routes = [ { path: '/', redirect: '/comm' }, { path: '/comm', component: () => import('@/pages/CommView'), children: [ { path: 'overdueReport', component: () => import('@/pages/OverdueReport/index'), meta: { title: '逾期报表', keepAlive: true } }, { path: 'faceRecognition', component: () => import('@/pages/faceRecognition/Index'), meta: { title: '人脸识别', keepAlive: true } }, { path: 'bulkListImport', component: () => import('@/pages/bulkListImport/Index'), meta: { title: '批量名单导入', keepAlive: true } }, { path: 'deferredCustomerList', component: () => import('@/pages/deferredCustomerList/Index'), meta: { title: '延期客户名单', keepAlive: true } }, { path: 'financial', component: () => import('@/pages/Financial') }, { path: 'repaymentDelay', component: () => import('@/pages/transaction/RepaymentDelay'), meta: { title: '还款计划延期', keepAlive: true } }, { path: 'repayment', component: () => import('@/pages/transaction/Repayment'), meta: { title: '正常/逾期还款', keepAlive: true } }, { path: 'advancePartRepayment', component: () => import('@/pages/transaction/AdvancePartRepayment'), meta: { title: '提前部分还款申请', keepAlive: true } }, { path: 'advanceSettle', component: () => import('@/pages/transaction/AdvanceSettle'), meta: { title: '提前结清申请', keepAlive: true } }, { path: 'advanceSettleAppointment', component: () => import('@/pages/transaction/AdvanceSettleAppointment'), meta: { title: '提前结清预约申请', keepAlive: true } }, { path: 'advanceSettleChange', component: () => import('@/pages/transaction/AdvanceSettleChange'), meta: { title: '提前结规则变更申请', keepAlive: true } }, { path: 'rateChange', component: () => import('@/pages/transaction/RateChange'), meta: { title: '利率变更申请', keepAlive: true } }, { path: 'repaymentAccountChange', component: () => import('@/pages/transaction/RepaymentAccountChange'), meta: { title: '还款账号变更申请', keepAlive: true } }, { path: 'deductionStrike', component: () => import('@/pages/transaction/DeductionStrike'), meta: { title: '扣款还款冲账申请', keepAlive: true } }, { path: 'autoDeduction', component: () => import('@/pages/transaction/AutoDeduction'), meta: { title: '自动扣款挂起管理', keepAlive: true } }, { path: 'transactionReview', component: () => import('@/pages/transaction/TransactionReview'), meta: { title: '贷后交易复核', keepAlive: true } }, { path: 'apply', component: () => import('@/pages/Apply') }, { path: 'transferRecord', component: () => import('@/pages/transferRecord/Index'), meta: { title: '流转流水管理', keepAlive: true } }, { path: 'transferRepaymentNotice', component: () => import('@/pages/transferRepaymentNotice/Index'), meta: { title: '中航信托线下转账还款通知', keepAlive: true } }, { path: 'transferRepaymentClaim', component: () => import('@/pages/transferRepaymentClaim/Index'), meta: { title: '转账还款认领', keepAlive: true } }, { path: 'discountSettlement', component: () => import('@/pages/discountSettlement/Index'), meta: { title: '贴息结算', keepAlive: true } }, { path: 'loanRevoke', component: () => import('@/pages/loanRevoke/Index'), meta: { title: '贷款撤销申请', keepAlive: true } }, { path: 'reviewed', component: () => import('@/pages/loanRevoke/Reviewed'), meta: { title: '贷款撤销审核', keepAlive: true } }, { path: 'claim', component: () => import('@/pages/loanRevoke/Claim'), meta: { title: '贷款撤销认领', keepAlive: true } }, { path: 'changeApply', component: () => import('@/pages/plannedChange/ChangeApply'), meta: { title: '还款计划变更申请', keepAlive: true } }, { path: 'changeFace', component: () => import('@/pages/plannedChange/ChangeFace'), meta: { title: '还款计划变更面签', keepAlive: true } }, { path: 'changeReviewed1', component: () => import('@/pages/plannedChange/ChangeReviewed1'), meta: { title: '还款计划变更审核一', keepAlive: true } }, { path: 'changeReviewed2', component: () => import('@/pages/plannedChange/ChangeReviewed2'), meta: { title: '还款计划变更审核二', keepAlive: true } }, { path: 'changeReviewed3', component: () => import('@/pages/plannedChange/ChangeReviewed3'), meta: { title: '还款计划变更审核三', keepAlive: true } }, { path: 'transferRefundApprovalStageOne', component: () => import('@/pages/transferRefundApproval/stageOne'), meta: { title: '转账退款审批阶段一', keepAlive: true } }, { path: 'transferRefundApprovalStageTwo', component: () => import('@/pages/transferRefundApproval/stageTwo'), meta: { title: '转账退款审批阶段二', keepAlive: true } }, { path: 'transferRefundApprovalStageThree', component: () => import('@/pages/transferRefundApproval/stagethree'), meta: { title: '转账退款审批阶段三', keepAlive: true } }, { path: 'transferClaimRevoke', component: () => import('@/pages/transferClaimRevoke/index'), meta: { title: '转账认领撤销申请', keepAlive: true } }, { path: 'transferClaimRevokeStage', component: () => import('@/pages/transferClaimRevokeStage/index'), meta: { title: '转账认领撤销审核', keepAlive: true } }, { path: 'discountFlowUpload', component: () => import('@/pages/discountFlowUpload/index'), meta: { title: '贴息流水上传', keepAlive: true } }, { path: 'interestReturn', component: () => import('@/pages/interestReturn/index'), meta: { title: '息费退款申请', keepAlive: true } }, { path: 'interestReturnStageOne', component: () => import('@/pages/interestReturnStage/stageOne'), meta: { title: '息费退款审核一', keepAlive: true } }, { path: 'interestReturnStagetwo', component: () => import('@/pages/interestReturnStage/stageTwo'), meta: { title: '息费退款审核二', keepAlive: true } }, { path: 'interestReturnStageThree', component: () => import('@/pages/interestReturnStage/stageThree'), meta: { title: '息费退款审核三', keepAlive: true } }, { path: 'interestReduction', component: () => import('@/pages/interestReduction/index'), meta: { title: '息费减免申请', keepAlive: true } }, { path: 'interestReductionStageOne', component: () => import('@/pages/interestReductionStage/stageOne'), meta: { title: '息费减免审核一', keepAlive: true } }, { path: 'interestReductionStageTwo', component: () => import('@/pages/interestReductionStage/stageTwo'), meta: { title: '息费减免审核二', keepAlive: true } }, { path: 'interestReductionStageThree', component: () => import('@/pages/interestReductionStage/stageThree'), meta: { title: '息费减免审核三', keepAlive: true } }, { path: 'commView', component: () => import('@/pages/CommView') }, { path: 'paymentChannel', component: () => import('@/pages/paymentChannel/Index'), meta: { title: '支付通道清算款确认', keepAlive: true } }, { path: 'loanClassUpdate', component: () => import('@/pages/loanClassUpdate/index'), meta: { title: '贷款分级更新', keepAlive: true } }, { path: 'loanClassQuery', component: () => import('@/pages/loanClassQuery/index'), meta: { title: '贷款分级查询', keepAlive: true } }, { path: 'taskAdjustment', component: () => import('@/pages/taskAdjustment/index'), meta: { title: '贷后任务调整', keepAlive: true } }, { path: 'loanChangeQuery', component: () => import('@/pages/loanChangeQuery/index'), meta: { title: '贷后变更查询', keepAlive: true } }, { path: 'financeReportQuery', component: () => import('@/pages/financialQuery/index'), meta: { title: '财务账务查询', keepAlive: true } }, { path: 'customerRepayManagement', component: () => import('@/pages/customerRepayManagement/Index'), meta: { title: '客户还款管理', keepAlive: true } }, { path: 'financialCheckImport', component: () => import('@/pages/financialCheckImport/Index'), meta: { title: '财务凭证核对与导入', keepAlive: true } }, { path: 'financial', component: () => import('@/pages/Financial') }, { path: 'commView', component: () => import('@/pages/CommView') }, { path: 'applyDiscountInvoice', component: () => import('@/pages/applyDiscountInvoice/ApplyDiscountInvoice'), meta: { title: '申请开票', keepAlive: true } }, { path: 'acceptDiscountInvoice', component: () => import('@/pages/applyDiscountInvoice/AcceptDiscountInvoice'), meta: { title: '贴息开票受理', keepAlive: true } }, { path: 'financeDiscountInvoice', component: () => import('@/pages/applyDiscountInvoice/FinanceDiscountInvoice'), meta: { title: '财务贴息开票', keepAlive: true } }, { path: 'searchDiscountInvoice', component: () => import('@/pages/applyDiscountInvoice/SearchDiscountInvoice'), meta: { title: '贴息开票明细查询', keepAlive: true } }, { path: 'dataSupplement', component: () => import('@/pages/dataSupplement/Index'), meta: { title: '贷后申请资料补传', keepAlive: true } }, { path: 'proveSend', component: () => import('@/pages/contractManage/ProveSend'), meta: { title: '结清证明发送', keepAlive: true } }, // { // path: 'contractSend', // component: () => import('@/pages/contractManage/ContractSend'), // meta: { // title: '贷款合同发送', // keepAlive: true // } // }, { path: 'acctPrepaySpecial', component: () => import('@/pages/acctPrepaySpecial/Index'), meta: { title: '特殊减免配置', keepAlive: true } }, { path: 'acctPrepayConfig', component: () => import('@/pages/acctPrepayConfig/Index'), meta: { title: '提前结清减免本金配置', keepAlive: true } }, { path: 'batchDiscountFeeApplyList', component: () => import('@/pages/BatchDiscountFeeApplyList/Index'), meta: { title: '息费减免申请(批量)', keepAlive: true } }, { path: 'batchDiscountFeeList', component: () => import('@/pages/BatchDiscountFeeList/Index'), meta: { title: '息费减免审批(批量)', } }, { path: 'claimPaymentInfoBatch', component: () => import('@/pages/ClaimPaymentInfoBatch/Index'), meta: { title: '贷款借据查询(批量)', } }, { path: 'paymentLog', component: () => import('@/pages/paymentLog/Index'), meta: { title: '交易记录查询(批量)', keepAlive: true } }, { path: 'reportByPaymentLog', component: () => import('@/pages/reportByPaymentLog/Index'), meta: { title: '客户实还记录表', keepAlive: true } }, { path: 'repaymentReceive', component: () => import('@/pages/RepaymentReceive/Index'), meta: { title: '转账还款认领(批量)', keepAlive: true } }, ] }, { path: '/login', component: () => import('@/pages/Login') }, { path: '/photoViewer', component: () => import('@/pages/PhotoViewer') } ] export { routes } export default new Router({ mode: 'hash', base: webPrefix, routes })