45 lines
789 B
JavaScript
45 lines
789 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询入库单据列表
|
|
export function listStockIn(query) {
|
|
return request({
|
|
url: '/in/stockIn/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询入库单据详细
|
|
export function getStockIn(stockinGuid) {
|
|
return request({
|
|
url: '/in/stockIn/' + stockinGuid,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增入库单据
|
|
export function addStockIn(data) {
|
|
return request({
|
|
url: '/in/stockIn',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改入库单据
|
|
export function updateStockIn(data) {
|
|
return request({
|
|
url: '/in/stockIn',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除入库单据
|
|
export function delStockIn(stockinGuid) {
|
|
return request({
|
|
url: '/in/stockIn/' + stockinGuid,
|
|
method: 'delete'
|
|
})
|
|
}
|