| import { Colors } from './enum'; | 
|   | 
| export enum UserCertificationMode { | 
|   /** | 
|    * 法人认证 | 
|    */ | 
|   LegalPerson = 10, | 
|   /** | 
|    * 代理人认证 | 
|    */ | 
|   ProxyPerson = 20, | 
|   /** | 
|    * 后台管理员认证 | 
|    */ | 
|   AdminCertification = 30, | 
| } | 
|   | 
| export const UserCertificationModeText = { | 
|   [UserCertificationMode.LegalPerson]: '法人认证', | 
|   [UserCertificationMode.ProxyPerson]: '代理人认证', | 
| }; | 
|   | 
| export enum UserCertificationInvoiceType { | 
|   /** | 
|    * 不开发票 | 
|    */ | 
|   NotNeedInvoice = 0, | 
|   /** | 
|    * 电子普票 | 
|    */ | 
|   Electronic = 10, | 
|   /** | 
|    * 电子专票 | 
|    */ | 
|   EVATInvoice = 20, | 
| } | 
|   | 
| export const UserCertificationInvoiceTypeText = { | 
|   [UserCertificationInvoiceType.NotNeedInvoice]: '不开发票', | 
|   [UserCertificationInvoiceType.Electronic]: '电子普票', | 
|   [UserCertificationInvoiceType.EVATInvoice]: '电子专票', | 
| }; | 
|   | 
| export enum UserCertificationStatus { | 
|   /** | 
|    * 未认证 | 
|    */ | 
|   NotCertified = 0, | 
|   /** | 
|    * 已认证 | 
|    */ | 
|   Certified = 20, | 
|   /** | 
|    * 已过期 | 
|    */ | 
|   Expired = 30, | 
| } | 
|   | 
| export enum UserCertificationAuditStatus { | 
|   /** | 
|    * 待支付 | 
|    */ | 
|   WaitPay = 0, | 
|   /** | 
|    * 待审核 | 
|    */ | 
|   PendingReview = 10, | 
|   /** | 
|    * 审核通过 | 
|    */ | 
|   Pass = 30, | 
|   /** | 
|    * 驳回 | 
|    */ | 
|   Reject = 40, | 
| } | 
|   | 
| /** | 
|  * 用于前端展现的status | 
|  */ | 
| export enum UserCertificationFrontStatus { | 
|   /** | 
|    * 未认证 | 
|    */ | 
|   NotCertified = 0, | 
|   /** | 
|    * 待支付 | 
|    */ | 
|   WaitPay = 1, | 
|   /** | 
|    * 认证审核中 | 
|    */ | 
|   Processing = 10, | 
|   /** | 
|    * 已认证 | 
|    */ | 
|   Certified = 20, | 
|   /** | 
|    * 已过期 | 
|    */ | 
|   Expired = 30, | 
|   /** | 
|    * 认证失败 | 
|    */ | 
|   Rejected = -10, | 
| } | 
|   | 
| export const UserCertificationStatusConvertFrontStatusMap = { | 
|   [UserCertificationStatus.NotCertified]: UserCertificationFrontStatus.NotCertified, | 
|   [UserCertificationStatus.Certified]: UserCertificationFrontStatus.Certified, | 
|   [UserCertificationStatus.Expired]: UserCertificationFrontStatus.Expired, | 
| }; | 
|   | 
| export const UserCertificationAuditStatusConvertFrontStatusMap = { | 
|   [UserCertificationAuditStatus.WaitPay]: UserCertificationFrontStatus.WaitPay, | 
|   [UserCertificationAuditStatus.PendingReview]: UserCertificationFrontStatus.Processing, | 
|   [UserCertificationAuditStatus.Reject]: UserCertificationFrontStatus.Rejected, | 
| }; | 
|   | 
| export const UserCertificationFrontStatusText = { | 
|   [UserCertificationFrontStatus.Processing]: '认证审核中', | 
|   [UserCertificationFrontStatus.Certified]: '已认证', | 
|   [UserCertificationFrontStatus.Rejected]: '审核未通过', | 
|   [UserCertificationFrontStatus.NotCertified]: '未认证', | 
|   [UserCertificationFrontStatus.Expired]: '已过期', | 
|   [UserCertificationFrontStatus.WaitPay]: '待支付', | 
| }; | 
|   | 
| export const UserCertificationFrontStatusColor = { | 
|   [UserCertificationFrontStatus.Processing]: Colors.Warning, | 
|   [UserCertificationFrontStatus.Certified]: Colors.Success, | 
|   [UserCertificationFrontStatus.Rejected]: Colors.Danger, | 
|   [UserCertificationFrontStatus.NotCertified]: Colors.Danger, | 
|   [UserCertificationFrontStatus.Expired]: Colors.Danger, | 
|   [UserCertificationFrontStatus.WaitPay]: Colors.Warning, | 
| }; | 
|   | 
| export enum UserCertificationInvoicingStatus { | 
|   /** | 
|    * 无需开票 | 
|    */ | 
|   NotNeedInvoice = 0, | 
|   /** | 
|    * 待开具 | 
|    */ | 
|   PendingInvoice = 10, | 
|   /** | 
|    * 已开票 | 
|    */ | 
|   Invoiced = 20, | 
| } | 
|   | 
| export enum UserCertificationPayType { | 
|   /** | 
|    * 支付宝 | 
|    */ | 
|   AliPay = 10, | 
|   /** | 
|    * 微信 | 
|    */ | 
|   WxPay = 20, | 
|   /** | 
|    * 线下支付 | 
|    */ | 
|   OfflinePay = 30, | 
|   /** | 
|    * 无需支付 | 
|    */ | 
|   NotNeedPay = 40, | 
| } | 
|   | 
| export const UserCertificationPayTypeText = { | 
|   [UserCertificationPayType.AliPay]: '支付宝', | 
|   [UserCertificationPayType.WxPay]: '微信', | 
|   [UserCertificationPayType.OfflinePay]: '线下支付', | 
| }; | 
|   | 
| export enum PayCreditedStatus { | 
|   /** | 
|    * 待入账 | 
|    */ | 
|   WaitCredited = 10, | 
|   /** | 
|    * 已入账 | 
|    */ | 
|   Credited = 20, | 
|   /** | 
|    * 未支付 | 
|    */ | 
|   NotCredited = 30, | 
| } | 
|   | 
| export const PayCreditedStatusText = { | 
|   [PayCreditedStatus.WaitCredited]: '待入账', | 
|   [PayCreditedStatus.Credited]: '已入账', | 
|   [PayCreditedStatus.NotCredited]: '未支付', | 
| }; | 
|   | 
| /** | 
|  * 用户企业认证要素 | 
|  */ | 
| export enum UserCertificationElementEnum { | 
|   /** | 
|    * 企业三要素认证 | 
|    */ | 
|   Identity3 = 10, | 
|   /** | 
|    * 企业四要素认证 | 
|    */ | 
|   Identity4 = 20, | 
| } | 
|   | 
| export const UserCertificationElementEnumText = { | 
|   [UserCertificationElementEnum.Identity3]: '企业三要素', | 
|   [UserCertificationElementEnum.Identity4]: '企业四要素', | 
| }; | 
|   | 
| /** | 
|  *  用户认证通道 | 
|  */ | 
| export enum UserCertificationChannelEnum { | 
|   /** | 
|    *  人工通道 | 
|    */ | 
|   Human = 10, | 
|   /** | 
|    * 第三方通道 | 
|    */ | 
|   ThirdParty = 20, | 
| } | 
|   | 
| /** | 
|  * 用户认证方式 | 
|  */ | 
|   | 
| export enum UserCertificationModeEnumV2 { | 
|   /** | 
|    * 法人认证 | 
|    */ | 
|   LegalPersonCertification = 10, | 
|   /** | 
|    * 代理人认证 | 
|    */ | 
|   ProxyPersonCertification = 20, | 
|   /** | 
|    * 后台管理员认证 | 
|    */ | 
|   AdminCertification = 30, | 
|   /** | 
|    * 法定代表人手机号认证 | 
|    */ | 
|   LegalPersonPhoneCertification = 40, | 
|   /** | 
|    * 法定代表人银行卡认证 | 
|    */ | 
|   LegalPersonBankCardCertification = 50, | 
|   /** | 
|    * 法定代表人刷脸认证 | 
|    */ | 
|   LegalPersonFaceCertification = 60, | 
|   /** | 
|    * 代理人手机号认证 | 
|    */ | 
|   ProxyPersonPhoneCertification = 70, | 
|   /** | 
|    * 代理人银行卡认证 | 
|    */ | 
|   ProxyPersonBankCardCertification = 80, | 
|   /** | 
|    *  代理人刷脸认证 | 
|    */ | 
|   ProxyPersonFaceCertification = 90, | 
| } | 
|   | 
| export const UserCertificationModeEnumV2Text = { | 
|   [UserCertificationModeEnumV2.LegalPersonCertification]: '法人认证', | 
|   [UserCertificationModeEnumV2.ProxyPersonCertification]: '代理人认证', | 
|   [UserCertificationModeEnumV2.AdminCertification]: '后台管理员认证', | 
|   [UserCertificationModeEnumV2.LegalPersonPhoneCertification]: '法定代表人手机号认证', | 
|   [UserCertificationModeEnumV2.LegalPersonBankCardCertification]: '法定代表人银行卡认证', | 
|   [UserCertificationModeEnumV2.LegalPersonFaceCertification]: '法定代表人刷脸认证', | 
|   [UserCertificationModeEnumV2.ProxyPersonPhoneCertification]: '代理人手机号认证', | 
|   [UserCertificationModeEnumV2.ProxyPersonBankCardCertification]: '代理人银行卡认证', | 
|   [UserCertificationModeEnumV2.ProxyPersonFaceCertification]: '代理人刷脸认证', | 
| }; | 
|   | 
| // function createUserCertificationModeV2SelectItem( | 
| //   element: UserCertificationElementEnum, | 
| //   mode: UserCertificationModeEnumV2 | 
| // ) { | 
| //   return [ | 
| //     `${element}_${mode}`, | 
| //     `${UserCertificationElementEnumText[element]}+${UserCertificationModeEnumV2Text[mode]}`, | 
| //   ] as const; | 
| // } | 
|   | 
| // export const UserCertificationModeV2Select = new Map([ | 
| //   createUserCertificationModeV2SelectItem( | 
| //     UserCertificationElementEnum.Identity4, | 
| //     UserCertificationModeEnumV2.LegalPersonPhoneCertification | 
| //   ), | 
| //   createUserCertificationModeV2SelectItem( | 
| //     UserCertificationElementEnum.Identity4, | 
| //     UserCertificationModeEnumV2.LegalPersonBankCardCertification | 
| //   ), | 
| //   createUserCertificationModeV2SelectItem( | 
| //     UserCertificationElementEnum.Identity4, | 
| //     UserCertificationModeEnumV2.LegalPersonFaceCertification | 
| //   ), | 
| //   createUserCertificationModeV2SelectItem( | 
| //     UserCertificationElementEnum.Identity3, | 
| //     UserCertificationModeEnumV2.ProxyPersonPhoneCertification | 
| //   ), | 
| //   createUserCertificationModeV2SelectItem( | 
| //     UserCertificationElementEnum.Identity3, | 
| //     UserCertificationModeEnumV2.ProxyPersonBankCardCertification | 
| //   ), | 
| // ]); | 
|   | 
| export enum UserCertificationModeV2SelectEnum { | 
|   Identity4_LegalPersonPhoneCertification = `${UserCertificationElementEnum.Identity4}_${UserCertificationModeEnumV2.LegalPersonPhoneCertification}`, | 
|   Identity4_LegalPersonBankCardCertification = `${UserCertificationElementEnum.Identity4}_${UserCertificationModeEnumV2.LegalPersonBankCardCertification}`, | 
|   Identity4_LegalPersonFaceCertification = `${UserCertificationElementEnum.Identity4}_${UserCertificationModeEnumV2.LegalPersonFaceCertification}`, | 
|   Identity3_ProxyPersonPhoneCertification = `${UserCertificationElementEnum.Identity3}_${UserCertificationModeEnumV2.ProxyPersonPhoneCertification}`, | 
|   Identity3_ProxyPersonBankCardCertification = `${UserCertificationElementEnum.Identity3}_${UserCertificationModeEnumV2.ProxyPersonBankCardCertification}`, | 
|   Identity3_ProxyPersonFaceCertification = `${UserCertificationElementEnum.Identity3}_${UserCertificationModeEnumV2.ProxyPersonFaceCertification}`, | 
| } | 
|   | 
| export const UserCertificationModeV2SelectEnumText = { | 
|   [UserCertificationModeV2SelectEnum.Identity4_LegalPersonPhoneCertification]: `${ | 
|     UserCertificationElementEnumText[UserCertificationElementEnum.Identity4] | 
|   }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.LegalPersonPhoneCertification]}`, | 
|   [UserCertificationModeV2SelectEnum.Identity4_LegalPersonBankCardCertification]: `${ | 
|     UserCertificationElementEnumText[UserCertificationElementEnum.Identity4] | 
|   }+${ | 
|     UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.LegalPersonBankCardCertification] | 
|   }`, | 
|   [UserCertificationModeV2SelectEnum.Identity4_LegalPersonFaceCertification]: `${ | 
|     UserCertificationElementEnumText[UserCertificationElementEnum.Identity4] | 
|   }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.LegalPersonFaceCertification]}`, | 
|   [UserCertificationModeV2SelectEnum.Identity3_ProxyPersonPhoneCertification]: `${ | 
|     UserCertificationElementEnumText[UserCertificationElementEnum.Identity3] | 
|   }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.ProxyPersonPhoneCertification]}`, | 
|   [UserCertificationModeV2SelectEnum.Identity3_ProxyPersonBankCardCertification]: `${ | 
|     UserCertificationElementEnumText[UserCertificationElementEnum.Identity3] | 
|   }+${ | 
|     UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.ProxyPersonBankCardCertification] | 
|   }`, | 
|   [UserCertificationModeV2SelectEnum.Identity3_ProxyPersonFaceCertification]: `${ | 
|     UserCertificationElementEnumText[UserCertificationElementEnum.Identity3] | 
|   }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.ProxyPersonFaceCertification]}`, | 
| }; |