mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 16:29:19 +08:00
feat: 工作台SKU汇总列展示商品名/规格名并悬停显示编码
This commit is contained in:
@@ -136,6 +136,10 @@ export namespace CompanyOverviewVO {
|
||||
export interface CategorySummary {
|
||||
categoryId?: number | null;
|
||||
categoryName?: string;
|
||||
/** SKU 汇总:所属商品名 */
|
||||
productName?: string;
|
||||
/** SKU 汇总:规格编码(悬停) */
|
||||
skuCode?: string;
|
||||
salesAmount?: number;
|
||||
dealAmount?: number;
|
||||
salesOrderCount?: number;
|
||||
|
||||
+12
-6
@@ -4,6 +4,8 @@ import type { CompanyOverviewVO } from '#/api/bi/overview';
|
||||
import { createIconifyIcon } from '@vben/icons';
|
||||
import { computed } from 'vue';
|
||||
|
||||
import { Tooltip } from 'ant-design-vue';
|
||||
|
||||
import { formatFeeRatioPercent } from '#/utils/overview-fee-ratio';
|
||||
import { formatIntCell, formatNumberCell } from '#/utils/overview-table-cells';
|
||||
|
||||
@@ -361,14 +363,18 @@ const cellRoi = (v: number | null | undefined) =>
|
||||
{{ cat.categoryName }}
|
||||
<JumpIcon class="text-xs" />
|
||||
</span>
|
||||
<span
|
||||
<Tooltip
|
||||
v-else-if="skuNavigate && cat.categoryId != null"
|
||||
class="inline-flex cursor-pointer items-center gap-1 rounded-full bg-blue-50 px-3 py-1 text-sm font-bold text-blue-600 transition-colors hover:text-blue-300 hover:underline dark:bg-blue-900/30 dark:text-blue-400"
|
||||
@click="emit('navigate-sku', cat.categoryId!)"
|
||||
:title="cat.skuCode ? `SKU编码:${cat.skuCode}` : undefined"
|
||||
>
|
||||
{{ cat.categoryName }}
|
||||
<JumpIcon class="text-xs" />
|
||||
</span>
|
||||
<span
|
||||
class="inline-flex max-w-full cursor-pointer items-center gap-1 rounded-full bg-blue-50 px-3 py-1 text-sm font-bold text-blue-600 transition-colors hover:text-blue-300 hover:underline dark:bg-blue-900/30 dark:text-blue-400"
|
||||
@click="emit('navigate-sku', cat.categoryId!)"
|
||||
>
|
||||
<span class="truncate">{{ cat.categoryName || '-' }}</span>
|
||||
<JumpIcon class="shrink-0 text-xs" />
|
||||
</span>
|
||||
</Tooltip>
|
||||
<span
|
||||
v-else
|
||||
class="inline-block rounded-full bg-blue-50 px-3 py-1 text-sm font-bold text-blue-600 dark:bg-blue-900/30 dark:text-blue-400"
|
||||
|
||||
+1
-1
@@ -258,7 +258,7 @@ function handleSkuExport() {
|
||||
v-if="activeMode === 'sku'"
|
||||
column-prefs-key="sku"
|
||||
heading-title="各 SKU 多维度经营明细汇总"
|
||||
heading-subtitle="数据来自 Mongo SKU 日汇聚;推广按所属商品推广占比分摊;点击规格名可跳转 SKU 概览"
|
||||
heading-subtitle="数据来自 Mongo SKU 日汇聚;推广按所属商品推广占比分摊;列显示为「商品名/规格名」,悬停可看 SKU 编码;点击可跳转 SKU 概览"
|
||||
first-column-label="SKU"
|
||||
:sku-navigate="true"
|
||||
:category-summary="skuSummary ?? undefined"
|
||||
|
||||
Reference in New Issue
Block a user