feat(shop): 添加分销商资金流动管理功能

- 在 shopDealerOrder 模型中新增 title 和 degreePrice 字段
- 优化 request 工具函数,仅在生产环境使用 localStorage 的 ApiUrl
- 新增 shopDealerCapital 资金流动记录的完整 CRUD 功能
- 包括搜索组件、编辑弹窗和列表页面
- 支持四种资金流动类型:佣金收入、提现支出、转账收支
- 实现资金流动记录的新增、编辑、删除和批量删除功能
- 在 shopDealerOrder 编辑页调整佣金计算逻辑和显示方式
- 更新订单列表页字段展示,替换 comments 为 title- 调整订单导入提示文案,增加结算确认说明
-优化订单编辑页分销商佣金比例和收益计算显示
This commit is contained in:
2025-10-18 10:56:20 +08:00
parent a68f887cbf
commit 47a871beb9
12 changed files with 949 additions and 222 deletions

View File

@@ -8,6 +8,8 @@ export interface ShopDealerOrder {
id?: number;
// 买家用户ID
userId?: number;
// 商品名称
title?: string;
// 买家用户昵称
nickname?: string;
// 订单编号
@@ -16,6 +18,8 @@ export interface ShopDealerOrder {
orderPrice?: string;
// 结算金额
settledPrice?: string;
// 换算成度
degreePrice?: string;
// 支付金额
payPrice?: string;
// 分销商用户id(一级)