inventoryManagement.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. export function websitStockList(data) {
  3. return request({
  4. url: `/websit/stock/list?moduleId=${data.moduleId}`,
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function websitStockListExport(data, name) {
  10. return postBlob({
  11. url: '/websit/stock/list/export',
  12. data,
  13. name
  14. })
  15. }
  16. export function websitStockImportM(data) {
  17. return handleImport('/websit/stock/importM', data.formdata, data.id || '')
  18. }
  19. export function websitStockAccList(data) {
  20. return request({
  21. url: `/websit/stock/acc/list?moduleId=${data.moduleId}`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. export function websitStockAccListExport(data, name) {
  27. return postBlob({
  28. url: '/websit/stock/acc/list/export',
  29. data,
  30. name
  31. })
  32. }
  33. // --------------------------------------------------------
  34. export function websitStockListP(data) {
  35. return request({
  36. url: `/websit/stock/listP?moduleId=${data.moduleId}`,
  37. method: 'post',
  38. data
  39. })
  40. }
  41. export function websitStockListPExport(data, name) {
  42. return postBlob({
  43. url: '/websit/stock/listP/export',
  44. data,
  45. name
  46. })
  47. }
  48. export function websitStockImportP(data) {
  49. return handleImport('/websit/stock/importP', data.formdata, data.id || '')
  50. }
  51. export function websitStockAccListP(data) {
  52. return request({
  53. url: `/websit/stock/acc/listP?moduleId=${data.moduleId}`,
  54. method: 'post',
  55. data
  56. })
  57. }
  58. export function websitStockAccListPExport(data, name) {
  59. return postBlob({
  60. url: '/websit/stock/acc/listP/export',
  61. data,
  62. name
  63. })
  64. }
  65. // --------------------------------------------------------
  66. export function workerStockList(data) {
  67. return request({
  68. url: `/worker/stock/list?moduleId=${data.moduleId}`,
  69. method: 'post',
  70. data
  71. })
  72. }
  73. export function workerStockListExport(data, name) {
  74. return postBlob({
  75. url: '/worker/stock/list/export',
  76. data,
  77. name
  78. })
  79. }
  80. export function workerStockImportM(data) {
  81. return handleImport('/worker/stock/importM', data.formdata, data.id || '')
  82. }
  83. export function workerStockAccList(data) {
  84. return request({
  85. url: `/worker/stock/acc/list?moduleId=${data.moduleId}`,
  86. method: 'post',
  87. data
  88. })
  89. }
  90. export function workerStockAccListExport(data, name) {
  91. return postBlob({
  92. url: '/worker/stock/acc/list/export',
  93. data,
  94. name
  95. })
  96. }
  97. // --------------------------------------------------------
  98. export function workerStockListP(data) {
  99. return request({
  100. url: `/worker/stock/listP?moduleId=${data.moduleId}`,
  101. method: 'post',
  102. data
  103. })
  104. }
  105. export function workerStockListPExport(data, name) {
  106. return postBlob({
  107. url: '/worker/stock/listP/export',
  108. data,
  109. name
  110. })
  111. }
  112. export function workerStockImportP(data) {
  113. return handleImport('/worker/stock/importP', data.formdata, data.id || '')
  114. }
  115. export function workerStockAccListP(data) {
  116. return request({
  117. url: `/worker/stock/acc/listP?moduleId=${data.moduleId}`,
  118. method: 'post',
  119. data
  120. })
  121. }
  122. export function workerStockAccListPExport(data, name) {
  123. return postBlob({
  124. url: '/worker/stock/acc/listP/export',
  125. data,
  126. name
  127. })
  128. }