goodsPurchasedStored.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. export function goodsPurchaseList(data) {
  3. return request({
  4. url: `/goods/purchase/list?moduleId=${data.moduleId}`,
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function goodsPurchaseListExport(data, name) {
  10. return postBlob({
  11. url: '/goods/purchase/list/export',
  12. data,
  13. name
  14. })
  15. }
  16. export function goodsPurchaseItemList(data) {
  17. return request({
  18. url: `/goods/purchase/item/list?moduleId=${data.moduleId}`,
  19. method: 'post',
  20. data
  21. })
  22. }
  23. export function goodsPurchaseItemListExport(data, name) {
  24. return postBlob({
  25. url: '/goods/purchase/item/list/export',
  26. data,
  27. name
  28. })
  29. }
  30. export function goodsPurchaseCodeList(data) {
  31. return request({
  32. url: `/goods/purchase/code/list?moduleId=${data.moduleId}`,
  33. method: 'post',
  34. data
  35. })
  36. }
  37. export function goodsPurchaseCodeListExport(data, name) {
  38. return postBlob({
  39. url: '/goods/purchase/code/list/export',
  40. data,
  41. name
  42. })
  43. }
  44. export function goodsPurchaseAdd(data) {
  45. return request({
  46. url: `/goods/purchase/add`,
  47. method: 'post',
  48. data
  49. })
  50. }
  51. export function goodsPurchaseItemAddCode(data) {
  52. return request({
  53. url: `/goods/purchase/item/add/code`,
  54. method: 'post',
  55. data
  56. })
  57. }
  58. export function goodsPurchaseDetail(params) {
  59. return request({
  60. url: `/goods/purchase/detail`,
  61. method: 'post',
  62. params
  63. })
  64. }
  65. export function goodsPurchaseSubmit(params) {
  66. return request({
  67. url: `/goods/purchase/submit`,
  68. method: 'post',
  69. params
  70. })
  71. }
  72. export function goodsPurchaseConfirm(params) {
  73. return request({
  74. url: `/goods/purchase/confirm`,
  75. method: 'post',
  76. params
  77. })
  78. }
  79. export function goodsPurchaseItemDelCode(params) {
  80. return request({
  81. url: `/goods/purchase/item/del/code`,
  82. method: 'post',
  83. params
  84. })
  85. }