123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- import request from "@/utils/request.js";
- /**
- * 获取车辆列表
- * @param data object
- */
- export function getCarList(data) {
- return request.get(
- "v3/rent", data
- );
- }
- /**
- * 获取车辆详情
- * @param data object
- */
- export function getCarDetail(data) {
- return request.get(
- `v3/rent/${data.id}`
- );
- }
- /**
- * 创建订单
- * @param data object
- */
- export function postCarCreate(data) {
- return request.post(
- `v3/rent/create`, data
- );
- }
- /**
- * 订单状态查询
- * @param data object
- */
- export function getOrderStatus(id) {
- return request.get(
- `v3/rentinfo/detail/${id}`
- );
- }
- /**
- * 订单列表
- * @param data object
- */
- export function getRentOrder(data) {
- return request.get(
- `v3/rent/order`, data
- );
- }
- /**
- * 订单统计数据
- * @param data object
- */
- export function getRentOrderData(data) {
- return request.get(
- `v3/rent/order_data`, data
- );
- }
- /**
- * 订单详情
- * @param data object
- */
- export function getRentOrderDteail(id) {
- return request.get(
- `v3/rent/order_detail/${id}`
- );
- }
- /**
- * 订单支付
- * @param data object
- */
- export function postRentPay(data) {
- return request.post(
- `v3/rent/pay`, data
- );
- }
- /**
- * 绑定车辆
- * @param data object
- */
- export function rentSetcar(data) {
- return request.post(
- `v3/rent/setcar`, data
- );
- }
- /**
- * 获取我的车辆
- * @param data object
- * {
- * status:unlock开锁,lock关锁,deblock解锁,cushion开坐垫,find寻车
- *}
- */
- export function getMyCar(data) {
- return request.get(
- `v3/car/my`, data
- );
- }
- /**
- * 发送车辆指令
- * @param data object
- */
- export function getLock(data) {
- return request.get(
- `v3/car/control/${data.type}`, data
- );
- }
- /**
- * 车辆控制记录
- * @param data object
- * {
- type:auth授权record行程notice报警record_charge收费position当前车辆信息
- }
- *
- */
- export function getOneinfo(data) {
- return request.get(
- `v3/car/oneinfo/${data.type}`, data
- );
- }
- /**
- * 车辆行车记录
- * @param data object
- */
- export function getRouterDetail(data) {
- return request.get(
- `v3/car/onedetail/${data.type}`, data
- );
- }
- /**
- * 车辆授权
- * @param data object
- */
- export function postCarAuth(data) {
- return request.post(
- `v3/car/auth/0`, data
- );
- }
- /**
- * 撤销车辆授权
- * @param data object
- */
- export function deleteCarAuth(data) {
- return request.delete(
- `v3/car/auth/${data.id}`, data
- );
- }
- /**
- * 门店扫码授权
- * @param data object
- */
- export function postSetCarCode(data) {
- return request.post(
- `store/qrcar`, data
- );
- }
- /**
- * 门店车辆
- * @param data object
- */
- export function postStoreCarCode(data) {
- return request.post(
- `store/car`, data
- );
- }
- /**
- * 门店流水
- * @param data object
- */
- export function getStoreBill(data) {
- return request.get(
- `store/bill`, data
- );
- }
- /**
- * 门店信息
- * @param data object
- */
- export function postStoreMy(data) {
- return request.get(
- `store/my`, data
- );
- }
- /**
- * 门店提现
- * @param data object
- */
- export function postStoreCase(data) {
- return request.post(
- `store/case`, data
- );
- }
- /**
- * 出资人库存
- * @param data object
- */
- export function postSponsorCar(data) {
- return request.post(
- `sponsor/car_stock`, data
- );
- }
- /**
- * 出资人流水
- * @param data object
- */
- export function getSponsorbill(data) {
- return request.post(
- `sponsor/bill`, data
- );
- }
- /**
- * 门店申请
- * @param data object
- */
- export function storeApply(data) {
- return request.get(
- `store/apply`, data
- );
- }
- /**
- * 申请详情
- * @param data object
- */
- export function getStoreApplyId(data) {
- return request.get(
- `v3/store/apply/${data.id}`, data
- );
- }
- /**
- * 申请提交
- * @param data object
- */
- export function postStoreApplyId(data) {
- return request.post(
- `store/apply/${data.id}`, data
- );
- }
- /**
- * 申请撤销
- * @param data object
- */
- export function delStoreApplyId(data) {
- return request.delete(
- `store/apply/${data.id}`, data
- );
- }
|