bonus-ui/src/api/index.js

82 lines
1.6 KiB
JavaScript
Raw Normal View History

2025-05-19 13:01:04 +08:00
import request from '@/utils/request'
// 获取数据总览(今日营业额、订单等)
export function getDataScreeningModelApi(data) {
return request({
url: '/smart-canteen/dataScreening/getDataScreeningModel',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-05-19 13:01:04 +08:00
},
data: data
})
}
// 获取食堂订单及销量趋势
export function getCanteenOrdersAndSalesTrendsApi(data) {
return request({
url: '/smart-canteen/dataScreening/getCanteenOrdersAndSalesTrends',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-05-19 13:01:04 +08:00
},
data: data
})
}
// 获取商超订单及销量趋势
export function getSupermarketOrderAndSalesTrendApi(data) {
return request({
url: '/smart-canteen/dataScreening/getSupermarketOrderAndSalesTrend',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-05-19 13:01:04 +08:00
},
data: data
})
}
// 获取近30天菜品销量排名
export function getThisMonthSDishSalesRankingApi(data) {
return request({
url: '/smart-canteen/dataScreening/getThisMonthSDishSalesRanking',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-05-19 13:01:04 +08:00
},
data: data
})
}
// 订单类型占比
export function getProportionOfOrderTypesApi(data) {
return request({
url: '/smart-canteen/dataScreening/getProportionOfOrderTypes',
method: 'post',
headers: {
2025-07-01 11:25:10 +08:00
//"merchant-id":"378915229716713472",
2025-05-19 13:01:04 +08:00
},
data: data
})
}