feat: 商业核算+个人库存+认证优化 #23

Merged
hera merged 14 commits from feat/inventory-commercial into main 2026-04-11 10:47:08 +00:00
Showing only changes of commit 51e70e5bca - Show all commits

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>