salesReturnDetail.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. import { axios } from '@/utils/request'
  2. // 销售退货明细 删除
  3. export const salesReturnDetailDel = (params) => {
  4. return axios({
  5. url: `/salesReturn/detail/delete`,
  6. data: params,
  7. method: 'post',
  8. headers:{
  9. 'module': encodeURIComponent('明细删除')
  10. }
  11. })
  12. }
  13. // 新增销售退货明细
  14. export const salesReturnDetailInsert = (params) => {
  15. return axios({
  16. url: '/salesReturn/detail/insert',
  17. data: params,
  18. method: 'post',
  19. headers:{
  20. 'module': encodeURIComponent('添加')
  21. }
  22. })
  23. }
  24. // 修改销售退货明细返库数量
  25. export const updateBackStockQty = (params) => {
  26. return axios({
  27. url: '/salesReturn/detail/updateBackStockQty',
  28. data: params,
  29. method: 'post',
  30. headers:{
  31. 'module': encodeURIComponent('修改返库数量')
  32. }
  33. })
  34. }
  35. // 分页查询销售退货明细
  36. export const salesReturnDetailList = (params) => {
  37. const url = `/salesReturn/detail/queryPage/${params.pageNo}/${params.pageSize}`
  38. const mid = params.pageSize==999999?'打印':'明细列表查询'
  39. delete params.pageNo
  40. delete params.pageSize
  41. return axios({
  42. url: url,
  43. data: params,
  44. method: 'post',
  45. headers:{
  46. 'module': encodeURIComponent(mid)
  47. }
  48. })
  49. }
  50. // 修改销售退货明细数量
  51. export const salesReturnDetailUpdateQty = (params) => {
  52. return axios({
  53. url: '/salesReturn/detail/updateQty',
  54. data: params,
  55. method: 'post',
  56. headers:{
  57. 'module': encodeURIComponent('修改退货数量')
  58. }
  59. })
  60. }
  61. // 修改销售退货明细退货原因
  62. export const salesReturnDetailUpdateReason = (params) => {
  63. return axios({
  64. url: '/salesReturn/detail/updateReason',
  65. data: params,
  66. method: 'post',
  67. headers:{
  68. 'module': encodeURIComponent(params.returnReason ? '修改退货原因' : '修改备注')
  69. }
  70. })
  71. }
  72. // 批量修改销售退货明细退货原因
  73. export const salesReturnDetailSetReason = (params) => {
  74. return axios({
  75. url: '/salesReturn/detail/setReturnReason',
  76. data: params,
  77. method: 'post',
  78. headers:{
  79. 'module': encodeURIComponent('批量设置退货原因')
  80. }
  81. })
  82. }
  83. // 整单修改退货原因
  84. export const salesReturnUpdateAllReason = (params) => {
  85. return axios({
  86. url: '/salesReturn/detail/updateAllReason',
  87. data: params,
  88. method: 'post',
  89. headers:{
  90. 'module': encodeURIComponent('整单设置退货原因')
  91. }
  92. })
  93. }
  94. // 生成新的销退单
  95. export const salesReturnAgainCreate = (params) => {
  96. return axios({
  97. url: '/salesReturn/againCreate',
  98. data: params,
  99. method: 'post',
  100. headers:{
  101. 'module': encodeURIComponent('生成新销退单')
  102. }
  103. })
  104. }
  105. // 修改销售退货明细实收数量
  106. export const salesReturnDetailUpdateReceiveQty = (params) => {
  107. return axios({
  108. url: '/salesReturn/detail/updateReceiveQty',
  109. data: params,
  110. method: 'post',
  111. headers:{
  112. 'module': encodeURIComponent('修改实收数量')
  113. }
  114. })
  115. }
  116. // 批量修改销售退货明细良品数量
  117. export const updateBatchGoodQty = (params) => {
  118. return axios({
  119. url: '/salesReturn/detail/updateBatchGoodQty',
  120. data: params,
  121. method: 'post',
  122. headers:{
  123. 'module': encodeURIComponent('批量修改良品数量')
  124. }
  125. })
  126. }
  127. // 批量修改销售退货明细返库数量
  128. export const updateBatchBackStockQty = (params) => {
  129. return axios({
  130. url: '/salesReturn/detail/updateBatchBackStockQty',
  131. data: params,
  132. method: 'post',
  133. headers:{
  134. 'module': encodeURIComponent('批量修改返库数量')
  135. }
  136. })
  137. }
  138. // 收货 批量实收
  139. export const salesReturnDetailReceiveBatch = (params) => {
  140. return axios({
  141. url: '/salesReturn/detail/receiveBatch',
  142. data: params,
  143. method: 'post',
  144. headers:{
  145. 'module': encodeURIComponent('批量实收')
  146. }
  147. })
  148. }
  149. // 客服确认单行保存
  150. export const updateByCustomerService = (params) => {
  151. return axios({
  152. url: '/salesReturn/detail/updateByCustomerService',
  153. data: params,
  154. method: 'post',
  155. headers:{
  156. 'module': encodeURIComponent('编辑')
  157. }
  158. })
  159. }
  160. // 客服设置退货单价
  161. export const setReturnPrice = (params) => {
  162. return axios({
  163. url: '/salesReturn/detail/setReturnPrice',
  164. data: params,
  165. method: 'post',
  166. headers:{
  167. 'module': encodeURIComponent('设置退货单价')
  168. }
  169. })
  170. }
  171. // 客服删除销售退货明细
  172. export const deleteByCustomerService = (params) => {
  173. return axios({
  174. url: `/salesReturn/detail/deleteByCustomerService`,
  175. data: params,
  176. method: 'post',
  177. headers:{
  178. 'module': encodeURIComponent('删除')
  179. }
  180. })
  181. }
  182. // 收货删除销售退货明细
  183. export const deleteByReceiver = (params) => {
  184. return axios({
  185. url: `/salesReturn/detail/deleteByReceiver`,
  186. data: params,
  187. method: 'post',
  188. headers:{
  189. 'module': encodeURIComponent('删除')
  190. }
  191. })
  192. }
  193. // 新增销售退货明细(收货添加)
  194. export const insertByReceive = (params) => {
  195. return axios({
  196. url: '/salesReturn/detail/insertByReceive',
  197. data: params,
  198. method: 'post',
  199. headers:{
  200. 'module': encodeURIComponent('新增产品(收货添加)')
  201. }
  202. })
  203. }
  204. // 新增销售退货明细(客服确认添加)
  205. export const insertByCustomerService = (params) => {
  206. return axios({
  207. url: '/salesReturn/detail/insertByCustomerService',
  208. data: params,
  209. method: 'post',
  210. headers:{
  211. 'module': encodeURIComponent('新增产品(客服确认添加)')
  212. }
  213. })
  214. }