inventoryManagement.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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 workerStockDel(data) {
  59. return request({
  60. url: '/worker/stock/del',
  61. method: 'post',
  62. data
  63. })
  64. }
  65. export function websitStockAccListPExport(data, name) {
  66. return postBlob({
  67. url: '/websit/stock/acc/listP/export',
  68. data,
  69. name
  70. })
  71. }
  72. // --------------------------------------------------------
  73. export function workerStockList(data) {
  74. return request({
  75. url: `/worker/stock/list?moduleId=${data.moduleId}`,
  76. method: 'post',
  77. data
  78. })
  79. }
  80. export function workerStockListExport(data, name) {
  81. return postBlob({
  82. url: '/worker/stock/list/export',
  83. data,
  84. name
  85. })
  86. }
  87. export function workerStockImportM(data) {
  88. return handleImport('/worker/stock/importM', data.formdata, data.id || '')
  89. }
  90. export function workerStockAccList(data) {
  91. return request({
  92. url: `/worker/stock/acc/list?moduleId=${data.moduleId}`,
  93. method: 'post',
  94. data
  95. })
  96. }
  97. export function workerStockAccListExport(data, name) {
  98. return postBlob({
  99. url: '/worker/stock/acc/list/export',
  100. data,
  101. name
  102. })
  103. }
  104. // --------------------------------------------------------
  105. export function workerStockListP(data) {
  106. return request({
  107. url: `/worker/stock/listP?moduleId=${data.moduleId}`,
  108. method: 'post',
  109. data
  110. })
  111. }
  112. export function workerStockListPExport(data, name) {
  113. return postBlob({
  114. url: '/worker/stock/listP/export',
  115. data,
  116. name
  117. })
  118. }
  119. export function workerStockImportP(data) {
  120. return handleImport('/worker/stock/importP', data.formdata, data.id || '')
  121. }
  122. export function workerStockAccListP(data) {
  123. return request({
  124. url: `/worker/stock/acc/listP?moduleId=${data.moduleId}`,
  125. method: 'post',
  126. data
  127. })
  128. }
  129. export function workerStockAccListPExport(data, name) {
  130. return postBlob({
  131. url: '/worker/stock/acc/listP/export',
  132. data,
  133. name
  134. })
  135. }