allocLinkageOut.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import { axios } from '@/utils/request'
  2. // 连锁调拨调出 列表 分页
  3. export const allocLinkageOutList = (params) => {
  4. const url = `/allocLinkageOut/queryPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post'
  11. })
  12. }
  13. // 连锁调拨调出 保存
  14. export const allocLinkageOutSave = (params) => {
  15. return axios({
  16. url: '/allocLinkageOut/save',
  17. data: params,
  18. method: 'post'
  19. })
  20. }
  21. // 连锁调拨调出 提交
  22. export const allocLinkageOutSubmit = (params) => {
  23. return axios({
  24. url: `/allocLinkageOut/submit/${params.sn}`,
  25. method: 'get'
  26. })
  27. }
  28. // 连锁调拨调出 详情 列表 分页
  29. export const allocLinkageOutDetailList = (params) => {
  30. const url = `/allocLinkageOut/detail/queryPage/${params.pageNo}/${params.pageSize}`
  31. delete params.pageNo
  32. delete params.pageSize
  33. return axios({
  34. url: url,
  35. data: params,
  36. method: 'post'
  37. })
  38. }
  39. // 连锁调拨调出 详情 根据sn查
  40. export const allocLinkageOutDetailSn = (params) => {
  41. return axios({
  42. url: `/allocLinkageOut/findBySn/${params.sn}`,
  43. method: 'get'
  44. })
  45. }
  46. // 连锁调拨调出 审核
  47. export const allocLinkageAudit = (params) => {
  48. return axios({
  49. url: `/allocLinkageOut/audit/${params.sn}`,
  50. method: 'get'
  51. })
  52. }
  53. // 连锁调拨调出 出库
  54. export const allocLinkageOutStock = (params) => {
  55. return axios({
  56. url: `/allocLinkageOut/outStock/${params.sn}`,
  57. method: 'get'
  58. })
  59. }
  60. // 连锁调拨调出 删除
  61. export const allocLinkageOutDel = (params) => {
  62. return axios({
  63. url: `/allocLinkageOut/delete/${params.id}`,
  64. method: 'get'
  65. })
  66. }
  67. // 连锁调拨调出 详情 添加
  68. export const allocLinkageOutDetailSave = (params) => {
  69. return axios({
  70. url: '/allocLinkageOut/detail/save',
  71. data: params,
  72. method: 'post'
  73. })
  74. }
  75. // 连锁调拨调出 详情 删除
  76. export const allocLinkageOutDetailDel = (params) => {
  77. return axios({
  78. url: `/allocLinkageOut/detail/delete/${params.id}`,
  79. method: 'get'
  80. })
  81. }
  82. // 连锁调拨调出 详情 整单删除
  83. export const allocLinkageOutDetailDelAll = (params) => {
  84. return axios({
  85. url: `/allocLinkageOut/detail/deleteAll/${params.allocationLinkageOutSn}`,
  86. method: 'get'
  87. })
  88. }
  89. // 连锁调拨调出 详情 合计
  90. export const allocLinkageOutDetailCount = (params) => {
  91. return axios({
  92. url: '/allocLinkageOut/detail/queryCount',
  93. data: params,
  94. method: 'post'
  95. })
  96. }
  97. // 连锁调拨调出 调往对象
  98. export const getTenantList = (params) => {
  99. return axios({
  100. url: '/allocLinkageOut/getTenantList',
  101. method: 'get'
  102. })
  103. }