invouce.js 450 B

1234567891011121314151617181920212223242526
  1. import {
  2. request
  3. } from '@/request/request.js';
  4. /*
  5. * 分页获取发票列表
  6. *
  7. *
  8. */
  9. export function getInvoiceListByPage(data) {
  10. return request({
  11. url: `/api/payment/invoice/${data.currPage}/${data.pageSize}`,
  12. method: 'post',
  13. data: data
  14. })
  15. }
  16. /*
  17. * 通过id获取发票详情
  18. *
  19. *
  20. */
  21. export function getInvoiceDetailById(id) {
  22. return request({
  23. url: `/api/payment/invoice/${id}/`,
  24. method: 'get',
  25. })
  26. }