2025-03-12 15:28:36 +08:00
|
|
|
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
2025-04-14 19:01:51 +08:00
|
|
|
// 查询菜品灶类列表 key
|
|
|
|
|
// dishes_cook 菜品灶类
|
|
|
|
|
// dishes_label 菜品标签
|
|
|
|
|
// dishes_taste 菜品口味
|
|
|
|
|
// dishes_effec 菜品功效
|
|
|
|
|
// dishes_style 菜品菜系
|
|
|
|
|
// dishes_suitId 适宜人群
|
|
|
|
|
// dishes_meal 餐次
|
|
|
|
|
// dishes_season 事宜季节
|
|
|
|
|
export function getDishesTypeListApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/menu_dishes/getDishesType',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-03-12 15:28:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// 菜品种类-全量数据
|
|
|
|
|
export function menuDishesTypeAllListApi(data) {
|
|
|
|
|
return request({
|
2025-04-14 19:01:51 +08:00
|
|
|
url: '/smart-canteen/menu_material/getAllMenuDishesTypeList',
|
2025-03-12 15:28:36 +08:00
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 菜品种类-新增 areaId typeName
|
|
|
|
|
export function addMenuDishesTypeApi(data) {
|
|
|
|
|
return request({
|
2025-04-14 19:01:51 +08:00
|
|
|
url: '/smart-canteen/menu_material/addMenuDishesType',
|
2025-03-12 15:28:36 +08:00
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 菜品种类-修改 areaId typeId typeName
|
|
|
|
|
export function editMenuDishesTypeApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v1/menudishestype/edit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 菜品种类-删除 typeId
|
|
|
|
|
export function removeMenuDishesTypeApi(typeId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v1/menudishestype/remove/'+typeId,
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
// data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-04-14 19:01:51 +08:00
|
|
|
|
2025-03-12 15:28:36 +08:00
|
|
|
// 菜品列表-分页
|
|
|
|
|
export function getMenuDishesListApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v2/menudishes/page',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 菜品列表-新增
|
|
|
|
|
export function addMenuDishesApi(data) {
|
|
|
|
|
return request({
|
2025-04-14 19:01:51 +08:00
|
|
|
url: '/smart-canteen/menu_dishes/addMenuDishes',
|
2025-03-12 15:28:36 +08:00
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 菜品列表-修改
|
|
|
|
|
export function editMenuDishesApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v2/menudishes/edit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-03-21 17:59:18 +08:00
|
|
|
// 菜品列表-详情
|
|
|
|
|
export function menuDishesDetailApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v2/menudishes/detail/'+data.dishesId,
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-12 15:28:36 +08:00
|
|
|
// 菜品列表-删除
|
|
|
|
|
export function removeMenuDishesApi(dishesId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v2/menudishes/remove/'+dishesId,
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
// data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|