shelf.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import { axios } from '@/utils/request'
  2. // 货架 列表 分页
  3. export const shelfList = (params) => {
  4. const url = `/shelf/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 shelfDetail = (params) => {
  15. return axios({
  16. url: `/shelf/queryBySn/${params.sn}`,
  17. data: params,
  18. method: 'post'
  19. })
  20. }
  21. // 货架 保存
  22. export const shelfSave = (params) => {
  23. return axios({
  24. url: `/shelf/save`,
  25. data: params,
  26. method: 'post'
  27. })
  28. }
  29. // 货架 货位产品 列表 不分页
  30. export const shelfProductList = (params) => {
  31. return axios({
  32. url: `/shelf/placeProduct/queryList`,
  33. data: params,
  34. method: 'post'
  35. })
  36. }
  37. // 货架 货位产品 详情
  38. export const shelfProductDetail = (params) => {
  39. return axios({
  40. url: `/shelf/placeProduct/queryByPlaceSn/${params.shelfPlaceSn}`,
  41. data: params,
  42. method: 'get'
  43. })
  44. }
  45. // 货架 货位产品 保存
  46. export const shelfProductSave = (params) => {
  47. return axios({
  48. url: `/shelf/placeProduct/save`,
  49. data: params,
  50. method: 'post'
  51. })
  52. }
  53. // 货架 货位产品 下载模板
  54. export const shelfProductDownload = params => {
  55. return axios.request({
  56. url: `/shelf/placeProduct/downloadExcel/${params.shelfSn}`,
  57. method: 'post',
  58. responseType: 'blob'
  59. })
  60. }
  61. // 货架 货位产品 解析导入的文件
  62. export const shelfProductParseProducts = params => {
  63. return axios({
  64. url: '/shelf/placeProduct/readExcel',
  65. data: params,
  66. method: 'post'
  67. })
  68. }
  69. // 货架 货位产品 批量插入
  70. export const shelfProductBatchInsert = params => {
  71. return axios({
  72. url: '/shelf/placeProduct/saveBatchExcel',
  73. data: params,
  74. method: 'post'
  75. })
  76. }
  77. // 货架 箭冠产品 分页
  78. export const shelfDealerProductList = (params) => {
  79. const url = `/product/queryPageForXPRH/${params.pageNo}/${params.pageSize}`
  80. delete params.pageNo
  81. delete params.pageSize
  82. return axios({
  83. url: url,
  84. data: params,
  85. method: 'post'
  86. })
  87. }
  88. // 货架监控 列表 不分页
  89. export const shelfControlList = (params) => {
  90. return axios({
  91. url: `/shelf/control/queryList`,
  92. data: params,
  93. method: 'post'
  94. })
  95. }
  96. // 货架监控 出入库明细 分页
  97. export const shelfPutOutDetailList = (params) => {
  98. const url = `/shelf/placeProduct/queryStockPutOutDetailPage/${params.pageNo}/${params.pageSize}`
  99. delete params.pageNo
  100. delete params.pageSize
  101. return axios({
  102. url: url,
  103. data: params,
  104. method: 'post'
  105. })
  106. }