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.

40 lines
1.5 KiB

  1. import { createAPI } from '@/utils/httpRequest.js'
  2. // 获取列表
  3. export const getLabList = params => createAPI(`/lab/list`, 'get', params)
  4. // 获取详情
  5. export const getLabDetail = (site, referenceNo) => createAPI(`/lab/info`, 'get', { site, referenceNo })
  6. // 新增
  7. export const saveLab = data => createAPI(`/lab/save`, 'post', data)
  8. // 修改
  9. export const updateLab = data => createAPI(`/lab/update`, 'post', data)
  10. // 删除(仅草稿)
  11. export const deleteLab = data => createAPI(`/lab/delete`, 'post', data)
  12. // 下达
  13. export const issueLab = data => createAPI(`/lab/issue`, 'post', data)
  14. // 审批提交(同意/驳回)
  15. export const submitLab = data => createAPI(`/lab/submit`, 'post', data)
  16. // 查询审批信息
  17. export const getLabApprovalList = data => createAPI(`/lab/approvalList`, 'post', data)
  18. // 查询按钮控制信息
  19. export const getLabButtonCondition = data => createAPI(`/lab/buttonCondition`, 'post', data)
  20. // 获取节点字段权限(复用工程变更接口)
  21. export const getLabNodeAuthority = data => createAPI(`/plm/changeManagement/getNodeAuthority`, 'post', data)
  22. // 查询流程节点列表(复用技术参数卡接口)
  23. export const getNodeList = data => createAPI(`/technicalSpecification/node/list`, 'post', data)
  24. // 查询Lab属性模板
  25. export const getLabPropertyModelList = params => createAPI(`/properties/propertiesList`, 'get', params)
  26. // 查询模板属性清单
  27. export const getLabPropertyItemList = data => createAPI(`/plm/changeManagement/getItemList`, 'post', data)