storePayment.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 查询支付明细列表
  3. export function listStorePayment(query) {
  4. return request({
  5. url: '/his/storePayment/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询支付明细详细
  11. export function getStorePayment(paymentId) {
  12. return request({
  13. url: '/his/storePayment/' + paymentId,
  14. method: 'get'
  15. })
  16. }
  17. export function getStatus(paymentId) {
  18. return request({
  19. url: '/his/storePayment/getStatus/' + paymentId,
  20. method: 'get'
  21. })
  22. }
  23. export function refund(paymentId) {
  24. return request({
  25. url: '/his/storePayment/refund/' + paymentId,
  26. method: 'get'
  27. })
  28. }
  29. // 新增支付明细
  30. export function addStorePayment(data) {
  31. return request({
  32. url: '/his/storePayment',
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37. // 修改支付明细
  38. export function updateStorePayment(data) {
  39. return request({
  40. url: '/his/storePayment',
  41. method: 'put',
  42. data: data
  43. })
  44. }
  45. // 删除支付明细
  46. export function delStorePayment(paymentId) {
  47. return request({
  48. url: '/his/storePayment/' + paymentId,
  49. method: 'delete'
  50. })
  51. }
  52. // 导出支付明细
  53. export function exportStorePayment(query) {
  54. return request({
  55. url: '/his/storePayment/export',
  56. method: 'get',
  57. params: query
  58. })
  59. }