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.
68 lines
1.0 KiB
68 lines
1.0 KiB
2 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询入库单列表
|
||
|
export function listInList(query) {
|
||
|
return request({
|
||
|
url: '/material/inList/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询入库单详细
|
||
|
export function getInList(id) {
|
||
|
return request({
|
||
|
url: '/material/inList/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
//获取入库单及入库详细
|
||
|
export function getInListAndInListDel(waterNum) {
|
||
|
return request({
|
||
|
url: '/material/inList/byWaterNum/' + waterNum,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
// 新增入库单
|
||
|
export function addInList(data) {
|
||
|
return request({
|
||
|
url: '/material/inList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改入库单
|
||
|
export function updateInList(data) {
|
||
|
return request({
|
||
|
url: '/material/inList',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除入库单
|
||
|
export function delInList(id) {
|
||
|
return request({
|
||
|
url: '/material/inList/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function addOrUpdateInList(data) {
|
||
|
return request({
|
||
|
url: '/material/inList/addOrUpdate',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|