import CreditFlowCase from './CreditFlowCase' import CreditFlowCommon from './CreditFlowCommon' import MortgageFlow from './MortgageFlow' import BuildingBusinessFlow from './BuildingBusinessFlow' import CreditFlowPublic from './CreditFlowPublic' import WorkerLoanPublic from './WorkerLoanPublic' import VloanPublic from './VloanPublic' import ZBDCreditFlow from './ZBDCreditFlow' import ZBDEntInfoAlterFlow from './ZBDEntInfoAlterFlow' import { resolve } from 'core-js/fn/promise' const coreEnterprise = resolve => require(['@/views/product/public/coreEnterprise/index.vue'], resolve) const imageData = resolve => require(['@/views/product/public/imageData/index.vue'], resolve) const historicalOpinions = resolve => require(['@/views/product/public/historicalOpinions/index.vue'], resolve) const flowRecord = resolve => require(['@/views/product/public/flowRecord/index.vue'], resolve) const loanApprovalApply = resolve => require(['@/views/product/public/loanApprovalApply/index.vue'], resolve) //工友贷(暂定)项目管理 const workerLoanList = resolve => require(['@/views/product/public/workerLoanList/index.vue'], resolve) //工友贷(暂定)项目初审 const workerLoanInitReviewList = resolve => require(['@/views/product/public/workerLoanInitReviewList/index.vue'], resolve) //工友贷(暂定)项目复审 const workerLoanSecReviewList = resolve => require(['@/views/product/public/workerLoanSecReviewList/index.vue'], resolve) //项目初审/复审详情 const workerLoanInitialReview = resolve => require(['@/views/product/public/workerLoanInitialReview/index.vue'], resolve) //项目查看详情 const workerLoanDetail = resolve => require(['@/views/product/public/workerLoanDetail/index.vue'], resolve) //V贷和解项目列表 const vLoanReconcileList = resolve => require(['@/views/product/public/vLoanReconcileList/index.vue'], resolve) //V贷和解项目详情(查看) const vLoanReconcileDetail = resolve => require(['@/views/product/public/vLoanReconcileDetail/index.vue'], resolve) //V贷提前还款页面详情 const vLoanEarlyRepayment = resolve => require(['@/views/product/public/vLoanEarlyRepayment/index.vue'], resolve) //V贷和解项目详情 初审,复审 const vLoanReconcileInitialReview = resolve => require(['@/views/product/public/vLoanReconcileInitialReview/index.vue'], resolve) const clientsManage = resolve => require(['@/views/product/public/clientsManage/index.vue'], resolve) const clientsNewManage = resolve => require(['@/views/product/public/clientsManage/index.vue'], resolve) const preApprovalApply = resolve => require(['@/views/product/public/preApprovalApply/index.vue'], resolve) const loanApplyEdit = resolve => require(['@/views/product/public/loanApplyEdit/index.vue'], resolve) const supplement = resolve => require(['@/views/product/public/supplement/index.vue'], resolve) const contract = resolve => require(['@/views/product/public/contract/index.vue'], resolve) const opinion = resolve => require(['@/views/product/public/opinion/index.vue'], resolve) const historicalLoan = resolve => require(['@/views/product/public/historicalLoan/index.vue'], resolve) const riskApproval = resolve => require(['@/views/product/public/riskApproval/index.vue'], resolve) const preChargeMerchantDiscount = resolve => require(['@/views/product/public/preChargeMerchantDiscount/index.vue'], resolve) const preChargeCustomerInterest = resolve => require(['@/views/product/public/preChargeCustomerInterest/index.vue'], resolve) const productRouter = [ { // 产品 path: '/product', component: () => import('@/views/product/views/PageView'), children: [ { // 贷款申请列表 path: 'loanApprovalApply', component: loanApprovalApply, meta: { // 缓存路由,返回时不刷新页面 keepAlive: true } }, { //工友贷(暂定)项目管理 path: 'workerLoanList', component: workerLoanList, meta: { keepAlive: true } }, { //工友贷(暂定)项目初审 path: 'workerLoanInitReviewList', component: workerLoanInitReviewList, meta: { keepAlive: true } }, { //工友贷(暂定)项目复审 path: 'workerLoanSecReviewList', component: workerLoanSecReviewList, meta: { keepAlive: true } }, { //V贷和解项目列表 path: 'vLoanReconcileList', component: vLoanReconcileList, meta: { keepAlive: true } }, { // 预审批申请列表 path: 'preApprovalApply', component: preApprovalApply, meta: { keepAlive: true } }, ], }, { // 预审批申请列表 path: '/preApprovalApply', component: preApprovalApply, meta: { keepAlive: true } }, { // 贷款申请列表 path: '/loanApprovalApply', component: loanApprovalApply, meta: { keepAlive: true } }, { //工友贷(暂定)项目管理 path: '/workerLoanList', component: workerLoanList, meta: { keepAlive: true } }, { //工友贷(暂定)项目初审 path: '/workerLoanInitReviewList', component: workerLoanInitReviewList, meta: { keepAlive: true } }, { //工友贷(暂定)项目复审 path: '/workerLoanSecReviewList', component: workerLoanSecReviewList, meta: { keepAlive: true } }, { //V贷和解项目列表 path: '/vLoanReconcileList', component: vLoanReconcileList, meta: { keepAlive: true } }, { // 资料预审 path: '/clientsManage', component: clientsManage, meta: { keepAlive: true } }, { // 资料预审 path: '/clientsNewManage', component: clientsNewManage, meta: { keepAlive: true } }, { // 补充资料 path: '/supplement', component: supplement, }, { // 贷款申请和预审批申请编辑页面 path: '/loanApplyEdit', component: loanApplyEdit, children: [ ...CreditFlowCase,//案场路由配置 ...CreditFlowCommon,//非案场路由配置 ...MortgageFlow,//抵押贷路由配置 ...BuildingBusinessFlow,//赎楼贷路由配置 ...ZBDCreditFlow,//招标贷路由配置 ...CreditFlowPublic,//保理路由配置 ...ZBDEntInfoAlterFlow,//招标贷企业修改路由配置 { // 审批意见 path: '/opinion', component: opinion, }, { // 风控审批信息 path: '/riskApproval', component: riskApproval, }, { // 电子合同信息 path: '/contract', component: contract, }, { //核心企业信息 path: '/coreEnterprise', component: coreEnterprise, }, { // 影像件资料信息 path: '/imageData', component: imageData, }, { // 历史审批意见 path: '/historicalOpinions', component: historicalOpinions, }, { // 预收商户贴息 path: '/preChargeMerchantDiscount', component: preChargeMerchantDiscount, }, { // 预收客户息费 path: '/preChargeCustomerInterest', component: preChargeCustomerInterest, }, { // 流程流转记录 path: '/flowRecord', component: flowRecord, }, { // 历史贷款信息 path: '/historicalLoan', component: historicalLoan, }, ] }, { // 工友贷初审详情页 path: '/workerLoanInitialReview', component: workerLoanInitialReview, children: [ ...WorkerLoanPublic, ] }, { //V贷和解初审详情页 path: '/vLoanReconcileInitialReview', component: vLoanReconcileInitialReview, children: [ ...VloanPublic, ], }, { // 查看工友贷详情页 path: '/workerLoanDetail/:id', component: workerLoanDetail, meta: { // 缓存路由,返回时不刷新页面 isDetail: true } }, { // 查看V贷和解详情页 path: '/vLoanReconcileDetail/:id', component: vLoanReconcileDetail, meta: { // 缓存路由,返回时不刷新页面 isDetail: true } }, { // 查看V贷和解详情页 path: '/vLoanEarlyRepayment/:id', component: vLoanEarlyRepayment, meta: { // 缓存路由,返回时不刷新页面 isDetail: true } }, ] export default productRouter