66 lines
1.4 KiB
JavaScript
66 lines
1.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
|
|
// 查询厨房餐余浪费列表
|
|
export function getKitchenWasteListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_waste_meal/list',
|
|
method: 'post',
|
|
data: data,
|
|
params:{
|
|
pageNum:data.pageNum,
|
|
pageSize:data.pageSize
|
|
}
|
|
})
|
|
}
|
|
// 查询厨房餐余浪费汇总
|
|
export function getKitchenWasteCountApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_waste_meal/list/count',
|
|
method: 'post',
|
|
data: data,
|
|
params:{
|
|
pageNum:data.pageNum,
|
|
pageSize:data.pageSize
|
|
}
|
|
})
|
|
}
|
|
// 查询厨房废弃物处置列表
|
|
export function getKitchenWasteDealApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_waste_deal/list',
|
|
method: 'post',
|
|
data: data,
|
|
params:{
|
|
pageNum:data.pageNum,
|
|
pageSize:data.pageSize
|
|
}
|
|
})
|
|
}
|
|
|
|
// 新增厨房废弃物处置
|
|
export function addKitchenWasteDealApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_waste_deal',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改厨房废弃物处置
|
|
export function editKitchenWasteDealApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_waste_deal/edit',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除厨房废弃物处置
|
|
export function delKitchenWasteDealApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/kitchen_waste_deal/del/'+data.wasteIds,
|
|
method: 'post'
|
|
})
|
|
}
|