feat(pickup): 新增管理员线下提号功能
- 新建 admin_pickups 表独立于 rental_orders,不污染订单状态机与财务统计口径 - 提号中/已完成/已取消三态:创建锁定账号,完成时给卖家钱包加可用余额并下架 listing,取消解锁账号 - 完成时 listing 置 completed,复用现有 listingLockedForOwnerMutation 拦截再上架 - 管理端提号管理页(列表/创建/完成/取消/可提号账号搜索)+ 卖家端提号记录页 - 财务仪表盘新增线下提号独立统计块,与正常订单口径分离 - 钱包流水 label、状态标签、菜单入口同步补齐 - 优化卖家服务悬浮菜单为一行四个,尺寸与配色对齐买家服务
This commit is contained in:
@@ -134,6 +134,12 @@ const balanceTypeMap: Record<BalanceType, string> = {
|
||||
frozen: '冻结余额',
|
||||
}
|
||||
|
||||
const pickupStatusMap: Record<string, string> = {
|
||||
picking_up: '提号中',
|
||||
completed: '已完成',
|
||||
cancelled: '已取消',
|
||||
}
|
||||
|
||||
function readLabel(map: Record<string, string>, value: string) {
|
||||
return map[value] || value || '-'
|
||||
}
|
||||
@@ -189,3 +195,7 @@ export function ledgerDirectionLabel(direction: string) {
|
||||
export function balanceTypeLabel(type: string) {
|
||||
return readLabel(balanceTypeMap, type)
|
||||
}
|
||||
|
||||
export function pickupStatusLabel(status: string) {
|
||||
return readLabel(pickupStatusMap, status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user