feat: 非精油产品编辑页面适配(ml/g/颗) #34
@@ -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 = [
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user