Files
shzg_projectManage/src/api/wisdom/bill.js

94 lines
1.5 KiB
JavaScript
Raw Normal View History

2026-01-21 07:53:24 +08:00
import request from '@/utils/request'
// 查询库存单据列表
export function listBill(query) {
return request({
url: '/wisdom/bill/list',
method: 'get',
params: query
})
}
// 查询库存单据详细
export function getBill(id) {
return request({
url: '/wisdom/bill/' + id,
method: 'get'
})
}
// 新增库存单据
export function addBill(data) {
return request({
url: '/wisdom/bill/add',
method: 'post',
data: data
})
}
// 修改库存单据
export function updateBill(data) {
return request({
url: '/wisdom/bill',
method: 'put',
data: data
})
}
// 删除库存单据
export function delBill(id) {
return request({
url: '/wisdom/bill/' + id,
method: 'delete'
})
}
// 查询库存单据明细列表
export function listStock(id) {
return request({
url: '/wisdom/record/listByBillNo/' + id,
method: 'get'
})
}
// 查询库存单据明细详细
export function getStock(id) {
return request({
url: '/wisdom/stock/' + id,
method: 'get'
})
}
// 新增库存单据明细
export function addStock(data) {
return request({
url: '/wisdom/stock',
method: 'post',
data: data
})
}
// 修改库存单据明细
export function updateStock(data) {
return request({
url: '/wisdom/stock',
method: 'put',
data: data
})
}
// 删除库存单据明细
export function delStock(id) {
return request({
url: '/wisdom/stock/' + id,
method: 'delete'
})
}