zhengyiming
2025-02-17 24dc7ec489cc2206c69ad26b4c931905ad81bd8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
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]: '未支付',
};