库存单据页面完成
This commit is contained in:
@@ -9,14 +9,6 @@ export function listBill(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存单据详细
|
||||
export function getBill(id) {
|
||||
return request({
|
||||
url: '/wisdom/bill/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存单据
|
||||
export function addBill(data) {
|
||||
return request({
|
||||
@@ -29,11 +21,80 @@ export function addBill(data) {
|
||||
// 修改库存单据
|
||||
export function updateBill(data) {
|
||||
return request({
|
||||
url: '/wisdom/bill',
|
||||
method: 'put',
|
||||
url: '/wisdom/bill/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存单据明细列表
|
||||
export function listStock(id) {
|
||||
return request({
|
||||
url: '/wisdom/record/listByBillNo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存单据
|
||||
export function appendBill(data) {
|
||||
return request({
|
||||
url: '/wisdom/bill/append',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 移库
|
||||
export function moveRecord(data) {
|
||||
return request({
|
||||
url: '/inventory/move/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存单据明细内容
|
||||
export function updateRecord(data) {
|
||||
return request({
|
||||
url: '/wisdom/record/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 撤销入库
|
||||
export function backoutRecord(data) {
|
||||
return request({
|
||||
url: '/wisdom/record/rollback',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 删除库存单据
|
||||
export function delBill(id) {
|
||||
@@ -43,20 +104,13 @@ export function delBill(id) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 查询库存单据明细列表
|
||||
export function listStock(id) {
|
||||
return request({
|
||||
url: '/wisdom/record/listByBillNo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询库存单据详细
|
||||
// export function getBill(id) {
|
||||
// return request({
|
||||
// url: '/wisdom/bill/' + id,
|
||||
// method: 'get'
|
||||
// })
|
||||
// }
|
||||
|
||||
// 查询库存单据明细详细
|
||||
export function getStock(id) {
|
||||
|
||||
Reference in New Issue
Block a user