feat: 基本信息
This commit is contained in:
@@ -158,86 +158,14 @@ export interface TradeOrderPageRespVO {
|
||||
* TradeOrderDetailRespVO
|
||||
*/
|
||||
export interface TradeOrderDetailRespVO {
|
||||
/**
|
||||
* 购买的商品数量
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* 下单时间 - 必填
|
||||
*/
|
||||
createTime?: string;
|
||||
/**
|
||||
* 财务状态
|
||||
*/
|
||||
financeStatus?: string;
|
||||
/**
|
||||
* 到手价
|
||||
*/
|
||||
handedPrice?: number;
|
||||
/**
|
||||
* 订单编号 - 必填,示例:1024
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 订单类目
|
||||
*/
|
||||
orderCategoryName?: string;
|
||||
/**
|
||||
* 订单流水号 - 必填,示例:1146347329394184195
|
||||
*/
|
||||
orderNum?: string;
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
orderStatus?: number;
|
||||
/**
|
||||
* 订单来源
|
||||
*/
|
||||
orderTerminal?: number;
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
orderTime?: string;
|
||||
/**
|
||||
* 应付金额(总) - 必填,示例:1000
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType?: string;
|
||||
/**
|
||||
* 商品图片
|
||||
*/
|
||||
picUrl?: string;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 服务地址
|
||||
*/
|
||||
serveAddress?: string;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
skuName?: string;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
spuName?: string;
|
||||
/**
|
||||
* 配送信息
|
||||
*/
|
||||
tradeDeliveryInfo?: TradeDeliveryInfo;
|
||||
/**
|
||||
* 附加费信息
|
||||
*/
|
||||
tradeExtendCostInfo?: string;
|
||||
tradeExtendCostInfo?: TradeExtendCostInfo;
|
||||
/**
|
||||
* 扩展服务信息
|
||||
*/
|
||||
tradeExtendServeInfo?: string;
|
||||
tradeExtendServeInfo?: TradeExtendServeInfo;
|
||||
/**
|
||||
* 基本信息
|
||||
*/
|
||||
@@ -245,71 +173,48 @@ export interface TradeOrderDetailRespVO {
|
||||
/**
|
||||
* 商品信息
|
||||
*/
|
||||
tradeProductInfo?: string;
|
||||
tradeProductInfo?: TradeProductInfo;
|
||||
/**
|
||||
* 单位
|
||||
* 服务信息
|
||||
*/
|
||||
unit?: string;
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
userAvatar?: string;
|
||||
/**
|
||||
* 用户编号 - 必填,示例:2048
|
||||
*/
|
||||
userId?: number;
|
||||
/**
|
||||
* 用户手机号
|
||||
*/
|
||||
userMobile?: string;
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
userName?: string;
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
userNickName?: string;
|
||||
/**
|
||||
* 用户备注 - 必填,示例:你猜
|
||||
*/
|
||||
userRemark?: string;
|
||||
tradeServeInfo?: TradeServeInfo;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 配送信息
|
||||
* 附加费信息
|
||||
*
|
||||
* TradeDeliveryInfo
|
||||
* TradeExtendCostInfo
|
||||
*/
|
||||
export interface TradeDeliveryInfo {
|
||||
export interface TradeExtendCostInfo {
|
||||
/**
|
||||
* 快递详情
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*/
|
||||
deliveryDetail?: string;
|
||||
properties?: MapObject;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*
|
||||
* MapObject
|
||||
*/
|
||||
export interface MapObject {
|
||||
key?: { [key: string]: any };
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 扩展服务信息
|
||||
*
|
||||
* TradeExtendServeInfo
|
||||
*/
|
||||
export interface TradeExtendServeInfo {
|
||||
/**
|
||||
* 承运方
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*/
|
||||
logisticsName?: string;
|
||||
/**
|
||||
* 送货上门
|
||||
*/
|
||||
logisticsNum?: string;
|
||||
/**
|
||||
* 送货方式
|
||||
*/
|
||||
logisticsType?: string;
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receiverDetailAddress?: string;
|
||||
/**
|
||||
* 收货手机
|
||||
*/
|
||||
receiverMobile?: string;
|
||||
/**
|
||||
* 收货人
|
||||
*/
|
||||
receiverName?: string;
|
||||
properties?: MapObject;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -319,37 +224,13 @@ export interface TradeDeliveryInfo {
|
||||
*/
|
||||
export interface TradeOrderBaseInfo {
|
||||
/**
|
||||
* 实收金额
|
||||
* 取消原因
|
||||
*/
|
||||
actualPrice?: string;
|
||||
/**
|
||||
* 售后编号 - 必填,示例:450878
|
||||
*/
|
||||
afterSaleCode?: string;
|
||||
/**
|
||||
* 售后类型 - 必填,示例:仅退款/退货退款/可扩展增加使用
|
||||
*/
|
||||
afterSaleType?: string;
|
||||
/**
|
||||
* 申请人 - 必填,示例:用户/商家/平台+ID
|
||||
*/
|
||||
applicant?: string;
|
||||
/**
|
||||
* 审核人 - 必填,示例:姓名+ID
|
||||
*/
|
||||
auditor?: string;
|
||||
/**
|
||||
* 审核时间 - 必填,示例:2025-07-01 12:00:00
|
||||
*/
|
||||
auditTime?: string;
|
||||
cancelReason?: string;
|
||||
/**
|
||||
* 取消时间
|
||||
*/
|
||||
cancelTime?: string;
|
||||
/**
|
||||
* 关闭时间 - 必填,示例:2025-07-01 12:00:00
|
||||
*/
|
||||
closeTime?: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@@ -366,6 +247,19 @@ export interface TradeOrderBaseInfo {
|
||||
* 订单id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* 实收金额
|
||||
*/
|
||||
livePrice?: string;
|
||||
/**
|
||||
* 商家备注
|
||||
*/
|
||||
merchantRemark?: string;
|
||||
/**
|
||||
* 订单类目
|
||||
*/
|
||||
orderCategoryId?: string;
|
||||
orderCategoryName?: string;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
@@ -383,9 +277,9 @@ export interface TradeOrderBaseInfo {
|
||||
*/
|
||||
orderType?: string;
|
||||
/**
|
||||
* 支付方式
|
||||
* 支付渠道 (线上线下)
|
||||
*/
|
||||
payChannel?: string;
|
||||
payChannelCode?: string;
|
||||
/**
|
||||
* 交易流水号
|
||||
*/
|
||||
@@ -393,70 +287,139 @@ export interface TradeOrderBaseInfo {
|
||||
/**
|
||||
* 订单金额
|
||||
*/
|
||||
payPrice?: string;
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
payTime?: string;
|
||||
/**
|
||||
* 退款金额 - 必填
|
||||
* 支付方式(支付宝微信)
|
||||
*/
|
||||
refundAmount?: number;
|
||||
payType?: string;
|
||||
/**
|
||||
* 退款方式 - 必填,示例:系统自动退款
|
||||
* 订单总价
|
||||
*/
|
||||
refundMethod?: string;
|
||||
price?: string;
|
||||
/**
|
||||
* 保障状态
|
||||
*/
|
||||
propertyStatus?: string;
|
||||
/**
|
||||
* 保障时间
|
||||
*/
|
||||
propertyTime?: string;
|
||||
/**
|
||||
* 退款金额
|
||||
*/
|
||||
refundPrice?: string;
|
||||
/**
|
||||
* 退款原因 - 必填,示例:不想要了
|
||||
* 退款时间
|
||||
*/
|
||||
refundReason?: string;
|
||||
refundTime?: string;
|
||||
/**
|
||||
* 退款说明 - 必填,示例:这里是用户填写的退款描述
|
||||
* 用户信息
|
||||
*/
|
||||
refundRemark?: string;
|
||||
/**
|
||||
* 退款状态 - 必填,示例:待审核/待退款/已退款/已拒绝
|
||||
*/
|
||||
refundStatus?: string;
|
||||
/**
|
||||
* 退款至 - 必填,示例:原支付方式返还
|
||||
*/
|
||||
refundTo?: string;
|
||||
/**
|
||||
* 退款类型 - 必填,示例:订单退款/差价退款/运费退款/可扩展增加
|
||||
*/
|
||||
refundType?: string;
|
||||
/**
|
||||
* 用户ID 示例:666
|
||||
*/
|
||||
userId?: number;
|
||||
/**
|
||||
* 用户昵称 示例:钱多多
|
||||
*/
|
||||
userNickname?: string;
|
||||
userInfo?: string;
|
||||
userAvatar?: string;
|
||||
}
|
||||
|
||||
// /**
|
||||
// * CommonResultTradeOrderDetailRespVO
|
||||
// */
|
||||
// export interface ApifoxModel {
|
||||
// /**
|
||||
// * 错误码
|
||||
// */
|
||||
// code?: number;
|
||||
// /**
|
||||
// * 返回数据
|
||||
// */
|
||||
// data?: TradeOrderDetailRespVO;
|
||||
// /**
|
||||
// * 错误提示,用户可阅读
|
||||
// */
|
||||
// msg?: string;
|
||||
// }
|
||||
/**
|
||||
* 商品信息
|
||||
*
|
||||
* TradeProductInfo
|
||||
*/
|
||||
export interface TradeProductInfo {
|
||||
/**
|
||||
* 购买数量
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* 优惠金额
|
||||
*/
|
||||
discountPrice?: number;
|
||||
/**
|
||||
* 成本价
|
||||
*/
|
||||
expensePrice?: number;
|
||||
/**
|
||||
* 到手价(单价 - 优惠)
|
||||
*/
|
||||
handedPrice?: number;
|
||||
/**
|
||||
* 实付金额
|
||||
*/
|
||||
payPrice?: number;
|
||||
/**
|
||||
* 商品单价
|
||||
*/
|
||||
price?: number;
|
||||
/**
|
||||
* 保障
|
||||
*/
|
||||
properties?: string[];
|
||||
/**
|
||||
* 累计退款数量
|
||||
*/
|
||||
refundCount?: number;
|
||||
/**
|
||||
* 累计退款金额
|
||||
*/
|
||||
refundPrice?: number;
|
||||
/**
|
||||
* 服务内容
|
||||
*/
|
||||
serveContent?: string;
|
||||
/**
|
||||
* 店铺log
|
||||
*/
|
||||
shopLogoUrl?: string;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
shopName?: string;
|
||||
/**
|
||||
* skuid
|
||||
*/
|
||||
skuId?: number;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
skuName?: string;
|
||||
/**
|
||||
* 商品规格图
|
||||
*/
|
||||
skuPicUrl?: string;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
spuId?: number;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
spuName?: string;
|
||||
/**
|
||||
* 商品总价
|
||||
*/
|
||||
totalPrice?: number;
|
||||
/**
|
||||
* 商品单位
|
||||
*/
|
||||
unit?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务信息
|
||||
*
|
||||
* TradeServeInfo
|
||||
*/
|
||||
export interface TradeServeInfo {
|
||||
/**
|
||||
* 内部存储动态属性的 Map,键为属性名称,值为属性值
|
||||
*/
|
||||
properties?: MapObject;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
export const getTradeOrderPage = async (params: TradeReq) => {
|
||||
return request<PageResult<TradeOrderPageRespVO[]>>("/trade/order/page", {
|
||||
|
||||
Reference in New Issue
Block a user