feat(shop): 更新经销商模块页面结构和功能

- 重构经销商资金页面表格列配置,调整用户ID列为用户昵称显示
- 移除经销商订单页面的批量结算、导出、删除等功能入口和相关API调用
- 将经销商用户页面从申请管理改为用户管理,更新数据模型和表格配置
- 调整经销商订单导出功能的数据结构和字段映射逻辑
- 简化经销商用户搜索组件,移除审核相关功能按钮和搜索条件
- 删除不再使用的经销商申请编辑组件和相关API接口调用
This commit is contained in:
2026-01-26 21:59:54 +08:00
parent c605d0619d
commit e2382aeeab
7 changed files with 568 additions and 1092 deletions

View File

@@ -23,6 +23,9 @@
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
<template v-if="column.key === 'userId'">
<div>{{ record.nickName }}</div>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
@@ -110,22 +113,29 @@
// 表格列配置
const columns = ref<ColumnItem[]>([
{
title: 'ID',
dataIndex: 'id',
key: 'id',
key: 'index',
width: 48,
align: 'center',
width: 80,
fixed: 'left'
fixed: 'left',
hideInSetting: true,
customRender: ({ index }) => index + (tableRef.value?.tableIndex ?? 0)
},
{
title: '用户ID',
title: '订单号',
dataIndex: 'orderNo',
key: 'orderNo',
align: 'center',
customRender: ({ text }) => text || '-'
},
{
title: '用户',
dataIndex: 'userId',
key: 'userId',
align: 'center',
fixed: 'left'
},
{
title: '流动类型',
title: '收益',
dataIndex: 'flowType',
key: 'flowType',
align: 'center',
@@ -167,13 +177,6 @@
};
}
},
{
title: '关联订单',
dataIndex: 'orderNo',
key: 'orderNo',
align: 'center',
customRender: ({ text }) => text || '-'
},
{
title: '对方用户',
dataIndex: 'toUserId',
@@ -183,8 +186,8 @@
},
{
title: '描述',
dataIndex: 'describe',
key: 'describe',
dataIndex: 'comments',
key: 'comments',
align: 'left',
ellipsis: true,
customRender: ({ text }) => text || '-'