mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 03:15:07 +08:00
订单售后列表:重构列表
This commit is contained in:
54
src/api/mall/trade/afterSale/index.ts
Normal file
54
src/api/mall/trade/afterSale/index.ts
Normal file
@ -0,0 +1,54 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 定义 TradeAfterSaleDTO 接口,映射 TradeAfterSaleDO
|
||||
export interface TradeAfterSaleVO {
|
||||
id?: number | null // 售后编号,主键自增
|
||||
no?: string // 售后单号
|
||||
status?: number | null // 退款状态
|
||||
way?: number | null // 售后方式
|
||||
type?: number | null // 售后类型
|
||||
userId?: number | null // 用户编号
|
||||
applyReason?: string // 申请原因
|
||||
applyDescription?: string // 补充描述
|
||||
applyPicUrls?: string[] // 补充凭证图片
|
||||
orderId?: number | null // 交易订单编号
|
||||
orderNo?: string // 订单流水号
|
||||
orderItemId?: number | null // 交易订单项编号
|
||||
spuId?: number | null // 商品 SPU 编号
|
||||
spuName?: string // 商品 SPU 名称
|
||||
skuId?: number | null // 商品 SKU 编号
|
||||
properties?: ProductPropertiesVO[] // 属性数组
|
||||
picUrl?: string // 商品图片
|
||||
count?: number | null // 退货商品数量
|
||||
auditTime?: Date // 审批时间
|
||||
auditUserId?: number | null // 审批人
|
||||
auditReason?: string // 审批备注
|
||||
refundPrice?: number | null // 退款金额,单位:分。
|
||||
payRefundId?: number | null // 支付退款编号
|
||||
refundTime?: Date // 退款时间
|
||||
logisticsId?: number | null // 退货物流公司编号
|
||||
logisticsNo?: string // 退货物流单号
|
||||
deliveryTime?: Date // 退货时间
|
||||
receiveTime?: Date // 收货时间
|
||||
receiveReason?: string // 收货备注
|
||||
}
|
||||
|
||||
export interface ProductPropertiesVO {
|
||||
propertyId?: number | null // 属性的编号
|
||||
propertyName?: string // 属性的名称
|
||||
valueId?: number | null //属性值的编号
|
||||
valueName?: string // 属性值的名称
|
||||
}
|
||||
|
||||
// 获得交易售后
|
||||
export function getAfterSale(id) {
|
||||
return request({
|
||||
url: '/trade/after-sale/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得交易售后分页
|
||||
export const getAfterSalePage = async (params) => {
|
||||
return await request.get({ url: `/trade/after-sale/page`, params })
|
||||
}
|
Reference in New Issue
Block a user