mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 03:49:19 +08:00
refactor: 经营概览汇总表统一成交/净销售六列规模字段并同步前后端导出与对比
This commit is contained in:
@@ -92,11 +92,18 @@ export namespace CompanyOverviewVO {
|
||||
orderCountAchievementRate?: number;
|
||||
targetAmount?: number;
|
||||
salesAmountAchievementRate?: number;
|
||||
/** 净销售额 = 成交 − 退款 */
|
||||
salesAmount?: number;
|
||||
/** 成交金额(全订单状态商家实收合计) */
|
||||
/** 成交金额 */
|
||||
dealAmount?: number;
|
||||
orderCount?: number;
|
||||
averageOrderValue?: number;
|
||||
/** 净销售单量 */
|
||||
salesOrderCount?: number;
|
||||
/** 成交单量 */
|
||||
dealOrderCount?: number;
|
||||
/** 净销售客单价 */
|
||||
salesAverageOrderValue?: number;
|
||||
/** 成交客单价 */
|
||||
dealAverageOrderValue?: number;
|
||||
productCost?: number;
|
||||
shippingCost?: number;
|
||||
otherCost?: number;
|
||||
@@ -120,8 +127,10 @@ export namespace CompanyOverviewVO {
|
||||
categoryName?: string;
|
||||
salesAmount?: number;
|
||||
dealAmount?: number;
|
||||
orderCount?: number;
|
||||
averageOrderValue?: number;
|
||||
salesOrderCount?: number;
|
||||
dealOrderCount?: number;
|
||||
salesAverageOrderValue?: number;
|
||||
dealAverageOrderValue?: number;
|
||||
productCost?: number;
|
||||
shippingCost?: number;
|
||||
otherCost?: number;
|
||||
@@ -147,8 +156,10 @@ export namespace CompanyOverviewVO {
|
||||
salesAmountAchievementRate?: number;
|
||||
salesAmount?: number;
|
||||
dealAmount?: number;
|
||||
orderCount?: number;
|
||||
averageOrderValue?: number;
|
||||
salesOrderCount?: number;
|
||||
dealOrderCount?: number;
|
||||
salesAverageOrderValue?: number;
|
||||
dealAverageOrderValue?: number;
|
||||
productCost?: number;
|
||||
shippingCost?: number;
|
||||
otherCost?: number;
|
||||
|
||||
@@ -176,10 +176,16 @@ export namespace ShopVO {
|
||||
productCode?: string;
|
||||
/** 销售额 */
|
||||
salesAmount: number;
|
||||
/** 单量 */
|
||||
orderCount?: number;
|
||||
/** 客单价 */
|
||||
averageOrderValue?: number;
|
||||
/** 成交金额 */
|
||||
dealAmount?: number;
|
||||
/** 净销售单量 */
|
||||
salesOrderCount?: number;
|
||||
/** 成交单量 */
|
||||
dealOrderCount?: number;
|
||||
/** 净销售客单价 */
|
||||
salesAverageOrderValue?: number;
|
||||
/** 成交客单价 */
|
||||
dealAverageOrderValue?: number;
|
||||
/** 商品成本 */
|
||||
productCost?: number;
|
||||
/** 运费 */
|
||||
@@ -214,10 +220,16 @@ export namespace ShopVO {
|
||||
categoryName: string;
|
||||
/** 销售额 */
|
||||
salesAmount: number;
|
||||
/** 单量 */
|
||||
orderCount?: number;
|
||||
/** 客单价 */
|
||||
averageOrderValue?: number;
|
||||
/** 成交金额 */
|
||||
dealAmount?: number;
|
||||
/** 净销售单量 */
|
||||
salesOrderCount?: number;
|
||||
/** 成交单量 */
|
||||
dealOrderCount?: number;
|
||||
/** 净销售客单价 */
|
||||
salesAverageOrderValue?: number;
|
||||
/** 成交客单价 */
|
||||
dealAverageOrderValue?: number;
|
||||
/** 商品成本 */
|
||||
productCost?: number;
|
||||
/** 运费 */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
export const overviewTableHints = {
|
||||
targetOrderCount: '区间内各店铺月度目标单量之和。',
|
||||
orderCountAchievementRate: '实际单量 / 目标单量 * 100%。',
|
||||
orderCountAchievementRate: '净销售单量 / 目标单量 * 100%。',
|
||||
targetAmount: '区间内各店铺月度目标销售额之和。',
|
||||
salesAmountAchievementRate: '净销售额 / 目标额 * 100%。',
|
||||
salesAmount: '成交金额 − 退款额(不含已取消、未知订单)。',
|
||||
@@ -12,10 +12,16 @@ export const overviewTableHints = {
|
||||
grossProfit: '净销售额 − 订单成本。',
|
||||
/** 与 salesAmount 同口径,表头文案为「销售额」时使用 */
|
||||
salesAmountShort: '成交金额 − 退款额(不含已取消、未知订单)。',
|
||||
salesOrderCount: '净销售单量 = 成交单量 − 退款单量。',
|
||||
dealOrderCount: '计入成交状态的订单笔数(不含已取消、未知)。',
|
||||
salesAverageOrderValue: '净销售额 / 净销售单量。',
|
||||
dealAverageOrderValue: '成交金额 / 成交单量。',
|
||||
/** @deprecated 使用 salesOrderCount */
|
||||
orderCount: '净销售单量 = 成交单量 − 退款单量。',
|
||||
orderCountSku: '该 SKU 净销售单量;括号内为净销量件数。',
|
||||
/** @deprecated 使用 orderCountSku */
|
||||
orderCountSpec: '该 SKU 净销售单量;括号内为净销量件数。',
|
||||
/** @deprecated 使用 salesAverageOrderValue */
|
||||
averageOrderValue: '净销售额 / 净销售单量。',
|
||||
productCost: '商品成本合计。',
|
||||
shippingCost: '运费成本合计。',
|
||||
|
||||
@@ -102,14 +102,6 @@ function buildCompareMetrics(
|
||||
const z = (r: CompanyOverviewVO.ShopSummary | undefined, fn: (x: CompanyOverviewVO.ShopSummary) => unknown) =>
|
||||
num(r ? fn(r) : undefined);
|
||||
return [
|
||||
{
|
||||
key: 'salesAmount',
|
||||
label: '净销售额',
|
||||
hint: overviewTableHints.salesAmount,
|
||||
format: 'money',
|
||||
valueA: z(a, (r) => r.salesAmount),
|
||||
valueB: z(b, (r) => r.salesAmount),
|
||||
},
|
||||
{
|
||||
key: 'dealAmount',
|
||||
label: '成交金额',
|
||||
@@ -119,20 +111,44 @@ function buildCompareMetrics(
|
||||
valueB: z(b, (r) => r.dealAmount),
|
||||
},
|
||||
{
|
||||
key: 'orderCount',
|
||||
label: '单量',
|
||||
hint: overviewTableHints.orderCount,
|
||||
format: 'int',
|
||||
valueA: z(a, (r) => r.orderCount),
|
||||
valueB: z(b, (r) => r.orderCount),
|
||||
key: 'salesAmount',
|
||||
label: '净销售额',
|
||||
hint: overviewTableHints.salesAmount,
|
||||
format: 'money',
|
||||
valueA: z(a, (r) => r.salesAmount),
|
||||
valueB: z(b, (r) => r.salesAmount),
|
||||
},
|
||||
{
|
||||
key: 'averageOrderValue',
|
||||
label: '客单价',
|
||||
hint: overviewTableHints.averageOrderValue,
|
||||
key: 'dealOrderCount',
|
||||
label: '成交单量',
|
||||
hint: overviewTableHints.dealOrderCount,
|
||||
format: 'int',
|
||||
valueA: z(a, (r) => r.dealOrderCount),
|
||||
valueB: z(b, (r) => r.dealOrderCount),
|
||||
},
|
||||
{
|
||||
key: 'salesOrderCount',
|
||||
label: '净销售单量',
|
||||
hint: overviewTableHints.salesOrderCount,
|
||||
format: 'int',
|
||||
valueA: z(a, (r) => r.salesOrderCount),
|
||||
valueB: z(b, (r) => r.salesOrderCount),
|
||||
},
|
||||
{
|
||||
key: 'dealAverageOrderValue',
|
||||
label: '成交客单价',
|
||||
hint: overviewTableHints.dealAverageOrderValue,
|
||||
format: 'money',
|
||||
valueA: z(a, (r) => r.averageOrderValue),
|
||||
valueB: z(b, (r) => r.averageOrderValue),
|
||||
valueA: z(a, (r) => r.dealAverageOrderValue),
|
||||
valueB: z(b, (r) => r.dealAverageOrderValue),
|
||||
},
|
||||
{
|
||||
key: 'salesAverageOrderValue',
|
||||
label: '净销售客单价',
|
||||
hint: overviewTableHints.salesAverageOrderValue,
|
||||
format: 'money',
|
||||
valueA: z(a, (r) => r.salesAverageOrderValue),
|
||||
valueB: z(b, (r) => r.salesAverageOrderValue),
|
||||
},
|
||||
{
|
||||
key: 'productCost',
|
||||
|
||||
+22
-12
@@ -145,7 +145,7 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
{{ props.firstColumnLabel }}
|
||||
</th>
|
||||
<th
|
||||
colspan="4"
|
||||
colspan="6"
|
||||
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-slate-100/50 dark:bg-[hsl(240deg_3.7%_22%/50%)] p-3 text-center"
|
||||
>
|
||||
经营规模维度
|
||||
@@ -164,19 +164,25 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="bg-slate-50 dark:bg-[hsl(240deg_3.7%_15.9%)] text-sm">
|
||||
<th class="border-b border-l px-6 py-4 font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<th class="border-b border-l px-6 py-4 font-black text-amber-700 dark:text-amber-400">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesAmount">
|
||||
净销售额
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 font-black text-amber-700 dark:text-amber-400">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealOrderCount">成交单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.orderCount">单量</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesOrderCount">净销售单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.averageOrderValue">客单价</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAverageOrderValue">成交客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesAverageOrderValue">净销售客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-l px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.productCost">商品成本</OverviewColumnHint>
|
||||
@@ -268,11 +274,13 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
{{ cat.categoryName }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-6 font-black"><AnimatedMoneyCell :value="cat.salesAmount" /></td>
|
||||
<td class="p-6 font-black text-amber-700 dark:text-amber-400"><AnimatedMoneyCell :value="cat.dealAmount" /></td>
|
||||
<td class="p-6 font-medium">{{ formatIntCell(cat.orderCount) }}</td>
|
||||
<td class="p-6 font-black"><AnimatedMoneyCell :value="cat.salesAmount" /></td>
|
||||
<td class="p-6 font-medium">{{ formatIntCell(cat.dealOrderCount) }}</td>
|
||||
<td class="p-6 font-medium">{{ formatIntCell(cat.salesOrderCount) }}</td>
|
||||
<td class="p-6 font-medium"><AnimatedMoneyCell :value="cat.dealAverageOrderValue" /></td>
|
||||
<td class="p-6 font-medium">
|
||||
<AnimatedMoneyCell :value="cat.averageOrderValue" />
|
||||
<AnimatedMoneyCell :value="cat.salesAverageOrderValue" />
|
||||
</td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="cat.productCost" /></td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="cat.shippingCost" /></td>
|
||||
@@ -317,11 +325,13 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
<tr class="font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<td class="sticky-col bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] p-6 text-base">合计</td>
|
||||
<!-- 规模 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="categorySummary?.total?.salesAmount" /></td>
|
||||
<td class="p-6 text-amber-700 dark:text-amber-400"><AnimatedMoneyCell :value="categorySummary?.total?.dealAmount" /></td>
|
||||
<td class="p-6">{{ formatIntCell(categorySummary?.total?.orderCount) }}</td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="categorySummary?.total?.salesAmount" /></td>
|
||||
<td class="p-6">{{ formatIntCell(categorySummary?.total?.dealOrderCount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(categorySummary?.total?.salesOrderCount) }}</td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="categorySummary?.total?.dealAverageOrderValue" /></td>
|
||||
<td class="p-6">
|
||||
<AnimatedMoneyCell :value="categorySummary?.total?.averageOrderValue" />
|
||||
<AnimatedMoneyCell :value="categorySummary?.total?.salesAverageOrderValue" />
|
||||
</td>
|
||||
<!-- 成本 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="categorySummary?.total?.productCost" /></td>
|
||||
|
||||
+28
-14
@@ -70,8 +70,10 @@ const platformData = computed(() => {
|
||||
salesAmountAchievementRate: p.salesAmountAchievementRate ?? 0,
|
||||
salesAmount: p.salesAmount ?? 0,
|
||||
dealAmount: p.dealAmount ?? 0,
|
||||
orderCount: p.orderCount ?? 0,
|
||||
averageOrderValue: p.averageOrderValue ?? 0,
|
||||
salesOrderCount: p.salesOrderCount ?? 0,
|
||||
dealOrderCount: p.dealOrderCount ?? 0,
|
||||
salesAverageOrderValue: p.salesAverageOrderValue ?? 0,
|
||||
dealAverageOrderValue: p.dealAverageOrderValue ?? 0,
|
||||
productCost: p.productCost ?? 0,
|
||||
shippingCost: p.shippingCost ?? 0,
|
||||
otherCost: p.otherCost ?? 0,
|
||||
@@ -201,7 +203,7 @@ const sortedData = computed(() => {
|
||||
</th>
|
||||
<!-- 规模 -->
|
||||
<th
|
||||
colspan="4"
|
||||
colspan="6"
|
||||
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-slate-100/50 dark:bg-[hsl(240deg_3.7%_22%/50%)]"
|
||||
>
|
||||
经营规模维度
|
||||
@@ -242,19 +244,25 @@ const sortedData = computed(() => {
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<!-- 规模子列 -->
|
||||
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-amber-700 dark:text-amber-400">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesAmount">
|
||||
净销售额
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-amber-700 dark:text-amber-400">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealOrderCount">成交单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.orderCount">单量</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesOrderCount">净销售单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.averageOrderValue">客单价</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAverageOrderValue">成交客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesAverageOrderValue">净销售客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<!-- 成本子列 -->
|
||||
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
@@ -344,10 +352,12 @@ const sortedData = computed(() => {
|
||||
<td class="p-6 font-medium"><AnimatedMoneyCell :value="p.targetAmount" /></td>
|
||||
<td class="p-6 font-black text-blue-600 dark:text-blue-400">{{ formatPercentPlain(p.salesAmountAchievementRate) }}</td>
|
||||
<!-- 规模 -->
|
||||
<td class="p-6 font-black"><AnimatedMoneyCell :value="p.salesAmount" /></td>
|
||||
<td class="p-6 font-black text-amber-700 dark:text-amber-400"><AnimatedMoneyCell :value="p.dealAmount" /></td>
|
||||
<td class="p-6 font-medium">{{ p.orderCount.toLocaleString('zh-CN') }}</td>
|
||||
<td class="p-6 font-medium"><AnimatedMoneyCell :value="p.averageOrderValue" /></td>
|
||||
<td class="p-6 font-black"><AnimatedMoneyCell :value="p.salesAmount" /></td>
|
||||
<td class="p-6 font-medium">{{ formatIntCell(p.dealOrderCount) }}</td>
|
||||
<td class="p-6 font-medium">{{ formatIntCell(p.salesOrderCount) }}</td>
|
||||
<td class="p-6 font-medium"><AnimatedMoneyCell :value="p.dealAverageOrderValue" /></td>
|
||||
<td class="p-6 font-medium"><AnimatedMoneyCell :value="p.salesAverageOrderValue" /></td>
|
||||
<!-- 成本 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="p.productCost" /></td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="p.shippingCost" /></td>
|
||||
@@ -388,11 +398,15 @@ const sortedData = computed(() => {
|
||||
{{ totalData.salesAmountAchievementRate !== undefined ? formatPercentPlain(totalData.salesAmountAchievementRate) : '-' }}
|
||||
</td>
|
||||
<!-- 规模 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="totalData.salesAmount" /></td>
|
||||
<td class="p-6 text-amber-700 dark:text-amber-400"><AnimatedMoneyCell :value="totalData.dealAmount" /></td>
|
||||
<td class="p-6">{{ formatIntCell(totalData.orderCount) }}</td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="totalData.salesAmount" /></td>
|
||||
<td class="p-6">{{ formatIntCell(totalData.dealOrderCount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(totalData.salesOrderCount) }}</td>
|
||||
<td class="p-6">
|
||||
<AnimatedMoneyCell :value="totalData.averageOrderValue" />
|
||||
<AnimatedMoneyCell :value="totalData.dealAverageOrderValue" />
|
||||
</td>
|
||||
<td class="p-6">
|
||||
<AnimatedMoneyCell :value="totalData.salesAverageOrderValue" />
|
||||
</td>
|
||||
<!-- 成本 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="totalData.productCost" /></td>
|
||||
|
||||
+32
-16
@@ -149,7 +149,7 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
目标达成维度
|
||||
</th>
|
||||
<th
|
||||
colspan="4"
|
||||
colspan="6"
|
||||
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-slate-100/50 dark:bg-[hsl(240deg_3.7%_22%/50%)] p-3 text-center"
|
||||
>
|
||||
经营规模维度
|
||||
@@ -187,20 +187,26 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
销售达成率
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<!-- 规模 -->
|
||||
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<!-- 规模:成交在前,净销售在后 -->
|
||||
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-amber-700 dark:text-amber-400">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesAmount">
|
||||
净销售额
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 font-black text-amber-700 dark:text-amber-400">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealOrderCount">成交单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.orderCount">单量</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesOrderCount">净销售单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.averageOrderValue">客单价</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="storeOverviewHints.dealAverageOrderValue">成交客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="storeOverviewHints.salesAverageOrderValue">净销售客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<!-- 成本 -->
|
||||
<th class="border-b border-l border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
@@ -308,17 +314,23 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
}}
|
||||
</td>
|
||||
<!-- 规模 -->
|
||||
<td class="p-6 font-black">
|
||||
<AnimatedMoneyCell :value="shop.salesAmount" />
|
||||
</td>
|
||||
<td class="p-6 font-black text-amber-700 dark:text-amber-400">
|
||||
<AnimatedMoneyCell :value="shop.dealAmount" />
|
||||
</td>
|
||||
<td class="p-6 font-medium">
|
||||
{{ formatIntCell(shop.orderCount) }}
|
||||
<td class="p-6 font-black">
|
||||
<AnimatedMoneyCell :value="shop.salesAmount" />
|
||||
</td>
|
||||
<td class="p-6 font-medium">
|
||||
<AnimatedMoneyCell :value="shop.averageOrderValue" />
|
||||
{{ formatIntCell(shop.dealOrderCount) }}
|
||||
</td>
|
||||
<td class="p-6 font-medium">
|
||||
{{ formatIntCell(shop.salesOrderCount) }}
|
||||
</td>
|
||||
<td class="p-6 font-medium">
|
||||
<AnimatedMoneyCell :value="shop.dealAverageOrderValue" />
|
||||
</td>
|
||||
<td class="p-6 font-medium">
|
||||
<AnimatedMoneyCell :value="shop.salesAverageOrderValue" />
|
||||
</td>
|
||||
<!-- 成本 -->
|
||||
<td class="p-6">
|
||||
@@ -399,11 +411,15 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
}}
|
||||
</td>
|
||||
<!-- 规模 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="shopSummary?.total?.salesAmount" /></td>
|
||||
<td class="p-6 text-amber-700 dark:text-amber-400"><AnimatedMoneyCell :value="shopSummary?.total?.dealAmount" /></td>
|
||||
<td class="p-6">{{ formatIntCell(shopSummary?.total?.orderCount) }}</td>
|
||||
<td class="p-6"><AnimatedMoneyCell :value="shopSummary?.total?.salesAmount" /></td>
|
||||
<td class="p-6">{{ formatIntCell(shopSummary?.total?.dealOrderCount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(shopSummary?.total?.salesOrderCount) }}</td>
|
||||
<td class="p-6">
|
||||
<AnimatedMoneyCell :value="shopSummary?.total?.averageOrderValue" />
|
||||
<AnimatedMoneyCell :value="shopSummary?.total?.dealAverageOrderValue" />
|
||||
</td>
|
||||
<td class="p-6">
|
||||
<AnimatedMoneyCell :value="shopSummary?.total?.salesAverageOrderValue" />
|
||||
</td>
|
||||
<!-- 成本 -->
|
||||
<td class="p-6"><AnimatedMoneyCell :value="shopSummary?.total?.productCost" /></td>
|
||||
|
||||
+2
-2
@@ -7,9 +7,9 @@ const FINANCE_KPI_HINTS: Record<string, string> = {
|
||||
成交销量: '计入成交状态的销售件数(不含已取消、未知)。',
|
||||
成交客单价: '成交金额 / 成交单量。',
|
||||
净销售额: overviewTableHints.salesAmount,
|
||||
净销售单量: overviewTableHints.orderCount,
|
||||
净销售单量: overviewTableHints.salesOrderCount,
|
||||
净销售客单价: overviewTableHints.salesAverageOrderValue,
|
||||
净销量: '成交销量 − 退款件数。',
|
||||
净销售客单价: '净销售额 / 净销售单量。',
|
||||
退款额: overviewTableHints.refundAmount,
|
||||
退款率: '退款额 / 净销售额 * 100%。',
|
||||
订单成本: overviewTableHints.orderCost,
|
||||
|
||||
@@ -36,9 +36,12 @@ function aggregateShopTotal(
|
||||
const sum = (k: keyof CompanyOverviewVO.ShopSummary) =>
|
||||
shops.reduce((a, x) => a + (Number(x[k]) || 0), 0);
|
||||
const salesAmount = sum('salesAmount');
|
||||
const orderCount = sum('orderCount') || 1;
|
||||
const dealAmount = sum('dealAmount');
|
||||
const salesOrderCount = sum('salesOrderCount');
|
||||
const dealOrderCount = sum('dealOrderCount');
|
||||
const totalPromotionFee = sum('totalPromotionFee');
|
||||
const averageOrderValue = salesAmount / orderCount;
|
||||
const salesAverageOrderValue = salesOrderCount ? salesAmount / salesOrderCount : 0;
|
||||
const dealAverageOrderValue = dealOrderCount ? dealAmount / dealOrderCount : 0;
|
||||
const feeRatio = salesAmount ? totalPromotionFee / salesAmount : 0;
|
||||
return {
|
||||
shopId: 0,
|
||||
@@ -48,9 +51,11 @@ function aggregateShopTotal(
|
||||
targetAmount: sum('targetAmount'),
|
||||
salesAmountAchievementRate: sum('salesAmountAchievementRate'),
|
||||
salesAmount,
|
||||
dealAmount: sum('dealAmount'),
|
||||
orderCount: sum('orderCount'),
|
||||
averageOrderValue,
|
||||
dealAmount,
|
||||
salesOrderCount,
|
||||
dealOrderCount,
|
||||
salesAverageOrderValue,
|
||||
dealAverageOrderValue,
|
||||
productCost: sum('productCost'),
|
||||
shippingCost: sum('shippingCost'),
|
||||
otherCost: sum('otherCost'),
|
||||
@@ -107,16 +112,21 @@ function aggregateCategoryTotal(
|
||||
const sum = (k: keyof CompanyOverviewVO.CategorySummary) =>
|
||||
rows.reduce((a, x) => a + (Number(x[k]) || 0), 0);
|
||||
const salesAmount = sum('salesAmount');
|
||||
const orderCount = sum('orderCount') || 1;
|
||||
const dealAmount = sum('dealAmount');
|
||||
const salesOrderCount = sum('salesOrderCount');
|
||||
const dealOrderCount = sum('dealOrderCount');
|
||||
const totalPromotionFee = sum('totalPromotionFee');
|
||||
const averageOrderValue = salesAmount / orderCount;
|
||||
const salesAverageOrderValue = salesOrderCount ? salesAmount / salesOrderCount : 0;
|
||||
const dealAverageOrderValue = dealOrderCount ? dealAmount / dealOrderCount : 0;
|
||||
const feeRatio = salesAmount ? totalPromotionFee / salesAmount : 0;
|
||||
return {
|
||||
categoryName: '合计',
|
||||
salesAmount,
|
||||
dealAmount: sum('dealAmount'),
|
||||
orderCount: sum('orderCount'),
|
||||
averageOrderValue,
|
||||
dealAmount,
|
||||
salesOrderCount,
|
||||
dealOrderCount,
|
||||
salesAverageOrderValue,
|
||||
dealAverageOrderValue,
|
||||
productCost: sum('productCost'),
|
||||
shippingCost: sum('shippingCost'),
|
||||
otherCost: sum('otherCost'),
|
||||
@@ -171,9 +181,12 @@ function aggregatePlatformTotal(
|
||||
const sum = (k: keyof CompanyOverviewVO.PlatformSummary) =>
|
||||
rows.reduce((a, x) => a + (Number(x[k]) || 0), 0);
|
||||
const salesAmount = sum('salesAmount');
|
||||
const orderCount = sum('orderCount') || 1;
|
||||
const dealAmount = sum('dealAmount');
|
||||
const salesOrderCount = sum('salesOrderCount');
|
||||
const dealOrderCount = sum('dealOrderCount');
|
||||
const totalPromotionFee = sum('totalPromotionFee');
|
||||
const averageOrderValue = salesAmount / orderCount;
|
||||
const salesAverageOrderValue = salesOrderCount ? salesAmount / salesOrderCount : 0;
|
||||
const dealAverageOrderValue = dealOrderCount ? dealAmount / dealOrderCount : 0;
|
||||
const feeRatio = salesAmount ? totalPromotionFee / salesAmount : 0;
|
||||
return {
|
||||
platformCode: '',
|
||||
@@ -183,9 +196,11 @@ function aggregatePlatformTotal(
|
||||
targetAmount: sum('targetAmount'),
|
||||
salesAmountAchievementRate: sum('salesAmountAchievementRate'),
|
||||
salesAmount,
|
||||
dealAmount: sum('dealAmount'),
|
||||
orderCount: sum('orderCount'),
|
||||
averageOrderValue,
|
||||
dealAmount,
|
||||
salesOrderCount,
|
||||
dealOrderCount,
|
||||
salesAverageOrderValue,
|
||||
dealAverageOrderValue,
|
||||
productCost: sum('productCost'),
|
||||
shippingCost: sum('shippingCost'),
|
||||
otherCost: sum('otherCost'),
|
||||
|
||||
+24
-9
@@ -117,7 +117,7 @@ const cellMoneyApi = (v: number | null | undefined) =>
|
||||
>
|
||||
品类名称
|
||||
</th>
|
||||
<th colspan="3" class="border-b border-l border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] dark:border-l-[hsl(240deg_3.7%_22%)] bg-slate-100/50 dark:bg-[hsl(240deg_3.7%_22%/50)] p-3 text-center">
|
||||
<th colspan="6" class="border-b border-l border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] dark:border-l-[hsl(240deg_3.7%_22%)] bg-slate-100/50 dark:bg-[hsl(240deg_3.7%_22%/50)] p-3 text-center">
|
||||
经营规模维度
|
||||
</th>
|
||||
<th colspan="8" class="border-b border-l border-slate-200 dark:border-b-[hsl(240deg_3.7%_22%)] dark:border-l-[hsl(240deg_3.7%_22%)] bg-orange-50/50 dark:bg-[hsl(24deg_9.8%_15%/50)] p-3 text-center italic text-orange-700 dark:text-orange-400">
|
||||
@@ -128,16 +128,25 @@ const cellMoneyApi = (v: number | null | undefined) =>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="bg-slate-50/80 dark:bg-[hsl(240deg_3.7%_15.9%/80)] text-sm">
|
||||
<th class="border-b border-l dark:border-l-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-slate-900 dark:bg-[hsl(240deg_3.7%_22%/50%)] dark:text-[hsl(0deg_0%_95%)]">
|
||||
<th class="border-b border-l dark:border-l-[hsl(240deg_3.7%_22%)] px-6 py-4 font-black text-amber-700 dark:bg-[hsl(240deg_3.7%_22%/50%)] dark:text-amber-400">
|
||||
<OverviewColumnHint :title="overviewTableHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 font-black text-slate-900 dark:bg-[hsl(240deg_3.7%_22%/50%)] dark:text-[hsl(0deg_0%_95%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.salesAmount">
|
||||
净销售额
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_22%/50%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.orderCount">单量</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="overviewTableHints.dealOrderCount">成交单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_22%/50%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.averageOrderValue">客单价</OverviewColumnHint>
|
||||
<OverviewColumnHint :title="overviewTableHints.salesOrderCount">净销售单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_22%/50%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.dealAverageOrderValue">成交客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_22%/50%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.salesAverageOrderValue">净销售客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-l dark:border-l-[hsl(240deg_3.7%_22%)] px-6 py-4 dark:bg-[hsl(24deg_9.8%_15%/50%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.productCost">商品成本</OverviewColumnHint>
|
||||
@@ -206,9 +215,12 @@ const cellMoneyApi = (v: number | null | undefined) =>
|
||||
{{ cat.categoryName || '未分类' }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-6 font-black text-amber-700 dark:text-amber-400">{{ cellMoneyApi(cat.dealAmount) }}</td>
|
||||
<td class="p-6 font-black">{{ formatCurrencyZhFromApi(cat.salesAmount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(cat.orderCount) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(cat.averageOrderValue) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(cat.dealOrderCount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(cat.salesOrderCount) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(cat.dealAverageOrderValue) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(cat.salesAverageOrderValue) }}</td>
|
||||
<td class="border-l dark:border-l-[hsl(240deg_3.7%_22%)] p-6 text-slate-600 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoneyApi(cat.productCost) }}</td>
|
||||
<td class="p-6 text-slate-600 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoneyApi(cat.shippingCost) }}</td>
|
||||
<td class="p-6 text-slate-600 dark:text-[hsl(240deg_5%_64.9%)]">{{ cellMoneyApi(cat.otherCost) }}</td>
|
||||
@@ -232,7 +244,7 @@ const cellMoneyApi = (v: number | null | undefined) =>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="!props.data?.categoryOverview?.categories?.length">
|
||||
<td :colspan="props.categoryExportMode ? 18 : 17" class="p-8 text-center text-gray-400">
|
||||
<td :colspan="props.categoryExportMode ? 21 : 20" class="p-8 text-center text-gray-400">
|
||||
暂无数据
|
||||
</td>
|
||||
</tr>
|
||||
@@ -241,9 +253,12 @@ const cellMoneyApi = (v: number | null | undefined) =>
|
||||
<tr class="font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<td v-if="props.categoryExportMode" class="sticky-col border-r border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] p-6 text-center" style="left: 40px; position: sticky; z-index: 10;"></td>
|
||||
<td class="sticky-col border-r-2 border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4 text-base font-black" style="left: 0; position: sticky; z-index: 10;">合计</td>
|
||||
<td class="p-6 text-amber-700 dark:text-amber-400">{{ cellMoneyApi(props.data.categoryOverview.total.dealAmount) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.salesAmount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(props.data.categoryOverview.total.orderCount) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.averageOrderValue) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(props.data.categoryOverview.total.dealOrderCount) }}</td>
|
||||
<td class="p-6">{{ formatIntCell(props.data.categoryOverview.total.salesOrderCount) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.dealAverageOrderValue) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.salesAverageOrderValue) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.productCost) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.shippingCost) }}</td>
|
||||
<td class="p-6">{{ cellMoneyApi(props.data.categoryOverview.total.otherCost) }}</td>
|
||||
|
||||
+26
-11
@@ -133,7 +133,7 @@ function goToProductOverview(productId: number) {
|
||||
商品
|
||||
</th>
|
||||
<th
|
||||
colspan="3"
|
||||
colspan="6"
|
||||
class="border-b border-l border-slate-200 dark:border-b dark:border-l dark:border-[hsl(240deg_3.7%_22%)] bg-slate-100/50 dark:bg-[hsl(240deg_3.7%_22%/50)] px-3 py-3 text-center"
|
||||
>
|
||||
商品规模 (Scale)
|
||||
@@ -152,16 +152,25 @@ function goToProductOverview(productId: number) {
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="bg-slate-50/80 dark:bg-[hsl(240deg_3.7%_15.9%/80)] text-sm">
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_15.9%/80%)]">
|
||||
<th class="border-b px-6 py-4 font-black text-amber-700 dark:bg-[hsl(240deg_3.7%_15.9%/80%)] dark:text-amber-400">
|
||||
<OverviewColumnHint :title="overviewTableHints.dealAmount">成交金额</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 font-black dark:bg-[hsl(240deg_3.7%_15.9%/80%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.salesAmountShort">
|
||||
净销售额
|
||||
</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-l dark:border-l dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
<OverviewColumnHint :title="overviewTableHints.orderCount">单量</OverviewColumnHint>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_15.9%/80%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.dealOrderCount">成交单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4">
|
||||
<OverviewColumnHint :title="overviewTableHints.averageOrderValue">客单价</OverviewColumnHint>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_15.9%/80%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.salesOrderCount">净销售单量</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_15.9%/80%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.dealAverageOrderValue">成交客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b px-6 py-4 dark:bg-[hsl(240deg_3.7%_15.9%/80%)]">
|
||||
<OverviewColumnHint :title="overviewTableHints.salesAverageOrderValue">净销售客单价</OverviewColumnHint>
|
||||
</th>
|
||||
<th class="border-b border-l dark:border-l dark:border-[hsl(240deg_3.7%_22%)] px-6 py-4">
|
||||
<OverviewColumnHint :title="overviewTableHints.productCost">商品成本</OverviewColumnHint>
|
||||
@@ -228,9 +237,12 @@ function goToProductOverview(productId: number) {
|
||||
编码: {{ product.productCode }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-6 py-4 font-black text-amber-700 dark:text-amber-400">{{ cellMoneyApi(product.dealAmount) }}</td>
|
||||
<td class="px-6 py-4 font-black">{{ formatCurrencyZhFromApi(product.salesAmount) }}</td>
|
||||
<td class="px-6 py-4 font-medium">{{ formatIntCell(product.orderCount) }}</td>
|
||||
<td class="px-6 py-4">{{ cellMoneyApi(product.averageOrderValue) }}</td>
|
||||
<td class="px-6 py-4 font-medium">{{ formatIntCell(product.dealOrderCount) }}</td>
|
||||
<td class="px-6 py-4 font-medium">{{ formatIntCell(product.salesOrderCount) }}</td>
|
||||
<td class="px-6 py-4">{{ cellMoneyApi(product.dealAverageOrderValue) }}</td>
|
||||
<td class="px-6 py-4">{{ cellMoneyApi(product.salesAverageOrderValue) }}</td>
|
||||
<td class="px-6 py-4">{{ cellMoneyApi(product.productCost) }}</td>
|
||||
<td class="px-6 py-4">{{ cellMoneyApi(product.shippingCost) }}</td>
|
||||
<td class="px-6 py-4">{{ cellMoneyApi(product.otherCost) }}</td>
|
||||
@@ -264,7 +276,7 @@ function goToProductOverview(productId: number) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="!data?.productOverview?.products?.length">
|
||||
<td colspan="16" class="p-8 text-center text-gray-400">
|
||||
<td colspan="19" class="p-8 text-center text-gray-400">
|
||||
暂无数据
|
||||
</td>
|
||||
</tr>
|
||||
@@ -272,9 +284,12 @@ function goToProductOverview(productId: number) {
|
||||
<tfoot v-if="data?.productOverview?.total">
|
||||
<tr class="font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)]">
|
||||
<td class="sticky-col sticky bottom-0 border-r-2 border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4 text-base font-black" style="left: 0; z-index: 30;">合计</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 text-amber-700 dark:bg-[hsl(240deg_3.7%_22%)] dark:text-amber-400 px-6 py-4">{{ cellMoneyApi(data.productOverview.total.dealAmount) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.salesAmount) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ formatIntCell(data.productOverview.total.orderCount) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.averageOrderValue) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ formatIntCell(data.productOverview.total.dealOrderCount) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ formatIntCell(data.productOverview.total.salesOrderCount) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.dealAverageOrderValue) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.salesAverageOrderValue) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.productCost) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.shippingCost) }}</td>
|
||||
<td class="sticky bottom-0 bg-slate-100 dark:bg-[hsl(240deg_3.7%_22%)] px-6 py-4">{{ cellMoneyApi(data.productOverview.total.otherCost) }}</td>
|
||||
|
||||
Reference in New Issue
Block a user