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.

114 lines
3.3 KiB

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