auxiliaryPriceManagement.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. export function websitGoodsmImport(data) {
  3. return handleImport('/websit/goods/m/import', data.formdata, data.id || '')
  4. }
  5. export function materialNormList(data) {
  6. return request({
  7. url: `/websit/goods/m/list?moduleId=${data.moduleId}`,
  8. method: 'post',
  9. data
  10. })
  11. }
  12. export function materialNormListExport(data, name) {
  13. return postBlob({
  14. url: '/websit/goods/m/list/export',
  15. data,
  16. name
  17. })
  18. }
  19. export function materialNormAdd(data) {
  20. return request({
  21. url: '/websit/goods/add',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. export function materialNormEdit(data) {
  27. return request({
  28. url: '/websit/goods/edit',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. export function materialNormDetail(params) {
  34. return request({
  35. url: '/websit/goods/detail',
  36. method: 'post',
  37. params
  38. })
  39. }
  40. export function materialNormBatchUpdateStatus(params) {
  41. return request({
  42. url: '/websit/goods/batch/update/status',
  43. method: 'post',
  44. params
  45. })
  46. }