提交
This commit is contained in:
1 parent
499896b29c
commit
8c96de2c0c
64 files changed
+35711
-30445
No files matched your search
@@ -543,6 +543,38 @@ export function getPlRechargeTypeTagType(type: string) {
|
||||
return type === 'etc' ? 'primary' : type === 'fuel' ? 'success' : 'info'
|
||||
}
|
||||
|
||||
export function getPlFuelCategoryLabel(category: string) {
|
||||
const map: Record<string, string> = {
|
||||
bailian: '百链',
|
||||
gas_station: '加油站'
|
||||
}
|
||||
return map[category] || category || '—'
|
||||
}
|
||||
|
||||
export function getPlFuelCategoryTagType(category: string) {
|
||||
const map: Record<string, string> = {
|
||||
bailian: 'primary',
|
||||
gas_station: 'success'
|
||||
}
|
||||
return map[category] || 'info'
|
||||
}
|
||||
|
||||
export function getPlFuelRegisterStatusLabel(status: string) {
|
||||
const map: Record<string, string> = {
|
||||
normal: '正常',
|
||||
cancelled: '已作废'
|
||||
}
|
||||
return map[status] || status || '—'
|
||||
}
|
||||
|
||||
export function getPlFuelRegisterStatusTagType(status: string) {
|
||||
const map: Record<string, string> = {
|
||||
normal: 'success',
|
||||
cancelled: 'info'
|
||||
}
|
||||
return map[status] || 'info'
|
||||
}
|
||||
|
||||
export function getPlRechargeApplyStatusLabel(status: string) {
|
||||
const map: Record<string, string> = {
|
||||
pending: '待发放',
|
||||
|
||||
Reference in new issue
Block a user