allocLinkageOut.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 allocLinkageOutQueryCount = (params) => {
  15. return axios({
  16. url: `/allocLinkageOut/queryCount`,
  17. data: params,
  18. method: 'post'
  19. })
  20. }
  21. // 连锁调拨调出 保存
  22. export const allocLinkageOutSave = (params) => {
  23. return axios({
  24. url: '/allocLinkageOut/save',
  25. data: params,
  26. method: 'post'
  27. })
  28. }
  29. // 连锁调拨调出 提交
  30. export const allocLinkageOutSubmit = (params) => {
  31. return axios({
  32. url: `/allocLinkageOut/submit/${params.sn}`,
  33. method: 'get'
  34. })
  35. }
  36. // 连锁调拨调出 详情 列表 分页
  37. export const allocLinkageOutDetailList = (params) => {
  38. const url = `/allocLinkageOut/detail/queryPage/${params.pageNo}/${params.pageSize}`
  39. delete params.pageNo
  40. delete params.pageSize
  41. return axios({
  42. url: url,
  43. data: params,
  44. method: 'post'
  45. })
  46. }
  47. // 连锁调拨调出 详情 根据sn查
  48. export const allocLinkageOutDetailSn = (params) => {
  49. return axios({
  50. url: `/allocLinkageOut/findBySn/${params.sn}`,
  51. method: 'get'
  52. })
  53. }
  54. // 连锁调拨调出 审核
  55. export const allocLinkageAudit = (params) => {
  56. return axios({
  57. url: `/allocLinkageOut/audit/${params.sn}`,
  58. method: 'get'
  59. })
  60. }
  61. // 连锁调拨调出 出库
  62. export const allocLinkageOutStock = (params) => {
  63. return axios({
  64. url: `/allocLinkageOut/outStock/${params.sn}`,
  65. method: 'get'
  66. })
  67. }
  68. // 连锁调拨调出 删除
  69. export const allocLinkageOutDel = (params) => {
  70. return axios({
  71. url: `/allocLinkageOut/delete/${params.sn}`,
  72. method: 'get'
  73. })
  74. }
  75. // 连锁调拨调出 详情 添加
  76. export const allocLinkageOutDetailSave = (params) => {
  77. return axios({
  78. url: '/allocLinkageOut/detail/save',
  79. data: params,
  80. method: 'post'
  81. })
  82. }
  83. // 连锁调拨调出 详情 删除
  84. export const allocLinkageOutDetailDel = (params) => {
  85. return axios({
  86. url: `/allocLinkageOut/detail/delete/${params.id}`,
  87. method: 'get'
  88. })
  89. }
  90. // 连锁调拨调出 详情 清空列表
  91. export const allocLinkageOutDetailDelAll = (params) => {
  92. return axios({
  93. url: `/allocLinkageOut/detail/deleteAll/${params.sn}`,
  94. method: 'get'
  95. })
  96. }
  97. // 连锁调拨调出 详情 合计
  98. export const allocLinkageOutDetailCount = (params) => {
  99. return axios({
  100. url: '/allocLinkageOut/detail/queryCount',
  101. data: params,
  102. method: 'post'
  103. })
  104. }
  105. // 连锁调拨调出 调往对象
  106. export const getTenantList = (params) => {
  107. return axios({
  108. url: '/allocLinkageOut/getTenantList',
  109. method: 'get'
  110. })
  111. }
  112. // 调往对象
  113. export const getReportOutTenantList = (params) => {
  114. return axios({
  115. url: '/report/reportAllocLinkageOut/reportDealer',
  116. data: params,
  117. method: 'post'
  118. })
  119. }
  120. // 连锁调拨调出 详情 打印
  121. export const allocLinkageOutDetailPrint = params => {
  122. const data = {
  123. url: `allocLinkageOut/print/${params.sn}/${params.type}/${params.showFlag}`,
  124. method: 'get'
  125. }
  126. // 喷墨打印
  127. if (params.type == 'INK') {
  128. data.responseType = 'blob'
  129. }
  130. return axios.request(data)
  131. }