feat: 推广费管理表商品列显示商品名称和编码

- PromotionFeeVO 新增 productName、productCode 字段
- 后端 convertToVO 填充商品基础信息
- 前端表格商品列显示商品名称和编码,副标题显示编码
- 店铺名称列改名为"店铺",调整列顺序

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
小蟑螂
2026-05-08 12:28:40 +08:00
co-authored by Claude Opus 4.7
parent 04f6c413af
commit 654758bf0a
4 changed files with 46 additions and 5 deletions
@@ -92,16 +92,17 @@ const gridOptions: VxeGridProps<any> = {
title: '序号',
},
{
field: 'productId',
title: '商品ID',
field: 'shopName',
title: '店铺',
minWidth: 'auto',
showOverflow: 'tooltip' as const,
},
{
field: 'shopName',
title: '店铺名称',
minWidth: 'auto',
field: 'productName',
title: '商品',
minWidth: 180,
showOverflow: 'tooltip' as const,
slots: { default: 'product' },
},
{
field: 'feeTypeName',
@@ -333,6 +334,15 @@ const formatAmount = (amount: number) => `¥${amount.toFixed(2)}`;
</span>
</template>
<template #product="{ row }: { row: any }">
<div>
<div>{{ row.productName || '-' }}</div>
<div v-if="row.productCode" class="text-gray-400 text-xs">
{{ row.productCode }}
</div>
</div>
</template>
<template #action="{ row }: { row: any }">
<Space>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>