You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
981 B
58 lines
981 B
import request from '@/utils/request'
|
|
|
|
// 查询库存管理列表
|
|
export function listStock(query) {
|
|
return request({
|
|
url: '/material/stock/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询库存管理详细
|
|
export function getStock(id) {
|
|
return request({
|
|
url: '/material/stock/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增库存管理
|
|
export function addStock(data) {
|
|
return request({
|
|
url: '/material/stock',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改库存管理
|
|
export function updateStock(data) {
|
|
return request({
|
|
url: '/material/stock',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除库存管理
|
|
export function delStock(id) {
|
|
return request({
|
|
url: '/material/stock/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
export function listStockExpire(query) {
|
|
return request({
|
|
url: '/material/stock/listExpire',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function countByCategory() {
|
|
return request({
|
|
url: '/material/stock/countByCategory',
|
|
method: 'get',
|
|
})
|
|
} |