shop-purchase-apply.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request, { postBlob } from '@/utils/request'
  2. // 获取新网点采购单列表
  3. export function getNewPurchaseApplySheetList(data) {
  4. return request({
  5. url: `/vender/check/purchase/list?moduleId=${data.moduleId}`,
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 导出
  11. export function exportNewPurchaseApplySheetList(data, name) {
  12. return postBlob({
  13. url: '/vender/check/purchase/list/export',
  14. data,
  15. name
  16. })
  17. }
  18. // 核实网点采购单
  19. export function verifyPurchaseApplySheet(params) {
  20. return request({
  21. url: '/vender/check/purchase/verify',
  22. method: 'post',
  23. params
  24. })
  25. }
  26. // 撤消网点采购单
  27. export function revokePurchaseApplySheet(params) {
  28. return request({
  29. url: '/vender/check/purchase/revoke',
  30. method: 'post',
  31. params
  32. })
  33. }
  34. // 获取网点采购单信息
  35. export function getPurchaseApplySheet(params) {
  36. return request({
  37. url: '/vender/check/purchase/detail',
  38. method: 'post',
  39. params
  40. })
  41. }
  42. // 编辑网点采购单
  43. export function editPurchaseApplySheet(params) {
  44. return request({
  45. url: '/vender/check/purchase/update',
  46. method: 'post',
  47. data: params
  48. })
  49. }