shopProductSubsidy.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import { axios } from '@/utils/request'
  2. // 补贴产品 列表 有分页
  3. export const subsidizedProductList = (params) => {
  4. const url = `/shopProductSubsidy/queryPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post',
  11. headers: {
  12. 'module': encodeURIComponent('列表查询')
  13. }
  14. })
  15. }
  16. // 补贴产品 批量删除
  17. export const subsidizedProductDel = (params) => {
  18. return axios({
  19. url: `/shopProductSubsidy/delBatch`,
  20. data: params,
  21. method: 'post',
  22. headers: {
  23. 'module': encodeURIComponent('删除')
  24. }
  25. })
  26. }
  27. // 补贴产品 批量编辑
  28. export const subsidizedProductEdit = (params) => {
  29. return axios({
  30. url: '/shopProductSubsidy/editBatch',
  31. data: params,
  32. method: 'post',
  33. headers: {
  34. 'module': encodeURIComponent('编辑')
  35. }
  36. })
  37. }
  38. // 补贴产品 新增 弹窗产品列表 有分页
  39. export const queryProductPageList = (params) => {
  40. const url = `/shopProductSubsidy/queryProductPage/${params.pageNo}/${params.pageSize}`
  41. delete params.pageNo
  42. delete params.pageSize
  43. return axios({
  44. url: url,
  45. data: params,
  46. method: 'post',
  47. headers: {
  48. 'module': encodeURIComponent('列表查询')
  49. }
  50. })
  51. }
  52. // 补贴产品 新增 批量保存
  53. export const subsidizedProductSave = (params) => {
  54. return axios({
  55. url: `/shopProductSubsidy/saveBatch`,
  56. data: params,
  57. method: 'post',
  58. headers: {
  59. 'module': encodeURIComponent('保存')
  60. }
  61. })
  62. }
  63. // 补贴产品 错误项导出
  64. export const exportImportDetailError = (params) => {
  65. return axios({
  66. url: '/shopProductSubsidy/exportImportDetailError',
  67. data: params,
  68. method: 'post',
  69. responseType: 'blob',
  70. headers: {
  71. 'module': encodeURIComponent('导出错误项')
  72. }
  73. })
  74. }