//客户管理路由模块
const home = (r) => require.ensure([], () => r(require("@/views/Home.vue")), "Home"); //主页

export default [
  {
    path: "/",
    component: home,
    name: "客户管理",
    hidden: true,
    icon_path: require("@/assets/img/home/custom_ico.png"),
    children: [
      {
        path: "customSearch",
        component: () => import("@/views/custom_manage/customSearch.vue"),
        name: "客户检索",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "customList",
        component: () => import("@/views/custom_manage/customList/customList.vue"),
        name: "客户列表",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "customShareList",
        component: () => import("@/views/custom_manage/customList/customShareList.vue"),
        name: "正式客户共享",
        hidden: false,
      },
      {
        path: 'customCityList',
        component: () => import('@/views/custom_manage/customList/customCityList.vue'),
        name: '查看同城客户',
        hidden: false,
        meta: {
            pathFrom: 'customShareList',
            pathName: '正式客户共享'
        }
      },
      {
        path: "customAllList",
        component: () => import("@/views/custom_manage/customList/customAllList.vue"),
        name: "全量客户列表",
        hidden: false,
      },
      {
        path: "customListEn",
        component: () => import("@/views/custom_manage/customList/customListEn.vue"),
        name: "英文报告权限",
        hidden: false,
      },
      {
        path: "overseasCustomList",
        component: () => import("@/views/custom_manage/overseasList/overseasCustomList.vue"),
        name: "海外客户列表",
        hidden: false,
      },
      {
        path: "trialContactListEn",
        component: () => import("@/views/custom_manage/customList/limitContactListEn.vue"),
        name: "临时权限列表",
        hidden: false,
      },
      {
        path: "freezeContactListEn",
        component: () => import("@/views/custom_manage/customList/limitContactListEn.vue"),
        name: "终止权限列表",
        hidden: false,
      },
      {
        path: "pickList",
        name: "领取列表",
        component: () => import("@/views/custom_manage/pickList.vue"),
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "addCustom",
        name: "新增客户",
        component: () => import("@/views/custom_manage/customList/addCustom.vue"),
        hidden: true,
        meta: {
          pathFrom: "customList",
          pathName: "客户列表",
          keepAlive: false,
        },
      },
      {
        path: "editCustom",
        name: "编辑客户",
        component: () => import("@/views/custom_manage/customList/editCustom.vue"),
        hidden: true,
        meta: {
          pathFrom: "customList",
          pathName: "客户列表",
          keepAlive: false,
        },
      },
      {
        path: "addCustomEn",
        component: () => import("@/views/custom_manage/customList/editCustomEn.vue"),
        name: "新增英文客户",
        hidden: true,
        meta: {
          pathFrom: "customListEn",
          pathName: "英文报告权限",
        },
      },
      {
        path: "editCustomEn",
        component: () => import("@/views/custom_manage/customList/editCustomEn.vue"),
        name: "编辑英文客户",
        hidden: true,
        meta: {
          pathFrom: "customListEn",
          pathName: "英文报告权限",
        },
      },
      {
        path: "customDetail",
        name: "客户详情",
        component: () => import("@/views/custom_manage/customList/customDetail.vue"),
        hidden: true,
        meta: {
          pathFrom: "customList",
          pathName: "客户列表",
          keepAlive: false,
        },
      },
      {
        path: "detailCustomEn",
        component: () => import("@/views/custom_manage/customList/editCustomEn.vue"),
        name: "英文客户详情",
        hidden: true,
        meta: {
          pathFrom: "customListEn",
          pathName: "英文报告权限",
        },
      },
      {
        path: "pickCustom",
        name: "领取客户",
        component: () => import("@/views/custom_manage/customList/pickCustom.vue"),
        hidden: true,
        meta: {
          pathFrom: "pickList",
          pathName: "领取列表",
          keepAlive: false,
        },
      },
      // 服务更新差分为 续约申请和补充协议其中 权益无补充协议
      {
        path: "updateCustom",
        name: "续约申请",
        component: () => import("@/views/custom_manage/customList/updateServe.vue"),
        hidden: true,
        meta: {
          pathFrom: "customList",
          pathName: "客户列表",
          keepAlive: false,
        },
      },
      {
        path: "addAgreement",
        name: "补充协议",
        component: () => import("@/views/custom_manage/customList/updateServe.vue"),
        hidden: true,
        meta: {
          pathFrom: "customList",
          pathName: "客户列表",
          keepAlive: false,
        },
      },
      {
        path: "turnCustom",
        name: "申请转正",
        component: () => import("@/views/custom_manage/customList/applyTurn.vue"),
        hidden: true,
        meta: {
          pathFrom: "customList",
          pathName: "客户列表",
          keepAlive: false,
        },
      },
      // {
      // 	path: 'approvalList',
      // 	component: () => import('@/views/custom_manage/approvalList.vue'),
      // 	name: '审批列表',
      // 	hidden: false,
      // 	meta: {
      // 		keepAlive: false
      // 	}
      // },
      {
        path: "approvalUpdate",
        name: "续约审批",
        component: () => import("@/views/custom_manage/approvalUpdate.vue"),
        hidden: true,
        meta: {
          pathFrom: "approvalList",
          pathName: "审批列表",
          keepAlive: false,
        },
      },
      {
        path: "approvalTurn",
        name: "转正审批",
        component: () => import("@/views/custom_manage/approvalTurn.vue"),
        hidden: true,
        meta: {
          pathFrom: "approvalList",
          pathName: "审批列表",
          keepAlive: false,
        },
      },
      {
        path: "potentialList",
        component: () => import("@/views/custom_manage/potentialList.vue"),
        name: "潜在用户",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "trialApplication",
        component: () => import("@/views/custom_manage/trialApplication.vue"),
        name: "官网试用申请",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "userFiccApplyList",
        name: "用户申请列表",
        component: () => import("@/views/ficc_manage/userApplication.vue"),
        hidden: false,
      },
      {
        path: "regionCustomerList",
        component: () => import("@/views/custom_manage/customList/regionCustom.vue"),
        name: "客户区域统计",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "regionCustomerDetail",
        component: () => import("@/views/custom_manage/customList/regionCustomDetail.vue"),
        name: "正式客户列表",
        hidden: false,
        meta: {
          pathFrom: "regionCustomerList",
          pathName: "客户区域统计",
          keepAlive: false,
        },
      },
      {
        path: "contactsList",
        component: () => import("@/views/custom_manage/contacts/contactsList.vue"),
        name: "联系人列表",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "mutualList",
        name: "互动列表",
        component: () => import("@/views/custom_manage/contacts/mutualList.vue"),
        hidden: true,
        meta: {
          pathFrom: "contactsList",
          pathName: "联系人列表",
          keepAlive: false,
        },
      },
      {
        path: "organizationList",
        name: "机构互动列表",
        component: () => import("@/views/custom_manage/contacts/organizationList.vue"),
        hidden: true,
        meta: {
          pathFrom: "contactsList",
          pathName: "联系人列表",
          keepAlive: false,
        },
      },
      {
        path: "wholeOrganization",
        name: "全机构互动列表",
        component: () => import("@/views/custom_manage/contacts/wholeOrganization.vue"),
        hidden: true,
        meta: {
          pathFrom: "contactsList",
          pathName: "联系人列表",
          keepAlive: false,
        },
      },
      {
        path: "customerlistmatch",
        name: "客户名单匹配",
        component: () => import("@/views/custom_manage/listMatch.vue"),
        hidden: false,
      },
      {
        path: "etaTrialList",
        component: () => import("@/views/custom_manage/etaTrialList/etaTrialList.vue"),
        name: "ETA试用",
        hidden: false,
        meta: {
          keepAlive: false,
        },
      },
      {
        path: "etaApprovalList",
        component: () => import("@/views/custom_manage/etaTrialList/etaTrialList.vue"),
        name: "客户列表",
        hidden: false,
        meta: {
          pathFrom: "etaTrialList",
          pathName: "ETA试用",
          keepAlive: false,
        },
      },
      {
        path: "etaAddApproval",
        component: () => import("@/views/custom_manage/etaTrialList/addApproval.vue"),
        name: "新增申请",
        hidden: false,
        meta: {
          pathFrom: "etaTrialList",
          pathName: "ETA试用",
          keepAlive: false,
        },
      },
      {
        path: "questionnaireSurvey",
        component: () => import("@/views/custom_manage/etaTrialList/questionnaireSurvey.vue"),
        name: "问卷调研",
        hidden: false,
        meta: {
          pathFrom: "etaTrialList",
          pathName: "ETA试用",
        },
      },
      {
        path: "questionnaireOption",
        component: () => import("@/views/custom_manage/etaTrialList/questionnaireOption.vue"),
        name: "问卷配置",
        hidden: false,
        meta: {
          pathFrom: "etaTrialList",
          pathName: "ETA试用",
        },
      },
      {
        path: "textQuestionDetail",
        component: () => import("@/views/custom_manage/etaTrialList/textQuestionDetail.vue"),
        name: "统计详情",
        hidden: false,
        meta: {
          pathFrom: "etaTrialList",
          pathName: "ETA试用",
        },
      },
      {
        path: "customerContractStatistics",
        component: () => import("@/views/custom_manage/contractStatistics.vue"),
        name: "开票到款统计",
        hidden: false,
      },
      {
				path: "ficcApplyList",
				name: 'ficc申请记录',
				component: () => import('@/views/ficc_manage/apply/applyList.vue'),
				hidden: false,
			},
      {
        path:'businessETAList',
        name:"商家管理",
        component: () => import('@/views/business_ETA_manage/businessList.vue'),
				hidden: false,
      },
      {
        path:'addETABusiness',
        name:"新增商家",
        component: () => import('@/views/business_ETA_manage/addBusiness.vue'),
				hidden: false,
        meta:{
          pathFrom: "businessETAList",
          pathName: "商家管理",
        }
      },
      {
        path:'editETABusiness',
        name:"编辑商家",
        component: () => import('@/views/business_ETA_manage/businessEdit.vue'),
				hidden: false,
        meta:{
          pathFrom: "businessETAList",
          pathName: "商家管理",
        }
      },
      {
        path:'businessETADetail',
        name:"商家详情",
        component: () => import('@/views/business_ETA_manage/businessDetail.vue'),
				hidden: false,
        meta:{
          pathFrom: "businessETAList",
          pathName: "商家管理",
        }
      },
      {
        path:'businessETAAuth',
        name:"商家权限",
        component: () => import('@/views/business_ETA_manage/businessAuth.vue'),
        hidden: false,
        meta:{
          pathFrom: "businessETAList",
          pathName: "商家管理",
        }
      },
      {
        path:'overseasCustomRoadshow',
        name:"海外客户路演",
        component: () => import('@/views/custom_manage/overseasList/overseasCustomRoadshow.vue'),
        hidden: false
      },
      {
        path:'XClassCustomPoints',
        name:"X类客户派点",
        component: () => import('@/views/custom_manage/points/XClassCustom.vue'),
        hidden: false
      },
      {
        path:'AddNewEntries',
        name:"新增录分",
        component: () => import('@/views/custom_manage/points/AddNewEntries.vue'),
        hidden: false,
        meta:{
          pathFrom: "XClassCustomPoints",
          pathName: "X类客户派点",
        }
      },
      {
        path:'EditNewEntries',
        name:"查看明细",
        component: () => import('@/views/custom_manage/points/AddNewEntries.vue'),
        hidden: false,
        meta:{
          pathFrom: "XClassCustomPoints",
          pathName: "X类客户派点",
        }
      }
    ],
  },
];
