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
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:
@@ -110,6 +110,26 @@
|
|||||||
<span class="total-price">{{ oils.fmtPrice(materialCost) }}</span>
|
<span class="total-price">{{ oils.fmtPrice(materialCost) }}</span>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
<!-- Pricing Section -->
|
<!-- Pricing Section -->
|
||||||
@@ -186,27 +206,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</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 -->
|
<!-- Notes -->
|
||||||
<div class="notes-section">
|
<div class="notes-section">
|
||||||
<h4>📝 备注</h4>
|
<h4>📝 备注</h4>
|
||||||
|
|||||||
Reference in New Issue
Block a user