index.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import request from '@/config/axios'
  2. // 获取发票抬头分页
  3. export const getInvoiceTitlePage = async (params) => {
  4. return await request.get({
  5. url: '/app-api/member/invoice-title/page',
  6. params
  7. })
  8. }
  9. // 获取发票抬头详情
  10. export const getInvoiceTitleDetails = async (params) => {
  11. return await request.get({
  12. url: '/app-api/member/invoice-title/get',
  13. params
  14. })
  15. }
  16. // 删除发票抬头
  17. export const deleteInvoiceTitle = async (id) => {
  18. return await request.delete({
  19. url: `/app-api/member/invoice-title/delete?id=${id}`
  20. })
  21. }
  22. // 更新发票抬头
  23. export const updateInvoiceTitle = async (data) => {
  24. return await request.put({
  25. url: '/app-api/member/invoice-title/update',
  26. data
  27. })
  28. }
  29. // 创建发票抬头
  30. export const createInvoiceTitle = async (data) => {
  31. return await request.post({
  32. url: '/app-api/member/invoice-title/create',
  33. data
  34. })
  35. }
  36. // 创建发票
  37. export const createInvoice = async (data) => {
  38. return await request.post({
  39. url: '/app-api/member/invoice-list/create',
  40. data
  41. })
  42. }
  43. // 查询可开发票订单列表
  44. export const getInvoiceListPage = async (params) => {
  45. return await request.get({
  46. url: '/app-api/member/invoice-list/page',
  47. params
  48. })
  49. }