提交
This commit is contained in:
1 parent
13e4c9530a
commit
575e63e7e8
62 files changed
+28759
-9636
No files matched your search
@@ -344,4 +344,74 @@ export const storageStatus: StatusRegistry = {
|
||||
export const storageStatusLabel = createLabelGetter(storageStatus)
|
||||
export const storageStatusTagType = createTagTypeGetter(storageStatus)
|
||||
|
||||
// ══════════════════════════════════════════════════════════════════════════════
|
||||
// 渠道服务订单域
|
||||
// ══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
/** 渠道服务订单类型 */
|
||||
export const channelServiceOrderType: StatusRegistry = {
|
||||
yfk: { label: '预付款充值', tagType: 'primary' },
|
||||
gmcp: { label: '购买产品份数', tagType: 'success' }
|
||||
}
|
||||
export const channelServiceOrderTypeLabel = createLabelGetter(channelServiceOrderType)
|
||||
export const channelServiceOrderTypeTagType = createTagTypeGetter(channelServiceOrderType)
|
||||
|
||||
/** 渠道服务订单状态 */
|
||||
export const channelServiceOrderStatus: StatusRegistry = {
|
||||
dsx: { label: '待生效', tagType: 'info' },
|
||||
dqr: { label: '待确认', tagType: 'warning' },
|
||||
yqr: { label: '已确认', tagType: 'success' },
|
||||
sxz: { label: '生效中', tagType: 'success' },
|
||||
tfqrz: { label: '退款确认中', tagType: 'danger' },
|
||||
ytf: { label: '已退款', tagType: 'info' },
|
||||
yzf: { label: '已作废', tagType: 'info' }
|
||||
}
|
||||
export const channelServiceOrderStatusLabel = createLabelGetter(channelServiceOrderStatus)
|
||||
export const channelServiceOrderStatusTagType = createTagTypeGetter(channelServiceOrderStatus)
|
||||
|
||||
// ══════════════════════════════════════════════════════════════════════════════
|
||||
// 流水域
|
||||
// ══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
// 流水类型
|
||||
export const txnTypeLabel = (type: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
recharge: '充值',
|
||||
refund: '退款',
|
||||
purchase: '购买产品',
|
||||
unsubscribe: '退订产品',
|
||||
}
|
||||
return map[type] || type
|
||||
}
|
||||
|
||||
export const txnTypeTagType = (type: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
recharge: '',
|
||||
refund: 'danger',
|
||||
purchase: 'success',
|
||||
unsubscribe: 'warning',
|
||||
}
|
||||
return map[type] || 'info'
|
||||
}
|
||||
|
||||
// 流水状态
|
||||
export const txnStatusLabel = (status: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
dsx: '待生效',
|
||||
dqr: '待财务确认',
|
||||
yqr: '已确认',
|
||||
yzf: '已作废',
|
||||
}
|
||||
return map[status] || status
|
||||
}
|
||||
|
||||
export const txnStatusTagType = (status: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
dsx: 'info',
|
||||
dqr: 'warning',
|
||||
yqr: 'success',
|
||||
yzf: 'danger',
|
||||
}
|
||||
return map[status] || 'info'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user