fix(admin): 恢复接单模板计价配置并统一成本价格链路
This commit is contained in:
@@ -128,6 +128,7 @@ export async function applyAdminTemplateProductBootstrap(
|
||||
skuNick: template.sku_nick,
|
||||
relSkuId: template.rel_sku_id,
|
||||
sellerIds: template.seller_ids_json,
|
||||
pricingMode: template.pricing_mode === 'unit' ? 'unit' : 'fixed',
|
||||
unitPriceFen: Number(template.unit_price_fen || 0),
|
||||
rewardAmountFen: Number(template.reward_amount || 0),
|
||||
templateEnabled: template.enabled,
|
||||
@@ -282,6 +283,7 @@ type TemplateBootstrapTemplateRow = {
|
||||
category: string
|
||||
unit_price_fen: number
|
||||
reward_amount: number
|
||||
pricing_mode: 'fixed' | 'unit'
|
||||
mapping_id: number | null
|
||||
mapping_type: string
|
||||
sku_nick: string
|
||||
@@ -696,6 +698,7 @@ async function loadTemplateProductBootstrapData(range: { fromDate: string; toDat
|
||||
COALESCE(c.name, '') AS category,
|
||||
r.unit_price_fen,
|
||||
r.reward_amount,
|
||||
r.pricing_mode,
|
||||
m.id AS mapping_id,
|
||||
COALESCE(m.mapping_type, '') AS mapping_type,
|
||||
COALESCE(m.sku_nick, '') AS sku_nick,
|
||||
|
||||
Reference in New Issue
Block a user