fix(distribution): 分成改为分主站提价利润,分站自主提价溢价全额归卖方
- 文档:升级至 v0.7,固化号主保底、主站提价利润分账(35/40/25)与分站加价溢价独享逻辑 - 定价:修正货架兑换比例调价方向为调减比例提价(site_ratio = base_ratio - delta) - 分账:分成基数剔除号主成本与分站加价,提价利润按规则切分,分站自主加价溢价 100% 归卖出方 - 前端:更新分销后台提价说明文案,提示调减比例提高售价且溢价归本站
This commit is contained in:
@@ -410,20 +410,20 @@ export default function Accounts() {
|
||||
</Card>
|
||||
|
||||
<Modal
|
||||
title={targetAccount ? `设置加价 - ${targetAccount.title || targetAccount.listing_no}` : `批量加价 (${selectedRowKeys.length} 个账号商品)`}
|
||||
title={targetAccount ? `设置提价 - ${targetAccount.title || targetAccount.listing_no}` : `批量提价 (${selectedRowKeys.length} 个账号商品)`}
|
||||
open={markupModalVisible}
|
||||
onCancel={() => setMarkupModalVisible(false)}
|
||||
onOk={handleSaveMarkup}
|
||||
confirmLoading={markupSaving}
|
||||
okText="保存加价"
|
||||
okText="保存提价"
|
||||
destroyOnClose
|
||||
>
|
||||
<Space direction="vertical" style={{ width: '100%', padding: '12px 0' }}>
|
||||
<Typography.Paragraph type="secondary" style={{ marginBottom: 8 }}>
|
||||
加价是增加该站账号「1 元兑换哈夫币」的比例,不是叠加人民币。比例越大,同样币数售价越低。
|
||||
分站提价是通过调小「1 元兑换哈夫币」的兑换比例来提高销售价。比例越小售价越高;<strong>提价多挣的差价收益 100% 归本分站所有</strong>。
|
||||
</Typography.Paragraph>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
||||
<Typography.Text strong>增加兑换比例:</Typography.Text>
|
||||
<Typography.Text strong>提价调减比例:</Typography.Text>
|
||||
<InputNumber
|
||||
min={0}
|
||||
max={100}
|
||||
@@ -431,18 +431,21 @@ export default function Accounts() {
|
||||
style={{ width: 180 }}
|
||||
value={markupRatio}
|
||||
onChange={(val) => setMarkupRatio(val ?? 0)}
|
||||
addonAfter="比例"
|
||||
addonAfter="比例点"
|
||||
placeholder="0"
|
||||
/>
|
||||
</div>
|
||||
{targetAccount && (
|
||||
<div style={{ marginTop: 8, padding: '8px 12px', background: '#f6ffed', borderRadius: 4, border: '1px solid #b7eb8f', fontSize: 12 }}>
|
||||
主站比例 {targetAccount.base_ratio || '-'} → 分站{' '}
|
||||
{((targetAccount.base_ratio || 0) + markupRatio).toFixed(1)},标价{' '}
|
||||
主站基准比例 {targetAccount.base_ratio || '-'} → 分站提价后比例{' '}
|
||||
<strong>{Math.max((targetAccount.base_ratio || 0) - markupRatio, 0.1).toFixed(1)}</strong>,
|
||||
预计售价{' '}
|
||||
<strong style={{ color: '#cf1322' }}>
|
||||
{formatMoney(targetAccount.site_price_cent || targetAccount.price_cent)}
|
||||
{markupRatio > 0 && targetAccount.base_ratio
|
||||
? `¥${(((targetAccount.haf_coin_amount || 0) / 10000) / Math.max(targetAccount.base_ratio - markupRatio, 0.1)).toFixed(2)}`
|
||||
: formatMoney(targetAccount.site_price_cent || targetAccount.price_cent)}
|
||||
</strong>
|
||||
(保存后按新比例重算)
|
||||
(加价溢价全额归本站独享)
|
||||
</div>
|
||||
)}
|
||||
</Space>
|
||||
|
||||
Reference in New Issue
Block a user