From 5445dc5a2232cca11ca4b97cfbe7198a05c3a370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9F=91=E8=9E=82?= Date: Wed, 6 May 2026 01:41:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E8=B0=83=E6=95=B4=E5=85=A8?= =?UTF-8?q?=E5=BA=97=E6=A6=82=E8=A7=88=E5=8F=8A=E5=BA=97=E9=93=BA=E6=A6=82?= =?UTF-8?q?=E8=A7=88=E4=B8=AD=E6=88=90=E6=9C=AC=E5=AD=97=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正全店概览/店铺概览各表格组件的成本字段渲染逻辑 - 同步注释更新 --- .../components/CategoryComparisonTable.vue | 5 +- .../components/PlatformSummaryCard.vue | 5 +- .../components/ShopComparisonTable.vue | 5 +- .../components/CategoryComparisonTable.vue | 101 +++++++++--------- .../components/ProductComparisonTable.vue | 7 +- .../views/ecommerce/shop/overview/index.vue | 2 +- 6 files changed, 66 insertions(+), 59 deletions(-) diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/CategoryComparisonTable.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/CategoryComparisonTable.vue index a3cd3b80..a96d8a76 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/CategoryComparisonTable.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/CategoryComparisonTable.vue @@ -268,7 +268,10 @@ const formatPercentPlain = (value: number | undefined) => { {{ categoryComparisons?.total?.totalProfitBeforeTax ? formatAmount(categoryComparisons?.total?.totalProfitBeforeTax) : '-' }} {{ categoryComparisons?.total?.salesTaxAmount ? formatAmount(categoryComparisons?.total?.salesTaxAmount) : '-' }} {{ categoryComparisons?.total?.roi?.toFixed(2) || '-' }} - {{ categoryComparisons?.total?.profitAfterTax ? formatAmount(categoryComparisons?.total?.profitAfterTax) : '-' }} + {{ categoryComparisons?.total?.profitAfterTax ? formatAmount(categoryComparisons?.total?.profitAfterTax) : '-' }} diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/PlatformSummaryCard.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/PlatformSummaryCard.vue index e69287d9..61f18aa3 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/PlatformSummaryCard.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/PlatformSummaryCard.vue @@ -330,8 +330,9 @@ const sortedData = computed(() => { {{ totalData.roi !== undefined ? totalData.roi.toFixed(2) : '-' }} - {{ totalData.profitAfterTax ? formatAmount(totalData.profitAfterTax) : '-' }} diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/ShopComparisonTable.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/ShopComparisonTable.vue index 4bd558ce..b5d4b505 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/ShopComparisonTable.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/store-overview/components/ShopComparisonTable.vue @@ -366,7 +366,10 @@ const formatPercentPlain = (value: number | undefined) => { {{ shopComparisons?.total?.totalProfitBeforeTax ? formatAmount(shopComparisons?.total?.totalProfitBeforeTax) : '-' }} {{ shopComparisons?.total?.salesTaxAmount ? formatAmount(shopComparisons?.total?.salesTaxAmount) : '-' }} {{ shopComparisons?.total?.roi !== undefined ? shopComparisons?.total?.roi.toFixed(2) : '-' }} - {{ shopComparisons?.total?.profitAfterTax ? formatAmount(shopComparisons?.total?.profitAfterTax) : '-' }} + {{ shopComparisons?.total?.profitAfterTax ? formatAmount(shopComparisons?.total?.profitAfterTax) : '-' }} diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/components/CategoryComparisonTable.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/components/CategoryComparisonTable.vue index 8831bef2..62391aa8 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/components/CategoryComparisonTable.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/shop/overview/components/CategoryComparisonTable.vue @@ -1,8 +1,6 @@