mallshopmng.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from '@/utils/request'
  2. // 查询商户店面库存,包括跨境,一般贸易列表
  3. export function listMallshopmng(query) {
  4. return request({
  5. url: '/biz/mallshopmng/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询商户店面库存,包括跨境,一般贸易详细
  11. export function getMallshopmng(shopInveSn) {
  12. return request({
  13. url: '/biz/mallshopmng/' + shopInveSn,
  14. method: 'get'
  15. })
  16. }
  17. // 新增商户店面库存,包括跨境,一般贸易
  18. export function addMallshopmng(data) {
  19. return request({
  20. url: '/biz/mallshopmng',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改商户店面库存,包括跨境,一般贸易
  26. export function updateMallshopmng(data) {
  27. return request({
  28. url: '/biz/mallshopmng',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除商户店面库存,包括跨境,一般贸易
  34. export function delMallshopmng(shopInveSn) {
  35. return request({
  36. url: '/biz/mallshopmng/' + shopInveSn,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出商户店面库存,包括跨境,一般贸易
  41. export function exportMallshopmng(query) {
  42. return request({
  43. url: '/biz/mallshopmng/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. pullKmallStoreInvemng
  49. // 拉取kmall的所有商品数据
  50. export function pullKmallStoreInvemng(query,loading,_this) {
  51. return request({
  52. url: '/biz/mallshopmng/pullKmallStoreInveMng',
  53. method: 'POST',
  54. params: query,
  55. timeout: 3600 * 1000
  56. }).then(function (response) {
  57. loading.close();
  58. _this.$alert("拉取成功...");
  59. }).catch(function () {
  60. loading.close();
  61. _this.$alert("拉取异常...");
  62. })
  63. }