commodity.js 698 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/utils/request'
  2. //获取产品类型
  3. export function listProductType(data) {
  4. return request({
  5. url: '/system/web/productType/all',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 查询产品列表
  11. export function listProduct(data) {
  12. return request({
  13. url: '/system/web/goods/searchJoinListByPage',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. //产品删除
  19. export function delProduct(data) {
  20. return request({
  21. url: '/system/web/goods/delete',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. //商品上下架
  27. export function productAc(data) {
  28. return request({
  29. url: '/system/web/goods/shelves',
  30. method: 'post',
  31. data: data
  32. })
  33. }