chooseCarApi.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. }