locationZone.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import request from '@/utils/request'
  2. // 查询库区列表
  3. export function listLocationZone(query) {
  4. return request({
  5. url: '/base/locationZone/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询库区详细
  11. export function getLocationZone(zoneId) {
  12. return request({
  13. url: '/base/locationZone/' + zoneId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增库区
  18. export function addLocationZone(data) {
  19. return request({
  20. url: '/base/locationZone',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改库区
  26. export function updateLocationZone(data) {
  27. return request({
  28. url: '/base/locationZone',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除库区
  34. export function delLocationZone(zoneId) {
  35. return request({
  36. url: '/base/locationZone/' + zoneId,
  37. method: 'delete'
  38. })
  39. }
  40. // 查询库区信息字典
  41. export function queryLocationZoneDict() {
  42. return request({
  43. url: '/base/locationZone/queryDict',
  44. method: 'get',
  45. })
  46. }
  47. // 查询部门下拉树结构
  48. export function treeselectLocationZone() {
  49. return request({
  50. url: '/base/locationZone/treeselect',
  51. method: 'get'
  52. })
  53. }