Newer
Older
KaiFengPC / src / api / preassess / noopReview.js
@鲁yixuan 鲁yixuan on 29 Aug 1 KB updata
  1. import request from '@/utils/request';
  2.  
  3. // 分页搜索智能审查
  4. export const getIntelligentApprovePage = params => {
  5. return request({
  6. url: '/sponge/intelligentApprove/page',
  7. method: 'get',
  8. params,
  9. });
  10. };
  11.  
  12. // 确定智能审查数据和合理性分析数据
  13. export const updateIntelligentApprove = data => {
  14. return request({
  15. url: '/sponge/intelligentApprove/updateIntelligentApprove',
  16. method: 'post',
  17. data,
  18. });
  19. };
  20.  
  21. // 计算
  22. export const calculate = data => {
  23. return request({
  24. url: '/sponge/intelligentApprove/calculate',
  25. method: 'post',
  26. data,
  27. });
  28. };
  29.  
  30. // 提交
  31.  
  32. // 确定智能审查数据和合理性分析数据
  33. export const intelligentApproveAdd = data => {
  34. return request({
  35. url: '/sponge/intelligentApprove/add',
  36. method: 'post',
  37. data,
  38. });
  39. };
  40.  
  41. // 删除智能审查
  42. export const intelligentApproveDel = ids => {
  43. return request({
  44. url: `/sponge/intelligentApprove/${ids}`,
  45. method: 'delete',
  46. });
  47. };
  48.  
  49. // 详细搜索智能审查
  50. export const intelligentApproveDetails = id => {
  51. return request({
  52. url: `/sponge/intelligentApprove/${id}`,
  53. method: 'get',
  54. });
  55. };
  56.  
  57. // 详细搜索智能审查
  58. export const getDicts = type => {
  59. return request({
  60. url: `/system/dict/data/type/${type}`,
  61. method: 'get',
  62. });
  63. };
  64.  
  65. // 上传CAD文件
  66. export const uploadCadFile = data => {
  67. return request({
  68. url: '/sponge/intelligentApprove/uploadCadFile',
  69. method: 'post',
  70. data,
  71. });
  72. };