From 2dca4d13b9eeff24c2dde7015fbabe13ab68f22b Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Tue, 14 Apr 2026 22:37:57 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=87=BA=20Excel=20=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E3=80=8C=E5=8D=95=E4=BB=B7=E3=80=8D=E4=B8=BA=E4=B8=80?= =?UTF-8?q?=E5=88=97=EF=BC=8C=E5=80=BC=E5=BD=A2=E5=A6=82=20=C2=A5X.XX/ml|g?= =?UTF-8?q?|=E9=A2=97|=E6=BB=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/views/OilReference.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/OilReference.vue b/frontend/src/views/OilReference.vue index 3728fd2..df6a3a2 100644 --- a/frontend/src/views/OilReference.vue +++ b/frontend/src/views/OilReference.vue @@ -912,13 +912,13 @@ async function exportExcel() { '会员价': meta.bottlePrice != null ? Number(meta.bottlePrice.toFixed(2)) : '', '零售价': meta.retailPrice != null ? Number(meta.retailPrice.toFixed(2)) : '', '容量': vol, - [`单价(¥/${unit})`]: ppdNum ? Number(ppdNum.toFixed(2)) : '', + '单价': ppdNum ? `¥${ppdNum.toFixed(2)}/${unit}` : '', '状态': meta.isActive === false ? '下架' : '在售', }) } const ws = XLSX.utils.json_to_sheet(rows) - ws['!cols'] = [{ wch: 16 }, { wch: 28 }, { wch: 10 }, { wch: 10 }, { wch: 12 }, { wch: 14 }, { wch: 8 }] + ws['!cols'] = [{ wch: 16 }, { wch: 28 }, { wch: 10 }, { wch: 10 }, { wch: 12 }, { wch: 16 }, { wch: 8 }] const wb = XLSX.utils.book_new() XLSX.utils.book_append_sheet(wb, ws, '精油价目表') XLSX.writeFile(wb, `精油价目表${dateStr}.xlsx`)