shopmoverecord.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. // 查询商户门店转移记录列表
  3. export function listShopmoverecord(query) {
  4. return request({
  5. url: '/biz/shopmoverecord/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询商户门店转移记录详细
  11. export function getShopmoverecord(shopMoveSn) {
  12. return request({
  13. url: '/biz/shopmoverecord/' + shopMoveSn,
  14. method: 'get'
  15. })
  16. }
  17. // 新增商户门店转移记录
  18. export function addShopmoverecord(data) {
  19. return request({
  20. url: '/biz/shopmoverecord',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改商户门店转移记录
  26. export function updateShopmoverecord(data) {
  27. return request({
  28. url: '/biz/shopmoverecord',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除商户门店转移记录
  34. export function delShopmoverecord(shopMoveSn) {
  35. return request({
  36. url: '/biz/shopmoverecord/' + shopMoveSn,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出商户门店转移记录
  41. export function exportShopmoverecord(query) {
  42. return request({
  43. url: '/biz/shopmoverecord/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 拉取门店转移记录
  49. export function pullShopMoveRecord(query,_this) {
  50. return request({
  51. url: '/biz/shopmoverecord/pullShopMoveRecord',
  52. method: 'post',
  53. params: query,
  54. timeout: 3600 * 1000,
  55. loading: document.body
  56. }).then(function (response) {
  57. _this.$alert("拉取成功...");
  58. }).catch(function () {
  59. _this.$alert("拉取异常...");
  60. })
  61. }