modifyPage.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // 查询航线详情列表
  2. import request from '@/utils/request'
  3. export function listCorps(tCntrno) {
  4. return request({
  5. url: '/shipping/cntrno/updateTCntrno',
  6. method: 'post',
  7. data: {
  8. tCntrno:tCntrno
  9. }
  10. })
  11. }
  12. // 查询港口详情详细
  13. export function getCorps(fId) {
  14. return request({
  15. url: '/shipping/address/' + fId,
  16. method: 'get'
  17. })
  18. }
  19. // 新增传值
  20. export function addmodify(query) {
  21. return request({
  22. url: '/shipping/cntrno/getTCntrnoDistribute',
  23. method: 'get',
  24. params: query
  25. })
  26. }
  27. // 修改航线详情
  28. export function updateCorps(data) {
  29. return request({
  30. url: '/shipping/address/edit',
  31. method: 'put',
  32. data: data
  33. })
  34. }
  35. // 状态修改
  36. export function changeCorpsStatus(fId, fStatus) {
  37. const data = {
  38. fId,
  39. fStatus
  40. }
  41. return request({
  42. url: '/shipping/route',
  43. method: 'put',
  44. data: data
  45. })
  46. }
  47. // 删除客户详情
  48. export function delCorps(fId) {
  49. return request({
  50. url: '/shipping/route/' + fId,
  51. method: 'delete'
  52. })
  53. }
  54. // 导出客户详情
  55. export function exportCorps(query) {
  56. return request({
  57. url: '/shipping/route/export',
  58. method: 'get',
  59. params: query
  60. })
  61. }
  62. //查询港口名称
  63. export function getyard(query) {
  64. return request({
  65. url: '/shipping/address/selectStorageName',
  66. method: 'get',
  67. params: query
  68. })
  69. }
  70. //查询地点
  71. export function getaddress(query) {
  72. return request({
  73. url: '/shipping/address/selectadress',
  74. method: 'get',
  75. params: query
  76. })
  77. }