diff --git a/frontend/src/views/OilReference.vue b/frontend/src/views/OilReference.vue index fefc25f..3d72eac 100644 --- a/frontend/src/views/OilReference.vue +++ b/frontend/src/views/OilReference.vue @@ -843,8 +843,9 @@ function exportPDF() { const en = getEnglishName(name) const bp = meta.bottlePrice != null ? '¥' + meta.bottlePrice.toFixed(0) : '--' const rp = meta.retailPrice != null ? '¥' + meta.retailPrice.toFixed(0) : '--' - const vol = volumeLabel(meta.dropCount) - const ppd = oils.pricePerDrop(name) ? '¥' + oils.pricePerDrop(name).toFixed(2) : '--' + const vol = volumeLabel(meta.dropCount, name) + const unit = oilPriceUnit(name) + const ppd = oils.pricePerDrop(name) ? '¥' + oils.pricePerDrop(name).toFixed(2) + '/' + unit : '--' rows += `
| 精油 | 英文名 | 会员价 | 零售价 | 容量 | 单价/滴 |
|---|---|---|---|---|---|
| 精油 | 英文名 | 会员价 | 零售价 | 容量 | 单价 |