shelfReplenish.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. import { axios } from '@/utils/request'
  2. // 货架列表
  3. export const queryListForSettle = (params) => {
  4. return axios({
  5. url: '/shelf/queryListForSettle',
  6. method: 'get'
  7. })
  8. }
  9. // 生成补货单
  10. export const shelfTaskInsertBill = (params) => {
  11. return axios({
  12. url: '/shelfReplenish/taskInsertBill',
  13. data: params,
  14. method: 'post'
  15. })
  16. }
  17. // 补货单列表 有分页
  18. export const shelfReplenishList = (params) => {
  19. const url = `/shelfReplenish/queryPage/${params.pageNo}/${params.pageSize}`
  20. delete params.pageNo
  21. delete params.pageSize
  22. return axios({
  23. url: url,
  24. data: params,
  25. method: 'post'
  26. })
  27. }
  28. // 补货单 明细列表 不分页
  29. export const shelfReplenishDetailList = (params) => {
  30. return axios({
  31. url: '/shelfReplenish/detail/queryList',
  32. data: params,
  33. method: 'post'
  34. })
  35. }
  36. // 保存补货单和明细
  37. export const saveMainAndDetail = (params) => {
  38. return axios({
  39. url: '/shelfReplenish/saveMainAndDetail',
  40. data: params,
  41. method: 'post'
  42. })
  43. }
  44. // 出库单详情列表
  45. export const queryListForOutStock = (params) => {
  46. return axios({
  47. url: '/shelfReplenish/detail/queryListForOutStock',
  48. data: params,
  49. method: 'post'
  50. })
  51. }
  52. // 查询关联的销售单
  53. export const queryRelationSalesBill = (params) => {
  54. return axios({
  55. url: `/shelfReplenish/queryRelationSalesBill/${params.replenishBillSn}`,
  56. method: 'get'
  57. })
  58. }
  59. // 生成销售单
  60. export const createSalesBill = (params) => {
  61. return axios({
  62. url: `/shelfReplenish/createSalesBill/${params.replenishBillSn}`,
  63. data: params,
  64. method: 'post'
  65. })
  66. }
  67. // 补货单 取消补货单
  68. export const shelfReplenishCancel = (params) => {
  69. return axios({
  70. url: '/shelfReplenish/cancel',
  71. data: params,
  72. method: 'post'
  73. })
  74. }
  75. // 删除补货单
  76. export const shelfReplenishDelete = (params) => {
  77. return axios({
  78. url: `/shelfReplenish/delete/${params.replenishBillSn}`,
  79. method: 'get'
  80. })
  81. }
  82. // 补货单 查询每个状态的数据条数
  83. export const shelfReplenishStateCount = (params) => {
  84. return axios({
  85. url: '/shelfReplenish/queryStateCount',
  86. data: params,
  87. method: 'post'
  88. })
  89. }
  90. // 补货单 确认补货
  91. export const shelfReplenishConfirm = (params) => {
  92. return axios({
  93. url: '/shelfReplenish/confirm',
  94. data: params,
  95. method: 'post'
  96. })
  97. }
  98. // 补货单 检查补货单库存数量
  99. export const shelfReplenishDetailStock = (params) => {
  100. return axios({
  101. url: '/shelfReplenish/detail/checkDetailStockQty',
  102. data: params,
  103. method: 'post'
  104. })
  105. }
  106. // 补货单 详情
  107. export const shelfReplenishDetail = (params) => {
  108. const url = `/shelfReplenish/findBySn/${params.sn}`
  109. delete params.sn
  110. return axios({
  111. url: url,
  112. data: params,
  113. method: 'get'
  114. })
  115. }
  116. // 补货单 入库
  117. export const shelfReplenishPutStock = (params) => {
  118. return axios({
  119. url: '/shelfReplenish/putStock',
  120. data: params,
  121. method: 'post'
  122. })
  123. }
  124. // 补货单 出库
  125. export const shelfReplenishOutStock = (params) => {
  126. return axios({
  127. url: '/shelfReplenish/outStock',
  128. data: params,
  129. method: 'post'
  130. })
  131. }
  132. // 补货单 打印贴签
  133. export const shelfReplenishPrintSign = (params) => {
  134. return axios({
  135. url: '/shelfReplenish/detail/printSign',
  136. data: params,
  137. method: 'post'
  138. })
  139. }
  140. // 定时任务,废弃
  141. export const shelfReplenishTaskInsertBill = (params) => {
  142. return axios({
  143. url: '/shelfReplenish/taskInsertBill',
  144. data: params,
  145. method: 'post'
  146. })
  147. }
  148. // 待补货产品
  149. export const queryWaitReplenish = (params) => {
  150. return axios({
  151. url: '/shelfProduct/queryWaitReplenish',
  152. data: params,
  153. method: 'post'
  154. })
  155. }
  156. // 货架产品
  157. export const queryShelfProduct = (params) => {
  158. return axios({
  159. url: '/shelfProduct/queryShelfProduct',
  160. data: params,
  161. method: 'post'
  162. })
  163. }