card.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import request from '/@/utils/micro_request.js'
  2. const basePath = import.meta.env.VITE_SCI
  3. // 横向项目管理
  4. export function useFundCardApi() {
  5. return {
  6. // 列表
  7. getList(query?: object) {
  8. return request.postRequest(basePath, 'SciFundCard', 'GetList', query)
  9. },
  10. // 详情
  11. getDetails(query?: object) {
  12. return request.postRequest(basePath, 'SciFundCard', 'GetEntityById', query)
  13. },
  14. // 创建
  15. create(query?: object) {
  16. return request.postRequest(basePath, 'SciFundCard', 'Create', query)
  17. },
  18. // 删除
  19. delete(query?: object) {
  20. return request.postRequest(basePath, 'SciFundCard', 'DeleteByIds', query)
  21. },
  22. // 修改
  23. update(query?: object) {
  24. return request.postRequest(basePath, 'SciFundCard', 'UpdateById', query)
  25. },
  26. // 经费卡明细
  27. getDetailsList(query?: object) {
  28. return request.postRequest(basePath, 'SciFundCard', 'GetDetailList', query)
  29. },
  30. // 经费卡总明细
  31. getAllFundsStatistics(query?: object) {
  32. return request.postRequest(basePath, 'SciFundCard', 'GetAllFundsStatistics', query)
  33. },
  34. // 入账信息
  35. getSubjAmount(query?: object) {
  36. return request.postRequest(basePath, 'SciFundCard', 'GetSubjAmount', query)
  37. }
  38. }
  39. }