insurance.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import http from '@/http/api.js'
  2. // 列表
  3. export function getList(data) {
  4. return http.request({
  5. url: '/gubersail-shop-app/tireinsuranceregister/list',
  6. method: 'GET',
  7. data
  8. })
  9. }
  10. // 详情
  11. export function getDetail(data) {
  12. return http.request({
  13. url: '/gubersail-shop-app/tireinsuranceregister/detail',
  14. method: 'GET',
  15. data
  16. })
  17. }
  18. // 保存
  19. export function submit(data) {
  20. return http.request({
  21. url: '/gubersail-shop-app/tireinsuranceregister/submit',
  22. method: 'POST',
  23. data
  24. })
  25. }
  26. // 提交审批
  27. export function submitApproval(data) {
  28. return http.request({
  29. url: '/gubersail-shop-app/tireinsuranceregister/submitTireInsurance',
  30. method: 'POST',
  31. data
  32. })
  33. }
  34. // 撤销审批
  35. export function revokeApproval(data) {
  36. return http.request({
  37. url: '/gubersail-shop-app/tireinsuranceregister/revokeTireInsurance',
  38. method: 'GET',
  39. data
  40. })
  41. }
  42. // 附件删除
  43. export function fileRemove(ids) {
  44. return http.request({
  45. url: '/gubersail-shop-app/tireinsuranceregister/removeAttachment',
  46. method: 'POST',
  47. params:{
  48. ids
  49. }
  50. })
  51. }
  52. // 列表
  53. export function itemList(data) {
  54. return http.request({
  55. url: '/gubersail-shop-app/tireinsuranceregister/itemList',
  56. method: 'GET',
  57. data
  58. })
  59. }