feat: 物料台账

This commit is contained in:
砂糖
2025-08-11 11:55:06 +08:00
parent bc61d388ef
commit ba14fd26a7
4 changed files with 239 additions and 307 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询库存流水列表
export function listStockLog(query) {
return request({
url: '/klp/stockLog/list',
method: 'get',
params: query
})
}
// 查询库存流水详细
export function getStockLog(id) {
return request({
url: '/klp/stockLog/' + id,
method: 'get'
})
}
// 新增库存流水
export function addStockLog(data) {
return request({
url: '/klp/stockLog',
method: 'post',
data: data
})
}
// 修改库存流水
export function updateStockLog(data) {
return request({
url: '/klp/stockLog',
method: 'put',
data: data
})
}
// 删除库存流水
export function delStockLog(id) {
return request({
url: '/klp/stockLog/' + id,
method: 'delete'
})
}