套餐系列:梯度佣金,代理授权
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m47s

This commit is contained in:
sexygoat
2026-03-06 14:00:22 +08:00
parent 08d5043b3f
commit 4d94f7efa6
4 changed files with 59 additions and 23 deletions

View File

@@ -15,6 +15,7 @@ export interface OneTimeCommissionTier {
dimension: 'sales_count' | 'sales_amount' // 统计维度:销量或销售额
amount: number // 佣金金额(分)
stat_scope?: 'self' | 'self_and_sub' // 统计范围:仅自己或自己+下级
operator?: '>=' | '>' | '<=' | '<' // 阈值比较运算符,空值时计算引擎默认 >=
}
/**
@@ -206,9 +207,11 @@ export interface SeriesSelectOption {
* 佣金梯度配置
*/
export interface CommissionTier {
operator: '>=' // 运算符
operator?: '>=' | '>' | '<=' | '<' // 阈值比较运算符,空值时计算引擎默认 >=
threshold: number // 阈值
amount: number // 佣金金额(分)
dimension?: 'sales_count' | 'sales_amount' // 统计维度 (sales_count:销量, sales_amount:销售额)
stat_scope?: 'self' | 'self_and_sub' // 统计范围 (self:仅自己, self_and_sub:自己+下级)
}
/**