invoice.js 603 B

123456789101112131415161718192021222324252627282930313233343536
  1. import request from '@/axios'
  2. /*
  3. * 分页获取发票列表
  4. *
  5. *
  6. */
  7. export function getInvoiceListByPage(data) {
  8. return request({
  9. url: `/api/payment/invoice/${data.currPage}/${data.pageSize}`,
  10. method: 'post',
  11. data: data
  12. })
  13. }
  14. /*
  15. * 通过id获取发票详情
  16. *
  17. *
  18. */
  19. export function getInvoiceDetailById(id) {
  20. return request({
  21. url: `/api/payment/invoice/${id}/`,
  22. method: 'get',
  23. })
  24. }
  25. /*
  26. * 更新发票
  27. *
  28. *
  29. */
  30. export function updateInvoice(data) {
  31. return request({
  32. url: `/api/payment/invoice/update`,
  33. method: 'put',
  34. data: data
  35. })
  36. }