bonus-ui/src/api/dish/menu.js

136 lines
2.6 KiB
JavaScript
Raw Normal View History

2025-03-12 15:28:36 +08:00
import request from '@/utils/request'
// 餐次时间数据
export function mealTimeListApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/mealtime/list-by-param',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜谱类型数据
export function menuTypeListApi(data) {
return request({
url: '/smart-canteen/menu/type/sort/query',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 系统区域权限树
export function systemAreaTreeApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: 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
})
}
2025-03-14 18:06:16 +08:00
// 用户范围
export function getmkteffectiveApi(data) {
return request({
url: '/smart-canteen/api/v1/mkteffective/page',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: data
})
}
// 菜品列表
export function getDishesByTypePageApi(data) {
return request({
url: '/smart-canteen/api/v2/menudishes/type/dishes/list/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-12 15:28:36 +08:00
2025-03-12 16:29:16 +08:00
// 获取当前菜谱
export function getCurrentRecipeListApi(data) {
return request({
url: '/smart-canteen/api/v2/menurecipe/query/current/recipe',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
2025-03-14 18:06:16 +08:00
}
2025-03-12 16:29:16 +08:00
// 获取所有菜谱-分页
export function getPageRecipeListApi(data) {
return request({
url: '/smart-canteen/api/v2/menurecipe/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
2025-03-14 18:06:16 +08:00
}
//菜谱-新增
export function addMenuRecipeApi(data) {
return request({
url: '/smart-canteen/api/v2/menurecipe/add',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-12 15:28:36 +08:00