mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:49:19 +08:00
feat: 推广费管理表商品列显示商品名称和编码
- PromotionFeeVO 新增 productName、productCode 字段 - 后端 convertToVO 填充商品基础信息 - 前端表格商品列显示商品名称和编码,副标题显示编码 - 店铺名称列改名为"店铺",调整列顺序 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,10 @@ export namespace PromotionFeeVO {
|
||||
feeTypeName?: string;
|
||||
/** 商品ID(可选) */
|
||||
productId?: number;
|
||||
/** 商品名称 */
|
||||
productName?: string;
|
||||
/** 商品编码 */
|
||||
productCode?: string;
|
||||
/** 推广活动名称 */
|
||||
campaignName?: string;
|
||||
/** 推广费金额 */
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user