diff --git a/src/api/centerControl.ts b/src/api/centerControl.ts index 13eb6dc..0acadea 100644 --- a/src/api/centerControl.ts +++ b/src/api/centerControl.ts @@ -1,8 +1,16 @@ +import type { IExecuteCommand } from '@/api/types/centerControl' import { http } from '@/http/http' /** - * 校验SN或BikeCode + * 设备是否在线 */ export function checkSnOrBikeCodeAPI(query: { ecuSn: string, bikeCode: string }) { - return http.get('/operations/ebikeEcuInfo/checkSnOrBikeCode', query) + return http.get('/operations/ebikeEcuInfo/online', query) +} + +/** + * 中控执行命令 + */ +export function executeCommandAPI(query: IExecuteCommand) { + return http.get('/operations/ebikeEcuInfo/executeCommand', query) } diff --git a/src/api/types/centerControl.ts b/src/api/types/centerControl.ts index e69de29..417dff1 100644 --- a/src/api/types/centerControl.ts +++ b/src/api/types/centerControl.ts @@ -0,0 +1,7 @@ +// 中控执行命令 + +export interface IExecuteCommand { + ecuSn: string + bikeCode: string + commandCode: 'FIND_BIKE' | 'GPS' | 'OPEN_BATTERY_LOCK' +} diff --git a/src/api/warehouse.ts b/src/api/warehouse.ts new file mode 100644 index 0000000..1e93a14 --- /dev/null +++ b/src/api/warehouse.ts @@ -0,0 +1,26 @@ +import { http } from '@/http/http' + +// 批量上架 +export function batchAddInventoryAPI(data: { bikeCodes: string[], regionId: string }) { + return http.post('/operations/ebikeBikeInfo/batchLaunch', data) +} + +// 批量下架 +export function batchRemoveInventoryAPI(data: { bikeCodes: string[] }) { + return http.post('/operations/ebikeBikeInfo/batchUnLaunch', data) +} + +// 未上架车辆分页查询 +export function getUnInventoryListAPI(query: { pageSize: number, pageNum: number }) { + return http.get('/operations/ebikeBikeInfo/unLaunchPage', query) +} + +// 上架车辆分页查询 +export function getInventoryListAPI(query: { pageSize: number, pageNum: number }) { + return http.get('/operations/ebikeBikeInfo/launchPage', query) +} + +// 查询所有运营中区域表 +export function getOperatoringAllListAPI() { + return http.get('/operations/ebikeRegion/operationList') +} diff --git a/src/pages-sub/bluetooth/bluetoothscan/bluetoothscan.vue b/src/pages-sub/bluetooth/bluetoothscan/bluetoothscan.vue new file mode 100644 index 0000000..e43dc71 --- /dev/null +++ b/src/pages-sub/bluetooth/bluetoothscan/bluetoothscan.vue @@ -0,0 +1,847 @@ + + + + + diff --git a/src/pages-sub/centerControl/testControl/components/executionList.vue b/src/pages-sub/centerControl/testControl/components/executionList.vue index 74b76a8..53a3727 100644 --- a/src/pages-sub/centerControl/testControl/components/executionList.vue +++ b/src/pages-sub/centerControl/testControl/components/executionList.vue @@ -1,4 +1,5 @@