qualificationSummary.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import request from '@/utils/request'
  2. // 查询证书信息列表
  3. export function listQualificationSummary(query) {
  4. return request({
  5. url: '/ledger/certificate/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询证书信息详情
  11. export function getQualificationSummary(id) {
  12. return request({
  13. url: `/ledger/certificate/${id}`,
  14. method: 'get'
  15. })
  16. }
  17. // 新增证书信息
  18. export function addQualificationSummary(data) {
  19. return request({
  20. url: '/ledger/certificate',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改证书信息
  26. export function updateQualificationSummary(data) {
  27. return request({
  28. url: '/ledger/certificate',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除证书信息
  34. export function delQualificationSummary(ids) {
  35. return request({
  36. url: `/ledger/certificate/${ids}`,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出证书信息列表
  41. export function exportQualificationSummary(data) {
  42. return request({
  43. url: '/ledger/certificate/export',
  44. method: 'post',
  45. data: data
  46. })
  47. }
  48. // 导入证书数据(支持动态复审时间列)
  49. export function importData(data) {
  50. return request({
  51. url: '/ledger/certificate/importData',
  52. method: 'post',
  53. data: data,
  54. headers: {
  55. 'Content-Type': 'multipart/form-data'
  56. }
  57. })
  58. }
  59. // 下载导入模板
  60. export function importTemplate() {
  61. return request({
  62. url: '/ledger/certificate/importTemplate',
  63. method: 'post'
  64. })
  65. }