index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/router/axios'
  2. // warehouse列表
  3. export function warehouseList(data = {}) {
  4. return request({
  5. url: '/api/victoriatourist/warehouse/page',
  6. method: 'post',
  7. data: data,
  8. })
  9. }
  10. // warehouse下拉
  11. export function warehouseSelectList(data = {}) {
  12. return request({
  13. url: '/api/victoriatourist/warehouse/select',
  14. method: 'post',
  15. data: data,
  16. })
  17. }
  18. // 添加warehouse
  19. export function warehouseAdd(data = {}) {
  20. return request({
  21. url: '/api/victoriatourist/warehouse/add',
  22. method: 'post',
  23. data: data,
  24. })
  25. }
  26. // warehouse详情
  27. export function warehouseDetails(data = {}) {
  28. return request({
  29. url: '/api/victoriatourist/warehouse/details',
  30. method: 'post',
  31. data: data,
  32. })
  33. }
  34. // 编辑warehouse
  35. export function warehouseEdit(data = {}) {
  36. return request({
  37. url: '/api/victoriatourist/warehouse/edit',
  38. method: 'post',
  39. data: data,
  40. })
  41. }
  42. // 删除warehouse
  43. export function warehouseDel(data = {}) {
  44. return request({
  45. url: '/api/victoriatourist/warehouse/delete',
  46. method: 'post',
  47. data: data,
  48. })
  49. }