transport.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // 查询航线详情列表
  2. import request from '@/utils/request'
  3. export function listCorps(query) {
  4. return request({
  5. url: '/shipping/address/selectCarriageList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询港口详情详细
  11. export function getCorps(fId) {
  12. return request({
  13. url: '/shipping/address/' + fId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增
  18. export function addyard(data) {
  19. return request({
  20. url: '/shipping/address',
  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/address/' + fIds,
  49. method: 'delete'
  50. })
  51. }
  52. // 导出客户详情
  53. export function exportCorps(query) {
  54. return request({
  55. url: '/shipping/route/export',
  56. method: 'get',
  57. params: query
  58. })
  59. }
  60. //查询港口名称
  61. export function getyard(query) {
  62. return request({
  63. url: '/shipping/address/selectStorageName',
  64. method: 'get',
  65. params: query
  66. })
  67. }
  68. //编号唯一
  69. export function getyardNo(query) {
  70. return request({
  71. url: '/shipping/address/selectAddressFno',
  72. method: 'post',
  73. data: query
  74. })
  75. }
  76. //名称唯一
  77. export function getyardName(query) {
  78. return request({
  79. url: '/shipping/address/selectAddressFName',
  80. method: 'post',
  81. data: query
  82. })
  83. }