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.
63 lines
1.1 KiB
63 lines
1.1 KiB
2 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询盘点单列表
|
||
|
export function listCheckList(query) {
|
||
|
return request({
|
||
|
url: '/material/checkList/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询盘点单详细
|
||
|
export function getCheckList(id) {
|
||
|
return request({
|
||
|
url: '/material/checkList/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增盘点单
|
||
|
export function addCheckList(data) {
|
||
|
return request({
|
||
|
url: '/material/checkList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改盘点单
|
||
|
export function updateCheckList(data) {
|
||
|
return request({
|
||
|
url: '/material/checkList',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除盘点单
|
||
|
export function delCheckList(id) {
|
||
|
return request({
|
||
|
url: '/material/checkList/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//暂存或结束盘点
|
||
|
export function addOrUpdateCheck(data) {
|
||
|
return request({
|
||
|
url: '/material/checkList/addOrUpdate',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
//查询盘点单及详细
|
||
|
export function getCheckListAndCheckListDel(checkId) {
|
||
|
return request({
|
||
|
url: '/material/checkList/byCheckId/' + checkId,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|