chooseCarApi.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import $http from "./request/requestConfig"
  2. import {
  3. BASE_URI
  4. } from "../pages/utils/constant.js";
  5. import qs from 'qs';
  6. const baseUri = ''
  7. const dict = '/wx/dict/'
  8. const dock = '/wx/dock/'
  9. export function getDockCarType(data) {
  10. return $http.post(
  11. baseUri + dict + 'getDockCarType',
  12. data, {}
  13. )
  14. }
  15. // /wx/dock/getCarNoByBizAndUser
  16. // 车牌号选择数据
  17. export function getCarNoByBizAndUser(data) {
  18. return $http.post(
  19. baseUri + dock + 'getCarNoByBizAndUser',
  20. data, {}
  21. )
  22. }
  23. // /wx/dock/getBizByUsername
  24. export function getBizByUsername(data) {
  25. return $http.post(
  26. baseUri + dock + 'getBizByUsername',
  27. data, {}
  28. )
  29. }
  30. export function getHistoryDriverNameByUserId(data) {
  31. return $http.post(
  32. baseUri + dock + 'getHistoryDriverNameByUserId',
  33. data, {}
  34. )
  35. }
  36. // /wx/dock/getDockSelectList
  37. export function getDockSelectList(data) {
  38. return $http.post(
  39. baseUri + dock + 'getDockSelectList',
  40. data, {}
  41. )
  42. }
  43. // getDockLoadType
  44. export function getDockLoadType(data) {
  45. return $http.post(
  46. baseUri + dict + 'getDockLoadType',
  47. data, {}
  48. )
  49. }
  50. export function getAvailableDateList(data) {
  51. return $http.post(
  52. baseUri + dock + 'getAvailableDateList',
  53. data, {}
  54. )
  55. }
  56. // /wx/dock/getDockTimeList
  57. export function getDockTimeList(data) {
  58. return $http.post(
  59. baseUri + dock + 'getDockTimeList',
  60. data, {}
  61. )
  62. }
  63. // /wx/dock/submitReservation
  64. export function submitReservation(data) {
  65. return $http.post(
  66. baseUri + dock + 'submitReservation',
  67. data, {}
  68. )
  69. }
  70. export function getHistoryContactPhoneByUserId(data) {
  71. return $http.post(
  72. baseUri + dock + 'getHistoryContactPhoneByUserId',
  73. data, {}
  74. )
  75. }
  76. // /wx/dock/updateReservation
  77. export function updateReservation(data) {
  78. return $http.post(
  79. baseUri + dock + 'updateReservation',
  80. data, {}
  81. )
  82. }