移动端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

81 righe
1.6 KiB

  1. import request from '@/utils/request'
  2. // 查询资金审批申请列表
  3. export function listCashExpense(query) {
  4. return request({
  5. url: '/yinnong/cashExpense/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 统计查询资金审批申请列表
  11. export function statisticCashExpense(query) {
  12. return request({
  13. url: '/yinnong/cashExpense/statistic',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 导出资金审批申请
  19. export function exportCashExpense(query) {
  20. return request({
  21. url: '/yinnong/cashExpense/export',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 查询资金审批申请详细
  27. export function getCashExpense(id) {
  28. return request({
  29. url: '/yinnong/cashExpense/get/' + id,
  30. method: 'get',
  31. params: arguments[1] || {}
  32. })
  33. }
  34. // 新增资金审批申请
  35. export function addCashExpense(data) {
  36. return request({
  37. url: '/yinnong/cashExpense/add',
  38. method: 'post',
  39. data: data
  40. })
  41. }
  42. // 修改资金审批申请
  43. export function updateCashExpense(data) {
  44. return request({
  45. url: '/yinnong/cashExpense/edit',
  46. method: 'post',
  47. data: data
  48. })
  49. }
  50. // 删除资金审批申请
  51. export function delCashExpense(id) {
  52. return request({
  53. url: '/yinnong/cashExpense/remove/' + id,
  54. method: 'get'
  55. })
  56. }
  57. // 资金申请审批
  58. export function applyCashExpense(id) {
  59. return request({
  60. url: '/yinnong/cashExpense/submitApply/' + id,
  61. method: 'get'
  62. });
  63. }
  64. // 撤销资金申请审批
  65. export function revokeCashExpense(id) {
  66. return request({
  67. url: '/yinnong/cashExpense/revokeApply/' + id,
  68. method: 'get'
  69. });
  70. }