mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
feat: 优化工作台计算
This commit is contained in:
@@ -35,6 +35,8 @@ export namespace WorkbenchVO {
|
||||
|
||||
export interface TrendPoint {
|
||||
date: string;
|
||||
/** 日成交金额(元):全部订单状态商家实收 */
|
||||
dealYuan?: number;
|
||||
/** 日实际销售额(元),与 KPI「实际销售额」同口径 */
|
||||
salesYuan?: number;
|
||||
/** 日毛利润(元)= 销售额−成本−退款 */
|
||||
|
||||
@@ -1,66 +1,46 @@
|
||||
/**
|
||||
* 全店 / 店铺 / 商品概览表格列说明(与后端汇总口径一致,供表头 Tooltip 使用)
|
||||
* 全店 / 店铺 / 商品概览表格列说明(表头问号)
|
||||
*/
|
||||
|
||||
export const overviewTableHints = {
|
||||
targetOrderCount:
|
||||
'所选日期范围内,涉及月份的「店铺月度目标单量」之和(来自各店铺月度目标配置)。',
|
||||
orderCountAchievementRate: '实际单量 ÷ 目标单量 × 100%。',
|
||||
targetAmount:
|
||||
'所选日期范围内,涉及月份的「店铺月度目标销售额」之和(来自各店铺月度目标配置)。',
|
||||
salesAmountAchievementRate: '实际销售额 ÷ 目标额 × 100%。',
|
||||
salesAmount:
|
||||
'统计口径下,计入销售额的订单实收金额合计(与后端订单状态统计一致)。',
|
||||
dealAmount:
|
||||
'成交金额 = 所选时间范围内全部订单状态的商家实收金额合计(不按订单状态过滤)。',
|
||||
grossProfit:
|
||||
'毛利 = 实际销售额 − 订单成本 − 退款金额(未扣推广费、刷单费与税额)。',
|
||||
targetOrderCount: '区间内各店铺月度目标单量之和。',
|
||||
orderCountAchievementRate: '实际单量 / 目标单量 * 100%。',
|
||||
targetAmount: '区间内各店铺月度目标销售额之和。',
|
||||
salesAmountAchievementRate: '实际销售额 / 目标额 * 100%。',
|
||||
salesAmount: '计入销售额状态的商家实收合计。',
|
||||
dealAmount: '全部订单状态的商家实收合计。',
|
||||
grossProfit: '实际销售额 − 订单成本 − 退款额。',
|
||||
/** 与 salesAmount 同口径,表头文案为「销售额」时使用 */
|
||||
salesAmountShort:
|
||||
'统计口径下,计入销售额的订单实收金额合计(与后端订单状态统计一致)。',
|
||||
orderCount: '统计口径下,计入销量的有效订单笔数。',
|
||||
orderCountSku:
|
||||
'该 SKU 下计入统计的订单笔数;括号内「件」为销售件数合计。',
|
||||
salesAmountShort: '计入销售额状态的商家实收合计。',
|
||||
orderCount: '计入销售额状态的订单笔数。',
|
||||
orderCountSku: '该 SKU 计入统计的订单笔数;括号内为件数。',
|
||||
/** @deprecated 使用 orderCountSku */
|
||||
orderCountSpec:
|
||||
'该 SKU 下计入统计的订单笔数;括号内「件」为销售件数合计。',
|
||||
averageOrderValue: '销售额 ÷ 单量。',
|
||||
productCost: '订单维度「商品成本」字段汇总。',
|
||||
shippingCost: '订单维度「运费成本」字段汇总。',
|
||||
otherCost: '订单维度「其他成本」字段汇总。',
|
||||
orderCost:
|
||||
'订单成本 = 商品成本 + 运费 + 其他成本(订单维度汇总,不含推广费、刷单费)。',
|
||||
refundAmount: '统计口径下,计入退款的实收金额合计。',
|
||||
totalPromotionFee: '该维度下推广费金额合计(来自推广费单据)。',
|
||||
promotionFeeSku:
|
||||
'该 SKU 推广费 = 店铺推广费总额 ×(该 SKU 订单数 ÷ 所选时间范围内订单总数),由后端按比例分摊。',
|
||||
orderCountSpec: '该 SKU 计入统计的订单笔数;括号内为件数。',
|
||||
averageOrderValue: '销售额 / 单量。',
|
||||
productCost: '商品成本合计。',
|
||||
shippingCost: '运费成本合计。',
|
||||
otherCost: '其他成本合计。',
|
||||
orderCost: '商品成本 + 运费 + 其他成本。',
|
||||
refundAmount: '计入退款状态的商家实收合计。',
|
||||
totalPromotionFee: '推广费合计。',
|
||||
promotionFeeSku: '店铺推广费 *(该 SKU 订单数 / 区间总订单数)。',
|
||||
/** @deprecated 使用 promotionFeeSku */
|
||||
promotionFeeSpec:
|
||||
'该 SKU 推广费 = 店铺推广费总额 ×(该 SKU 订单数 ÷ 所选时间范围内订单总数),由后端按比例分摊。',
|
||||
brushFee: '该维度下刷单费用合计(来自刷单记录)。',
|
||||
feeRatioShopRow:
|
||||
'费比 = 推广费 ÷ 实际销售额。(「合计」行:推广费与刷单费之和 ÷ 实际销售额)',
|
||||
feeRatioShopCategoryRow:
|
||||
'费比(各行)= 推广费 ÷ 实际销售额;「合计」行 =(推广费 + 刷单费)÷ 实际销售额。为单店内该品类汇总。',
|
||||
feeRatioCategoryRow:
|
||||
'费比 = 推广费 ÷ 实际销售额。全店品类行的推广费、刷单费按店铺在该品类销售额占比分摊;「合计」行费比 =(推广费 + 刷单费)÷ 实际销售额。',
|
||||
feeRatioPlatform:
|
||||
'费比 =(推广费 + 刷单费用)÷ 实际销售额。数据行与「合计」行口径一致。',
|
||||
feeRatioSku:
|
||||
'费比(%)= 推广费 ÷ 销售额;接口字段已为百分数数值(0–100),与店铺商品表费比展示方式不同。',
|
||||
promotionFeeSpec: '店铺推广费 *(该 SKU 订单数 / 区间总订单数)。',
|
||||
brushFee: '刷单费合计。',
|
||||
feeRatioShopRow: '推广费 / 实际销售额;合计行含刷单费。',
|
||||
feeRatioShopCategoryRow: '推广费 / 实际销售额;合计行含刷单费。',
|
||||
feeRatioCategoryRow: '推广费 / 实际销售额;合计行含刷单费。',
|
||||
feeRatioPlatform: '(推广费 + 刷单费)/ 实际销售额。',
|
||||
feeRatioSku: '推广费 / 销售额(百分数 0–100)。',
|
||||
/** @deprecated 使用 feeRatioSku */
|
||||
feeRatioSpec:
|
||||
'费比(%)= 推广费 ÷ 销售额;接口字段已为百分数数值(0–100),与店铺商品表费比展示方式不同。',
|
||||
totalProfitBeforeTax:
|
||||
'税前净利 = 毛利 − 推广费 − 刷单费用。',
|
||||
profitBeforeTaxSku:
|
||||
'税前净利 = 销售额 − 订单成本 − 退款金额 − 推广费(SKU 维度不含刷单费)。',
|
||||
feeRatioSpec: '推广费 / 销售额(百分数 0–100)。',
|
||||
totalProfitBeforeTax: '毛利 − 推广费 − 刷单费。',
|
||||
profitBeforeTaxSku: '销售额 − 订单成本 − 退款额 − 推广费。',
|
||||
/** @deprecated 使用 profitBeforeTaxSku */
|
||||
profitBeforeTaxSpec:
|
||||
'税前净利 = 销售额 − 订单成本 − 退款金额 − 推广费(SKU 维度不含刷单费)。',
|
||||
roi: 'ROI =(实际销售额 − 退款金额)÷ 推广费;推广费为 0 时后端记为 0。',
|
||||
profitAfterTax: '税后净利 = 税前净利 − 税额。',
|
||||
profitAfterTaxNet: '税后净利 = 税前净利 − 税额(与「税后盈亏」同口径,表头名称不同)。',
|
||||
profitBeforeTaxSpec: '销售额 − 订单成本 − 退款额 − 推广费。',
|
||||
roi: '实际销售额 / 推广费。',
|
||||
profitAfterTax: '税前净利 − 税额。',
|
||||
profitAfterTaxNet: '税前净利 − 税额。',
|
||||
} as const;
|
||||
|
||||
/** @deprecated 使用 overviewTableHints */
|
||||
@@ -68,5 +48,5 @@ export const storeOverviewHints = overviewTableHints;
|
||||
|
||||
export function salesTaxColumnHint(taxRate: number): string {
|
||||
const pct = (taxRate * 100).toFixed(0);
|
||||
return `税额 = (销售额 - 退款金额) × ${pct}%(与当前页面所选税率一致,由后端按该税率计算)。`;
|
||||
return `实际销售额 * ${pct}%。`;
|
||||
}
|
||||
|
||||
+12
-14
@@ -233,15 +233,15 @@ const emptyShellClass =
|
||||
overlay-class-name="workbench-kpi-card-popover"
|
||||
>
|
||||
<template #content>
|
||||
<div class="w-[min(18rem,80vw)] space-y-1 py-0.5">
|
||||
<p class="mb-1.5 px-1 text-[11px] text-slate-400">
|
||||
<div class="w-[min(20rem,80vw)] space-y-1 py-0.5">
|
||||
<p class="mb-2 px-1 text-xs text-slate-400">
|
||||
点击切换优先显示
|
||||
</p>
|
||||
<button
|
||||
v-for="m in row.members"
|
||||
:key="m.label"
|
||||
type="button"
|
||||
class="flex w-full items-center justify-between gap-3 rounded-lg px-2 py-1.5 text-left transition-colors hover:bg-blue-50 dark:hover:bg-[hsl(240deg_3.7%_18%)]"
|
||||
class="flex w-full items-center justify-between gap-3 rounded-lg px-2.5 py-2 text-left transition-colors hover:bg-blue-50 dark:hover:bg-[hsl(240deg_3.7%_18%)]"
|
||||
:class="
|
||||
m.isPrimary
|
||||
? 'bg-blue-50/80 dark:bg-[hsl(240deg_3.7%_16%)]'
|
||||
@@ -251,19 +251,19 @@ const emptyShellClass =
|
||||
>
|
||||
<span class="min-w-0 flex-1">
|
||||
<span
|
||||
class="block truncate text-xs font-semibold text-slate-700 dark:text-[hsl(0deg_0%_90%)]"
|
||||
class="block truncate text-sm font-semibold text-slate-700 dark:text-[hsl(0deg_0%_90%)]"
|
||||
>
|
||||
{{ m.label }}
|
||||
<span
|
||||
v-if="m.isPrimary"
|
||||
class="ml-1 text-[10px] font-medium text-blue-500"
|
||||
class="ml-1 text-xs font-medium text-blue-500"
|
||||
>
|
||||
当前
|
||||
</span>
|
||||
</span>
|
||||
<span
|
||||
v-if="m.kpi"
|
||||
class="mt-0.5 block text-[11px] tabular-nums text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]"
|
||||
class="mt-0.5 block text-sm tabular-nums text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]"
|
||||
>
|
||||
{{ compactValue(m.kpi) }}
|
||||
<span
|
||||
@@ -287,22 +287,20 @@ const emptyShellClass =
|
||||
:title="getFinanceKpiHint(row.primaryLabel, taxRate ?? 0.04)"
|
||||
>
|
||||
<span
|
||||
class="block truncate text-[13px] font-medium leading-snug text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]"
|
||||
class="block truncate text-[16px] font-semibold leading-snug text-slate-800 dark:text-[hsl(0deg_0%_90%)]"
|
||||
>
|
||||
{{ row.card.title }}
|
||||
{{ row.primaryLabel }}
|
||||
</span>
|
||||
</OverviewColumnHint>
|
||||
<p
|
||||
class="mt-0.5 truncate text-[11px] font-semibold text-slate-800 dark:text-[hsl(0deg_0%_90%)]"
|
||||
>
|
||||
{{ row.primaryLabel }}
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="grid size-9 shrink-0 place-items-center rounded-[10px]"
|
||||
:class="toneIconClass(row.card.tone)"
|
||||
>
|
||||
<component :is="row.card.icon" class="size-4" />
|
||||
<component
|
||||
:is="kpiMetaByLabel(row.primaryLabel).icon"
|
||||
class="size-4"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+38
-5
@@ -27,6 +27,7 @@ const hasData = computed(
|
||||
props.trend.length > 0 &&
|
||||
props.trend.some(
|
||||
(d) =>
|
||||
Number(d.dealYuan ?? 0) !== 0 ||
|
||||
Number(d.salesYuan ?? 0) !== 0 ||
|
||||
Number(d.profitYuan ?? 0) !== 0 ||
|
||||
Number(d.netProfitYuan ?? 0) !== 0,
|
||||
@@ -34,17 +35,19 @@ const hasData = computed(
|
||||
);
|
||||
|
||||
const periodSummary = computed(() => {
|
||||
let deal = 0;
|
||||
let sales = 0;
|
||||
let gross = 0;
|
||||
let net = 0;
|
||||
for (const d of props.trend) {
|
||||
deal += Number(d.dealYuan ?? 0);
|
||||
sales += Number(d.salesYuan ?? 0);
|
||||
gross += Number(d.profitYuan ?? 0);
|
||||
net += Number(d.netProfitYuan ?? 0);
|
||||
}
|
||||
const netMarginPct =
|
||||
sales > 0 ? Number(((net / sales) * 100).toFixed(1)) : null;
|
||||
return { sales, gross, net, netMarginPct };
|
||||
return { deal, sales, gross, net, netMarginPct };
|
||||
});
|
||||
|
||||
function pctOfSales(part: number, sales: number): string {
|
||||
@@ -74,6 +77,7 @@ function drawFinanceTrend() {
|
||||
const split = isDark ? 'hsl(240deg 3.7% 22%)' : '#f1f5f9';
|
||||
const dates = props.trend.map((d) => d.date);
|
||||
|
||||
const dealWan = props.trend.map((d) => yuanToWanNum(Number(d.dealYuan ?? 0)));
|
||||
const salesWan = props.trend.map((d) => yuanToWanNum(Number(d.salesYuan ?? 0)));
|
||||
const grossWan = props.trend.map((d) => yuanToWanNum(Number(d.profitYuan ?? 0)));
|
||||
const netWan = props.trend.map((d) => yuanToWanNum(Number(d.netProfitYuan ?? 0)));
|
||||
@@ -99,6 +103,7 @@ function drawFinanceTrend() {
|
||||
const idx = Number((params[0] as { dataIndex?: number })?.dataIndex ?? 0);
|
||||
const row = props.trend[idx];
|
||||
if (!row) return '';
|
||||
const deal = Number(row.dealYuan ?? 0);
|
||||
const sales = Number(row.salesYuan ?? 0);
|
||||
const gross = Number(row.profitYuan ?? 0);
|
||||
const net = Number(row.netProfitYuan ?? 0);
|
||||
@@ -108,6 +113,7 @@ function drawFinanceTrend() {
|
||||
);
|
||||
const lines: string[] = [
|
||||
`<div style="font-weight:800;margin-bottom:6px">${title}</div>`,
|
||||
`<span style="color:${isDark ? '#fbbf24' : '#d97706'}">●</span> 成交金额:${formatWanWithYuanDetail(deal)}`,
|
||||
`<span style="color:${isDark ? '#60a5fa' : '#1d4ed8'}">●</span> 实际销售额:${formatWanWithYuanDetail(sales)}`,
|
||||
`<span style="color:${isDark ? '#34d399' : '#059669'}">●</span> 毛利:${formatWanWithYuanDetail(gross)} <span style="opacity:0.75">(毛利率 ${pctOfSales(gross, sales)})</span>`,
|
||||
`<span style="color:${isDark ? '#c4b5fd' : '#6d28d9'}">●</span> 净利:${formatWanWithYuanDetail(net)} <span style="opacity:0.75">(净利率 ${pctOfSales(net, sales)})</span>`,
|
||||
@@ -126,6 +132,7 @@ function drawFinanceTrend() {
|
||||
itemHeight: 8,
|
||||
textStyle: { color: axisLabel, fontWeight: 700, fontSize: 11 },
|
||||
data: [
|
||||
'成交金额',
|
||||
'实际销售额',
|
||||
'毛利',
|
||||
'净利',
|
||||
@@ -192,10 +199,31 @@ function drawFinanceTrend() {
|
||||
},
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: '成交金额',
|
||||
type: 'bar',
|
||||
barMaxWidth: 22,
|
||||
barGap: '12%',
|
||||
itemStyle: {
|
||||
borderRadius: [6, 6, 0, 0],
|
||||
color: barGradient(
|
||||
isDark,
|
||||
isDark ? 'rgba(251, 191, 36, 0.85)' : 'rgba(217, 119, 6, 0.88)',
|
||||
isDark ? 'rgba(217, 119, 6, 0.35)' : 'rgba(253, 230, 138, 0.55)',
|
||||
),
|
||||
},
|
||||
emphasis: {
|
||||
itemStyle: {
|
||||
color: isDark ? '#fcd34d' : '#d97706',
|
||||
},
|
||||
},
|
||||
data: dealWan,
|
||||
z: 1,
|
||||
},
|
||||
{
|
||||
name: '实际销售额',
|
||||
type: 'bar',
|
||||
barMaxWidth: 28,
|
||||
barMaxWidth: 22,
|
||||
itemStyle: {
|
||||
borderRadius: [6, 6, 0, 0],
|
||||
color: barGradient(
|
||||
@@ -266,9 +294,9 @@ function drawFinanceTrend() {
|
||||
lineStyle: {
|
||||
width: 2,
|
||||
type: 'dotted',
|
||||
color: isDark ? '#fbbf24' : '#d97706',
|
||||
color: isDark ? '#94a3b8' : '#64748b',
|
||||
},
|
||||
itemStyle: { color: isDark ? '#fbbf24' : '#d97706' },
|
||||
itemStyle: { color: isDark ? '#94a3b8' : '#64748b' },
|
||||
data: netMarginPct,
|
||||
z: 5,
|
||||
},
|
||||
@@ -346,13 +374,18 @@ defineExpose({ redraw });
|
||||
经营趋势
|
||||
</h3>
|
||||
<p class="mt-1 text-xs font-normal text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
|
||||
柱状为实际销售额,折线为毛利/净利;右轴为日净利率
|
||||
柱状为成交金额 / 实际销售额,折线为毛利 / 净利;右轴为日净利率
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
v-if="hasData"
|
||||
class="flex flex-wrap gap-2 text-xs font-medium"
|
||||
>
|
||||
<span
|
||||
class="rounded-lg bg-amber-50 px-2.5 py-1 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300"
|
||||
>
|
||||
区间成交 {{ formatWanWithYuanDetail(periodSummary.deal) }}
|
||||
</span>
|
||||
<span
|
||||
class="rounded-lg bg-blue-50 px-2.5 py-1 text-blue-600 dark:bg-blue-950/50 dark:text-blue-300"
|
||||
>
|
||||
|
||||
+14
-26
@@ -1,25 +1,19 @@
|
||||
import { overviewTableHints, salesTaxColumnHint } from '#/utils/overview-table-hints';
|
||||
|
||||
/** 工作台经营 KPI 计算说明(与汇总表、后端 WorkbenchServiceImpl 口径一致) */
|
||||
/** 工作台经营 KPI 问号说明 */
|
||||
const FINANCE_KPI_HINTS: Record<string, string> = {
|
||||
成交金额: overviewTableHints.dealAmount,
|
||||
成交单量:
|
||||
'所选时间范围内,全部订单状态的订单笔数合计(不按是否计入销售额过滤)。环比/同比为笔数变化率。',
|
||||
成交销量:
|
||||
'所选时间范围内,全部订单状态的销售件数合计(订单行件数汇总)。',
|
||||
成交客单价: '成交金额 ÷ 成交单量;成交单量为 0 时为 0。',
|
||||
成交件单价: '成交金额 ÷ 成交销量;成交销量为 0 时为 0。',
|
||||
成交单量: '全部订单状态的订单笔数。',
|
||||
成交销量: '全部订单状态的销售件数。',
|
||||
成交客单价: '成交金额 / 成交单量。',
|
||||
成交件单价: '成交金额 / 成交销量。',
|
||||
实际销售额: overviewTableHints.salesAmount,
|
||||
销售单量:
|
||||
'统计口径下,计入销售额的有效订单笔数(与下方汇总表「单量」列一致)。环比/同比为笔数变化率。',
|
||||
实际销量: '计入销售额的订单状态件数合计。',
|
||||
客单价: '实际销售额 ÷ 销售单量;销售单量为 0 时为 0。',
|
||||
销售件单价: '实际销售额 ÷ 实际销量;实际销量为 0 时为 0。',
|
||||
净销售额: '实际销售额 − 退款额(与广告 ROI 分子、税额计税基数同口径)。',
|
||||
销售单量: '计入销售额状态的订单笔数。',
|
||||
实际销量: '计入销售额状态的销售件数。',
|
||||
客单价: '实际销售额 / 销售单量。',
|
||||
销售件单价: '实际销售额 / 实际销量。',
|
||||
退款额: overviewTableHints.refundAmount,
|
||||
退款率: '退款额 ÷ 实际销售额 × 100%;实际销售额为 0 时为 0。',
|
||||
'成交与销售差额':
|
||||
'成交金额 − 实际销售额,反映未计入销售口径的订单实收差额。',
|
||||
退款率: '退款额 / 实际销售额 * 100%。',
|
||||
订单成本: overviewTableHints.orderCost,
|
||||
商品成本: overviewTableHints.productCost,
|
||||
运费成本: overviewTableHints.shippingCost,
|
||||
@@ -27,20 +21,14 @@ const FINANCE_KPI_HINTS: Record<string, string> = {
|
||||
毛利润: overviewTableHints.grossProfit,
|
||||
推广费: overviewTableHints.totalPromotionFee,
|
||||
刷单费: overviewTableHints.brushFee,
|
||||
净利润:
|
||||
'净利润 = 毛利润 − 推广费 − 刷单费 − 税额(与汇总表损益链路一致)。卡片副文案中的净利率 = 净利润 ÷ 实际销售额。',
|
||||
净利润: '毛利润 − 推广费 − 刷单费 − 税额。',
|
||||
广告ROI: overviewTableHints.roi,
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取 KPI 标题旁问号 Tooltip 文案;税额随页面税率变化。
|
||||
*/
|
||||
/** KPI 标题旁问号 Tooltip;税额随页面税率变化。 */
|
||||
export function getFinanceKpiHint(label: string, taxRate = 0.04): string {
|
||||
if (label === '税额') {
|
||||
return `${salesTaxColumnHint(taxRate)} 工作台按净销售额计税基数汇总。`;
|
||||
return salesTaxColumnHint(taxRate);
|
||||
}
|
||||
return (
|
||||
FINANCE_KPI_HINTS[label] ??
|
||||
'该指标说明暂未配置,请以汇总表同名列或系统配置口径为准。'
|
||||
);
|
||||
return FINANCE_KPI_HINTS[label] ?? '暂无说明。';
|
||||
}
|
||||
|
||||
+1
-4
@@ -47,7 +47,6 @@ const IconTruck = createIconifyIcon('lucide:truck');
|
||||
const IconMegaphone = createIconifyIcon('lucide:megaphone');
|
||||
const IconBrush = createIconifyIcon('lucide:brush');
|
||||
const IconTax = createIconifyIcon('lucide:landmark');
|
||||
const IconScale = createIconifyIcon('lucide:scale');
|
||||
const IconReceipt = createIconifyIcon('lucide:receipt');
|
||||
const IconDefault = createIconifyIcon('lucide:bar-chart-3');
|
||||
|
||||
@@ -69,10 +68,8 @@ export const FINANCE_KPI_METRIC_META: Record<string, FinanceKpiMetricMeta> = {
|
||||
实际销量: { label: '实际销量', upIsGood: true, icon: IconPackage },
|
||||
客单价: { label: '客单价', upIsGood: true, icon: IconAov },
|
||||
销售件单价: { label: '销售件单价', upIsGood: true, icon: IconReceipt },
|
||||
净销售额: { label: '净销售额', upIsGood: true, icon: IconNet },
|
||||
退款额: { label: '退款额', upIsGood: false, icon: IconRefund },
|
||||
退款率: { label: '退款率', upIsGood: false, icon: IconPercent },
|
||||
'成交与销售差额': { label: '成交与销售差额', upIsGood: true, icon: IconScale },
|
||||
订单成本: { label: '订单成本', upIsGood: false, icon: IconCost },
|
||||
商品成本: { label: '商品成本', upIsGood: false, icon: IconPackage },
|
||||
运费成本: { label: '运费成本', upIsGood: false, icon: IconTruck },
|
||||
@@ -103,7 +100,7 @@ export const FINANCE_KPI_CARDS: FinanceKpiCardDef[] = [
|
||||
{
|
||||
id: 'revenue',
|
||||
title: '销售额',
|
||||
metrics: ['实际销售额', '成交金额', '净销售额', '成交与销售差额'],
|
||||
metrics: ['实际销售额', '成交金额'],
|
||||
defaultPrimary: '实际销售额',
|
||||
icon: IconSales,
|
||||
tone: 'blue',
|
||||
|
||||
Reference in New Issue
Block a user