/**
 * Created by jin.zhouhang on 17-9-21 下午3:02.
 *
 * 枚举处理工具
 */
const enumUtils = {
    install: function (Vue) {
        Vue.prototype.$enumUtils = {
            toMsg(enumName, code) {

                var enumOpts = [];
                /** 借条状态*/
                enumOpts[0] = {
                    enumName: 'LoanStatusEnum', values: [
                        {code: 'INIT', message: '新增借款'},
                        {code: 'SUBMITED', message: '审核中'},
                        {code: 'RAISECONFIRM', message: '财务确认'},
                        {code: 'AUDITED', message: '回款中'},
                        {code: 'REPAYCONFIRM', message: '还款确认'},
                        {code: 'SETTLED', message: '已结清'},
                        {code: 'OVERDUED', message: '已逾期'},
                        {code: 'CANCELED', message: '已作废'},
                        {code: 'BACKING', message: '回款中'},
                    ]
                };
                /** 借款类型*/
                enumOpts[1] = {
                    enumName: 'LoanTypeEnum',
                    values: [
                        {code: 'NEW', message: '新增'},
                        {code: 'CONTINUE', message: '续贷'},
                        {code: 'EXTENSION', message: '展期'},
                        {code: 'PART_EXT', message: '减额展期'},
                    ]
                };
                /** 结转方式*/
                enumOpts[2] = {
                    enumName: 'LoanBackTypeEnum', values: [
                        {code: 'SETTL', message: '正常结清'},
                        {code: 'CONTINUE', message: '续贷结清'},
                        {code: 'EXTENSION', message: '展期结清'},
                        {code: 'PART_EXT', message: '减额结清'},
                        {code: 'OVERDUE', message: '逾期结清'},
                        {code: 'AHEAD', message: '提前结清'},
                    ]
                };
                /** 联系类型*/
                enumOpts[3] = {
                    enumName: 'LoanOperateTypeEnum', values: [
                        {code: 'SUBMITING', message: '提交借款'},
                        {code: 'AUDITING', message: '财务通过'},
                        {code: 'REFUSEING', message: '退回'},
                        {code: 'REMINDING', message: '结转提醒'},
                        {code: 'OVERDUING', message: '自动逾期'},
                        {code: 'CONFIRMING', message: '结转确认'},
                        {code: 'CANCELING', message: '借款作废'},
                    ]
                };
                /** 客户联系类型*/
                enumOpts[4] = {
                    enumName: 'ClientContactTypeEnum', values: [
                        {code: 'SALE', message: '销售联系'},
                        {code: 'APPLY', message: '借款申请'},
                        {code: 'AUDIT', message: '财务通过'},
                        {code: 'CHECK', message: '贷后检查'},
                        {code: 'REMIND', message: '结转提醒'},
                        {code: 'COLLECT', message: '逾期催收'},
                    ]
                };
                /** 逾期状态*/
                enumOpts[5] = {
                    enumName: 'CollectStatusEnum', values: [
                        {code: 'INIT', message: '新增催收'},
                        {code: 'FOLLOW', message: '已跟进'},
                        {code: 'SUBMITED', message: '财务确认'},
                        {code: 'BACKED', message: '已还款'},
                        {code: 'OUTSOURCE', message: '委外催收'},
                    ]
                };
                /** 逾期结清方式*/
                enumOpts[6] = {
                    enumName: 'BackedModeEnum', values: [
                        {code: 'SETTLED', message: '结清'},
                        {code: 'PART', message: '部分还款'},
                    ]
                };

                /** 文件状态*/
                enumOpts[7] = {
                    enumName: 'OriginIndexStateEnum', values: [
                        {code: 'INIT', message: '初始化'},
                        {code: 'ERROR', message: '错误'},
                        {code: 'FINISH', message: '结束'},
                    ]
                };
                /** 银行卡类型 */
                enumOpts[8] = {
                    enumName: 'CardRelationEnum', values: [
                        {code: 'LEND', message: '回款卡'},
                        {code: 'BACKUP', message: '回款备选卡'},
                        {code: 'RAISE', message: '放款卡'},
                        {code: 'COLLECT', message: '催收卡'},
                    ]
                };

                /** 银行卡状态 */
                enumOpts[9] = {
                    enumName: 'CardStateEnum', values: [
                        {code: 'ENABLED', message: '有效'},
                        {code: 'UNABLED', message: '无效'},
                    ]
                };

                /** 划款状态 */
                enumOpts[10] = {
                    enumName: 'BackedStatusEnum', values: [
                        {code: 'SUBMITED', message: '待审核'},
                        {code: 'AUDITED', message: '已确认'},
                        {code: 'CANCELED', message: '已作废'},
                        {code: 'HOLDED', message: '已挂起'},
                    ]
                };


                /** 还款方式 */
                enumOpts[11] = {
                    enumName: ' BackedModeEnum', values: [
                        {code: 'SETTLED', message: '结清'},
                        {code: 'PART', message: '部分还款'},
                    ]
                };

                /** 还款类型 */
                enumOpts[12] = {
                    enumName: 'BackedTypeEnum', values: [
                        {code: 'REMIND', message: '提醒还款'},
                        {code: 'COLLECT', message: '催收还款'},
                    ]
                };

                /** 用户类型 */
                enumOpts[13] = {
                    enumName: 'UserStatusEnum', values: [
                        {code: 'NORMAL', message: '正常'},
                        {code: 'LEAVE', message: '离职'},
                    ]
                }

                /** 放款单类型 */
                enumOpts[14] = {
                    enumName: 'LoanRaiseTypeEnum', values: [
                        {code: 'TRANSFER', message: '线下转账'},
                        {code: 'PAY', message: '代付'},
                    ]
                };

                /** 放款单状态 */
                enumOpts[15] = {
                    enumName: 'LoanRaiseStatusEnum', values: [
                        {code: 'INIT', message: '新创建'},
                        {code: 'WAIT', message: '待处理'},
                        {code: 'SUCC', message: '处理成功'},
                        {code: 'FAIL', message: '处理失败'},
                    ]
                };

                /** 客户来源 */
                enumOpts[16] = {
                    enumName: 'ClientOriginTypeEnum', values: [
                        {code: 'EXCEL', message: '白名单'},
                        {code: 'HTTP', message: '天女引流'},
                        {code: 'ESALE', message: '电销'},
                    ]
                };


                /** 还款类型 */
                enumOpts[17] = {
                    enumName: 'BackedTypeEnum', values: [
                        {code: 'REMIND', message: '提醒还款'},
                        {code: 'COLLECT', message: '催收还款'},
                    ]
                }

                /** 还款方式 */
                enumOpts[18] = {
                    enumName: 'BackedTransferTypeEnum', values: [
                        {code: 'TRANSFER', message: '线下转账'},
                        {code: 'PROTOCOL', message: '协议代扣'},
                    ]
                };

                /** 还款状态 */
                enumOpts[19] = {
                    enumName: 'BackedStatusEnum', values: [
                        {code: 'SUBMITED', message: '待审核'},
                        {code: 'AUDITED', message: '已确认'},
                        {code: 'FAIL', message: '已失败'},
                        {code: 'CANCELED', message: '已作废'},
                    ]
                };

                /** 还款类别 */
                enumOpts[20] = {
                    enumName: 'BackedModeEnum', values: [
                        {code: 'SETTLED', message: '结清'},
                        {code: 'PART', message: '部分还款'},
                    ]
                };

                /** 还款类别 */
                enumOpts[21] = {
                    enumName: 'CollectBizTypeEnum', values: [
                        {code: 'service-pandora', message: 'pandora'},
                    ]
                };


                /** 客户状态 */
                enumOpts[22] = {
                    enumName: 'ClientStateEnum', values: [
                        {code: 'NORMAL', message: '正常'},
                        {code: 'RELEASE', message: '已释放'},
                        {code: 'SIGNED', message: '已签约'},
                        {code: 'FROZEN', message: '已冻结'},
                    ]
                }

                /** 小米分放款单状态 */
                enumOpts[23] = {
                    enumName: 'XmRaiseBackedStatus', values: [
                        {code: 'CREATED', message: '新创建'},
                        {code: 'SUBMITED', message: '提交处理'},
                        {code: 'FINISHED', message: '处理完成'},
                    ]
                };

                /** 成功和失败状态 */
                enumOpts[24] = {
                    enumName: 'SuccessAndFail', values: [
                        {code: 'FAIL', message: '失败'},
                        {code: 'SUCCESS', message: '成功'},
                    ]
                };

                /** 客服跟进状态 */
                enumOpts[25] = {
                    enumName: 'ServiceStatus', values: [
                        {code: 'FOLLOWEDUP', message: '待跟进'},
                        {code: 'FOLLOWEDING', message: '跟进中'},
                        {code: 'FINISHED', message: '解决'},
                    ]
                };

                /* 还款状态 */
                enumOpts[26] = {
                    enumName: 'ServiceDetail', values: [
                        {code: 'FAIL', message: '失败'},
                        {code: 'HAND', message: '手动'},
                        {code: 'SUCCESS', message: '成功'},
                    ]
                };

                /* 还款类型状态 */
                enumOpts[27] = {
                    enumName: 'backedType', values: [
                        {code: 'TRANSFER', message: '线下转账'},
                        {code: 'PROTOCOL', message: '协议代扣'},
                    ]
                };
                enumOpts[28] = {
                    enumName: 'marketEnum', values: [
                        {code: 'FOLLOW_BYH', message: '提醒'},
                        {code: 'BYH_TS_COLLECT', message: '天思催收'},
                        {code: 'BYH_MARKET_TEST', message: '营销_断约客户'},
                        {code: 'BYH_MARKET_TWO', message: '营销_二次营销未提现'},
                        {code: 'BYH_MARKET_THREE', message: '营销_当日结清续贷'},
                        {code: 'BYH_MARKET_FOUR', message: '营销_当日未提现'},
                    ]
                };

                /* 借款渠道名称 */
                enumOpts[29] = {
                    enumName: 'loanChannel', values: [
                        {code: 'DKZ', message: '贷款猪'},
                        {code: 'SJJQ', message: '手机借钱'},
                        {code: 'YYYQ', message: '盈盈有钱'},
                    ]
                };

                /* 订单状态 */
                enumOpts[30] = {
                    enumName: 'LoanHangupEnum', values: [
                        {code: 'UP', message: '已挂起'},
                        {code: 'DOWN', message: '未挂起'},
                        {code: 'ONCE', message: '曾经挂起'},
                    ]
                };
                // 产品名称
                enumOpts[31] = {
                    enumName: 'BusinessType', values: [
                        {code: 'GXD', message: '工薪贷'},
                        {code: 'FO_GJJ', message: '51公积金-金致贷'},
                        {code: 'RS_DAI', message: '榕树贷-助仁贷'},
                        {code: 'ZGH', message: '尊贵花'},
                        {code: 'YSD', message: '衣食贷'},
                        {code: 'YYH', message: '盈盈有钱H5'},
                        {code: 'YQG_DAI', message: '洋钱罐-创薪贷'},
                        {code: 'SJJQ', message: '手机借钱'},
                        {code: 'YXQB_DAI', message: '有信钱包-尚品贷'},
                        {code: 'RNY_DAI', message: '任你用'},
                        {code: 'QYD_DAI', message: '钱有道-稳重贷'},
                        {code: 'JP_DAI', message: '榕树九品贷-富贵花'},
                        {code: 'HY_DAI', message: '花鸭-核心贷'},
                        {code: 'R360_DAI', message: '融360-品智贷'},
                        {code: 'RPQB_DAI', message: '人品钱包-优质贷'},
                        {code: 'YPD_DAI', message: '一品贷'},
                        {code: 'AYSC_DAI', message: '爱用商城-风尚贷'},
                        {code: 'HFD_DAI', message: '会分期'},
                        {code: 'YYD_DAI', message: '有余贷'},
                        {code: 'JINSI_DAI', message: '金丝贷'},
                        {code: 'XXH_DAI', message: '心想花'},
                        {code: 'AWJ', message: '安稳借'},
                        {code: 'XYF_DAI', message: '信用飞'}
                      
                                       

                    ]
                };

                // 用户状态
                enumOpts[32] = {
                    enumName: 'UserStatusType', values: [
                        {code: 'TEMP', message: '临时用户'},
                        {code: 'NEW', message: '注册用户'},
                        {code: 'REAL_NAME', message: '实名用户'},
                        {code: 'LOCK', message: '冻结'},
                        {code: 'CANCEL', message: '注销'},
                    ]
                };


                /** 借条状态*/
                enumOpts[33] = {
                    enumName: 'LoanStatuEnums', values: [
                        {code: 'SUBMITED', message: '待审核'},
                        {code: 'AUDITED', message: '审核通过'},
                        {code: 'BACKING', message: '回款中'},
                        {code: 'SETTLED', message: '已结清'},
                        {code: 'OVERDUED', message: '已逾期'},
                        {code: 'CANCELED', message: '已作废'},
                    ]
                };

                /** 借条状态*/
                enumOpts[34] = {
                    enumName: 'FeedStatus', values: [
                        {code: 'NO', message: '未解决'},
                        {code: 'YES', message: '已解决'},
                    ]
                };

                /** 借条状态*/
                enumOpts[35] = {
                    enumName: 'FeedSourceType', values: [
                        {code: 'APP', message: 'APP客户反馈'},
                        {code: 'CUSTOMER', message: '客服人员'},
                        {code: 'COLLECT', message: '天思催收'},
                    ]
                };

                /** 天思催收反馈状态*/
                enumOpts[36] = {
                    enumName: 'CollectFeedStatue', values: [
                        {code: 'PROMISE_REPAYMENT', message: '承诺还款'},
                        {code: 'NEGOTIATING', message: '谈判中'},
                        {code: 'LOAN_CONNECT', message: '债可联'},
                        {code: 'family_CONNECT', message: '家属可联'},
                        {code: 'TP_CASE', message: '跳票案件'},
                        {code: 'LOSS_HALF', message: '半失联'},
                        {code: 'LOSS', message: '失联'},
                        {code: 'REFUSE_REPAYMENT', message: '拒绝还款'},
                        {code: 'CHECK_REPAY', message: '检查付款'},
                        {code: 'FIRST_FOLLOW', message: '初次跟进'},
                        {code: 'FIND', message: '查找'},
                        {code: 'OUT_CASE', message: '外访案件'},
                        {code: 'DISPUTED_CASE', message: '争议案件'},
                        {code: 'NEW_CASE', message: '新案'},
                        {code: 'TOTAL_BACK', message: '已结清'},
                        {code: 'AI_PROMISE_REPAYMENT_TODAY', message: '当天还款'},
                        {code: 'AI_PROMISE_REPAYMENT', message: '承诺还款'},
                        {code: 'AI_CALL_CONNECTED', message: '可以接通'},
                        {code: 'AI_CALL_FAIL', message: '外呼失败'},
                        {code: 'AI_RESPONSE_REPAYMENT_ALREADY', message: '反应已还'},
                    ]
                };

                /** 天思催收结果*/
                enumOpts[37] = {
                    enumName: 'CollectFeedResult', values: [
                        {code: 'NOT_CONTACTED', message: '未联系'},
                        {code: 'CONTACTED', message: '已联系'},
                        {code: 'USER_NOT_ANSWER', message: '未接听'},
                        {code: 'USER_ANSWER_CALL', message: '接听'},
                        {code: 'USER_CALL_BUSY', message: '占线'},
                        {code: 'USER_CALL_SHUTDOWN', message: '关机'},
                        {code: 'NO_BODY_FOR_THE_NUM', message: '号码已换人'},
                        {code: 'USER_CALL_STOP', message: '停机'},
                        {code: 'INVALID_PHONE_NUM', message: '空号'},
                        {code: 'CHANNEL_ERROR', message: '渠道异常'},
                        {code: 'SEARCHED', message: '已查找'},
                        {code: 'SMS_SEND', message: '短屏信已发'},
                    ]
                };

                /** 客户管理用户状态*/
                enumOpts[38] = {
                    enumName: 'ClientStatusEnum', values: [
                        {code: '-1', message: '临时用户'},
                        {code: '1', message: '注册用户'},
                        {code: '2', message: '实名用户'},
                        {code: '3', message: '已冻结'},
                        {code: '4', message: '已注销'},
                    ]
                };

                /** 客户管理用户实名状态*/
                enumOpts[39] = {
                    enumName: 'RealAuthStatusEnum', values: [
                        {code: '0', message: '未认证'},
                        {code: '1', message: '认证中'},
                        {code: '2', message: '认证通过'},
                        {code: '3', message: '认证不通过'},
                    ]
                };

                /** 客户管理用户活体状态*/
                enumOpts[40] = {
                    enumName: 'FaceStatusEnum', values: [
                        {code: '0', message: '未识别'},
                        {code: '1', message: '身份比对成功'},
                        {code: '2', message: '身份比对异常'},
                        {code: '3', message: '身份比对服务异常'},
                    ]
                };

                /** 放款资方*/
                enumOpts[41] = {
                    enumName: 'CapitalEnums', values: [
                        {code: 'QINJIABUSINESS', message: '亲家'},
                        {code: 'FENGSHENGBUSINESS', message: '丰盛'},
                        {code: 'OWNBUSINESS', message: '自有'},
                    ]
                };

                for (var enumOptNum in enumOpts) {
                    if (enumOpts[enumOptNum].enumName == enumName) {
                        for (var msgNum in enumOpts[enumOptNum].values) {
                            if (enumOpts[enumOptNum].values[msgNum].code == code) {
                                return enumOpts[enumOptNum].values[msgNum].message
                            }
                        }
                    }
                }
                return ' '
            },

            toValue(enumName) {
                var enumOpts = [];

                /** 银行卡 */
                enumOpts[0] = {
                    enumName: 'BackedListEnum', values: [
                        {value: 'CCB', label: '建设银行'},
                        {value: 'ICBC', label: '工商银行'},
                        {value: 'PINAGAN', label: '平安银行'},
                        {value: 'ABC', label: '农业银行'},
                        {value: 'CMB', label: '招商银行'},
                        {value: 'PSBC', label: '邮储银行'},
                        {value: 'CMBC', label: '民生银行'},
                        {value: 'CEB', label: '光大银行'},
                        {value: 'CITIC', label: '中信银行'},
                        {value: 'CIB', label: '兴业银行'},
                        {value: 'SPDB', label: '浦发银行'},
                        {value: 'BOC', label: '中国银行'},
                        {value: 'COMM', label: '交通银行'},
                        {value: 'GDB', label: '广发银行'},
                        {value: 'HXB', label: '华夏银行'},
                        {value: 'BJB', label: '北京银行'},
                        {value: 'SHB', label: '上海银行'},
                    ]
                }

                /** 小米分逾期状态*/
                enumOpts[1] = {
                    enumName: 'LoanCollectStatusEnum', values: [
                        {value: 'INIT', label: '新增催收'},
                        {value: 'FOLLOW', label: '已跟进'},
                        {value: 'BACKED', label: '已还款'},
                        {value: 'OUTSOURCE', label: '委外'},
                    ]
                };

                /** 小米分还款状态*/
                enumOpts[2] = {
                    enumName: 'LoanRemindStatusEnum', values: [
                        {value: 'BACKING', label: '回款中'},
                        {value: 'SETTLED', label: '已结清'},
                        {value: 'OVERDUED', label: '已逾期'},
                    ]
                };

                /** 小米分还款单状态*/
                enumOpts[3] = {
                    enumName: 'LoanBackedStatusEnum', values: [
                        {value: 'CREATED', label: '新创建'},
                        {value: 'SUBMITED', label: '提交处理'},
                        {value: 'FINISHED', label: '处理完成'},
                    ]
                };

                /** */
                enumOpts[4] = {
                    enumName: 'DutyManagementEnums', values: [
                        {name: '提醒', value: 'FOLLOW_BYH'},
                        {name: '天思催收', value: 'BYH_TS_COLLECT'},
                        {name: '营销_断约客户', value: 'BYH_MARKET_TEST'},
                        {name: '营销_二次营销未提现', value: 'BYH_MARKET_TWO'},
                        {name: '营销_当日结清续贷', value: 'BYH_MARKET_THREE'},
                        {name: '营销_当日未提现', value: 'BYH_MARKET_FOUR'},
                        {name: '营销_拒绝再营销', value: 'BYH_MARKET_Refuse'},
                        {name: '提醒_第一业务组', value: 'BYH_REMIND_FIRST'},
                        {name: '提醒_末期业务组', value: 'BYH_END_REMIND'},
                    ]
                };

                /* 客户服务回收状态*/
                enumOpts[5] = {
                    enumName: 'ServiceMarketEnums', values: [
                        {name: '待分配', value: 'DISTRIBUTIONWATING'},
                        {name: '已分配', value: 'DISTRIBUTIONFINISH'},
                        {name: '已回收', value: 'RECOVERY'},
                    ]
                };

                /* 坐席状态 */
                enumOpts[6] = {
                    enumName: 'bindMarket', values: [
                        {name: 'YES', value: '已绑定'},
                        {name: 'NO', value: '未绑定'},
                    ]
                };

                /* 是否挂起 */
                enumOpts[7] = {
                    enumName: 'SystemType', values: [
                        {value: 'service-loess', label: '工薪贷后台'},
                        {value: 'service-midgard', label: '南宁盈盈有钱app'},
                        {value: 'service-elite', label: '精英贷'},
                        {value: 'service-beauty', label: '丽人贷'},
                    ]
                };

                /* 减免单审核状态*/

                enumOpts[8] = {
                    enumName: 'LoanMoneyStatusEnum', values: [
                        {value: 'SUBMITED', label: '待审核'},
                        {value: 'AUDITED', label: '已确认'},
                        {value: 'CANCELED', label: '已作废'},
                    ]
                };

                /* 人工打款状态*/
                enumOpts[9] = {
                    enumName: 'SendMoneyStatus', values: [
                        {value: 'SUCCESS', label: '全部打款成功'},
                        {value: 'INIT', label: '待打款'},
                        {value: 'FAIL', label: '全部打款失败'},
                        {value: 'PART', label: '部分打款失败'},
                    ]
                };

                /* 人工打款状态*/
                enumOpts[10] = {
                    enumName: 'ManualReviewStatus', values: [
                        {value: 'ING', label: '审批中'},
                        {value: 'FAIL', label: '拒绝'},
                        {value: 'SUCCESS', label: '通过'},
                    ]
                };
                /* 放款结果*/
                enumOpts[11] = {
                    enumName: 'ResultSuccessFail', values: [
                        {value: '', label: '全部'},
                        {value: 'SUCCESS', label: '打款成功'},
                        {value: 'FAIL', label: '打款失败'},
                    ]
                };
                enumOpts[12] = {
                    enumName: 'BackMoneyList', values: [
                        {value: '', label: '全部'},
                        {value: 'TRANSFER', label: '线下转账'},
                        {value: 'PROTOCOL', label: '协议代扣'},
                    ]
                };
                // 还款状态
                enumOpts[13] = {
                    enumName: 'BackStatusMoneyList', values: [
                        {value: '', label: '全部'},
                        {value: 'SUCCESS', label: '成功'},
                        {value: 'FAIL', label: '失败'},
                    ]
                };
                // 查询状态
                enumOpts[14] = {
                    enumName: 'LoanSnapStatusEnum', values: [
                        {value: '', label: '全部'},
                        {value: 'SUBMITED', label: '待审核'},
                        {value: 'AUDITED', label: '审核通过'},
                        {value: 'BACKING', label: '回款中'},
                        {value: 'SETTLED', label: '已结清'},
                        {value: 'OVERDUED', label: '已逾期'},
                        {value: 'CANCELED', label: '已作废'},
                    ]
                };

                /* 支付渠道状态*/
                enumOpts[15] = {
                    enumName: 'BankCardStatus', values: [
                        {value: 'AUTH', label: '签约'},
                        {value: 'DEDUCT', label: '代扣'},
                    ]
                };
                // 解决状态
                enumOpts[16] = {
                    enumName: 'SolveStatus', values: [
                        {value: 'YES', label: 'YES'},
                        {value: 'NO', label: 'NO'},
                    ]
                };
                // 反馈类型
                enumOpts[17] = {
                    enumName: 'ResaultStatus', values: [
                        {value: '资料认证', label: '资料认证'},
                        {value: '借款', label: '借款'},
                        {value: '还款', label: '还款'},
                        {value: '借银行卡款', label: '银行卡'},
                        {value: '投诉', label: '投诉'},
                        {value: '还款问题', label: '还款问题'},
                        {value: '资料认证问题', label: '资料认证问题'},
                        {value: '内部投诉', label: '内部投诉'},
                        {value: '催收', label: '催收'},
                        {value: '系统问题', label: '系统问题'},
                        {value: '借款咨询', label: '借款咨询'},
                        {value: '账户问题', label: '账户问题'},
                        {value: '银行卡签约问题', label: '银行卡签约问题'},
                        {value: '其他', label: '其他'},
                    ]
                };

                // 产品名称
                enumOpts[18] = {
                    enumName: 'BusinessType', values: [

                        {value: 'GXD', label: '工薪贷'},
                        {value: 'FO_GJJ', label: '51公积金-金致贷'},
                        {value: 'RS_DAI', label: '榕树贷-助仁贷'},
                        {value: 'ZGH', label: '尊贵花'},
                        {value: 'YSD', label: '衣食贷'},
                        {value: 'YYH', label: '盈盈有钱H5'},
                        {value: 'YQG_DAI', label: '洋钱罐-创薪贷'},
                        {value: 'SJJQ', label: '手机借钱'},
                        {value: 'YXQB_DAI', label: '有信钱包-尚品贷'},
                        {value: 'RNY_DAI', label: '任你用'},
                        {value: 'QYD_DAI', label: '钱有道-稳重贷'},
                        {value: 'JP_DAI', label: '榕树九品贷-富贵花'},
                        {value: 'HY_DAI', label: '花鸭-核心贷'},
                        {value: 'R360_DAI', label: '融360-品智贷'},
                        {value: 'RPQB_DAI', label: '人品钱包-优质贷'},
                        {value: 'YPD_DAI', label: '一品贷'},
                        {value: 'AYSC_DAI', label: '爱用商城-风尚贷'},
                        {value: 'HFD_DAI', label: '会分期'},
                        {value: 'YYD_DAI', label: '有余贷'},
                        {value: 'XXH_DAI', label: '心想花'},
                        {value: 'JINSI_DAI', label: '金丝贷'},
                    ]
                };

                // 反馈来源
                enumOpts[19] = {
                    enumName: 'FeedSourceType', values: [
                        {value: 'CUSTOMER', label: '客服人员'},
                        {value: 'APP', label: 'APP'},
                        {value: 'COLLECT', label: '催收'},
                    ]
                };

                // 产品名称
                enumOpts[20] = {
                    enumName: 'AppNameType', values: [
                        {value: 'YYYQ', label: '盈盈有钱'},
                        {value: 'YYYQ_QUICK', label: '盈盈有钱福利版'},
                        {value: 'SJJQ', label: '手机借钱'},
                    ]
                };

                for (var enumOptNum in enumOpts) {
                    if (enumOpts[enumOptNum].enumName == enumName) {
                        return enumOpts[enumOptNum].values;
                    }
                }
                return ' '
            },


        }

    }
}
export default enumUtils

