bill.js 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import {
  2. request
  3. } from '@/request/request.js';
  4. /*
  5. * 分页获取账单
  6. *
  7. *
  8. */
  9. export function getPaymentListByPage(data) {
  10. return request({
  11. url: `/api/payment/${data.currPage}/${data.pageSize}`,
  12. method: 'post',
  13. data: data
  14. })
  15. }
  16. /*
  17. * 分页获取账单
  18. *
  19. *
  20. */
  21. export function getCommonPaymentListByPage(data) {
  22. return request({
  23. url: `/api/payment/ordinary/${data.currPage}/${data.pageSize}`,
  24. method: 'post',
  25. data: data
  26. })
  27. }
  28. /*
  29. * 通过ID获取合同账单详情
  30. *
  31. *
  32. */
  33. export function getPaymentDetailById(id) {
  34. return request({
  35. url: `/api/payment/${id}`,
  36. method: 'get',
  37. })
  38. }
  39. /*
  40. * 通过id获取常规账单详情
  41. *
  42. *
  43. */
  44. export function getCommonPaymentDetailById(id) {
  45. return request({
  46. url: `/api/payment/ordinary/${id}`,
  47. method: 'get'
  48. })
  49. }
  50. /*
  51. * 更新账单
  52. *
  53. *
  54. */
  55. export function updatePayment(data) {
  56. return request({
  57. url: `/api/payment/ordinary`,
  58. method: 'put',
  59. data: data
  60. })
  61. }