【前端】智能库房综合管理系统前端项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. // 入库 初始化档案盒装盒信息
  4. export function initCaseByArchives(params) {
  5. return request({
  6. url: 'api/storage/initCaseByArchives' + '?' + qs.stringify(params, { indices: false }),
  7. method: 'get'
  8. })
  9. }
  10. // 入库 判断位置是否被占用
  11. export function isOccupy(params) {
  12. return request({
  13. url: 'api/storage/isOccupy' + '?' + qs.stringify(params, { indices: false }),
  14. method: 'get'
  15. })
  16. }
  17. // 入库
  18. export function collect(params) {
  19. return request({
  20. url: 'api/storage/collect',
  21. method: 'post',
  22. data: params
  23. })
  24. }
  25. // 出库
  26. export function grant(params) {
  27. return request({
  28. url: 'api/storage/grant',
  29. method: 'post',
  30. data: params
  31. })
  32. }
  33. // 出入库记录 导出
  34. export function exportStorageLogList(params) {
  35. return request({
  36. url: 'api/storage/exportStorageLogList' + '?' + qs.stringify(params, { responseType: 'blob' }),
  37. method: 'get'
  38. })
  39. }
  40. export default { initCaseByArchives, isOccupy, collect, grant, exportStorageLogList }