45 lines
872 B
JavaScript
45 lines
872 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询样品库存表列表
|
|
export function listSampleInventory(query) {
|
|
return request({
|
|
url: '/is/sampleInventory/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询样品库存表详细
|
|
export function getSampleInventory(sampleId) {
|
|
return request({
|
|
url: '/is/sampleInventory/' + sampleId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增样品库存表
|
|
export function addSampleInventory(data) {
|
|
return request({
|
|
url: '/is/sampleInventory',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改样品库存表
|
|
export function updateSampleInventory(data) {
|
|
return request({
|
|
url: '/is/sampleInventory',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除样品库存表
|
|
export function delSampleInventory(sampleId) {
|
|
return request({
|
|
url: '/is/sampleInventory/' + sampleId,
|
|
method: 'delete'
|
|
})
|
|
}
|