Files
ecom-dmb/ecom-dmb-frontend/apps/web-antd/src/utils/overview-table-hints.ts
T
2026-08-18 23:41:02 +08:00

53 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 全店 / 店铺 / 商品概览表格列说明(表头问号)
*/
export const overviewTableHints = {
targetOrderCount: '区间内各店铺月度目标单量之和。',
orderCountAchievementRate: '实际单量 / 目标单量 * 100%。',
targetAmount: '区间内各店铺月度目标销售额之和。',
salesAmountAchievementRate: '实际销售额 / 目标额 * 100%。',
salesAmount: '商家实收合计(排除退款)。',
dealAmount: '全部订单状态的商家实收合计。',
grossProfit: '实际销售额 − 订单成本 − 退款额。',
/** 与 salesAmount 同口径,表头文案为「销售额」时使用 */
salesAmountShort: '商家实收合计(排除退款)。',
orderCount: '计入销售额状态的订单笔数。',
orderCountSku: '该 SKU 计入统计的订单笔数;括号内为件数。',
/** @deprecated 使用 orderCountSku */
orderCountSpec: '该 SKU 计入统计的订单笔数;括号内为件数。',
averageOrderValue: '销售额 / 单量。',
productCost: '商品成本合计。',
shippingCost: '运费成本合计。',
otherCost: '其他成本合计。',
orderCost: '商品成本 + 运费 + 其他成本。',
refundAmount: '计入退款状态的商家实收合计。',
totalPromotionFee: '推广费合计。',
promotionFeeSku: '店铺推广费 *(该 SKU 订单数 / 区间总订单数)。',
/** @deprecated 使用 promotionFeeSku */
promotionFeeSpec: '店铺推广费 *(该 SKU 订单数 / 区间总订单数)。',
brushFee: '刷单费合计。',
feeRatioShopRow: '推广费 / 实际销售额;合计行含刷单费。',
feeRatioShopCategoryRow: '推广费 / 实际销售额;合计行含刷单费。',
feeRatioCategoryRow: '推广费 / 实际销售额;合计行含刷单费。',
feeRatioPlatform: '(推广费 + 刷单费)/ 实际销售额。',
feeRatioSku: '推广费 / 销售额(百分数 0–100)。',
/** @deprecated 使用 feeRatioSku */
feeRatioSpec: '推广费 / 销售额(百分数 0–100)。',
totalProfitBeforeTax: '毛利 − 推广费 − 刷单费。',
profitBeforeTaxSku: '销售额 − 订单成本 − 退款额 − 推广费。',
/** @deprecated 使用 profitBeforeTaxSku */
profitBeforeTaxSpec: '销售额 − 订单成本 − 退款额 − 推广费。',
roi: '实际销售额 / 推广费。',
profitAfterTax: '税前净利 − 税额。',
profitAfterTaxNet: '税前净利 − 税额。',
} as const;
/** @deprecated 使用 overviewTableHints */
export const storeOverviewHints = overviewTableHints;
export function salesTaxColumnHint(taxRate: number): string {
const pct = (taxRate * 100).toFixed(0);
return `实际销售额 * ${pct}%。`;
}