allocLinkagePut.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. import { axios } from '@/utils/request'
  2. // 调往对象
  3. export const getReportPutTenantList = (params) => {
  4. return axios({
  5. url: '/report/reportAllocLinkagePut/reportDealer',
  6. data: params,
  7. method: 'post',
  8. headers: {
  9. 'module': encodeURIComponent('调往对象列表查询')
  10. }
  11. })
  12. }
  13. // 连锁调拨调入 列表 分页
  14. export const allocLinkagePutList = (params) => {
  15. const url = `/allocLinkagePut/queryPage/${params.pageNo}/${params.pageSize}`
  16. delete params.pageNo
  17. delete params.pageSize
  18. return axios({
  19. url: url,
  20. data: params,
  21. method: 'post',
  22. headers: {
  23. 'module': encodeURIComponent('列表查询')
  24. }
  25. })
  26. }
  27. // 连锁调拨调入 统计
  28. export const allocLinkagePutQueryCount = (params) => {
  29. return axios({
  30. url: `/allocLinkagePut/queryCount`,
  31. data: params,
  32. method: 'post'
  33. })
  34. }
  35. // 连锁调拨调入 审核
  36. export const allocLinkagePutAudit = (params) => {
  37. return axios({
  38. url: `/allocLinkagePut/audit/${params.sn}`,
  39. method: 'get',
  40. headers: {
  41. 'module': encodeURIComponent('审核')
  42. }
  43. })
  44. }
  45. // 连锁调拨调入 入库
  46. export const allocLinkagePutSubmit = (params) => {
  47. return axios({
  48. url: `/allocLinkagePut/submit/${params.sn}`,
  49. method: 'get',
  50. headers: {
  51. 'module': encodeURIComponent('入库')
  52. }
  53. })
  54. }
  55. // 连锁调拨调入 详情 合计
  56. export const allocLinkagePutDetailCount = (params) => {
  57. return axios({
  58. url: '/allocLinkagePut/detail/queryCount',
  59. data: params,
  60. method: 'post'
  61. })
  62. }
  63. // 连锁调拨调出 详情 根据sn查
  64. export const allocLinkagePutDetailSn = (params) => {
  65. return axios({
  66. url: `/allocLinkagePut/findBySn/${params.sn}`,
  67. method: 'get',
  68. headers: {
  69. 'module': encodeURIComponent('详情信息')
  70. }
  71. })
  72. }
  73. // 连锁调拨调入 详情 列表 分页
  74. export const allocLinkagePutDetailList = (params) => {
  75. const url = `/allocLinkagePut/detail/queryPage/${params.pageNo}/${params.pageSize}`
  76. delete params.pageNo
  77. delete params.pageSize
  78. return axios({
  79. url: url,
  80. data: params,
  81. method: 'post',
  82. headers: {
  83. 'module': encodeURIComponent('明细列表查询')
  84. }
  85. })
  86. }
  87. // 连锁调拨调入 详情 编辑
  88. export const allocLinkagePutDetailUpdate = (params) => {
  89. const url = `/allocLinkagePut/detail/update/${params.id}`
  90. return axios({
  91. url: url,
  92. data: params,
  93. method: 'post',
  94. headers: {
  95. 'module': encodeURIComponent('编辑基本信息')
  96. }
  97. })
  98. }
  99. // 连锁调拨调入 详情 打印
  100. export const allocLinkagePutDetailPrint = params => {
  101. const data = {
  102. url: `allocLinkagePut/print/${params.sn}/${params.type}/${params.showFlag}`,
  103. method: 'get',
  104. headers: {
  105. 'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印':'针式打印')
  106. }
  107. }
  108. // 喷墨打印
  109. if (params.type == 'INK') {
  110. data.responseType = 'blob'
  111. }
  112. return axios.request(data)
  113. }
  114. // 连锁调入列表 导出
  115. export const allocLinkagePutExport = (params) => {
  116. return axios({
  117. url: '/allocLinkagePut/detail/export',
  118. data: params,
  119. method: 'post',
  120. responseType: 'blob',
  121. headers: {
  122. 'module': encodeURIComponent('导出')
  123. }
  124. })
  125. }