inventoryManagement.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. }