2026-01-10 16:16:45 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
//左侧树
|
|
|
|
|
export function getData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRefProductRecipe/list',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'get',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//查询卡片
|
|
|
|
|
export function getCardData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeVersion/list',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'get',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//修改
|
|
|
|
|
export function updateData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeVersion',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function listPfRecipeParameters(query) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: 'MasterDataManagement/Recipe//PfRecipeParameters/list',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'get',
|
|
|
|
|
params: query,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增配方参数明细表
|
|
|
|
|
* @param data
|
|
|
|
|
*/
|
|
|
|
|
export function addPfRecipeParameters(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: 'MasterDataManagement/Recipe//PfRecipeParameters',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data: data,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 修改配方参数明细表
|
|
|
|
|
* @param data
|
|
|
|
|
*/
|
|
|
|
|
export function updatePfRecipeParameters(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: 'MasterDataManagement/Recipe//PfRecipeParameters',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'PUT',
|
|
|
|
|
data: data,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 获取配方参数明细表详情
|
|
|
|
|
* @param {Id}
|
|
|
|
|
*/
|
|
|
|
|
export function getPfRecipeParameters(id) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: 'MasterDataManagement/Recipe//PfRecipeParameters/' + id,
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除配方参数明细表
|
|
|
|
|
* @param {主键} pid
|
|
|
|
|
*/
|
|
|
|
|
export function delPfRecipeParameters(pid) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: 'MasterDataManagement/Recipe//PfRecipeParameters/delete/' + pid,
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'POST'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//新增
|
|
|
|
|
export function addData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeVersion/latestVersion',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'get',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//外层新增
|
|
|
|
|
export function addOutData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeVersion/createPfRecipeVersionAndParameters',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//配方码下拉
|
|
|
|
|
export function getRecipeCode(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRefProductRecipe/getRecipeCodePullDown',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'get',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//内层新增
|
|
|
|
|
export function addInData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeParameters',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//内层修改
|
|
|
|
|
export function updateInData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeParameters',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//下达
|
|
|
|
|
export function releaseData(data) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeIssueLog/issueRecipe',
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//内层删除
|
|
|
|
|
export function delInData(id) {
|
|
|
|
|
return request({
|
2026-01-10 17:37:03 +08:00
|
|
|
url: '/MasterDataManagement/Recipe//PfRecipeParameters/delete/' + id,
|
2026-01-10 16:16:45 +08:00
|
|
|
method: 'post',
|
|
|
|
|
})
|
|
|
|
|
}
|