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

124 lines
2.5 KiB
JavaScript

import request from '@/utils/request'
// 菜品种类-全量数据
export function menuDishesTypeAllListApi(data) {
return request({
url: '/smart-canteen/cook_dishes_type/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: data
})
}
// 菜品种类-新增 areaId typeName
export function addMenuDishesTypeApi(data) {
return request({
url: '/smart-canteen/cook_dishes_type/add',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品种类-修改 areaId typeId typeName
export function editMenuDishesTypeApi(data) {
return request({
url: '/smart-canteen/cook_dishes_type/edit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品种类-删除 typeId
export function removeMenuDishesTypeApi(data) {
return request({
url: '/smart-canteen/cook_dishes_type/del/'+data.dishesTypeId,
method: 'post',
headers: {
"merchant-id":"378915229716713472",
}
})
}
// 菜品列表-分页
export function getMenuDishesListApi(data) {
return request({
url: '/smart-canteen/cook_dishes/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: data
})
}
// 菜品列表-新增
export function addMenuDishesApi(data) {
return request({
url: '/smart-canteen/cook_dishes/add',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品列表-修改
export function editMenuDishesApi(data) {
return request({
url: '/smart-canteen/cook_dishes/edit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品列表-详情
export function menuDishesDetailApi(data) {
return request({
url: '/smart-canteen/cook_dishes/getInfo/'+data.dishesId,
method: 'get',
headers: {
"merchant-id":"378915229716713472",
}
})
}
// 菜品列表-删除
export function removeMenuDishesApi(data) {
return request({
url: '/smart-canteen/cook_dishes/del/'+data.dishesId,
method: 'post',
headers: {
"merchant-id":"378915229716713472",
}
})
}
// 菜品列表-导入
export function importMenuDishesApi(data) {
return request({
url: '/smart-canteen/cook_dishes/upload/importDishes',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}