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

124 lines
2.5 KiB
JavaScript
Raw Normal View History

2025-03-12 15:28:36 +08:00
import request from '@/utils/request'
2025-05-28 15:48:48 +08:00
2025-03-12 15:28:36 +08:00
// 菜品种类-全量数据
export function menuDishesTypeAllListApi(data) {
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes_type/list',
method: 'get',
2025-03-12 15:28:36 +08:00
headers: {
"merchant-id":"378915229716713472",
},
2025-05-28 15:48:48 +08:00
params: data
2025-03-12 15:28:36 +08:00
})
}
// 菜品种类-新增 areaId typeName
export function addMenuDishesTypeApi(data) {
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes_type/add',
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({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes_type/edit',
2025-03-12 15:28:36 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品种类-删除 typeId
2025-05-09 15:53:57 +08:00
export function removeMenuDishesTypeApi(data) {
2025-03-12 15:28:36 +08:00
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes_type/del/'+data.dishesTypeId,
2025-03-12 15:28:36 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
2025-05-28 15:48:48 +08:00
}
2025-03-12 15:28:36 +08:00
})
}
2025-04-14 19:01:51 +08:00
2025-03-12 15:28:36 +08:00
// 菜品列表-分页
export function getMenuDishesListApi(data) {
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes/list',
method: 'get',
2025-03-12 15:28:36 +08:00
headers: {
"merchant-id":"378915229716713472",
},
2025-05-28 15:48:48 +08:00
params: data
2025-03-12 15:28:36 +08:00
})
}
// 菜品列表-新增
export function addMenuDishesApi(data) {
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes/add',
2025-03-12 15:28:36 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品列表-修改
export function editMenuDishesApi(data) {
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes/edit',
2025-03-12 15:28:36 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-21 17:59:18 +08:00
// 菜品列表-详情
export function menuDishesDetailApi(data) {
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes/getInfo/'+data.dishesId,
method: 'get',
2025-03-21 17:59:18 +08:00
headers: {
"merchant-id":"378915229716713472",
2025-05-28 15:48:48 +08:00
}
2025-03-21 17:59:18 +08:00
})
}
2025-03-12 15:28:36 +08:00
// 菜品列表-删除
2025-04-16 13:25:19 +08:00
export function removeMenuDishesApi(data) {
2025-03-12 15:28:36 +08:00
return request({
2025-05-28 15:48:48 +08:00
url: '/smart-canteen/cook_dishes/del/'+data.dishesId,
2025-03-12 15:28:36 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
2025-05-28 15:48:48 +08:00
}
2025-03-12 15:28:36 +08:00
})
}
2025-05-07 17:37:22 +08:00
// 菜品列表-导入
export function importMenuDishesApi(data) {
return request({
2025-06-13 16:53:42 +08:00
url: '/smart-canteen/cook_dishes/upload/importDishes',
2025-05-07 17:37:22 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-12 15:28:36 +08:00