This commit is contained in:
wuzilong committed 2026-09-13 13:08:52 +08:00
1 parent 499896b29c
commit 8c96de2c0c
64 files changed
+35711 -30445

No files matched your search

+32
View File
@@ -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: '待发放',