reimbursement.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import request from '/@/utils/micro_request.js'
  2. const basePath = import.meta.env.VITE_SCI
  3. // 经费报销
  4. export function useRebateApi() {
  5. return {
  6. // 列表
  7. getList(query?: object) {
  8. return request.postRequest(basePath, 'SciFundExpense', 'WXGetList', query)
  9. },
  10. // 更新
  11. update(query?: object) {
  12. return request.postRequest(basePath, 'SciFundExpense', 'UpdateById', query)
  13. },
  14. // 创建
  15. create(query?: object) {
  16. return request.postRequest(basePath, 'SciFundExpense', 'Create', query)
  17. },
  18. // 详情
  19. getDetails(query?: object) {
  20. return request.postRequest(basePath, 'SciFundExpense', 'GetEntityById', query)
  21. },
  22. // 根据报销提醒id获取报销详情
  23. getExpenseByNoticeId(query?: object) {
  24. return request.postRequest(basePath, 'SciFundExpense', 'GetExpenseByNoticeId', query)
  25. },
  26. // 删除
  27. del(query?: object) {
  28. return request.postRequest(basePath, 'SciFundExpense', 'DeleteByIds', query)
  29. },
  30. // 审批
  31. approval(query?: object) {
  32. return request.postRequest(basePath, 'SciFundExpense', 'Approve', query)
  33. },
  34. // 获取横向支出列表
  35. getHorizontalExpenseList(query?: object) {
  36. return request.postRequest(basePath, 'SciFundExpense', 'GetHorizontalExpenseList', query)
  37. },
  38. // 删除
  39. export(query?: object) {
  40. return request.postRequest(basePath, 'SciFundExpense', 'Export', query)
  41. },
  42. // 审批
  43. import(query?: object) {
  44. return request.postRequest(basePath, 'SciFundExpense', 'Import', query)
  45. },
  46. // 撤回
  47. withdraw(query?: object) {
  48. return request.postRequest(basePath, 'SciFundExpense', 'QuashApprove', query)
  49. },
  50. // 批量打印
  51. getPDFPrintData(query?: object) {
  52. return request.postRequest(basePath, 'SciFundExpense', 'GetPDFPrintData', query)
  53. },
  54. // 模板打印
  55. getPrintDataById(query?: object) {
  56. return request.postRequest(basePath, 'SciFundExpense', 'GetPrintDataById', query)
  57. },
  58. // 模板打印
  59. exportPrintDataPDF(query?: object) {
  60. return request.postRequest(basePath, 'SciFundExpense', 'ExportPrintDataPDF', query)
  61. }
  62. }
  63. }