storageFeeCalculation.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. import request from '@/utils/request'
  2. // 查询仓库主(出入库)列表
  3. export function listStorageFeeCalculation(query) {
  4. return request({
  5. url: '/warehouseBusiness/storageFeeCalculation/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 计算仓储费
  11. export function calculateStorageFees(data) {
  12. return request({
  13. url: '/warehouseBusiness/storageFeeCalculation/calculateFees',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 查询仓库主(出入库)详细
  19. export function getStorageFeeCalculation(fId) {
  20. return request({
  21. url: '/warehouseBusiness/storageFeeCalculation/' + fId,
  22. method: 'get'
  23. })
  24. }
  25. export function getAgreementByFCorpId(fCorpId) {
  26. return request({
  27. url: '/warehouseBusiness/storageFeeCalculation/agreement/' + fCorpId,
  28. method: 'get'
  29. })
  30. }
  31. // 新增仓库主(出入库)
  32. export function addStorageFeeCalculation(data) {
  33. return request({
  34. url: '/warehouseBusiness/storageFeeCalculation/add',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. // 撤销入库
  40. export function updateCredit(data) {
  41. return request({
  42. url: '/warehouseBusiness/storageFeeCalculation/updateCredit',
  43. method: 'post',
  44. data: data
  45. })
  46. }
  47. // 入库确认
  48. export function addWhgenleg(data) {
  49. return request({
  50. url: '/warehouseBusiness/storageFeeCalculation/addCredit',
  51. method: 'post',
  52. data: data
  53. })
  54. }
  55. // 修改仓库主(出入库)
  56. export function updateStorageFeeCalculation(data) {
  57. return request({
  58. url: '/warehouseBusiness/storageFeeCalculation',
  59. method: 'put',
  60. data: data
  61. })
  62. }
  63. // 删除仓库主(出入库)
  64. export function delStorageFeeCalculation(fId) {
  65. return request({
  66. url: '/warehouseBusiness/storageFeeCalculation/' + fId,
  67. method: 'delete'
  68. })
  69. }
  70. // 导出仓库主(出入库)
  71. export function exportStorageFeeCalculation(query) {
  72. return request({
  73. url: '/warehouseBusiness/storageFeeCalculation/export',
  74. method: 'get',
  75. params: query
  76. })
  77. }
  78. // 导出计算明细从表
  79. export function exportWarehousebillsitems(fId) {
  80. return request({
  81. url: '/warehouseBusiness/storageFeeCalculation/exportItems/'+fId,
  82. method: 'get'
  83. })
  84. }
  85. // 明细导出按钮
  86. export function exportDetail(fId) {
  87. return request({
  88. url: '/warehouseBusiness/storageFeeCalculation/exportDetail/'+fId,
  89. method: 'get'
  90. })
  91. }
  92. // 撤销请核
  93. export function backFee(fId) {
  94. return request({
  95. url: '/warehouseBusiness/storageFeeCalculation/withdrawById/' + fId,
  96. method: 'get',
  97. })
  98. }
  99. //删除前的判断
  100. export function delstorageFeeCalculation_s(fId) {
  101. return request({
  102. url: '/warehouseBusiness/storageFeeCalculation/queryRemove/' + fId,
  103. method: 'delete'
  104. })
  105. }
  106. // 导出仓库主调拨
  107. export function exportWarehousebills(query) {
  108. return request({
  109. url: '/warehouseBusiness/storageFeeCalculation/export',
  110. method: 'get',
  111. params: query
  112. })
  113. }