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

@@ -13,11 +13,6 @@
<template #toolbar>
<search
@search="reload"
:selection="selection"
@batchSettle="batchSettle"
@export="handleExport"
@remove="removeBatch"
@importDone="reload"
/>
</template>
<template #bodyCell="{ column, record }">
@@ -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<ShopDealerOrderParam>({});
// 表格数据源
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;