From e2382aeeabcc4337932c53e09c3b42cfcc9f133f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com>
Date: Mon, 26 Jan 2026 21:59:54 +0800
Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=9B=B4=E6=96=B0=E7=BB=8F?=
=?UTF-8?q?=E9=94=80=E5=95=86=E6=A8=A1=E5=9D=97=E9=A1=B5=E9=9D=A2=E7=BB=93?=
=?UTF-8?q?=E6=9E=84=E5=92=8C=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 重构经销商资金页面表格列配置,调整用户ID列为用户昵称显示
- 移除经销商订单页面的批量结算、导出、删除等功能入口和相关API调用
- 将经销商用户页面从申请管理改为用户管理,更新数据模型和表格配置
- 调整经销商订单导出功能的数据结构和字段映射逻辑
- 简化经销商用户搜索组件,移除审核相关功能按钮和搜索条件
- 删除不再使用的经销商申请编辑组件和相关API接口调用
---
src/views/shop/shopDealerCapital/index.vue | 35 +-
.../shopDealerOrder/components/search.vue | 112 ++--
src/views/shop/shopDealerOrder/index.vue | 17 -
.../shop/shopDealerUser/components/search.vue | 221 +-------
.../components/shopDealerApplyEdit.vue | 430 --------------
.../components/shopDealerUserEdit.vue | 317 +++++++++++
src/views/shop/shopDealerUser/index.vue | 528 +++++-------------
7 files changed, 568 insertions(+), 1092 deletions(-)
delete mode 100644 src/views/shop/shopDealerUser/components/shopDealerApplyEdit.vue
create mode 100644 src/views/shop/shopDealerUser/components/shopDealerUserEdit.vue
diff --git a/src/views/shop/shopDealerCapital/index.vue b/src/views/shop/shopDealerCapital/index.vue
index e73f34a..e051abc 100644
--- a/src/views/shop/shopDealerCapital/index.vue
+++ b/src/views/shop/shopDealerCapital/index.vue
@@ -23,6 +23,9 @@
+
+ {{ record.nickName }}
+
显示
隐藏
@@ -110,22 +113,29 @@
// 表格列配置
const columns = ref([
{
- 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 || '-'
diff --git a/src/views/shop/shopDealerOrder/components/search.vue b/src/views/shop/shopDealerOrder/components/search.vue
index 4b85f74..bb134cf 100644
--- a/src/views/shop/shopDealerOrder/components/search.vue
+++ b/src/views/shop/shopDealerOrder/components/search.vue
@@ -13,14 +13,12 @@
diff --git a/src/views/shop/shopDealerOrder/index.vue b/src/views/shop/shopDealerOrder/index.vue
index acf3f1f..ac0f157 100644
--- a/src/views/shop/shopDealerOrder/index.vue
+++ b/src/views/shop/shopDealerOrder/index.vue
@@ -13,11 +13,6 @@
@@ -181,7 +176,6 @@
ShopDealerOrderParam
} from '@/api/shop/shopDealerOrder/model';
import {
- exportShopDealerOrder,
updateShopDealerOrder
} from '@/api/shop/shopDealerOrder';
@@ -197,9 +191,6 @@
// 加载状态
const loading = ref(true);
- // 当前搜索条件
- const currentWhere = ref({});
-
// 表格数据源
const datasource: DatasourceFunction = ({
page,
@@ -211,8 +202,6 @@
if (filters) {
where.status = filters.status;
}
- // 保存当前搜索条件用于导出
- currentWhere.value = { ...where };
// 已结算订单
where.isSettled = 1;
return pageShopDealerOrder({
@@ -381,12 +370,6 @@
});
};
- /* 导出数据 */
- const handleExport = () => {
- // 调用导出API,传入当前搜索条件
- exportShopDealerOrder(currentWhere.value);
- };
-
/* 打开编辑弹窗 */
const openEdit = (row?: ShopDealerOrder) => {
current.value = row ?? null;
diff --git a/src/views/shop/shopDealerUser/components/search.vue b/src/views/shop/shopDealerUser/components/search.vue
index 5adc9bb..82fea9d 100644
--- a/src/views/shop/shopDealerUser/components/search.vue
+++ b/src/views/shop/shopDealerUser/components/search.vue
@@ -1,221 +1,42 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 需要审核
- 免审核
-
-
-
-
-
- 待审核
- 审核通过
- 审核驳回
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
-
- 重置
-
-
-
-
-
-
-
+
+
+
+
+
+ 添加
+
+
-
-
diff --git a/src/views/shop/shopDealerUser/components/shopDealerApplyEdit.vue b/src/views/shop/shopDealerUser/components/shopDealerApplyEdit.vue
deleted file mode 100644
index 2758ea9..0000000
--- a/src/views/shop/shopDealerUser/components/shopDealerApplyEdit.vue
+++ /dev/null
@@ -1,430 +0,0 @@
-
-
-
-
-
-
- 申请人信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 审核信息
-
-
-
-
-
-
-
- 待审核
- 等待审核
-
-
- 审核通过
- 申请通过
-
-
- 审核驳回
- 申请驳回
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/shop/shopDealerUser/components/shopDealerUserEdit.vue b/src/views/shop/shopDealerUser/components/shopDealerUserEdit.vue
new file mode 100644
index 0000000..502f42b
--- /dev/null
+++ b/src/views/shop/shopDealerUser/components/shopDealerUserEdit.vue
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/shop/shopDealerUser/index.vue b/src/views/shop/shopDealerUser/index.vue
index 65bdd6f..bcb665d 100644
--- a/src/views/shop/shopDealerUser/index.vue
+++ b/src/views/shop/shopDealerUser/index.vue
@@ -1,115 +1,85 @@
$router.go(-1)">
-
-
-
-
-
-
-
- 待审核
- 已通过
- 已驳回
+
+
+
+
-
-
-
- 编辑
-
-
-
-
-
- 通过
-
-
-
-
- 驳回
-
-
-
-
-
- 删除
-
-
+
+
+
+
+
+ 经销商
+ 门店
+ 集团
+
+
+ 显示
+ 隐藏
+
+
+
+ 修改
+
+
+ 删除
+
+
-
-
-
+
+
-
-
+
+
-
+