87 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2025-07-19 20:00:08 +08:00
import request from '@/utils/request'
// 获取酒头接管列表
export function getDistillerList(params) {
return request({
url: '/brewery/distiller/list',
method: 'get',
params
})
}
// 获取酒头接管详情
export function getDistillerDetail(id) {
return request({
url: `/brewery/distiller/${id}`,
method: 'get'
})
}
// 创建酒头接管
export function createDistiller(data) {
return request({
url: '/brewery/distiller',
method: 'post',
data
})
}
// 更新酒头接管
export function updateDistiller(data) {
return request({
url: '/brewery/distiller',
method: 'put',
data
})
}
// 删除酒头接管
export function deleteDistiller(id) {
return request({
url: `/brewery/distiller/${id}`,
method: 'delete'
})
}
// 接管酒头
export function takeoverDistiller(id) {
return request({
url: `/brewery/distiller/takeover/${id}`,
method: 'post'
})
}
// 转让酒头
export function transferDistiller(data) {
return request({
url: '/brewery/distiller/transfer',
method: 'post',
data
})
}
// 获取酒头统计
export function getDistillerStats() {
return request({
url: '/brewery/distiller/stats',
method: 'get'
})
}
// 审核酒头接管
export function auditDistiller(data) {
return request({
url: '/brewery/distiller/audit',
method: 'post',
data
})
}
// 获取酒头接管历史
export function getDistillerHistory(params) {
return request({
url: '/brewery/distiller/history',
method: 'get',
params
})
}