feat(consignment): 寄卖配置价格/匹配/超时/收货字段全面改造

- 价格:固定价格改为模板价固定下调,移除绝对固定价;没有模板价时统一阻止发布
- 配置面板:按下拉选项动态显隐,超时与降价提示拆成两张卡片,超时单位改为小时(默认 0.5)
- 匹配:新增关闭匹配并设为默认,移除自动匹配开关;关闭后新单直接进大厅
- 超时:新增重新匹配退/扣押金,回内部匹配池并排除原卖家与原库存(迁移 147)
- 日志:新增 consignment_match_logs,自动/手动匹配成功、失败、跳过统一留痕,后台新增匹配日志抽屉
- 打手端:顶部分类下拉替换多 tab,默认苏尔南手枪;联系方式与游戏凭据改为动态字段(默认 7 项,手机号必填)
- 降价提示默认开启、默认 24 小时
This commit is contained in:
2026-11-06 13:32:24 +08:00
parent e0a85359b6
commit 3aa01136a5
31 changed files with 2311 additions and 568 deletions
@@ -12,6 +12,7 @@ import type {
WorkOrderInventoryMatchCheck,
WorkOrderInventoryMatchOptions,
} from '@/types/consignment'
import type { ConsignmentMatchLogsResponse } from '@/types/consignment-match-log'
// --- 分类级寄卖配置 ---
@@ -63,6 +64,23 @@ export function matchAdminConsignmentWorkOrder(payload: {
)
}
/** 匹配日志:自动/手动/重新匹配的每次尝试(含失败/跳过原因)。 */
export function fetchAdminConsignmentMatchLogs(params?: {
page?: number
pageSize?: number
profileId?: number
triggerType?: string
result?: string
keyword?: string
from?: string
to?: string
}) {
return apiGet<ConsignmentMatchLogsResponse>(
'/api/v1/admin/worker-platform/consignment/match-logs',
params,
)
}
// --- 对接客服名单 ---
export function fetchAdminConsignmentContacts(params?: { keyword?: string; enabled?: string }) {