From c9779c15678ddf1f6ec321a817da2c056d6a1ddb Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Sat, 17 Aug 2024 21:33:20 +0800 Subject: [PATCH] =?UTF-8?q?8.17=20=E6=99=9A=E4=B8=8A=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../billingModel/monthModel/index.ts | 3 + .../operationalModel/index.ts | 46 ++++ .../batteryInfo/batteryInfoDetails.vue | 6 +- .../batteryManagement/batteryInfo/index.vue | 8 +- .../billingModel/BillingModelForm.vue | 4 +- .../hoursAndMinutes/modelTimeForm.vue | 3 +- .../billingModel/components/month/index.vue | 4 +- .../billingModel/index.vue | 2 +- .../ElectricityPriceForm.vue | 8 +- .../hoursAndMinutes/ElectricityTimeForm.vue | 44 +++- .../components/hoursAndMinutes/index.vue | 26 ++- .../components/month/ElectricityDateForm.vue | 69 +++--- .../components/month/index.vue | 33 ++- .../operationalModel/RunModelForm.vue | 102 +++++++++ .../operationalModel/index.vue | 213 +++++++++++++++++- .../operatorInformation/OperatorDetails.vue | 6 +- .../feetVehiclesListDetail.vue | 6 +- .../feetVehiclesList/feetVehiclesListForm.vue | 6 +- .../feetVehicles/feetVehiclesList/index.vue | 2 +- .../feetVehicles/fleetDriverAudit/index.vue | 4 +- .../vehicleAudit/vehicleAuditDetail.vue | 6 +- .../vehiclesList/vehiclesListDetail.vue | 6 +- 22 files changed, 519 insertions(+), 88 deletions(-) create mode 100644 src/views/system/operationsManagement/operationalModel/RunModelForm.vue diff --git a/src/api/operationsManagement/billingModel/monthModel/index.ts b/src/api/operationsManagement/billingModel/monthModel/index.ts index 063c731..6ce6044 100644 --- a/src/api/operationsManagement/billingModel/monthModel/index.ts +++ b/src/api/operationsManagement/billingModel/monthModel/index.ts @@ -40,6 +40,9 @@ export const ElectricityDateApi = { getElectricityDatePage: async (params: any) => { return await request.get({ url: `/cloud/billing-date/page`, params }) }, + getElectricityDatenew: async (params: any) => { + return await request.get({ url: `/electricity-date/list`, params }) + }, // 查询电价模型月份详情 getElectricityDate: async (id: number) => { diff --git a/src/api/operationsManagement/operationalModel/index.ts b/src/api/operationsManagement/operationalModel/index.ts index e69de29..526e8ee 100644 --- a/src/api/operationsManagement/operationalModel/index.ts +++ b/src/api/operationsManagement/operationalModel/index.ts @@ -0,0 +1,46 @@ +import request from '@/config/axios' + +// 场站运营模型 VO +export interface RunModelVO { + // 模型id + id: number + // 运营模型名称 + name: string + // 运营商id + operatorId: number + // 时段数 + periodsAmount: number +} + +// 场站运营模型 API +export const RunModelApi = { + // 查询场站运营模型分页 + getRunModelPage: async (params: any) => { + return await request.get({ url: `/cloud/run-model/page`, params }) + }, + + // 查询场站运营模型详情 + getRunModel: async (id: number) => { + return await request.get({ url: `/cloud/run-model/get?id=` + id }) + }, + + // 新增场站运营模型 + createRunModel: async (data: RunModelVO) => { + return await request.post({ url: `/cloud/run-model/create`, data }) + }, + + // 修改场站运营模型 + updateRunModel: async (data: RunModelVO) => { + return await request.put({ url: `/cloud/run-model/update`, data }) + }, + + // 删除场站运营模型 + deleteRunModel: async (id: number) => { + return await request.delete({ url: `/cloud/run-model/delete?id=` + id }) + }, + + // 导出场站运营模型 Excel + exportRunModel: async (params) => { + return await request.download({ url: `/cloud/run-model/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue b/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue index 78e0319..1116ad8 100644 --- a/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue +++ b/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue @@ -23,8 +23,10 @@ --> - - + + {{ formData.btyNo || "--" }} diff --git a/src/views/system/batteryManagement/batteryInfo/index.vue b/src/views/system/batteryManagement/batteryInfo/index.vue index 36907bf..11aa1b2 100644 --- a/src/views/system/batteryManagement/batteryInfo/index.vue +++ b/src/views/system/batteryManagement/batteryInfo/index.vue @@ -108,11 +108,11 @@ --> - + - + - + diff --git a/src/views/system/operationsManagement/billingModel/BillingModelForm.vue b/src/views/system/operationsManagement/billingModel/BillingModelForm.vue index e7b248d..4dd33c7 100644 --- a/src/views/system/operationsManagement/billingModel/BillingModelForm.vue +++ b/src/views/system/operationsManagement/billingModel/BillingModelForm.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/src/views/system/operator/operatorInformation/OperatorDetails.vue b/src/views/system/operator/operatorInformation/OperatorDetails.vue index cbf83ef..f8c9c80 100644 --- a/src/views/system/operator/operatorInformation/OperatorDetails.vue +++ b/src/views/system/operator/operatorInformation/OperatorDetails.vue @@ -1,7 +1,9 @@