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.

124 lines
3.8 KiB

1 year ago
2 years ago
2 years ago
  1. import { createAPI } from "@/utils/httpRequest.js";
  2. /**
  3. * 测试信息列表查询
  4. * @param data
  5. * @returns {*}
  6. */
  7. export const testInformationSearch = data => createAPI(`/plm/testInformation/testInformationSearch`,'post',data)
  8. export const testInformationSearchAny = data => createAPI(`/plm/testInformation/testInformationSearch/any`,'post',data)
  9. export const testInformationList = data => createAPI(`/plm/testInformation/testInformationList`,'post',data)
  10. /**
  11. * 测试信息新增
  12. * @param data
  13. * @returns {*}
  14. */
  15. export const testInformationSave = data => createAPI(`/plm/testInformation/testInformationSave`,'post',data)
  16. /**
  17. * 测试信息编辑
  18. * @param data
  19. * @returns {*}
  20. */
  21. export const testInformationEdit = data => createAPI(`/plm/testInformation/testInformationEdit`,'post',data)
  22. /**
  23. * 测试信息删除
  24. * @param data
  25. * @returns {*}
  26. */
  27. export const testInformationDelete = data => createAPI(`/plm/testInformation/testInformationDelete`,'post',data)
  28. /**
  29. * 获取产品列表
  30. * @param data
  31. * @returns {*}
  32. */
  33. export const getProjectPartList = data => createAPI(`/plm/testInformation/getProjectPartList/${data.no}/${data.size}`,'post',data)
  34. /**
  35. * 获取测试结果对象
  36. * @param data
  37. * @returns {*}
  38. */
  39. export const testResultSearch = data => createAPI(`/plm/testInformation/testResultSearch`,'post',data)
  40. /**
  41. * 检查测试进度
  42. * @param data
  43. * @returns {*}
  44. */
  45. export const checkTestStatus = data => createAPI(`/plm/testInformation/checkTestStatus`,'post',data)
  46. /**
  47. * 获取测试单附件列表
  48. * @param data
  49. * @returns {*}
  50. */
  51. export const getFileContentList = data => createAPI(`/plm/testInformation/getFileContentList`,'post',data)
  52. export const removeFile = data => createAPI(`/upload/remove`,'post',data)
  53. export const uploadFileList = (url,data) => createAPI(url,'post',data)
  54. /**
  55. * 文件删除
  56. * @param data
  57. * @returns {*}
  58. */
  59. export const deleteTestFile = data => createAPI(`/plm/testInformation/deleteTestFile`,'post',data)
  60. /**
  61. * 保存测试结果
  62. * @param data
  63. * @returns {*}
  64. */
  65. export const saveTestResult = data => createAPI(`/plm/testInformation/saveTestResult`,'post',data)
  66. /**
  67. * 保存送样结果
  68. * @param data
  69. * @returns {*}
  70. */
  71. export const saveSubmitResult = data => createAPI(`/plm/testInformation/saveSubmitResult`,'post',data)
  72. /**
  73. * 保存客户回复
  74. * @param data
  75. * @returns {*}
  76. */
  77. export const saveCustomerResponse = data => createAPI(`/plm/testInformation/saveCustomerResponse`,'post',data)
  78. /**
  79. * 获取项目信息
  80. * @param data
  81. * @returns {*}
  82. */
  83. export const getProjectInformation = data => createAPI(`/plm/testInformation/getProjectInformation`,'post',data)
  84. /**
  85. * 获取客户信息
  86. * @param data
  87. * @returns {*}
  88. */
  89. export const getCustomerInformation = data => createAPI(`/plm/testInformation/getCustomerInformation`,'post',data)
  90. /**
  91. * 关闭模态框删除文件
  92. * @param data
  93. * @returns {*}
  94. */
  95. export const closeModalDeleteFile = data => createAPI(`/plm/testInformation/closeModalDeleteFile`,'post',data)
  96. /**
  97. * 批量文件删除
  98. * @param data
  99. * @returns {*}
  100. */
  101. export const batchDeleteTestFile = data => createAPI(`/plm/testInformation/batchDeleteTestFile`,'post',data)
  102. /**
  103. * 提交
  104. * @param data
  105. * @returns {*}
  106. */
  107. export const submitChange = data => createAPI(`/plm/testInformation/submitChange`,'post',data)
  108. /**
  109. * 下达
  110. * @param data
  111. * @returns {*}
  112. */
  113. export const testInformationEditStatus = data => createAPI(`/plm/testInformation/testInformationEditStatus`,'post',data)
  114. export const testInfoEditEntry = data => createAPI(`/plm/testInformation/testInfoEditEntry`,'post',data)
  115. export const getTestRemarkEntry = data => createAPI(`/plm/testInformation/getTestRemarkEntry`,'post',data)
  116. /**
  117. * 更新测试主信息的材料总金额
  118. * @param data
  119. * @returns {*}
  120. */
  121. export const updateMaterialTotalAmount = data => createAPI(`/plm/testInformation/updateMaterialTotalAmount`,'post',data)