allocateType.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { axios } from '@/utils/request'
  2. // 调拨类型管理 列表 分页
  3. export const allocateTypeList = (params) => {
  4. const url = `/allocateType/queryPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post'
  11. })
  12. }
  13. // 调拨类型管理 列表 无分页
  14. export const allocateTypeAllList = params => {
  15. return axios({
  16. url: '/allocateType/queryList',
  17. data: params,
  18. method: 'post'
  19. })
  20. }
  21. // 调拨类型 树列表
  22. export const allocateTypeTreeList = params => {
  23. return axios({
  24. url: '/allocateType/queryTreeList',
  25. data: params,
  26. method: 'post'
  27. })
  28. }
  29. // 根据级别查询
  30. export const queryListByTreeLevel = params => {
  31. return axios({
  32. url: '/allocateType/queryListByTreeLevel',
  33. data: params,
  34. method: 'post'
  35. })
  36. }
  37. // 调拨类型管理 新增/编辑
  38. export const allocateTypeSave = params => {
  39. return axios({
  40. url: '/allocateType/save',
  41. data: params,
  42. method: 'post'
  43. })
  44. }
  45. // 调拨类型管理 删除
  46. export const allocateTypeDel = params => {
  47. return axios({
  48. url: `/allocateType/delete/${params.sn}`,
  49. data: {},
  50. method: 'get'
  51. })
  52. }
  53. // 调拨类型管理 详情
  54. export const allocateTypeDetail = params => {
  55. return axios({
  56. url: `/allocateType/findBySn/${params.sn}`,
  57. data: {},
  58. method: 'get'
  59. })
  60. }