storageFeeCalculation.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. // 新增仓库主(出入库)
  26. export function addStorageFeeCalculation(data) {
  27. return request({
  28. url: '/warehouseBusiness/storageFeeCalculation/add',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 撤销入库
  34. export function updateCredit(data) {
  35. return request({
  36. url: '/warehouseBusiness/storageFeeCalculation/updateCredit',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 入库确认
  42. export function addWhgenleg(data) {
  43. return request({
  44. url: '/warehouseBusiness/storageFeeCalculation/addCredit',
  45. method: 'post',
  46. data: data
  47. })
  48. }
  49. // 修改仓库主(出入库)
  50. export function updateStorageFeeCalculation(data) {
  51. return request({
  52. url: '/warehouseBusiness/storageFeeCalculation',
  53. method: 'put',
  54. data: data
  55. })
  56. }
  57. // 删除仓库主(出入库)
  58. export function delStorageFeeCalculation(fId) {
  59. return request({
  60. url: '/warehouseBusiness/storageFeeCalculation/' + fId,
  61. method: 'delete'
  62. })
  63. }
  64. // 导出仓库主(出入库)
  65. export function exportStorageFeeCalculation(query) {
  66. return request({
  67. url: '/warehouseBusiness/storageFeeCalculation/export',
  68. method: 'get',
  69. params: query
  70. })
  71. }
  72. // 撤销请核
  73. export function backFee(fId) {
  74. return request({
  75. url: '/warehouseBusiness/storageFeeCalculation/withdrawById/' + fId,
  76. method: 'get',
  77. })
  78. }