collect1.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import axios from '../utils/request'
  2. // 第一层获取列表
  3. export const getList = (data) => {
  4. return axios({
  5. method: 'post',
  6. url: '/cms/collectOut/list',
  7. data
  8. })
  9. }
  10. // 点击申请出库
  11. export const enterBank = () => {
  12. return axios({
  13. method: 'post',
  14. url: '/cms/collectOut/add'
  15. })
  16. }
  17. // 第二层获取藏品列表
  18. export const getListTow = (data) => {
  19. return axios({
  20. method: 'post',
  21. url: '/cms/collectOut/goodsList',
  22. data
  23. })
  24. }
  25. // 从第一层提交
  26. export const holding1submit = (data) => {
  27. return axios({
  28. method: 'post',
  29. url: '/cms/collectOut/edit',
  30. data
  31. })
  32. }
  33. // 通过第一层的id获取详情
  34. export const getDetailById = (id) => {
  35. return axios({
  36. url: `/cms/collectOut/detail/${id}`
  37. })
  38. }
  39. // 第一层点击删除
  40. export const delData = (id) => {
  41. return axios({
  42. url: `/cms/collectOut/remove/${id}`
  43. })
  44. }
  45. // 从holding1_audit点击审核
  46. export const holding1Audit = (data) => {
  47. return axios({
  48. method: 'post',
  49. url: '/cms/collectOut/audit',
  50. data
  51. })
  52. }
  53. // holding2_look点击归还
  54. export const goodsReturn = (data) => {
  55. return axios({
  56. method: 'post',
  57. url: '/cms/collectOut/goodsReturn',
  58. data
  59. })
  60. }