feat(distribution): 分站可下调收号比例且不超过主站上限

让分销站能按自身能力下调收号比例扩大利润,同时把主站回收比例作为硬边界,避免分站把比例加得比主站更高。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-15 20:35:30 +08:00
co-authored by Cursor
parent 1c86bef765
commit c9d9160ff4
27 changed files with 1159 additions and 106 deletions
+10
View File
@@ -166,6 +166,16 @@ export default function Sites({ isSuperadmin = true }: { isSuperadmin?: boolean
render: (_: unknown, row: Site) =>
row.tax_enabled ? <Tag color="orange">{row.tax_rate_bps / 100}%</Tag> : <Tag>不征税</Tag>,
},
{
title: '收号下调',
width: 120,
render: (_: unknown, row: Site) =>
Number(row.receive_ratio_delta || 0) > 0 ? (
<Tag color="gold">-{Number(row.receive_ratio_delta).toFixed(1)} 点</Tag>
) : (
<Tag>与主站一致</Tag>
),
},
{
title: '创建时间',
dataIndex: 'created_at',