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.
48 lines
906 B
48 lines
906 B
import request from '@/utils/request'
|
|
|
|
// 安全库存配置
|
|
export function getSafeStockConfigs() {
|
|
return request({
|
|
url: '/api/safeStockConfig',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function saveSafeStockConfig(data) {
|
|
return request({
|
|
url: '/api/safeStockConfig',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function updateSafeStockConfig(data) {
|
|
return request({
|
|
url: '/api/safeStockConfig',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function deleteSafeStockConfig(id) {
|
|
return request({
|
|
url: `/api/safeStockConfig/${id}`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 安全库存预警结果
|
|
export function getSafetyStockWarningResults() {
|
|
return request({
|
|
url: '/api/safetyStockWarningResult',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 库存超期预警结果
|
|
export function getOverdueStockWarningResults() {
|
|
return request({
|
|
url: '/api/overdueStockWarningResult',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|