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",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 订单详情
|
|
|
|
|
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({
|
|
|
|
|
url: '/smart-canteen/api/v2/web/order/part/refund',
|
|
|
|
|
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
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|