完成订单模块

This commit is contained in:
gxwebsoft
2024-04-25 23:38:42 +08:00
parent a6cb9f7f78
commit 16e38b6f31
58 changed files with 6130 additions and 1753 deletions

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { Field, FieldParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询场馆场地
*/
export async function pageField(params: FieldParam) {
const res = await request.get<ApiResult<PageResult<Field>>>(
MODULES_API_URL + '/booking/field/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询场馆场地列表
*/
export async function listField(params?: FieldParam) {
const res = await request.get<ApiResult<Field[]>>(
MODULES_API_URL + '/booking/field',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加场馆场地
*/
export async function addField(data: Field) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/field',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改场馆场地
*/
export async function updateField(data: Field) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/field',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除场馆场地
*/
export async function removeField(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/field/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除场馆场地
*/
export async function removeBatchField(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/field/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询场馆场地
*/
export async function getField(id: number) {
const res = await request.get<ApiResult<Field>>(
MODULES_API_URL + '/booking/field/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,59 @@
import type { PageParam } from '@/api';
/**
* 场馆场地
*/
export interface Field {
// ID
fieldId?: number;
// 场地名称
fieldName?: string;
// 图标
image?: string;
// 分类ID
categoryId?: number;
// 关联用户
userId?: number;
// 老师ID
teacherId?: number;
// 是否支持半场
isHalf?: number;
// 可重复订阅数
isRepeat?: number;
// 是否厕所
isToilet?: number;
// 是否支持儿童价
isChildren?: number;
// 显示在第几行
row?: number;
num?: number;
// 商户ID
merchantId?: number;
// 上课时间
startTime?: string;
// 报名人数上限
maxNumber?: number;
// 上课地点
address?: string;
// 备注
comments?: string;
// 场地状态
isStatus?: number;
// 状态
status?: number;
// 排序号
sortNumber?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
}
/**
* 场馆场地搜索条件
*/
export interface FieldParam extends PageParam {
fieldId?: number;
fieldName?: string;
keywords?: string;
}

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { Integral, IntegralParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询签到积分
*/
export async function pageIntegral(params: IntegralParam) {
const res = await request.get<ApiResult<PageResult<Integral>>>(
MODULES_API_URL + '/booking/integral/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询签到积分列表
*/
export async function listIntegral(params?: IntegralParam) {
const res = await request.get<ApiResult<Integral[]>>(
MODULES_API_URL + '/booking/integral',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加签到积分
*/
export async function addIntegral(data: Integral) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改签到积分
*/
export async function updateIntegral(data: Integral) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除签到积分
*/
export async function removeIntegral(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除签到积分
*/
export async function removeBatchIntegral(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询签到积分
*/
export async function getIntegral(id: number) {
const res = await request.get<ApiResult<Integral>>(
MODULES_API_URL + '/booking/integral/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,33 @@
import type { PageParam } from '@/api';
/**
* 签到积分
*/
export interface Integral {
//
id?: number;
// 用户id
userId?: number;
// 微信昵称
username?: string;
// 手机号码
phone?: string;
// 获得积分
integral?: string;
// 日期
dateTime?: string;
// 天
day?: string;
// 租户id
tenantId?: number;
// 签到时间
createTime?: number;
}
/**
* 签到积分搜索条件
*/
export interface IntegralParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { IntegralLog, IntegralLogParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询积分明细
*/
export async function pageIntegralLog(params: IntegralLogParam) {
const res = await request.get<ApiResult<PageResult<IntegralLog>>>(
MODULES_API_URL + '/booking/integral-log/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询积分明细列表
*/
export async function listIntegralLog(params?: IntegralLogParam) {
const res = await request.get<ApiResult<IntegralLog[]>>(
MODULES_API_URL + '/booking/integral-log',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加积分明细
*/
export async function addIntegralLog(data: IntegralLog) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral-log',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改积分明细
*/
export async function updateIntegralLog(data: IntegralLog) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral-log',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除积分明细
*/
export async function removeIntegralLog(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral-log/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除积分明细
*/
export async function removeBatchIntegralLog(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/integral-log/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询积分明细
*/
export async function getIntegralLog(id: number) {
const res = await request.get<ApiResult<IntegralLog>>(
MODULES_API_URL + '/booking/integral-log/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,39 @@
import type { PageParam } from '@/api';
/**
* 积分明细
*/
export interface IntegralLog {
//
id?: number;
// 场馆订单号
orderNum?: string;
// 订单id
oid?: number;
// 场馆名称
siteName?: string;
// 微信昵称
username?: string;
// 手机号码
phone?: string;
// 获得积分
integral?: string;
// 变化前积分
oldMoney?: string;
// 变化后积分
newMoney?: string;
// 描述
info?: string;
// 租户id
tenantId?: number;
// 记录时间
createTime?: number;
}
/**
* 积分明细搜索条件
*/
export interface IntegralLogParam extends PageParam {
id?: number;
keywords?: string;
}

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { Order, OrderParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询预约订单
*/
export async function pageOrder(params: OrderParam) {
const res = await request.get<ApiResult<PageResult<Order>>>(
MODULES_API_URL + '/booking/order/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询预约订单列表
*/
export async function listOrder(params?: OrderParam) {
const res = await request.get<ApiResult<Order[]>>(
MODULES_API_URL + '/booking/order',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加预约订单
*/
export async function addOrder(data: Order) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改预约订单
*/
export async function updateOrder(data: Order) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除预约订单
*/
export async function removeOrder(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除预约订单
*/
export async function removeBatchOrder(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询预约订单
*/
export async function getOrder(id: number) {
const res = await request.get<ApiResult<Order>>(
MODULES_API_URL + '/booking/order/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,95 @@
import type { PageParam } from '@/api';
/**
* 预约订单
*/
export interface Order {
// 订单号
orderId?: number;
// 订单编号
orderNo?: string;
// 微信支付订单号
wechatOrder?: string;
// 微信退款订单号
refundOrder?: string;
// 场馆id用于权限判断
merchantId?: number;
// 用户id
userId?: number;
// 使用的优惠券id
couponId?: number;
// 使用的会员卡id
cardId?: number;
// 关联管理员id
aid?: number;
// 核销管理员id
adminId?: number;
// IC卡号
code?: string;
// 真实姓名
name?: string;
// 手机号码
phone?: string;
// 订单总额
totalPrice?: string;
// 减少的金额使用VIP会员折扣、优惠券抵扣、优惠券折扣后减去的价格
reducePrice?: string;
// 实际付款
payPrice?: string;
// 用于统计
price?: string;
// 价钱,用于积分赠送
money?: string;
// 退款金额
refundMoney?: string;
// 教练价格
coachPrice?: string;
// 教练id
coachId?: number;
// 1微信支付2积分3支付宝4现金5POS机6VIP月卡7VIP年卡8VIP次卡9IC月卡10IC年卡11IC次卡12免费13VIP充值卡14IC充值卡15积分支付16VIP季卡17IC季卡
payType?: string;
// 1已付款2未付款
payStatus?: string;
// 1已完成2未使用3已取消4退款申请中5退款被拒绝6退款成功7客户端申请退款
orderStatus?: string;
// 优惠类型0无、1抵扣优惠券、2折扣优惠券、3、VIP月卡、4VIP年卡5VIP次卡、6VIP会员卡、7IC月卡、8IC年卡、9IC次卡、10IC会员卡、11免费订单、12VIP充值卡、13IC充值卡、14VIP季卡、15IC季卡
type?: string;
// 二维码地址,保存订单号,支付成功后才生成
qrcode?: string;
// 优惠说明
desc?: string;
// vip月卡年卡、ic月卡年卡回退次数
returnNum?: number;
// vip充值回退金额
returnMoney?: string;
// 预约详情开始时间数组
startTime?: string;
// 是否已开具发票1已开发票2未开发票3不能开具发票
isInvoice?: string;
// 下单时间
createTime?: number;
//
updateTime?: number;
// 付款时间
payTime?: number;
// 退款时间
refundTime?: number;
// 申请退款时间
refundApplyTime?: number;
// 对账情况1=已对账2=未对账3=已对账金额对不上4=未查询到该订单
checkBill?: number;
// 备注
comments?: string;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
}
/**
* 预约订单搜索条件
*/
export interface OrderParam extends PageParam {
orderId?: number;
keywords?: string;
}

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { Period, PeriodParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询场地时段
*/
export async function pagePeriod(params: PeriodParam) {
const res = await request.get<ApiResult<PageResult<Period>>>(
MODULES_API_URL + '/booking/period/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询场地时段列表
*/
export async function listPeriod(params?: PeriodParam) {
const res = await request.get<ApiResult<Period[]>>(
MODULES_API_URL + '/booking/period',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加场地时段
*/
export async function addPeriod(data: Period) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/period',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改场地时段
*/
export async function updatePeriod(data: Period) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/period',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除场地时段
*/
export async function removePeriod(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/period/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除场地时段
*/
export async function removeBatchPeriod(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/period/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询场地时段
*/
export async function getPeriod(id: number) {
const res = await request.get<ApiResult<Period>>(
MODULES_API_URL + '/booking/period/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,51 @@
import type { PageParam } from '@/api';
/**
* 场地时段
*/
export interface Period {
//
periodId?: number;
// 时段
timePeriod?: string;
timePeriod1?: string;
timePeriod2?: string;
// 价格
price?: number;
// 每日不同价格
prices?: string;
// 半场价格
halfPrice?: number;
// 每日不同半场价格
halfPrices?: string;
// 儿童价
childrenPrice?: number;
// 星期选择
week?: string;
// 排序
sortNumber?: number;
// 关联id
merchantId?: number;
// 是否关闭1开启2关闭
isStatus?: number;
// 是否免费1免费2收费
isFree?: number;
// 开始时间
startTime?: string;
// 备注
comments?: string;
// 状态
status?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
}
/**
* 场地时段搜索条件
*/
export interface PeriodParam extends PageParam {
periodId?: number;
keywords?: string;
}

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { Users, UsersParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询用户
*/
export async function pageUsers(params: UsersParam) {
const res = await request.get<ApiResult<PageResult<Users>>>(
MODULES_API_URL + '/booking/users/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询用户列表
*/
export async function listUsers(params?: UsersParam) {
const res = await request.get<ApiResult<Users[]>>(
MODULES_API_URL + '/booking/users',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加用户
*/
export async function addUsers(data: Users) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/users',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改用户
*/
export async function updateUsers(data: Users) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/users',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除用户
*/
export async function removeUsers(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/users/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除用户
*/
export async function removeBatchUsers(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/users/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询用户
*/
export async function getUsers(id: number) {
const res = await request.get<ApiResult<Users>>(
MODULES_API_URL + '/booking/users/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,73 @@
import type { PageParam } from '@/api';
/**
* 用户
*/
export interface Users {
//
userId?: number;
// 用户唯一小程序id
openid?: string;
// 小程序用户秘钥
sessionKey?: string;
// 用户名
username?: string;
// 头像地址
avatarUrl?: string;
// 1男2女
sex?: string;
// 国家
country?: string;
// 省份
province?: string;
// 城市
city?: string;
// 所在辖区
region?: string;
// 经度
longitude?: string;
// 纬度
latitude?: string;
// 手机号码
phone?: string;
// 邮箱
email?: string;
// 邮箱是否验证, 0否, 1是
emailVerified?: number;
// 积分
points?: string;
// 余额
balance?: string;
// 注册时间
addTime?: number;
// 身份证号码
idCard?: string;
// 真实姓名
realName?: string;
// 是否管理员1是2否
isAdmin?: string;
// 客户端ID
clientId?: string;
// 注册来源客户端 (APP、H5、小程序等)
platform?: string;
// 排序
sortNumber?: number;
// 备注
comments?: string;
// 状态
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 注册时间
createTime?: string;
}
/**
* 用户搜索条件
*/
export interface UsersParam extends PageParam {
userId?: number;
keywords?: string;
}

View File

@@ -20,6 +20,7 @@ export interface WebsiteField {
*/
export interface WebsiteFieldParam extends PageParam {
id?: number;
name?: string;
userId?: number;
websiteId?: number;
}

View File

@@ -55,6 +55,10 @@ export interface Merchant {
// 默认商户管理角色ID
roleId?: number;
roleName?: string;
key?: number;
value?: number;
title?: string;
disabled?: boolean;
}
/**

View File

@@ -4,7 +4,7 @@ import type { Order, OrderParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询订单
* 分页查询预约订单
*/
export async function pageOrder(params: OrderParam) {
const res = await request.get<ApiResult<PageResult<Order>>>(
@@ -20,7 +20,7 @@ export async function pageOrder(params: OrderParam) {
}
/**
* 查询订单列表
* 查询预约订单列表
*/
export async function listOrder(params?: OrderParam) {
const res = await request.get<ApiResult<Order[]>>(
@@ -36,7 +36,7 @@ export async function listOrder(params?: OrderParam) {
}
/**
* 添加订单
* 添加预约订单
*/
export async function addOrder(data: Order) {
const res = await request.post<ApiResult<unknown>>(
@@ -50,7 +50,7 @@ export async function addOrder(data: Order) {
}
/**
* 修改订单
* 修改预约订单
*/
export async function updateOrder(data: Order) {
const res = await request.put<ApiResult<unknown>>(
@@ -64,7 +64,7 @@ export async function updateOrder(data: Order) {
}
/**
* 删除订单
* 删除预约订单
*/
export async function removeOrder(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
@@ -77,7 +77,7 @@ export async function removeOrder(id?: number) {
}
/**
* 批量删除订单
* 批量删除预约订单
*/
export async function removeBatchOrder(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
@@ -93,7 +93,7 @@ export async function removeBatchOrder(data: (number | undefined)[]) {
}
/**
* 根据id查询订单
* 根据id查询预约订单
*/
export async function getOrder(id: number) {
const res = await request.get<ApiResult<Order>>(

View File

@@ -1,77 +1,93 @@
import type { PageParam } from '@/api';
/**
* 订单
* 预约订单
*/
export interface Order {
// ID
orderId?: number;
// 订单号
orderId?: number;
// 订单编号
orderNo?: string;
// 类型
type?: number;
// 订单金额
money?: string;
// 实际付款金额(包含运费)
payPrice?: string;
// 套餐ID
planId?: number;
// 卡ID
priceId?: number;
// 获得的会员等级
gradeId?: number;
// 卡名称
priceName?: string;
// 用户ID
// 微信支付订单号
wechatOrder?: string;
// 微信退款订单号
refundOrder?: string;
// 场馆id用于权限判断
merchantId?: number;
// 用户id
userId?: number;
// 持有者ID
memberId?: number;
// 使用的优惠券id
couponId?: number;
// 使用的会员卡id
cardId?: number;
// 关联管理员id
aid?: number;
// 核销管理员id
adminId?: number;
// IC卡号
code?: string;
// 真实姓名
realName?: string;
// 联系电话
name?: string;
// 手机号码
phone?: string;
// 订单总额
totalPrice?: string;
// 减少的金额使用VIP会员折扣、优惠券抵扣、优惠券折扣后减去的价格
reducePrice?: string;
// 实际付款
payPrice?: string;
// 用于统计
price?: string;
// 价钱,用于积分赠送
money?: string;
// 退款金额
refundMoney?: string;
// 教练价格
coachPrice?: string;
// 教练id
coachId?: number;
// 1微信支付2积分3支付宝4现金5POS机6VIP月卡7VIP年卡8VIP次卡9IC月卡10IC年卡11IC次卡12免费13VIP充值卡14IC充值卡15积分支付16VIP季卡17IC季卡
payType?: string;
// 1已付款2未付款
payStatus?: string;
// 1已完成2未使用3已取消4退款申请中5退款被拒绝6退款成功7客户端申请退款
orderStatus?: string;
// 优惠类型0无、1抵扣优惠券、2折扣优惠券、3、VIP月卡、4VIP年卡5VIP次卡、6VIP会员卡、7IC月卡、8IC年卡、9IC次卡、10IC会员卡、11免费订单、12VIP充值卡、13IC充值卡、14VIP季卡、15IC季卡
type?: string;
// 二维码地址,保存订单号,支付成功后才生成
qrcode?: string;
// 优惠说明
desc?: string;
// vip月卡年卡、ic月卡年卡回退次数
returnNum?: number;
// vip充值回退金额
returnMoney?: string;
// 预约详情开始时间数组
startTime?: string;
// 是否已开具发票1已开发票2未开发票3不能开具发票
isInvoice?: string;
// 下单时间
createTime?: number;
//
updateTime?: number;
// 付款时间
payTime?: string;
// 支付流水号
transactionId?: string;
// 付款状态(10未付款 20已付款)
payStatus?: number;
// 到期时间
expirationTime?: string;
// 所在省份
province?: string;
// 所在城市
city?: string;
// 所在辖区
region?: string;
// 所在地区
area?: string;
// 街道地址
address?: string;
// 退款凭证
refundImage?: string;
// 退款理由
refundContent?: string;
// 订单是否已结算(0未结算 1已结算)
isSettled?: number;
// 排序(数字越小越靠前)
sortNumber?: number;
payTime?: number;
// 退款时间
refundTime?: number;
// 申请退款时间
refundApplyTime?: number;
// 对账情况1=已对账2=未对账3=已对账金额对不上4=未查询到该订单
checkBill?: number;
// 备注
comments?: string;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 订单搜索条件
* 预约订单搜索条件
*/
export interface OrderParam extends PageParam {
orderId?: number;

View File

@@ -1,14 +1,14 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { User, UserParam } from './model';
import { SERVER_API_URL } from '@/config/setting';
import { MODULES_API_URL, SERVER_API_URL } from '@/config/setting';
/**
* 分页查询用户
*/
export async function pageUsers(params: UserParam) {
const res = await request.get<ApiResult<PageResult<User>>>(
SERVER_API_URL + '/system/user/page',
MODULES_API_URL + '/system/user/page',
{ params }
);
if (res.data.code === 0) {

View File

@@ -18,6 +18,8 @@ export interface User {
password2?: string;
// 昵称
nickname?: string;
openId?: string;
sessionKey?: string;
// 别名
alias?: string;
// 头像
@@ -84,6 +86,30 @@ export interface User {
comments?: string;
recommend?: number;
system?: any;
// 头像地址
avatarUrl?: string;
// 1男2女
gender?: string;
// 国家
country?: string;
// 邮箱是否验证, 0否, 1是
emailVerified?: number;
// 注册时间
addTime?: number;
//
idcard?: string;
//
truename?: string;
// 是否管理员1是2否
isAdmin?: string;
// 客户端ID
clientId?: string;
// 注册来源客户端 (APP、H5、小程序等)
platform?: string;
// 排序
sortNumber?: number;
deleted?: number;
}
/**