diff --git a/frontend/src/composables/useKitCost.js b/frontend/src/composables/useKitCost.js
index adfc194..3ddf351 100644
--- a/frontend/src/composables/useKitCost.js
+++ b/frontend/src/composables/useKitCost.js
@@ -35,12 +35,14 @@ export function useKitCost() {
}
if (totalBottlePrice === 0) return {}
- // Proportional allocation
+ // Proportional allocation — kit accessories treated as freebies,
+ // so oil cost = min(kit price, sum of bottle prices)
+ const effectivePrice = Math.min(kit.price, totalBottlePrice)
const perDrop = {}
for (const name of resolved) {
const meta = oils.oilsMeta[name]
const bp = oilBottlePrices[name]
- const kitCostForOil = (bp / totalBottlePrice) * kit.price
+ const kitCostForOil = (bp / totalBottlePrice) * effectivePrice
const drops = meta ? meta.dropCount : 1
perDrop[name] = drops > 0 ? kitCostForOil / drops : 0
}
@@ -124,6 +126,7 @@ export function useKitCost() {
id,
name: recipe.name,
tags: recipe.tags,
+ volume: recipe.volume,
ingredients: recipe.ingredients,
originalCost: recipe.originalCost,
costs,
diff --git a/frontend/src/views/KitExport.vue b/frontend/src/views/KitExport.vue
index e65b0f1..9aebec9 100644
--- a/frontend/src/views/KitExport.vue
+++ b/frontend/src/views/KitExport.vue
@@ -39,6 +39,7 @@
配方名
+ 可做次数
套装成本
原价成本
售价
@@ -47,7 +48,8 @@