bill_api.js 916B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. export default prefix => ({
  2. fetchBillList: {
  3. url: `${prefix}/bills`,
  4. method: 'get',
  5. action: 'admin.bills'
  6. },
  7. // 保存草稿 或者 发布账单
  8. billUploadExcelAdd: {
  9. url: `${prefix}/bill/uploadExcel/add`,
  10. method: 'post',
  11. action: 'admin.bill.add'
  12. },
  13. // 根据 id 修改缴费项状态
  14. updateBillStatus: {
  15. url: `${prefix}/bill/updateBillStatus/:id`,
  16. method: 'put',
  17. action: 'admin.bill.status'
  18. },
  19. // 根据 id集合 删除缴费项
  20. deleteBillBeach: {
  21. url: `${prefix}/bill/deleteBillBeach`,
  22. method: 'post',
  23. action: 'admin.bill.delete'
  24. },
  25. // 下载excel模板
  26. billDownloadExcel: {
  27. url: `${prefix}/bill/downloadExcel`,
  28. method: 'get',
  29. action: 'admin.bill.downloadExcel'
  30. },
  31. // 根据收费项ID查询,收费项详情
  32. getBillInfoBydId: {
  33. url: `${prefix}/bill/:id`,
  34. method: 'get',
  35. action: 'admin.bill.get'
  36. }
  37. })