fix: 补全剩余硬编码单位 — 配方分享文本和商业核算消耗分析
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 16s
Test / e2e-test (push) Successful in 2m55s

- RecipeDetailOverlay: 分享文本 ing.drops滴 → unitLabel
- Projects: 消耗分析 每滴→单价, drops滴→unitLabel

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-14 17:47:35 +00:00
parent 2330ce1f2c
commit 18a74df083
2 changed files with 4 additions and 4 deletions

View File

@@ -483,7 +483,7 @@ function copyText() {
const ings = cardIngredients.value
const lines = ings.map(ing => {
const cost = oilsStore.pricePerDrop(ing.oil) * ing.drops
return `${ing.oil} ${ing.drops} ${oilsStore.fmtPrice(cost)}`
return `${ing.oil} ${ing.drops}${oilsStore.unitLabel(ing.oil)} ${oilsStore.fmtPrice(cost)}`
})
const total = priceInfo.value.cost
const text = [

View File

@@ -81,7 +81,7 @@
<tr>
<th>精油</th>
<th>用量</th>
<th>每滴</th>
<th>单价</th>
<th>小计</th>
<th></th>
</tr>
@@ -133,8 +133,8 @@
<tbody>
<tr v-for="c in consumptionData" :key="c.oil" :class="{ 'limit-oil': c.isLimit }">
<td>{{ c.oil }}</td>
<td>{{ c.drops }}</td>
<td>{{ c.bottleDrops }}</td>
<td>{{ c.drops }}{{ oils.unitLabel(c.oil) }}</td>
<td>{{ c.bottleDrops }}{{ oils.unitLabel(c.oil) }}</td>
<td>{{ c.sessions }}</td>
<td></td>
</tr>