From 312e2934a9446e6d7d9694cfd4a8c30087e485bf 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, 16 Mar 2026 13:30:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=B7=BB=E5=8A=A0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5=E5=92=8C=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在资金模型中新增订单状态字段(orderStatus)及注释说明 - 实现订单状态标签展示组件,支持8种不同状态的可视化显示 - 添加订单状态表格列,设置固定宽度便于查看 - 更新开发环境配置中的API地址设置 --- .env.development | 2 +- src/api/shop/shopDealerCapital/model/index.ts | 2 ++ src/views/shop/shopDealerCapital/index.vue | 34 +++++++++++++++++-- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 476efd7..3249194 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ VITE_APP_NAME=后台管理(开发环境) -#VITE_API_URL=http://127.0.0.1:9200/api +VITE_API_URL=http://127.0.0.1:9200/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api diff --git a/src/api/shop/shopDealerCapital/model/index.ts b/src/api/shop/shopDealerCapital/model/index.ts index bc9bd11..68efdb4 100644 --- a/src/api/shop/shopDealerCapital/model/index.ts +++ b/src/api/shop/shopDealerCapital/model/index.ts @@ -14,6 +14,8 @@ export interface ShopDealerCapital { orderId?: number; // 订单编号 orderNo?: string; + // 订单状态 (1已完成 4退款申请中 6已退款) + orderStatus?: number; // 资金流动类型 (10佣金收入 20提现支出 30转账支出 40转账收入) flowType?: number; // 金额 diff --git a/src/views/shop/shopDealerCapital/index.vue b/src/views/shop/shopDealerCapital/index.vue index c6ec731..725e626 100644 --- a/src/views/shop/shopDealerCapital/index.vue +++ b/src/views/shop/shopDealerCapital/index.vue @@ -26,9 +26,30 @@ {{ record.nickName }}({{ record.userId }}) - - 显示 - 隐藏 + + + + 未完成 + 已完成 + 已关闭 + 关闭中 + 退款申请中 + 退款被拒绝 + 已退款 + 客户端申请退款 + @@ -198,6 +219,13 @@ key: 'createTime', align: 'center', sorter: true + }, + { + title: '订单状态', + dataIndex: 'orderStatus', + key: 'orderStatus', + align: 'center', + width: 90 } // { // title: '操作',