costType.js 759 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { axios } from '@/utils/request'
  2. // 费用类型 列表
  3. export const costTypeAllQuery = (params) => {
  4. return axios({
  5. url: `/costType/query`,
  6. data: {},
  7. method: 'post',
  8. headers: {
  9. 'module': encodeURIComponent('费用类型列表查询')
  10. }
  11. })
  12. }
  13. // 新增/编辑 费用类型
  14. export const costTypeSave = params => {
  15. return axios({
  16. url: '/costType/save',
  17. data: params,
  18. method: 'post',
  19. headers: {
  20. 'module': encodeURIComponent(!params.id ? '新增' : '编辑')
  21. }
  22. })
  23. }
  24. // 删除 费用类型
  25. export const costTypeDel = params => {
  26. return axios({
  27. url: `/costType/delete/${params.id}`,
  28. data: {},
  29. method: 'get',
  30. headers: {
  31. 'module': encodeURIComponent('删除')
  32. }
  33. })
  34. }