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.
219 lines
5.5 KiB
219 lines
5.5 KiB
import { createAPI } from "@/utils/httpRequest.js";
|
|
|
|
/**
|
|
* recipe列表查询
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeManagementSearch = data => createAPI(`/plm/recipeManagement/recipeManagementSearch`,'post',data)
|
|
export const recipeManagementSearchAny = data => createAPI(`/plm/recipeManagement/recipeManagementSearch/any`,'post',data)
|
|
|
|
/**
|
|
* recipe新增
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeManagementSave = data => createAPI(`/plm/recipeManagement/recipeManagementSave`,'post',data)
|
|
|
|
/**
|
|
* recipe编辑
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeManagementEdit = data => createAPI(`/plm/recipeManagement/recipeManagementEdit`,'post',data)
|
|
|
|
/**
|
|
* recipe删除
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeManagementDelete = data => createAPI(`/plm/recipeManagement/recipeManagementDelete`,'post',data)
|
|
|
|
/**
|
|
* 查询物料清单
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryPartList = data => createAPI(`/plm/recipeManagement/queryPartList`,'post',data)
|
|
|
|
/**
|
|
* 查recipe明细
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryRecipeDetail = data => createAPI(`/plm/recipeManagement/queryRecipeDetail`,'post',data)
|
|
|
|
/**
|
|
* 查recipe明细
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryRecipeComponent = data => createAPI(`/plm/recipeManagement/queryRecipeComponent`,'post',data)
|
|
|
|
/**
|
|
* recipe明细新增
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeDetailSave = data => createAPI(`/plm/recipeManagement/recipeDetailSave`,'post',data)
|
|
|
|
/**
|
|
* recipe明细编辑
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeDetailUpdate = data => createAPI(`/plm/recipeManagement/recipeDetailUpdate`,'post',data)
|
|
|
|
/**
|
|
* recipe明细删除
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const recipeDetailDelete = data => createAPI(`/plm/recipeManagement/recipeDetailDelete`,'post',data)
|
|
|
|
/**
|
|
* 修改明细状态
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const updateAlternativeStatus = data => createAPI(`/plm/recipeManagement/updateAlternativeStatus`,'post',data)
|
|
|
|
/**
|
|
* 新增recipe主信息
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const saveRecipeHeader = data => createAPI(`/plm/recipeManagement/saveRecipeHeader`,'post',data)
|
|
|
|
/**
|
|
* 查询recipe主信息
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryRecipeHeader = data => createAPI(`/plm/recipeManagement/queryRecipeHeader`,'post',data)
|
|
|
|
/**
|
|
* 新增recipe子明细
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const saveRecipeComponent = data => createAPI(`/plm/recipeManagement/saveRecipeComponent`,'post',data)
|
|
|
|
/**
|
|
* 修改recipe子明细
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const updateRecipeComponent = data => createAPI(`/plm/recipeManagement/updateRecipeComponent`,'post',data)
|
|
|
|
/**
|
|
* 删除recipe子明细
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const deleteRecipeComponent = data => createAPI(`/plm/recipeManagement/deleteRecipeComponent`,'post',data)
|
|
|
|
/**
|
|
* 根据物料编码查询工序
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryOperationList = data => createAPI(`/plm/recipeManagement/queryOperationList`,'post',data)
|
|
|
|
/**
|
|
* 获取物料的recipe版本号
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const getRecipeEngChgLevel = data => createAPI(`/plm/recipeManagement/getRecipeEngChgLevel`,'post',data)
|
|
|
|
/**
|
|
* 获取子料的序号
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const getComponentLineSequence = data => createAPI(`/plm/recipeManagement/getComponentLineSequence`,'post',data)
|
|
|
|
/**
|
|
* 复制recipe
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const copyRecipe = data => createAPI(`/plm/recipeManagement/copyRecipe`,'post',data)
|
|
|
|
/**
|
|
* 复制alternative
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const copyAlternative = data => createAPI(`/plm/recipeManagement/copyAlternative`,'post',data)
|
|
|
|
/**
|
|
* 转正式Recipe
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const toBecomeOfficialRecipe = data => createAPI(`/plm/recipeManagement/toBecomeOfficialRecipe`,'post',data)
|
|
|
|
/**
|
|
* 新编辑副产品成本分配
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const updateManufStructCostDistrib = data => createAPI(`/plm/recipeManagement/updateManufStructCostDistrib`,'post',data)
|
|
|
|
/**
|
|
* 刷新子物料
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryRecipeComponentTable = data => createAPI(`/plm/recipeManagement/queryRecipeComponentTable`,'post',data)
|
|
|
|
/**
|
|
* 刷新副产品
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryRecipeByProductTable = data => createAPI(`/plm/recipeManagement/queryRecipeByProductTable`,'post',data)
|
|
|
|
/**
|
|
* 刷新项目成本分配
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryManufStructCostDistribtionTable = data => createAPI(`/plm/recipeManagement/queryManufStructCostDistribtionTable`,'post',data)
|
|
|
|
/**
|
|
* 刷新多级别结构
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryMultiLevelStructureTable = data => createAPI(`/plm/recipeManagement/queryMultiLevelStructureTable`,'post',data)
|
|
|
|
/**
|
|
* 查出可创建Recipe的物料
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryPartListRecipe = data => createAPI(`/plm/recipeManagement/queryPartListRecipe`,'post',data)
|
|
|
|
/**
|
|
* 查出所有类型的物料
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const queryPartListAll = data => createAPI(`/plm/recipeManagement/queryPartListAll`,'post',data)
|
|
|
|
/**
|
|
* 查子物料Recipe
|
|
*/
|
|
export const queryComponentPartRecipeList = data => createAPI(`/plm/recipeManagement/queryComponentPartRecipeList`,'post',data)
|
|
|
|
/**
|
|
* 反向同步替代下的数据 IFS->PLM
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const syncRecipeInfoIfsToPlm = data => createAPI(`/plm/recipeManagement/syncRecipeInfoIfsToPlm`,'post',data)
|
|
|
|
|