commoditylist.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import request from '@/utils/request'
  2. // 分页查询
  3. export function page(data) {
  4. return request({
  5. url: '/goods/merc-mini/goodsMercModel/page',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. //清单关联商品列表
  11. export function refGoods(data) {
  12. return request({
  13. url: '/goods/merc-mini/goodsMercModel/refGoods',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 新增商品清单
  19. export function save(data) {
  20. return request({
  21. url: '/goods/merc-mini/goodsMercModel/save',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 商品清单应用设备
  27. export function saveGoodsDevice(data) {
  28. return request({
  29. url: '/goods/merc-mini/goodsMercModel/saveGoodsDevice',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 修改商品清单
  35. export function update(data) {
  36. return request({
  37. url: '/goods/merc-mini/goodsMercModel/update',
  38. method: 'post',
  39. data: data
  40. })
  41. }
  42. // 保存清单商品(每次传全量数据)
  43. export function saveListingGoods(data) {
  44. return request({
  45. url: '/goods/merc-mini/goodsMercModel/saveListingGoods',
  46. method: 'post',
  47. data: data
  48. })
  49. }
  50. //获取区域下设备列表
  51. export function regionDevices(data) {
  52. return request({
  53. url: '/merc/mini/mercLine/regionDevices',
  54. method: 'post',
  55. data: data
  56. })
  57. }
  58. //获取商户线路列表
  59. export function mercLineDevices(data) {
  60. return request({
  61. url: '/goods/merc-mini/goodsMercModel/mercLineDevices',
  62. method: 'post',
  63. data: data
  64. })
  65. }
  66. //商品清单应用到设备
  67. export function goodsListApply(data) {
  68. return request({
  69. url: '/goods/goodsDevice/save',
  70. method: 'post',
  71. data: data
  72. })
  73. }
  74. //删除清单
  75. export function del(data) {
  76. return request({
  77. url: '/goods/goods-merc-model/del ',
  78. method: 'post',
  79. data: data
  80. })
  81. }