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.

54 lines
954 B
JavaScript

2 years ago
import request from '@/utils/request'
// 查询配方列表
2 years ago
export function listProcess(query) {
return request({
url: '/technology/pro/recipe/list',
2 years ago
method: 'get',
params: query
})
}
// 查询所有有效配方
2 years ago
export function listAllProcess() {
return request({
url: '/technology/pro/recipe/listAll',
2 years ago
method: 'get'
})
}
// 查询配方详细
2 years ago
export function getProcess(recipeId) {
return request({
url: '/technology/pro/recipe/' + recipeId,
2 years ago
method: 'get'
})
}
// 新增配方
2 years ago
export function addProcess(data) {
return request({
url: '/technology/pro/recipe',
2 years ago
method: 'post',
data: data
})
}
// 修改配方
2 years ago
export function updateProcess(data) {
return request({
url: '/technology/pro/recipe',
2 years ago
method: 'put',
data: data
})
}
// 删除配方
2 years ago
export function delProcess(recipeId) {
return request({
url: '/technology/pro/recipe/' + recipeId,
2 years ago
method: 'delete'
})
}