1
0

invemng.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from '@/utils/request'
  2. // 查询库存管理,wms入库回传时,增加库存数列表
  3. export function listInvemng(query) {
  4. return request({
  5. url: '/biz/invemng/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询库存管理,wms入库回传时,增加库存数详细
  11. export function getInvemng(inveSn) {
  12. return request({
  13. url: '/biz/invemng/' + inveSn,
  14. method: 'get'
  15. })
  16. }
  17. // 新增库存管理,wms入库回传时,增加库存数
  18. export function addInvemng(data) {
  19. return request({
  20. url: '/biz/invemng',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改库存管理,wms入库回传时,增加库存数
  26. export function updateInvemng(data) {
  27. return request({
  28. url: '/biz/invemng',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除库存管理,wms入库回传时,增加库存数
  34. export function delInvemng(inveSn) {
  35. return request({
  36. url: '/biz/invemng/' + inveSn,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出库存管理,wms入库回传时,增加库存数
  41. export function exportInvemng(query) {
  42. return request({
  43. url: '/biz/invemng/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 导出库存管理,wms入库回传时,增加库存数
  49. export function pullInvemng(query,loading,_this) {
  50. return request({
  51. url: '/biz/invemng/pullInveMng',
  52. method: 'post',
  53. params: query,
  54. timeout: 3600 * 1000
  55. }).then(function (response) {
  56. loading.close();
  57. _this.$alert("拉取成功...");
  58. }).catch(function () {
  59. loading.close();
  60. _this.$alert("拉取异常...");
  61. })
  62. }