From c342fea9a58c642ab5ebaa8e9e6ad1f0e1eeea4c Mon Sep 17 00:00:00 2001 From: 5g0Wp7Zy Date: Wed, 5 Nov 2025 16:48:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E8=93=9D=E7=89=99?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=92=8C=E8=BD=A6=E8=BE=86=E4=B8=8A=E4=B8=8B?= =?UTF-8?q?=E6=9E=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/centerControl.ts | 12 +- src/api/types/centerControl.ts | 7 + src/api/warehouse.ts | 26 + .../bluetooth/bluetoothscan/bluetoothscan.vue | 847 ++++++++++++++++++ .../testControl/components/executionList.vue | 97 +- .../testControl/components/scanByTest.vue | 20 +- .../centerControl/testControl/testControl.vue | 17 +- .../operation/carOperation/carOperation.vue | 212 +++++ .../vehicleWarehouse/vehicleWarehouse.vue | 236 +++++ .../warehouse/wholebind/wholebind.vue | 14 +- src/pages/me/me.vue | 6 +- src/store/app.ts | 22 + src/store/centerControl.ts | 3 - src/style/base.css | 18 +- src/style/color.scss | 7 + src/utils/aesTools.ts | 49 + vite.config.ts | 5 + 17 files changed, 1546 insertions(+), 52 deletions(-) create mode 100644 src/api/warehouse.ts create mode 100644 src/pages-sub/bluetooth/bluetoothscan/bluetoothscan.vue create mode 100644 src/pages-sub/operation/carOperation/carOperation.vue create mode 100644 src/pages-sub/warehouse/vehicleWarehouse/vehicleWarehouse.vue create mode 100644 src/utils/aesTools.ts 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 @@