feat: 优化经营概览

This commit is contained in:
2026-08-18 23:41:02 +08:00
parent 63aeb330a2
commit 5c104446b2
8 changed files with 97 additions and 86 deletions
@@ -312,7 +312,7 @@ public class CategoryExportExcelServiceImpl implements CategoryExportExcelServic
}
/**
* 列顺序与前端 {@code CategoryComparisonTable.vue} 一致;费比列为「百分比数值」(×100,一位小数),与页面展示一致。
* 列顺序与工作台品类/商品汇总表一致:税额在订单成本后,费比在 ROI 前。
*/
private void writeCategoryMultidimensionalSheet(
Sheet sheet,
@@ -332,8 +332,8 @@ public class CategoryExportExcelServiceImpl implements CategoryExportExcelServic
+ "%税额";
String[] headers = {
dimensionColumnHeader, "实际销售额", "单量", "客单价",
"商品成本", "运费", "其他成本", "订单成本", "退款金额", "推广费", "刷单费用", "费比 %",
"税前盈亏", taxHeader, "ROI", "税后盈亏"
"商品成本", "运费", "其他成本", "订单成本", "退款金额", taxHeader, "推广费", "刷单费",
"税前盈亏", "费比 %", "ROI", "税后盈亏"
};
Row titleRow = sheet.createRow(0);
@@ -375,16 +375,16 @@ public class CategoryExportExcelServiceImpl implements CategoryExportExcelServic
setCell(row, 5, bd2Money(d.getShippingCost()), style);
setCell(row, 6, bd2Money(d.getOtherCost()), style);
setCell(row, 7, bd2Money(d.getOrderCost()), style);
setCell(row, 8, bd2Money(d.getRefundAmount()), style);
setCell(row, 9, bd2Money(d.getTotalPromotionFee()), style);
setCell(row, 10, bd2Money(d.getBrushFee()), style);
setCell(row, 11, bd2FeeRatioPercent(d.getFeeRatio()), style);
setCell(row, 12, bd2Money(d.getTotalProfitBeforeTax()), style);
BigDecimal salesTax = salesTaxOnNetForCategoryExport(d.getSalesAmount(), d.getRefundAmount(), taxRate);
BigDecimal profitAfterTax = (d.getTotalProfitBeforeTax() != null ? d.getTotalProfitBeforeTax() : BigDecimal.ZERO)
.subtract(salesTax)
.setScale(2, RoundingMode.HALF_UP);
setCell(row, 13, bd2Money(salesTax), style);
setCell(row, 8, bd2Money(d.getRefundAmount()), style);
setCell(row, 9, bd2Money(salesTax), style);
setCell(row, 10, bd2Money(d.getTotalPromotionFee()), style);
setCell(row, 11, bd2Money(d.getBrushFee()), style);
setCell(row, 12, bd2Money(d.getTotalProfitBeforeTax()), style);
setCell(row, 13, bd2FeeRatioPercent(d.getFeeRatio()), style);
setCell(row, 14, bd2Roi(d.getRoi()), style);
setCell(row, 15, bd2Money(profitAfterTax), style);
}
@@ -132,8 +132,8 @@ public class ExportServiceImpl implements ExportService {
String[] headers = {
firstColumnHeader, "目标单量", "单量达成率(%)", "目标额", "销售达成率(%)",
"实际销售额", "成交金额", "单量", "客单价",
"商品成本", "运费", "其他成本", "订单成本", "退款金额", "推广费", "刷单费用", "费比",
"毛利", "税前净利", taxLabel, "ROI", "税后净利"
"商品成本", "运费", "其他成本", "订单成本", "退款金额", taxLabel, "推广费", "刷单费",
"毛利", "税前净利", "费比", "ROI", "税后净利"
};
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, headers.length - 1));
CellStyle headerStyle = createHeaderStyle(wb);
@@ -177,12 +177,6 @@ public class ExportServiceImpl implements ExportService {
setCell(row, 10, objToDouble(data.get("shippingCost")), style);
setCell(row, 11, objToDouble(data.get("otherCost")), style);
setCell(row, 12, objToDouble(data.get("orderCost")), style);
setCell(row, 13, objToDouble(data.get("refundAmount")), style);
setCell(row, 14, objToDouble(data.get("totalPromotionFee")), style);
setCell(row, 15, objToDouble(data.get("brushFee")), style);
setCell(row, 16, objToDouble(data.get("feeRatio")), style);
setCell(row, 17, objToDouble(data.get("grossProfit")), style);
setCell(row, 18, objToDouble(data.get("totalProfitBeforeTax")), style);
BigDecimal salesTax = salesTaxOnNetForExport(
mapToBigDecimal(data.get("salesAmount")),
mapToBigDecimal(data.get("refundAmount")),
@@ -190,7 +184,13 @@ public class ExportServiceImpl implements ExportService {
BigDecimal profitAfterTax = mapToBigDecimal(data.get("totalProfitBeforeTax"))
.subtract(salesTax)
.setScale(2, RoundingMode.HALF_UP);
setCell(row, 19, salesTax.doubleValue(), style);
setCell(row, 13, objToDouble(data.get("refundAmount")), style);
setCell(row, 14, salesTax.doubleValue(), style);
setCell(row, 15, objToDouble(data.get("totalPromotionFee")), style);
setCell(row, 16, objToDouble(data.get("brushFee")), style);
setCell(row, 17, objToDouble(data.get("grossProfit")), style);
setCell(row, 18, objToDouble(data.get("totalProfitBeforeTax")), style);
setCell(row, 19, objToDouble(data.get("feeRatio")), style);
setCell(row, 20, objToDouble(data.get("roi")), style);
setCell(row, 21, profitAfterTax.doubleValue(), style);
}
@@ -25,7 +25,11 @@ const iconWrapClass = computed(() =>
<template>
<span class="inline-flex max-w-full items-center gap-1">
<span class="min-w-0"><slot /></span>
<Tooltip :title="title" placement="topLeft">
<Tooltip
:title="title"
placement="topLeft"
:overlay-inner-style="{ whiteSpace: 'pre-line', maxWidth: '22rem' }"
>
<span
:class="iconWrapClass"
tabindex="0"
@@ -7,11 +7,11 @@ export const overviewTableHints = {
orderCountAchievementRate: '实际单量 / 目标单量 * 100%。',
targetAmount: '区间内各店铺月度目标销售额之和。',
salesAmountAchievementRate: '实际销售额 / 目标额 * 100%。',
salesAmount: '计入销售额状态的商家实收合计。',
salesAmount: '商家实收合计(排除退款)。',
dealAmount: '全部订单状态的商家实收合计。',
grossProfit: '实际销售额 − 订单成本 − 退款额。',
/** 与 salesAmount 同口径,表头文案为「销售额」时使用 */
salesAmountShort: '计入销售额状态的商家实收合计。',
salesAmountShort: '商家实收合计(排除退款)。',
orderCount: '计入销售额状态的订单笔数。',
orderCountSku: '该 SKU 计入统计的订单笔数;括号内为件数。',
/** @deprecated 使用 orderCountSku */
@@ -160,7 +160,7 @@ const cellRoi = (v: number | null | undefined) =>
成本费用维度
</th>
<th
colspan="6"
colspan="5"
class="border-b border-l border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] dark:border-l-[hsl(240deg_3.7%_22%)] dark:border-[hsl(240deg_3.7%_22%)] bg-emerald-50/50 dark:bg-[hsl(142deg_71.8%_29%)] p-3 text-center text-emerald-700 dark:text-emerald-200"
>
盈利分析维度
@@ -196,14 +196,16 @@ const cellRoi = (v: number | null | undefined) =>
<th class="border-b px-6 py-4 font-bold text-rose-600 dark:text-rose-400">
<OverviewColumnHint :title="storeOverviewHints.refundAmount">退款金额</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 italic text-rose-500 dark:text-rose-400">
<OverviewColumnHint :title="salesTaxColumnHint(taxRate)">
{{ (taxRate * 100).toFixed(0) }}%税额
</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4">
<OverviewColumnHint :title="storeOverviewHints.totalPromotionFee">推广费</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 text-orange-600 dark:text-orange-400">
<OverviewColumnHint :title="storeOverviewHints.brushFee">刷单费用</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="storeOverviewHints.feeRatioCategoryRow">费比%</OverviewColumnHint>
<OverviewColumnHint :title="storeOverviewHints.brushFee">刷单费</OverviewColumnHint>
</th>
<th class="border-b border-l px-6 py-4 font-bold text-emerald-700 dark:text-emerald-400">
<OverviewColumnHint :title="storeOverviewHints.grossProfit">毛利</OverviewColumnHint>
@@ -213,10 +215,8 @@ const cellRoi = (v: number | null | undefined) =>
税前净利
</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 italic text-rose-500 dark:text-rose-400">
<OverviewColumnHint :title="salesTaxColumnHint(taxRate)">
{{ (taxRate * 100).toFixed(0) }}%税额
</OverviewColumnHint>
<th class="border-b px-6 py-4 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="storeOverviewHints.feeRatioCategoryRow">费比%</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 font-black text-indigo-700 dark:text-indigo-400">
<OverviewColumnHint :title="storeOverviewHints.roi">ROI</OverviewColumnHint>
@@ -286,21 +286,21 @@ const cellRoi = (v: number | null | undefined) =>
<td class="p-6 font-bold text-rose-600 dark:text-rose-400">
{{ cellMoney(cat.refundAmount) }}
</td>
<td class="p-6 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cellMoney(cat.salesTaxAmount) }}
</td>
<td class="p-6">{{ cellMoney(cat.totalPromotionFee) }}</td>
<td class="p-6 text-orange-600 dark:text-orange-400">
{{ cellMoney(cat.brushFee) }}
</td>
<td class="p-6 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cat.feeRatio !== undefined ? formatFeeRatioPercent(cat.feeRatio) : '-' }}
</td>
<td class="p-6 font-bold text-emerald-700 dark:text-emerald-400">
{{ cellMoney(cat.grossProfit) }}
</td>
<td class="p-6 font-bold">
{{ cellMoney(cat.totalProfitBeforeTax) }}
</td>
<td class="p-6 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cellMoney(cat.salesTaxAmount) }}
<td class="p-6 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cat.feeRatio !== undefined ? formatFeeRatioPercent(cat.feeRatio) : '-' }}
</td>
<td class="p-6 font-black text-indigo-700 dark:text-indigo-400">
{{ cellRoi(cat.roi) }}
@@ -310,7 +310,7 @@ const cellRoi = (v: number | null | undefined) =>
</td>
</tr>
<tr v-if="!categorySummary?.categories?.length">
<td :colspan="categoryExportMode ? 20 : 19" class="p-8 text-center text-gray-400">
<td :colspan="categoryExportMode ? 19 : 18" class="p-8 text-center text-gray-400">
暂无数据
</td>
</tr>
@@ -332,13 +332,13 @@ const cellRoi = (v: number | null | undefined) =>
<td class="p-6">{{ cellMoney(categorySummary?.total?.otherCost) }}</td>
<td class="p-6 font-bold text-orange-800 dark:text-orange-300">{{ cellMoney(categorySummary?.total?.orderCost) }}</td>
<td class="p-6 text-rose-600 dark:text-rose-400">{{ cellMoney(categorySummary?.total?.refundAmount) }}</td>
<td class="p-6 italic text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoney(categorySummary?.total?.salesTaxAmount) }}</td>
<td class="p-6">{{ cellMoney(categorySummary?.total?.totalPromotionFee) }}</td>
<td class="p-6 text-orange-600 dark:text-orange-400">{{ cellMoney(categorySummary?.total?.brushFee) }}</td>
<td class="p-6 text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ categorySummary?.total?.feeRatio !== undefined ? formatFeeRatioPercent(categorySummary?.total?.feeRatio) : '-' }}</td>
<!-- 盈利 -->
<td class="p-6 text-emerald-700 dark:text-emerald-400">{{ cellMoney(categorySummary?.total?.grossProfit) }}</td>
<td class="p-6">{{ cellMoney(categorySummary?.total?.totalProfitBeforeTax) }}</td>
<td class="p-6 italic text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoney(categorySummary?.total?.salesTaxAmount) }}</td>
<td class="p-6 text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ categorySummary?.total?.feeRatio !== undefined ? formatFeeRatioPercent(categorySummary?.total?.feeRatio) : '-' }}</td>
<td class="p-6 text-indigo-700 dark:text-indigo-400">{{ cellRoi(categorySummary?.total?.roi) }}</td>
<td
class="bg-emerald-100 p-6 text-base dark:bg-emerald-950"
@@ -267,20 +267,27 @@ async function handleProductExport() {
color: #3b82f6;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
</style>
:global(html.dark) :deep(.workbench-overview-segmented) {
background: hsl(240deg 3.7% 22% / 70%);
<style>
/* 深色模式不要写在 scoped 里::global(html.dark) :deep(...) 无法命中,浅色白底会盖住主题 */
html.dark .workbench-overview-segmented.ant-segmented {
background: hsl(240deg 6% 9%);
border: 1px solid hsl(240deg 4% 28%);
}
:global(html.dark) :deep(.workbench-overview-segmented .ant-segmented-item) {
border-radius: 10px;
color: hsl(240deg 5% 64.9%);
html.dark .workbench-overview-segmented .ant-segmented-item {
color: hsl(240deg 5% 72%);
}
:global(html.dark)
:deep(.workbench-overview-segmented .ant-segmented-item-selected) {
background: hsl(220deg 13% 18%);
color: #60a5fa;
box-shadow: 0 1px 3px hsl(0 0 0% / 30%);
html.dark .workbench-overview-segmented .ant-segmented-item:hover:not(.ant-segmented-item-selected) {
color: hsl(0deg 0% 95%);
}
html.dark .workbench-overview-segmented .ant-segmented-thumb,
html.dark .workbench-overview-segmented .ant-segmented-item-selected {
background: hsl(222deg 14% 26%) !important;
color: #93c5fd;
box-shadow: inset 0 0 0 1px hsl(217deg 91% 60% / 36%);
}
</style>
@@ -218,7 +218,7 @@ const sortedData = computed(() => {
</th>
<!-- 盈利 -->
<th
colspan="6"
colspan="5"
class="border-b border-l border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] dark:border-l-[hsl(240deg_3.7%_22%)] p-3 text-center bg-emerald-50/50 dark:bg-[hsl(142deg_71.8%_29%)] text-emerald-700 dark:text-emerald-200"
>
盈利分析维度
@@ -275,14 +275,16 @@ const sortedData = computed(() => {
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 font-bold text-rose-600 dark:text-rose-400">
<OverviewColumnHint :title="storeOverviewHints.refundAmount">退款金额</OverviewColumnHint>
</th>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="salesTaxColumnHint(taxRate ?? 0.04)">
{{ taxRateNum.toFixed(0) }}%税额
</OverviewColumnHint>
</th>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4">
<OverviewColumnHint :title="storeOverviewHints.totalPromotionFee">推广费</OverviewColumnHint>
</th>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 text-orange-600 dark:text-orange-400">
<OverviewColumnHint :title="storeOverviewHints.brushFee">刷单费用</OverviewColumnHint>
</th>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="storeOverviewHints.feeRatioPlatform">费比%</OverviewColumnHint>
<OverviewColumnHint :title="storeOverviewHints.brushFee">刷单费</OverviewColumnHint>
</th>
<!-- 盈利子列 -->
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4 font-bold text-emerald-700 dark:text-emerald-400">
@@ -293,10 +295,8 @@ const sortedData = computed(() => {
税前净利
</OverviewColumnHint>
</th>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="salesTaxColumnHint(taxRate ?? 0.04)">
{{ taxRateNum.toFixed(0) }}%税额
</OverviewColumnHint>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="storeOverviewHints.feeRatioPlatform">费比%</OverviewColumnHint>
</th>
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-indigo-700 dark:text-indigo-400">
<OverviewColumnHint :title="storeOverviewHints.roi">ROI</OverviewColumnHint>
@@ -357,9 +357,9 @@ const sortedData = computed(() => {
<td class="p-6">{{ formatAmount(p.otherCost) }}</td>
<td class="p-6 font-bold text-orange-800 dark:text-orange-300">{{ formatAmount(p.orderCost) }}</td>
<td class="p-6 font-bold text-rose-600 dark:text-rose-400">{{ formatAmount(p.refundAmount) }}</td>
<td class="p-6 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">{{ formatAmount(p.salesTaxAmount) }}</td>
<td class="p-6">{{ formatAmount(p.totalPromotionFee) }}</td>
<td class="p-6 text-orange-600 dark:text-orange-400">{{ formatAmount(p.brushFee) }}</td>
<td class="p-6 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">{{ formatFeeRatioPercent(p.feeRatio) }}</td>
<!-- 盈利 -->
<td class="p-6 font-bold text-emerald-700 dark:text-emerald-400">
{{ formatAmount(p.grossProfit) }}
@@ -367,7 +367,7 @@ const sortedData = computed(() => {
<td class="p-6 font-bold" :class="p.totalProfitBeforeTax >= 0 ? 'text-slate-800 dark:text-[hsl(0deg_0%_95%)]' : 'text-rose-600 dark:text-rose-400'">
{{ formatAmount(p.totalProfitBeforeTax) }}
</td>
<td class="p-6 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">{{ formatAmount(p.salesTaxAmount) }}</td>
<td class="p-6 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">{{ formatFeeRatioPercent(p.feeRatio) }}</td>
<td class="p-6 font-black text-indigo-700 dark:text-indigo-400">{{ p.roi.toFixed(2) }}</td>
<td
class="bg-emerald-50 dark:bg-[hsl(142deg_71.8%_29%)] p-6 text-base font-black"
@@ -403,11 +403,11 @@ const sortedData = computed(() => {
<td class="p-6">{{ cellMoney(totalData.otherCost) }}</td>
<td class="p-6 font-bold text-orange-800 dark:text-orange-300">{{ cellMoney(totalData.orderCost) }}</td>
<td class="p-6 text-rose-600 dark:text-rose-400">{{ cellMoney(totalData.refundAmount) }}</td>
<td class="p-6 italic text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cellMoney(totalData.salesTaxAmount) }}
</td>
<td class="p-6">{{ cellMoney(totalData.totalPromotionFee) }}</td>
<td class="p-6 text-orange-600 dark:text-orange-400">{{ cellMoney(totalData.brushFee) }}</td>
<td class="p-6 text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">
{{ totalData.feeRatio !== undefined ? formatFeeRatioPercent(totalData.feeRatio) : '-' }}
</td>
<!-- 盈利 -->
<td class="p-6 text-emerald-700 dark:text-emerald-400">
{{ cellMoney(totalData.grossProfit) }}
@@ -415,8 +415,8 @@ const sortedData = computed(() => {
<td class="p-6">
{{ cellMoney(totalData.totalProfitBeforeTax) }}
</td>
<td class="p-6 italic text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cellMoney(totalData.salesTaxAmount) }}
<td class="p-6 text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">
{{ totalData.feeRatio !== undefined ? formatFeeRatioPercent(totalData.feeRatio) : '-' }}
</td>
<td class="p-6 text-indigo-700 dark:text-indigo-400">
{{ cellRoi(totalData.roi) }}
@@ -431,7 +431,7 @@ const sortedData = computed(() => {
</tfoot>
<tfoot v-else class="bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)]">
<tr class="text-center text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<td :colspan="platformExportMode ? 24 : 23" class="p-6">暂无数据</td>
<td :colspan="platformExportMode ? 23 : 22" class="p-6">暂无数据</td>
</tr>
</tfoot>
</table>
@@ -168,7 +168,7 @@ const cellRoi = (v: number | null | undefined) =>
成本费用维度
</th>
<th
colspan="6"
colspan="5"
class="border-b border-l border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] dark:border-l-[hsl(240deg_3.7%_22%)] dark:border-[hsl(240deg_3.7%_22%)] bg-emerald-50/50 dark:bg-[hsl(142deg_71.8%_29%)] p-3 text-center text-emerald-700 dark:text-emerald-200"
>
盈利分析维度
@@ -225,14 +225,16 @@ const cellRoi = (v: number | null | undefined) =>
<th class="border-b px-6 py-4 font-bold text-rose-600 dark:text-rose-400">
<OverviewColumnHint :title="storeOverviewHints.refundAmount">退款金额</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 italic text-rose-500 dark:text-rose-400">
<OverviewColumnHint :title="salesTaxColumnHint(taxRate)">
{{ (taxRate * 100).toFixed(0) }}%税额
</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4">
<OverviewColumnHint :title="storeOverviewHints.totalPromotionFee">推广费</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 text-orange-600 dark:text-orange-400">
<OverviewColumnHint :title="storeOverviewHints.brushFee">刷单费用</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="storeOverviewHints.feeRatioShopRow">费比%</OverviewColumnHint>
<OverviewColumnHint :title="storeOverviewHints.brushFee">刷单费</OverviewColumnHint>
</th>
<!-- 盈利 -->
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4 font-bold text-emerald-700 dark:text-emerald-400">
@@ -243,10 +245,8 @@ const cellRoi = (v: number | null | undefined) =>
税前净利
</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 italic text-rose-500 dark:text-rose-400">
<OverviewColumnHint :title="salesTaxColumnHint(taxRate)">
{{ (taxRate * 100).toFixed(0) }}%税额
</OverviewColumnHint>
<th class="border-b px-6 py-4 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
<OverviewColumnHint :title="storeOverviewHints.feeRatioShopRow">费比%</OverviewColumnHint>
</th>
<th class="border-b px-6 py-4 font-black text-indigo-700 dark:text-indigo-400">
<OverviewColumnHint :title="storeOverviewHints.roi">ROI</OverviewColumnHint>
@@ -345,19 +345,15 @@ const cellRoi = (v: number | null | undefined) =>
<td class="p-6 font-bold text-rose-600 dark:text-rose-400">
{{ cellMoney(shop.refundAmount) }}
</td>
<td class="p-6 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cellMoney(shop.salesTaxAmount) }}
</td>
<td class="p-6">
{{ cellMoney(shop.totalPromotionFee) }}
</td>
<td class="p-6 text-orange-600 dark:text-orange-400">
{{ cellMoney(shop.brushFee) }}
</td>
<td class="p-6 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{
shop.feeRatio !== undefined
? formatFeeRatioPercent(shop.feeRatio)
: '-'
}}
</td>
<!-- 盈利 -->
<td class="p-6 font-bold text-emerald-700 dark:text-emerald-400">
{{ cellMoney(shop.grossProfit) }}
@@ -365,8 +361,12 @@ const cellRoi = (v: number | null | undefined) =>
<td class="p-6 font-bold">
{{ cellMoney(shop.totalProfitBeforeTax) }}
</td>
<td class="p-6 italic text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{ cellMoney(shop.salesTaxAmount) }}
<td class="p-6 text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
{{
shop.feeRatio !== undefined
? formatFeeRatioPercent(shop.feeRatio)
: '-'
}}
</td>
<td class="p-6 font-black text-indigo-700 dark:text-indigo-400">
{{ cellRoi(shop.roi) }}
@@ -376,7 +376,7 @@ const cellRoi = (v: number | null | undefined) =>
</td>
</tr>
<tr v-if="!shopSummary?.shops?.length">
<td :colspan="shopExportMode ? 24 : 23" class="p-8 text-center text-gray-400">
<td :colspan="shopExportMode ? 23 : 22" class="p-8 text-center text-gray-400">
暂无数据
</td>
</tr>
@@ -420,13 +420,13 @@ const cellRoi = (v: number | null | undefined) =>
<td class="p-6">{{ cellMoney(shopSummary?.total?.otherCost) }}</td>
<td class="p-6 font-bold text-orange-800 dark:text-orange-300">{{ cellMoney(shopSummary?.total?.orderCost) }}</td>
<td class="p-6 text-rose-600 dark:text-rose-400">{{ cellMoney(shopSummary?.total?.refundAmount) }}</td>
<td class="p-6 italic text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoney(shopSummary?.total?.salesTaxAmount) }}</td>
<td class="p-6">{{ cellMoney(shopSummary?.total?.totalPromotionFee) }}</td>
<td class="p-6 text-orange-600 dark:text-orange-400">{{ cellMoney(shopSummary?.total?.brushFee) }}</td>
<td class="p-6 text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ shopSummary?.total?.feeRatio !== undefined ? formatFeeRatioPercent(shopSummary?.total?.feeRatio) : '-' }}</td>
<!-- 盈利 -->
<td class="p-6 text-emerald-700 dark:text-emerald-400">{{ cellMoney(shopSummary?.total?.grossProfit) }}</td>
<td class="p-6">{{ cellMoney(shopSummary?.total?.totalProfitBeforeTax) }}</td>
<td class="p-6 italic text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoney(shopSummary?.total?.salesTaxAmount) }}</td>
<td class="p-6 text-slate-500 dark:text-[hsl(240deg_5%_64.9%)]">{{ shopSummary?.total?.feeRatio !== undefined ? formatFeeRatioPercent(shopSummary?.total?.feeRatio) : '-' }}</td>
<td class="p-6 text-indigo-700 dark:text-indigo-400">{{ cellRoi(shopSummary?.total?.roi) }}</td>
<td
class="bg-emerald-100 p-6 text-base dark:bg-emerald-950"