feat(shop): 完善分销商业务功能

- 在ShopDealerCapital模型中新增分销商昵称字段
- 在ShopDealerUser模型中新增类型和头像字段
- 更新资本流水页面显示分销商昵称和用户ID组合信息
- 修改收益列标题为收益类型并隐藏对方用户列
- 更新分销商用户页面类型标签文本并添加二维码生成功能
- 添加二维码预览弹窗支持复制链接和打开原图
- 优化分销商用户编辑弹窗界面布局和字段验证
- 新增关联用户选择功能并完善表单验证规则
- 添加支付密码管理和佣金信息展示功能
This commit is contained in:
2026-01-26 22:55:23 +08:00
parent e2382aeeab
commit 26978de65c
6 changed files with 363 additions and 170 deletions

View File

@@ -57,12 +57,12 @@
const handleExport = async () => {
const array: (string | number)[][] = [
[
'用户ID',
'流动类型',
'订单号',
'用户',
'收益类型',
'金额',
'订单编号',
'对方用户ID',
`创建时间`,
'描述',
'创建时间',
'租户ID'
]
];
@@ -73,11 +73,11 @@
list.value = data?.list || [];
list.value?.forEach((d: ShopDealerCapital) => {
array.push([
`${d.userId}`,
`${d.orderNo}`,
`${d.nickName}(${d.userId})`,
`${d.flowType == 10 ? '佣金收入' : ''}`,
`${d.money}`,
`${d.orderNo}`,
`${d.toUserId}`,
`${d.comments}`,
`${d.createTime}`,
`${d.tenantId}`
]);

View File

@@ -24,7 +24,7 @@
<a-image :src="record.image" :width="50" />
</template>
<template v-if="column.key === 'userId'">
<div>{{ record.nickName }}</div>
<div>{{ record.nickName }}({{ record.userId }})</div>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
@@ -135,7 +135,7 @@
fixed: 'left'
},
{
title: '收益',
title: '收益类型',
dataIndex: 'flowType',
key: 'flowType',
align: 'center',
@@ -177,13 +177,13 @@
};
}
},
{
title: '对方用户',
dataIndex: 'toUserId',
key: 'toUserId',
align: 'center',
customRender: ({ text }) => (text ? `ID: ${text}` : '-')
},
// {
// title: '对方用户',
// dataIndex: 'toUserId',
// key: 'toUserId',
// align: 'center',
// customRender: ({ text }) => (text ? `ID: ${text}` : '-')
// },
{
title: '描述',
dataIndex: 'comments',