feat(edit): 定价试算开发、SKU 样式功能修改
This commit is contained in:
@@ -52,6 +52,9 @@ export type LogisticsRule = {
|
||||
volume_limit_round_scale: number | null;
|
||||
};
|
||||
export type CommissionRule = {
|
||||
category_name?: string;
|
||||
source?: string;
|
||||
effective_from?: string | Date;
|
||||
id: string | null;
|
||||
currency_code: string;
|
||||
min_price: string | null;
|
||||
@@ -254,6 +257,10 @@ export function calculatePricing(
|
||||
logistics_rate_rule_id: r.id,
|
||||
commission_rule_id: c.id,
|
||||
commission_rate: c.commission_rate,
|
||||
...(c.id ? {commission_details: {
|
||||
category_name: c.category_name ?? '',currency_code:c.currency_code,version:c.version,source:c.source ?? 'manual_rule',
|
||||
min_price:c.min_price,max_price:c.max_price,min_inclusive:c.min_inclusive,max_inclusive:c.max_inclusive,commission_rate:c.commission_rate,
|
||||
}} : {}),
|
||||
selling_price: rounded.toFixed(2),
|
||||
list_price: list.toFixed(2),
|
||||
currency_code: currency,
|
||||
|
||||
Reference in New Issue
Block a user