diff --git a/.env.development b/.env.development index ccef75b..2ba80cb 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,7 @@ VITE_APP_NAME=后台管理系统 -VITE_API_URL=http://localhost:9090/api +#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 diff --git a/.env.production b/.env.production index d431314..8244740 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ VITE_APP_NAME=后台管理系统 #VITE_API_URL=https://server.jimeigroup.cn/api #VITE_API_URL=https://server.gxwebsoft.com/api -VITE_API_URL=/api +VITE_API_URL=http://yxw.wsdns.cn/api VITE_SOCKET_URL=wss://server.gxwebsoft.com diff --git a/src/api/order/index.ts b/src/api/order/index.ts index 4554640..4aa0ebd 100644 --- a/src/api/order/index.ts +++ b/src/api/order/index.ts @@ -1,7 +1,7 @@ import request from '@/utils/request'; import type { ApiResult, PageResult } from '@/api'; import type { Order, OrderParam } from './model'; -import { App } from "@/api/app/model"; +import { App } from '@/api/app/model'; /** * 分页查询订单 @@ -32,6 +32,20 @@ export async function listOrder(params?: OrderParam) { return Promise.reject(new Error(res.data.message)); } + +/** + * 查询订单列表 + */ +export async function listOrderPay(params?: OrderParam) { + const res = await request.get>('/shop/order-pay', { + params + }); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + /** * 根据id查询订单 */ diff --git a/src/api/order/model/index.ts b/src/api/order/model/index.ts index dd23194..a283a97 100644 --- a/src/api/order/model/index.ts +++ b/src/api/order/model/index.ts @@ -9,7 +9,7 @@ export interface Order { // 订单类型 orderType?: string; // 订单来源 - orderSource?: string; + orderSource?: number; // 来源记录ID orderSourceId?: number; // 来源记录的参数 (json格式) diff --git a/src/views/apps/equipment/index/index.vue b/src/views/apps/equipment/index/index.vue index 7343a5b..a6770f7 100644 --- a/src/views/apps/equipment/index/index.vue +++ b/src/views/apps/equipment/index/index.vue @@ -44,6 +44,9 @@ + @@ -180,6 +183,11 @@ dataIndex: 'user', key: 'user' }, + { + title: '投资人', + dataIndex: 'touziUser', + key: 'touziUser' + }, { title: '设备名称', dataIndex: 'equipmentName', diff --git a/src/views/apps/equipment/order/components/order-info.vue b/src/views/apps/equipment/order/components/order-info.vue index 6e8554d..c97529f 100644 --- a/src/views/apps/equipment/order/components/order-info.vue +++ b/src/views/apps/equipment/order/components/order-info.vue @@ -504,6 +504,11 @@ return '第' + (index + 1) + '期'; } }, + { + title: '订单号', + dataIndex: 'orderNo', + key: 'orderNo' + }, { title: '订单金额', dataIndex: 'orderPrice', diff --git a/src/views/love/dealer/profit/components/order-info.vue b/src/views/love/dealer/profit/components/order-info.vue index 1fe4601..805401d 100644 --- a/src/views/love/dealer/profit/components/order-info.vue +++ b/src/views/love/dealer/profit/components/order-info.vue @@ -41,7 +41,7 @@ " > - {{ order.orderId }} + {{ order.orderNo }} - + - + - + - + + @@ -76,6 +79,7 @@ {{ record.comments }} +