From a002ba7ef6c4e43cd5db28d5ba66164423e9ff2c Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Tue, 14 Apr 2026 22:48:09 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A5=97=E8=A3=85=E6=96=B9=E6=A1=88?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E5=AF=BC=E5=87=BA=E6=97=B6=E9=85=8D=E6=96=B9?= =?UTF-8?q?=E5=90=8D=E5=90=8E=E9=99=84=E5=AE=B9=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 形如「某配方(100ml)」。full/simple/横向对比三个 sheet 都带上。 Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/views/KitExport.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/KitExport.vue b/frontend/src/views/KitExport.vue index d069c1b..8b60eb2 100644 --- a/frontend/src/views/KitExport.vue +++ b/frontend/src/views/KitExport.vue @@ -267,8 +267,9 @@ async function exportExcel(mode) { const unit = oils.unitLabel(i.oil) return `${i.oil} ${i.drops}${unit}` }).join('、') + const vol = volumeLabel(r) ws.addRow([ - r.name, + vol ? `${r.name}(${vol})` : r.name, (r.tags || []).join('/'), ingredientStr, calcMaxTimes(r), @@ -287,8 +288,9 @@ async function exportExcel(mode) { for (const r of ka.recipes) { const price = getSellingPrice(r._id) const margin = calcMargin(r.kitCost, price) + const vol = volumeLabel(r) ws.addRow([ - r.name, + vol ? `${r.name}(${vol})` : r.name, calcMaxTimes(r), Number(r.kitCost.toFixed(2)), Number(r.originalCost.toFixed(2)), @@ -326,7 +328,8 @@ async function exportExcel(mode) { for (const row of crossComparison.value) { const price = getSellingPrice(row.id) - const vals = [row.name] + const vol = volumeLabel(row) + const vals = [vol ? `${row.name}(${vol})` : row.name] if (mode === 'full') vals.push((row.tags || []).join('/')) for (const ka of kitAnalysis.value) { const cost = row.costs[ka.id]