attachmentProfile.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. // 获取列表
  3. export function listPageV2(data) {
  4. return request({
  5. url: `/websit/goods/p/list?moduleId=${data.moduleId}`,
  6. method: 'post',
  7. data
  8. })
  9. }
  10. //导出
  11. export function pageExport(data, name) {
  12. return postBlob({
  13. url: '/websit/goods/p/list/export',
  14. data,
  15. name
  16. })
  17. }
  18. // 新增
  19. export function add(data) {
  20. return request({
  21. url: `/websit/goods/add`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 编辑
  27. export function edit(data) {
  28. return request({
  29. url: `/websit/goods/edit`,
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 详情
  35. export function getDetail(params) {
  36. return request({
  37. url: `/websit/goods/detail`,
  38. method: 'post',
  39. params
  40. })
  41. }
  42. // 上下架
  43. export function updateStatus(data) {
  44. return request({
  45. url: `/websit/goods/batch/update/status`,
  46. method: 'post',
  47. data
  48. })
  49. }
  50. // 字典数据
  51. export function getTypeList(data) {
  52. return request({
  53. url: `/dictCompany/page`,
  54. method: 'post',
  55. data
  56. })
  57. }
  58. // 字典数据
  59. export function getCategoryList(params) {
  60. return request({
  61. url: `/goods/category/list`,
  62. method: 'get',
  63. params
  64. })
  65. }