bonus-ui/src/api/order/offline.js

91 lines
1.6 KiB
JavaScript
Raw Normal View History

2025-03-18 10:51:38 +08:00
import request from '@/utils/request'
// 订单列表-分页
export function orderPageListApi(data) {
return request({
2025-05-07 13:42:50 +08:00
url: '/smart-canteen/order/web/list',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
2025-06-06 10:35:20 +08:00
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
2025-03-18 10:51:38 +08:00
})
}
// 订单详情
export function orderDetailInfoApi(data) {
return request({
url: '/smart-canteen/api/v2/web/order/info',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 订单-部分退款
export function refundOrderPartApi(data) {
return request({
2025-06-12 14:29:55 +08:00
url: '/smart-canteen/order/part_refund',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 订单-退单
export function refundOrderApi(data) {
return request({
2025-05-07 13:42:50 +08:00
url: '/smart-canteen/order/refund/'+data.orderId,
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 订单-核销
export function writeOffOrderApi(data) {
return request({
2025-05-07 13:42:50 +08:00
url: '/smart-canteen/order/write-off',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-18 16:12:25 +08:00
// 订单-同步订单状态
export function syncOrderPayStateApi(data) {
return request({
url: '/smart-canteen/api/v2/web/order/sync-pay-state',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}