holding5.js 1.0 KB

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