boxInformation.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // 查询航线详情列表
  2. import request from '@/utils/request'
  3. export function listCorps(query) {
  4. return request({
  5. url: '/shipping/cntrno/selectTcntrnoMessage',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询港口详情详细
  11. export function getInforma(fId) {
  12. return request({
  13. url: '/shipping/cntrno/' + fId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增
  18. export function addboxinformation(data) {
  19. return request({
  20. url: '/shipping/cntrno',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改航线详情
  26. export function updateCorps(data) {
  27. return request({
  28. url: '/shipping/address/edit',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 状态修改
  34. export function changeCorpsStatus(fId, fStatus) {
  35. const data = {
  36. fId,
  37. fStatus
  38. }
  39. return request({
  40. url: '/shipping/route',
  41. method: 'put',
  42. data: data
  43. })
  44. }
  45. // 删除客户详情
  46. export function delCorps(fIds) {
  47. return request({
  48. url: '/shipping/cntrno/' + fIds,
  49. method: 'delete'
  50. })
  51. }
  52. // 导出客户详情
  53. export function exportCorps(query) {
  54. return request({
  55. url: '/shipping/cntrno/export',
  56. method: 'get',
  57. params: query
  58. })
  59. }
  60. //查询港口名称
  61. export function getType(query) {
  62. return request({
  63. url: '/shipping/cntr/selectRcntrName',
  64. method: 'get',
  65. params: query
  66. })
  67. }
  68. //查询地点
  69. export function getaddress(query) {
  70. return request({
  71. url: '/shipping/address/selectadress',
  72. method: 'get',
  73. params: query
  74. })
  75. }
  76. //导入
  77. export function getImport(data) {
  78. return request({
  79. url: '/shipping/cntrno/importDataTcntrno',
  80. method: 'post',
  81. data: {
  82. }
  83. })
  84. }
  85. //下载模板
  86. export function getDown(query) {
  87. return request({
  88. url: '/shipping/cntrno/importTCntrnoTemplate',
  89. method: 'get',
  90. params: query
  91. })
  92. }
  93. //提交箱信息
  94. export function batch(query) {
  95. return request({
  96. url: '/shipping/cntrno/batch',
  97. method: 'post',
  98. data: query
  99. })
  100. }
  101. //导入箱信息
  102. export function leadingIn(data) {
  103. return request({
  104. url: '/shipping/cntrno/updateAirForceStation',
  105. method: 'post',
  106. data: data
  107. })
  108. }
  109. //下载箱动态模板
  110. export function downloadBox() {
  111. return request({
  112. url: '/shipping/cntrno/importTCnTrNoAirForce',
  113. method: 'get'
  114. })
  115. }
  116. // 退租起租
  117. export function updateHire(data) {
  118. return request({
  119. url: '/shipping/cntrno/updateHire',
  120. method: 'post',
  121. data: data
  122. })
  123. }