182 lines
4.0 KiB
JavaScript
182 lines
4.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 通过区域Id查询超市
|
|
export function getSupermarketByAreaApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_info/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 通过区域Id查询食堂
|
|
export function getCanteenByAreaApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 通过食堂Id查询档口
|
|
export function getStallByCanteenApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 订单类型
|
|
export function orderTypeListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/order/enums/type-list',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 配送方式
|
|
export function deliveryTypeListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/alloc/canteen/list-delivery-type-enum',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 订单状态
|
|
export function orderStateListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/order/enums/state-mix-list',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 订单支付状态
|
|
export function orderPayAllTypeApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/pay/all/type',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
// 核身方式
|
|
export function orderNuclearModeListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/order/enums/nuclear/mode-list',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 订单列表-分页
|
|
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/api/v2/web/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/api/v2/web/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
|
|
})
|
|
}
|
|
|
|
// 订单-同步订单退款状态
|
|
export function syncOrderRefundStateApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v2/web/order/sync-refund-state',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|