UI: 消耗分析移到配方总成本下面
Some checks failed
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 14s
Test / e2e-test (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-11 10:00:02 +00:00
parent d3e3b89701
commit 51e70e5bca

View File

@@ -110,6 +110,26 @@
<span class="total-price">{{ oils.fmtPrice(materialCost) }}</span>
</div>
<!-- Consumption Analysis -->
<div v-if="consumptionData.length" class="consumption-section" style="margin-top:12px">
<h4>🧪 消耗分析</h4>
<table class="consumption-table">
<thead>
<tr><th>精油</th><th>单次用量</th><th>瓶装容量</th><th>可做次数</th></tr>
</thead>
<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.sessions }}</td>
</tr>
</tbody>
</table>
<div class="consumption-summary">
<span> <strong>{{ limitingOil }}</strong> 最先消耗完最多可做 <strong>{{ maxSessions }}</strong> </span>
</div>
</div>
</div>
<!-- Pricing Section -->
@@ -186,27 +206,6 @@
</div>
</div>
<!-- Consumption Analysis -->
<div v-if="consumptionData.length" class="consumption-section">
<h4>🧪 消耗分析</h4>
<table class="consumption-table">
<thead>
<tr><th>精油</th><th>单次用量</th><th>瓶装容量</th><th>可做次数</th></tr>
</thead>
<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.sessions }}</td>
</tr>
</tbody>
</table>
<div class="consumption-summary">
<span> <strong>{{ limitingOil }}</strong> 最先消耗完最多可做 <strong>{{ maxSessions }}</strong> </span>
</div>
</div>
<!-- Notes -->
<div class="notes-section">
<h4>📝 备注</h4>