You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.2 KiB
JavaScript

import request from '@/utils/request'
// 查询物料信息列表
export function listMaterialinfo(query) {
return request({
url: '/mes/materialinfo/list',
method: 'get',
params: query
})
}
// 查询物料信息详细
export function getMaterialinfo(materialId) {
return request({
url: '/mes/materialinfo/' + materialId,
method: 'get'
})
}
// 新增物料信息
export function addMaterialinfo(data) {
return request({
url: '/mes/materialinfo',
method: 'post',
data: data
})
}
// 修改物料信息
export function updateMaterialinfo(data) {
return request({
url: '/mes/materialinfo',
method: 'put',
data: data
})
}
// 删除物料信息
export function delMaterialinfo(materialId) {
return request({
url: '/mes/materialinfo/' + materialId,
method: 'delete'
})
}
// 查询物料类型列表
export function getMaterialTypes(query) {
return request({
url: '/mes/materialinfo/getMaterialTypes',
method: 'get',
params: query
})
}
// 批量更新安全库存
export function batchUpdateSafeStock(data) {
return request({
url: '/mes/materialinfo/batchUpdateSafeStock',
method: 'post',
data: data
})
}