新增食材管理

This commit is contained in:
huangdeliang
2020-12-15 21:11:45 +08:00
parent a3fc7d7da7
commit 27bf41b006
11 changed files with 1123 additions and 6 deletions

View File

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询食材列表
export function listIngredient(query) {
return request({
url: '/custom/ingredient/list',
method: 'get',
params: query
})
}
// 查询食材详细
export function getIngredient(id) {
return request({
url: '/custom/ingredient/' + id,
method: 'get'
})
}
// 新增食材
export function addIngredient(data) {
return request({
url: '/custom/ingredient',
method: 'post',
data: data
})
}
// 修改食材
export function updateIngredient(data) {
return request({
url: '/custom/ingredient',
method: 'put',
data: data
})
}
// 删除食材
export function delIngredient(id) {
return request({
url: '/custom/ingredient/' + id,
method: 'delete'
})
}
// 导出食材
export function exportIngredient(query) {
return request({
url: '/custom/ingredient/export',
method: 'get',
params: query
})
}