costType.js 516 B

12345678910111213141516171819202122232425262728
  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. })
  9. }
  10. // 新增/编辑 费用类型
  11. export const costTypeSave = params => {
  12. return axios({
  13. url: '/costType/save',
  14. data: params,
  15. method: 'post'
  16. })
  17. }
  18. // 删除 费用类型
  19. export const costTypeDel = params => {
  20. return axios({
  21. url: `/costType/delete/${params.id}`,
  22. data: {},
  23. method: 'get'
  24. })
  25. }