feat(dealer): 添加分销商收益明细页面并优化订单管理功能

- 新增收益明细页面,支持下拉刷新和上拉加载更多
- 在app.config.ts中注册收益明细页面路由
- 更新API基础URL配置,统一使用mp-api域名
- 优化提交表单逻辑,确保refereeId参数为数字类型
- 修改订单页面,添加resourceId参数以正确过滤分销订单
- 修复订单号显示逻辑,优先使用接口返回的订单号
- 优化订单列表项点击事件,跳转到收益明细页面
- 更新客户名称显示格式,包含昵称和用户ID
- 调整订单详情展示布局和信息内容
This commit is contained in:
2026-01-25 13:32:49 +08:00
parent 0d6eb331c8
commit aff888794f
9 changed files with 247 additions and 21 deletions

View File

@@ -31,5 +31,11 @@ export interface ShopDealerCapital {
*/
export interface ShopDealerCapitalParam extends PageParam {
id?: number;
// 仅查询当前分销商的收益/资金明细
userId?: number;
// 可选:按订单过滤
orderId?: number;
// 可选:资金流动类型过滤
flowType?: number;
keywords?: string;
}

View File

@@ -8,6 +8,9 @@ export interface ShopDealerOrder {
id?: number;
// 买家用户ID
userId?: number;
nickname?: string;
// 订单编号(部分接口会直接返回订单号字符串)
orderNo?: string;
// 订单ID
orderId?: number;
// 订单总金额(不含运费)
@@ -47,5 +50,7 @@ export interface ShopDealerOrderParam extends PageParam {
secondUserId?: number;
thirdUserId?: number;
userId?: number;
// 数据权限/资源ID通常传当前登录用户ID
resourceId?: number;
keywords?: string;
}