diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/compare/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/compare/index.vue index fcc489a0..3db75499 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/compare/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/compare/index.vue @@ -19,7 +19,7 @@ import { salesTaxColumnHint, } from '#/utils/overview-table-hints'; -import { formatYuanDetail, yuanToWanNum } from '../../workbench-money'; +import { formatYuanDetail, yuanToWanNum } from '../../utils/money'; defineOptions({ name: 'WorkbenchPeriodCompareTab' }); diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceCostPieChart.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceCostPieChart.vue index 8100c993..603c98ba 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceCostPieChart.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceCostPieChart.vue @@ -6,7 +6,7 @@ import { nextTick, onMounted, ref, watch } from 'vue'; import { EchartsUI, useEcharts } from '@vben/plugins/echarts'; -import { formatWanShort, formatYuanDetail } from '../../../workbench-money'; +import { formatWanShort, formatYuanDetail } from '../../../utils/money'; defineOptions({ name: 'WorkbenchFinanceCostPieChart' }); diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceKpiGrid.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceKpiGrid.vue index eb1e8462..91a442bd 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceKpiGrid.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceKpiGrid.vue @@ -3,7 +3,7 @@ import type { WorkbenchVO } from '#/api/ecommerce/workbench/types'; import { Tooltip } from 'ant-design-vue'; -import { formatWanShort, formatYuanDetail } from '../../../workbench-money'; +import { formatWanShort, formatYuanDetail } from '../../../utils/money'; defineOptions({ name: 'WorkbenchFinanceKpiGrid' }); diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceTrendChart.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceTrendChart.vue index 4cbeb69f..a907627f 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceTrendChart.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/components/FinanceTrendChart.vue @@ -6,7 +6,7 @@ import { nextTick, onMounted, ref, watch } from 'vue'; import { EchartsUI, useEcharts } from '@vben/plugins/echarts'; -import { formatWanWithYuanDetail, yuanToWanNum } from '../../../workbench-money'; +import { formatWanWithYuanDetail, yuanToWanNum } from '../../../utils/money'; defineOptions({ name: 'WorkbenchFinanceTrendChart' }); diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/index.vue index d3583567..da3346f9 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/workbench/tabs/finance/index.vue @@ -13,7 +13,7 @@ import { buildCategoryOverviewFromDimRows, buildPlatformOverviewFromDimRows, buildShopOverviewFromDimRows, -} from '../../workbench-overview-bridge'; +} from '../../utils/overview-bridge'; defineOptions({ name: 'WorkbenchFinanceTab' }); @@ -76,10 +76,11 @@ defineExpose({ redraw }); :yoy-compare-date-start="finance.yoyCompareDateStart" :yoy-compare-date-end="finance.yoyCompareDateEnd" /> -
+
{ if (value === null || value === undefined || value === '') return ''; const num = Number(value); if (!Number.isFinite(num)) return ''; - return `${num * 100}%`; + return `${Math.round(num * 100 * 1e10) / 1e10}%`; }; const parseTaxRate = (value: string | undefined) => {