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

91 lines
1.6 KiB
JavaScript

import request from '@/utils/request'
// 订单列表-分页
export function orderPageListApi(data) {
return request({
url: '/smart-canteen/order/web/list',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 订单详情
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/order/part_refund',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 订单-退单
export function refundOrderApi(data) {
return request({
url: '/smart-canteen/order/refund/'+data.orderId,
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 订单-核销
export function writeOffOrderApi(data) {
return request({
url: '/smart-canteen/order/write-off',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 订单-同步订单状态
export function syncOrderPayStateApi(data) {
return request({
url: '/smart-canteen/api/v2/web/order/sync-pay-state',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}