warehouseOutStock.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. import request from '@/utils/request'
  2. // 查询仓库主(出入库)列表
  3. export function listWarehousebills(query) {
  4. return request({
  5. url: '/warehouseBusiness/outStock/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询仓库主(出入库)详细
  11. export function getWarehousebills(fId) {
  12. return request({
  13. url: '/warehouseBusiness/outStock/' + fId,
  14. method: 'get'
  15. })
  16. }
  17. // 入库详情信息入账
  18. export function addWhgenleg(data) {
  19. return request({
  20. url: '/warehouseBusiness/outStock/addCredit',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 请核
  26. export function warehouseSubmission(data) {
  27. return request({
  28. url: '/warehouseBusiness/outStock/warehouseSubmission',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 卸货接口
  34. export function disChargelist(data) {
  35. return request({
  36. url: '/warehouseBusiness/outStock/ischargeCargo',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 打印作业单
  42. export function addJoblist(data) {
  43. return request({
  44. url: '/warehouseBusiness/outStock/waitWarehousing',
  45. method: 'post',
  46. data: data
  47. })
  48. }
  49. // 撤销出库
  50. export function updateCredit(data) {
  51. return request({
  52. url: '/warehouseBusiness/outStock/updateCredit',
  53. method: 'post',
  54. data: data
  55. })
  56. }
  57. // 新增仓库主(出入库)
  58. export function addWarehousebills(data) {
  59. return request({
  60. url: '/warehouseBusiness/outStock/add',
  61. method: 'post',
  62. data: data
  63. })
  64. }
  65. // 修改仓库主(出入库)
  66. export function updateWarehousebills(data) {
  67. return request({
  68. url: '/warehouseBusiness/outStock',
  69. method: 'put',
  70. data: data
  71. })
  72. }
  73. // 删除仓库主(出入库)
  74. export function delWarehousebills(fId) {
  75. return request({
  76. url: '/warehouseBusiness/outStock/' + fId,
  77. method: 'delete'
  78. })
  79. }
  80. // 导出仓库主(出入库)
  81. export function exportWarehousebills(query) {
  82. return request({
  83. url: '/warehouseBusiness/outStock/export',
  84. method: 'get',
  85. params: query
  86. })
  87. }
  88. // 状态为6撤销(请核)
  89. export function revoke(fId) {
  90. return request({
  91. url: '/warehouseBusiness/outStock/withdrawById/' + fId,
  92. method: 'get',
  93. })
  94. }
  95. // 状态为4撤销(请核)
  96. export function revokeTwo(data) {
  97. return request({
  98. url: '/warehouse/paths/revoke',
  99. method: 'post',
  100. data: data
  101. })
  102. }
  103. //查询流水单号
  104. export function serialNumber() {
  105. return request({
  106. url: '/warehouseBusiness/outStock/serialNumber',
  107. method: 'post',
  108. })
  109. }
  110. //删除前的判断
  111. export function delOutStock_s(fId) {
  112. return request({
  113. url: '/warehouseBusiness/outStock/queryRemove/' + fId,
  114. method: 'delete'
  115. })
  116. }
  117. // 接单撤销(请核)
  118. export function ordersRevoke(fId) {
  119. return request({
  120. url: '/warehouseBusiness/outStock/withdrawOrdersById/' + fId,
  121. method: 'get',
  122. })
  123. }
  124. //主表审核
  125. export function submitWarehousingApproval(data) {
  126. return request({
  127. url: '/warehouseBusiness/outStock/submitWarehousingApproval',
  128. method: 'post',
  129. data: data
  130. })
  131. }
  132. //删除前的判断2
  133. export function checkCode(query) {
  134. return request({
  135. url: '/warehouseBusiness/inStock/checkCode',
  136. method: 'get',
  137. params: query
  138. })
  139. }