shelfRecall.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. import { axios } from '@/utils/request'
  2. // 调回单列表
  3. export const shelfRecallList = (params) => {
  4. const url = `/shelfRecall/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. headers:{
  12. 'module': encodeURIComponent('列表查询')
  13. }
  14. })
  15. }
  16. // 调回单详情列表
  17. export const shelfRecallDetailList = (params) => {
  18. const url = 'shelfRecall/detail/queryList'
  19. return axios({
  20. url: url,
  21. data: params,
  22. method: 'post',
  23. headers:{
  24. 'module': encodeURIComponent('明细列表')
  25. }
  26. })
  27. }
  28. // 确认退库
  29. export const warehouseCascadeList = (params) => {
  30. const url = '/shelfRecall/confirm'
  31. return axios({
  32. url: url,
  33. data: params,
  34. method: 'post',
  35. headers:{
  36. 'module': encodeURIComponent('退库-确认退库')
  37. }
  38. })
  39. }
  40. // 取消调回单
  41. export const shelfRecallCancel = params => {
  42. return axios({
  43. url: '/shelfRecall/cancel',
  44. data: params,
  45. method: 'post',
  46. headers:{
  47. 'module': encodeURIComponent('取消调回单')
  48. }
  49. })
  50. }
  51. // 删除回调单
  52. export const shelfRecallDelete = params => {
  53. return axios({
  54. url: `/shelfRecall/delete/${params.recallBillSn}`,
  55. method: 'get',
  56. headers:{
  57. 'module': encodeURIComponent('删除')
  58. }
  59. })
  60. }
  61. // 保存 调回单
  62. export const shelfRecallSave = params => {
  63. return axios({
  64. url: '/shelfRecall/insert',
  65. data: params,
  66. method: 'post',
  67. headers:{
  68. 'module': encodeURIComponent('新增调回单-确认调回')
  69. }
  70. })
  71. }
  72. // 查询不同状态的数据条数
  73. export const shelfRecallStateCount = (params) => {
  74. return axios({
  75. url: '/shelfRecall/queryStateCount',
  76. data: params,
  77. method: 'post'
  78. })
  79. }
  80. // 获取调回单详情
  81. export const shelfRecallDetail = params => {
  82. return axios({
  83. url: `/shelfRecall/findBySn/${params.recallSn}`,
  84. method: 'get',
  85. headers:{
  86. 'module': encodeURIComponent('调回单详情')
  87. }
  88. })
  89. }
  90. // 生成销售退货单
  91. export const generateSaleReturnBill = params => {
  92. return axios({
  93. url: `/shelfRecall/generateSaleReturnBill`,
  94. data: params,
  95. method: 'post',
  96. headers:{
  97. 'module': encodeURIComponent('生成销售退货单')
  98. }
  99. })
  100. }
  101. // 调回入库列表
  102. export const recallStockList = (params) => {
  103. const url = `/shelfRecall/queryStockPutPage/${params.pageNo}/${params.pageSize}`
  104. delete params.pageNo
  105. delete params.pageSize
  106. return axios({
  107. url: url,
  108. data: params,
  109. method: 'post',
  110. headers:{
  111. 'module': encodeURIComponent('调回入库列表')
  112. }
  113. })
  114. }
  115. // 调回入库信息
  116. export const recallrStockDetail = params => {
  117. return axios({
  118. url: `/stockPut/findBySn/${params.stockPutSn}`,
  119. method: 'get',
  120. headers:{
  121. 'module': encodeURIComponent('调回入库详情')
  122. }
  123. })
  124. }
  125. // 调回单入库明细列表
  126. export const recallrStockDetailList = params => {
  127. return axios({
  128. url: `/stockPut/detail/query`,
  129. data: params,
  130. method: 'post',
  131. headers:{
  132. 'module': encodeURIComponent('调回入库明细列表')
  133. }
  134. })
  135. }
  136. // 修改仓库仓位
  137. export const updateSelective = (params) => {
  138. return axios({
  139. url: '/stockPut/detail/updateSelective',
  140. data: params,
  141. method: 'post',
  142. headers:{
  143. 'module': encodeURIComponent('修改仓库仓位')
  144. }
  145. })
  146. }
  147. // 确认入库
  148. export const confirmPutStock = (params) => {
  149. return axios({
  150. url: '/shelfRecall/confirmPutStock',
  151. data: params,
  152. method: 'post',
  153. headers:{
  154. 'module': encodeURIComponent('确认入库')
  155. }
  156. })
  157. }
  158. // 待入库数量
  159. export const stockPutCount = params => {
  160. return axios({
  161. url: '/shelfRecall/queryStockPutCount',
  162. data: params,
  163. method: 'post',
  164. headers:{
  165. 'module': encodeURIComponent('待入库数量')
  166. }
  167. })
  168. }