purchase-adjustment-sheet.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import request,{postBlob} from '@/utils/request'
  2. // 新增采购调整单
  3. export function purchaseAdjustmentSheetAdd(params) {
  4. return request({
  5. url: '/shop/purchase-adjustment/add',
  6. method: 'post',
  7. data: params
  8. })
  9. }
  10. // 采购调整单审核
  11. export function purchaseAdjustmentSheetConfirm(params) {
  12. return request({
  13. url: '/shop/purchase-adjustment/confirm',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 采购调整单提交
  19. export function purchaseAdjustmentSheetSubmit(params) {
  20. return request({
  21. url: '/shop/purchase-adjustment/submit',
  22. method: 'get',
  23. params
  24. })
  25. }
  26. // 采购调整单撤消
  27. export function purchaseAdjustmentSheetRevoke(params) {
  28. return request({
  29. url: '/shop/purchase-adjustment/revoke',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. // 删除采购调整单
  35. export function purchaseAdjustmentSheetDel(params) {
  36. return request({
  37. url: '/shop/purchase-adjustment/del',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. // 编辑采购调整单
  43. export function purchaseAdjustmentSheetEdit(params) {
  44. return request({
  45. url: '/shop/purchase-adjustment/update',
  46. method: 'post',
  47. data: params
  48. })
  49. }
  50. // 获取采购调整单信息
  51. export function purchaseAdjustmentSheetDetail(params) {
  52. return request({
  53. url: '/shop/purchase-adjustment/detail',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. // 获取采购调整单列表
  59. export function purchaseAdjustmentSheetList(params) {
  60. return request({
  61. url: '/shop/purchase-adjustment/list',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. export function getNewPurchaseAdjustmentSheetList(data) {
  67. console.log(data,999);
  68. return request({
  69. url: `/shop/purchase-adjustment/zfire/list?moduleId=${data.moduleId}`,
  70. method: "post",
  71. data
  72. });
  73. }
  74. // 导出
  75. export function exportNewPurchaseAdjustmentSheetList(data, name) {
  76. return postBlob({
  77. url: '/shop/purchase-adjustment/zfire/list/export',
  78. data,
  79. name
  80. })
  81. }