plm前端
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.

46 lines
1.9 KiB

  1. import { createAPI } from "@/utils/httpRequest.js";
  2. // 获取列表
  3. export const getRohsList = params => createAPI(`/rohs/list`, 'get', params);
  4. // 获取详情
  5. export const getRohsDetail = (site, referenceNo) => createAPI(`/rohs/info`, 'get', { site, referenceNo });
  6. // 查询物料(用于RoHs材料明细选择)
  7. export const getRohsProjectMaterialList = params => createAPI(`/rohs/projectMaterialList`, 'get', params);
  8. // 新增
  9. export const saveRohs = data => createAPI(`/rohs/save`, 'post', data);
  10. // 修改
  11. export const updateRohs = data => createAPI(`/rohs/update`, 'post', data);
  12. // 仅更新备注说明(不受流程节点和状态限制)
  13. export const updateRohsRemark = data => createAPI(`/rohs/updateRemark`, 'post', data);
  14. // 仅保存材料明细(编辑时即时保存)
  15. export const updateRohsMaterials = data => createAPI(`/rohs/updateMaterials`, 'post', data);
  16. // 下达
  17. export const issueRohs = data => createAPI(`/rohs/issue`, 'post', data);
  18. // 审批提交(同意/驳回)
  19. export const submitRohs = data => createAPI(`/rohs/submit`, 'post', data);
  20. // 查询审批信息
  21. export const getRohsApprovalList = data => createAPI(`/rohs/approvalList`, 'post', data);
  22. // 查询按钮控制信息
  23. export const getRohsButtonCondition = data => createAPI(`/rohs/buttonCondition`, 'post', data);
  24. // 获取节点字段权限(复用工程变更接口)
  25. export const getRohsNodeAuthority = data => createAPI(`/plm/changeManagement/getNodeAuthority`, 'post', data);
  26. // 查询BM角色人员(复用技术参数卡接口)
  27. export const searchBmUser = data => createAPI(`/technicalSpecification/searchBMUser`, 'post', data);
  28. // 查询流程节点列表(复用技术参数卡接口)
  29. export const getNodeList = data => createAPI(`/technicalSpecification/node/list`, 'post', data);
  30. // 导出
  31. export const exportRohs = params => createAPI(`/rohs/export`, 'get', params);