From 3586d118ac7bf0e6200738b34b78102146599cb0 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, 27 Jul 2026 11:37:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(order-renew):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BB=AD=E8=B4=B9=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=92=8C=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改.env.development配置,调整API地址 - 扩展OrderPay接口,新增支付金额、支付状态、电池型号等字段 --- .env.development | 5 +- src/api/order/model/index.ts | 12 +- .../equipment/order/components/order-info.vue | 2 +- src/views/yunxinwei/renew/index.vue | 431 ++++-------------- 4 files changed, 102 insertions(+), 348 deletions(-) diff --git a/.env.development b/.env.development index 2ba80cb..3ff803c 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_NAME=后台管理系统 #VITE_API_URL=http://localhost:9090/api #VITE_API_URL=http://yxw.wsdns.cn/api #VITE_SOCKET_URL=ws://localhost:9190 -VITE_API_URL=http://127.0.0.1:9090/api +#VITE_API_URL=http://127.0.0.1:9090/api #VITE_API_URL=https://server.gxwebsoft.com/api -VITE_SOCKET_URL=wss://server.gxwebsoft.com +#VITE_SOCKET_URL=wss://server.gxwebsoft.com +VITE_API_URL=http://yxw.wsdns.cn/api diff --git a/src/api/order/model/index.ts b/src/api/order/model/index.ts index 3abf5f9..5ca7b43 100644 --- a/src/api/order/model/index.ts +++ b/src/api/order/model/index.ts @@ -85,6 +85,8 @@ export interface Order { } export interface OrderPay { + // 主键id + id?: number; // 订单id orderId?: number; // 订单类型 @@ -97,9 +99,15 @@ export interface OrderPay { orderSourceData?: string; rentOrderId?: number; //订单金额 - orderPriceInt?:number;//服务端用BigDecimal无法接受,另起一个字段 + orderPriceInt?: number;//服务端用BigDecimal无法接受,另起一个字段 // 订单编号 orderNo?: string; + // 实付款金额 + payPrice?: number; + // 付款状态(10未付款 20已付款) + payStatus?: number; + // 电池型号 + batteryModel?: string; // 创建时间 createTime?: string; startTime?: string; @@ -149,4 +157,6 @@ export interface OrderParam extends PageParam { merchantCode?: string; expireDay?: number; isExpire?: number; + // 仅查询续费单(rentOrderId 不为空) + rentOrderIdNotNull?: boolean; } diff --git a/src/views/apps/equipment/order/components/order-info.vue b/src/views/apps/equipment/order/components/order-info.vue index c97529f..1aa5f09 100644 --- a/src/views/apps/equipment/order/components/order-info.vue +++ b/src/views/apps/equipment/order/components/order-info.vue @@ -521,7 +521,7 @@ key: 'batteryModel' }, { - title: '有效期限', + title: '有效期限2', dataIndex: 'expirationTime', key: 'expirationTime' }, diff --git a/src/views/yunxinwei/renew/index.vue b/src/views/yunxinwei/renew/index.vue index d2c21f9..93df489 100644 --- a/src/views/yunxinwei/renew/index.vue +++ b/src/views/yunxinwei/renew/index.vue @@ -5,12 +5,12 @@ @@ -18,189 +18,50 @@