feat(cost-center): 卡券规则批量生成与异常标签补齐

- 新增「批量生成渠道规则」,为 tpv: 商品一次性补 third_party_voucher 规则
- 异常原因补「缺少履约载体」,渠道标签补卡券/待分类/归档/未分类
This commit is contained in:
yml2213
2026-10-31 20:41:50 +08:00
parent a62f6e1ec8
commit 7fab610159
4 changed files with 75 additions and 7 deletions
@@ -519,3 +519,9 @@ export function syncAdminProductPrice(productId: number) {
message: string
}>(`/api/v1/admin/cost-center/products/${productId}/sync-price`, {})
}
export function ensureVoucherChannelRules() {
return apiPost<{ created: number; productCount: number }>(
'/api/v1/admin/cost-center/voucher-products/ensure-rules',
)
}