综合办公系统
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

borrow.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * @Author: wrh
  3. * @Date: 2024-04-07 10:45:54
  4. * @LastEditors: wrh
  5. * @LastEditTime: 2024-08-22 09:31:26
  6. */
  7. import request from '@/utils/request'
  8. // 查询cmc借款申请列表
  9. export function listBorrow(query) {
  10. return request({
  11. url: '/oa/borrow/list',
  12. method: 'get',
  13. params: query
  14. })
  15. }
  16. // 查询cmc借款申请详细
  17. export function getBorrow(borrowId) {
  18. return request({
  19. url: '/oa/borrow/' + borrowId,
  20. method: 'get'
  21. })
  22. }
  23. // 新增cmc借款申请
  24. export function addBorrow(data) {
  25. return request({
  26. url: '/oa/borrow',
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. // 修改cmc借款申请
  32. export function updateBorrow(data) {
  33. return request({
  34. url: '/oa/borrow',
  35. method: 'put',
  36. data: data
  37. })
  38. }
  39. // 删除cmc借款申请
  40. export function delBorrow(borrowId) {
  41. return request({
  42. url: '/oa/borrow/' + borrowId,
  43. method: 'delete'
  44. })
  45. }
  46. // 查询借款统计
  47. export function getBorrowStatistic(query) {
  48. return request({
  49. url: '/oa/borrow/statistic',
  50. method: 'get',
  51. params: query
  52. })
  53. }