From 2e754d65e575fee2111c7c82479c753d3cfb8719 Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Sat, 17 Aug 2024 18:41:54 +0800 Subject: [PATCH] =?UTF-8?q?8.17=20=E6=99=9A=E4=B8=8A=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../batteryManagement/batteryModel/index.ts | 52 +++ .../electricityPriceModel/monthModel/index.ts | 68 +++ .../electricityPriceModel/timeModel/index.ts | 52 +++ .../batteryInfo/batteryInfoForm.vue | 7 +- .../batteryManagement/batteryInfo/index.vue | 1 + .../batteryModel/BatteryTypeForm.vue | 141 ++++++ .../batteryManagement/batteryModel/index.vue | 245 +++++++++++ .../billingModel/BillingModelForm.vue | 60 +-- .../billingModel/billingModelDetails.vue | 17 +- .../hoursAndMinutes/modelTimeForm.vue | 1 + .../hoursAndMinutes/modelTimeList.vue | 3 +- .../components/month/ElectricityDateForm.vue | 1 + .../billingModel/components/month/index.vue | 21 +- .../billingModel/index.vue | 33 +- .../ElectricityPriceForm.vue | 132 +++--- .../hoursAndMinutes/ElectricityTimeForm.vue | 148 +++++++ .../components/hoursAndMinutes/index.vue | 204 +++++++++ .../components/month/ElectricityDateForm.vue | 217 ++++++++++ .../components/month/index.vue | 250 +++++++++++ .../electricityPriceModelDetails.vue | 177 ++++++-- .../electricityPriceModel/index.vue | 405 +++++++----------- .../electricityPriceModel/yuanForm.vue | 127 ++++++ .../feetVehiclesList/feetVehiclesListForm.vue | 1 + .../feetVehicles/feetVehiclesList/index.vue | 21 +- .../feetVehicles/fleetDriverAudit/index.vue | 4 +- .../personalVehicle/vehicleAudit/index.vue | 7 +- .../personalVehicle/vehiclesList/index.vue | 17 +- .../vehiclesList/vehiclesListForm.vue | 275 ++++++------ 28 files changed, 2084 insertions(+), 603 deletions(-) create mode 100644 src/api/batteryManagement/batteryModel/index.ts create mode 100644 src/api/operationsManagement/electricityPriceModel/monthModel/index.ts create mode 100644 src/api/operationsManagement/electricityPriceModel/timeModel/index.ts create mode 100644 src/views/system/batteryManagement/batteryModel/BatteryTypeForm.vue create mode 100644 src/views/system/batteryManagement/batteryModel/index.vue create mode 100644 src/views/system/operationsManagement/electricityPriceModel/components/hoursAndMinutes/ElectricityTimeForm.vue create mode 100644 src/views/system/operationsManagement/electricityPriceModel/components/hoursAndMinutes/index.vue create mode 100644 src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue create mode 100644 src/views/system/operationsManagement/electricityPriceModel/components/month/index.vue create mode 100644 src/views/system/operationsManagement/electricityPriceModel/yuanForm.vue diff --git a/src/api/batteryManagement/batteryModel/index.ts b/src/api/batteryManagement/batteryModel/index.ts new file mode 100644 index 0000000..346cdf5 --- /dev/null +++ b/src/api/batteryManagement/batteryModel/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 电池型号管理 VO +export interface BatteryTypeVO { + // 索引编号 + id: number + // 运营商id + operatorId: number + // 电池型号代码 + btyTypeCode: string + // 电池型号名称 + btyTypeName: string + // 电池型号等级 + btyTypeLevel: string + // 电池型号状态 + btyTypeState: number + // 电池型号描述 + btyTypeDesc: string +} + +// 电池型号管理 API +export const BatteryTypeApi = { + // 查询电池型号管理分页 + getBatteryTypePage: async (params: any) => { + return await request.get({ url: `/cloud/battery-type/page`, params }) + }, + + // 查询电池型号管理详情 + getBatteryType: async (id: number) => { + return await request.get({ url: `/cloud/battery-type/get?id=` + id }) + }, + + // 新增电池型号管理 + createBatteryType: async (data: BatteryTypeVO) => { + return await request.post({ url: `/cloud/battery-type/create`, data }) + }, + + // 修改电池型号管理 + updateBatteryType: async (data: BatteryTypeVO) => { + return await request.put({ url: `/cloud/battery-type/update`, data }) + }, + + // 删除电池型号管理 + deleteBatteryType: async (id: number) => { + return await request.delete({ url: `/cloud/battery-type/delete?id=` + id }) + }, + + // 导出电池型号管理 Excel + exportBatteryType: async (params) => { + return await request.download({ url: `/cloud/battery-type/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/operationsManagement/electricityPriceModel/monthModel/index.ts b/src/api/operationsManagement/electricityPriceModel/monthModel/index.ts new file mode 100644 index 0000000..1cf7338 --- /dev/null +++ b/src/api/operationsManagement/electricityPriceModel/monthModel/index.ts @@ -0,0 +1,68 @@ +import request from '@/config/axios' + +// 电价模型月份 VO +export interface ElectricityDateVO { + // 电网电价月份模型 ID + id: number + // 电网电价模型id + priceId: number + // 计费模型名称 + name: string + // 时段数量 + periodsAmount: number + // 序列 + no: number + // 开始日期 + startDate: string + // 结束日期 + endDate: string + // 尖电价 + theTipPrice: number + // 峰电价 + peakPrice: number + // 平电价 + flatPrice: number + // 谷电价 + theValleyPrice: number + // 是否启用:0启用;1禁用 + status: number + // 备注 + remark: string + // 数据来源:0:云平台;1;三方运营商 + source: number + // 唯一编码 + code: string +} + +// 电价模型月份 API +export const ElectricityDateApi = { + // 查询电价模型月份分页 + getElectricityDatePage: async (params: any) => { + return await request.get({ url: `/cloud/electricity-date/page`, params }) + }, + + // 查询电价模型月份详情 + getElectricityDate: async (id: number) => { + return await request.get({ url: `/cloud/electricity-date/get?id=` + id }) + }, + + // 新增电价模型月份 + createElectricityDate: async (data: ElectricityDateVO) => { + return await request.post({ url: `/cloud/electricity-date/create`, data }) + }, + + // 修改电价模型月份 + updateElectricityDate: async (data: ElectricityDateVO) => { + return await request.put({ url: `/cloud/electricity-date/update`, data }) + }, + + // 删除电价模型月份 + deleteElectricityDate: async (id: number) => { + return await request.delete({ url: `/cloud/electricity-date/delete?id=` + id }) + }, + + // 导出电价模型月份 Excel + exportElectricityDate: async (params) => { + return await request.download({ url: `/cloud/electricity-date/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/operationsManagement/electricityPriceModel/timeModel/index.ts b/src/api/operationsManagement/electricityPriceModel/timeModel/index.ts new file mode 100644 index 0000000..1a27ed8 --- /dev/null +++ b/src/api/operationsManagement/electricityPriceModel/timeModel/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 电价模型小时 VO +export interface ElectricityTimeVO { + // 电网电价分时模型 ID + id: number + // 分时模型(月日)id + dateId: number + // 计费模型名称 + name: string + // 1尖2峰3平4谷 + type: number + // 尖电价开始时刻 + startTime: string + // 尖电价结束时刻 + endTime: string + // 电价模型id + electricityModelId: number +} + +// 电价模型小时 API +export const ElectricityTimeApi = { + // 查询电价模型小时分页 + getElectricityTimePage: async (params: any) => { + return await request.get({ url: `/cloud/electricity-time/page`, params }) + }, + + // 查询电价模型小时详情 + getElectricityTime: async (id: number) => { + return await request.get({ url: `/cloud/electricity-time/get?id=` + id }) + }, + + // 新增电价模型小时 + createElectricityTime: async (data: ElectricityTimeVO) => { + return await request.post({ url: `/cloud/electricity-time/create`, data }) + }, + + // 修改电价模型小时 + updateElectricityTime: async (data: ElectricityTimeVO) => { + return await request.put({ url: `/cloud/electricity-time/update`, data }) + }, + + // 删除电价模型小时 + deleteElectricityTime: async (id: number) => { + return await request.delete({ url: `/cloud/electricity-time/delete?id=` + id }) + }, + + // 导出电价模型小时 Excel + exportElectricityTime: async (params) => { + return await request.download({ url: `/cloud/electricity-time/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/system/batteryManagement/batteryInfo/batteryInfoForm.vue b/src/views/system/batteryManagement/batteryInfo/batteryInfoForm.vue index d47876e..d4eacc1 100644 --- a/src/views/system/batteryManagement/batteryInfo/batteryInfoForm.vue +++ b/src/views/system/batteryManagement/batteryInfo/batteryInfoForm.vue @@ -6,6 +6,7 @@ :rules="formRules" label-width="160px" v-loading="formLoading" + label-position="top" > @@ -68,11 +69,11 @@ - + diff --git a/src/views/system/batteryManagement/batteryModel/BatteryTypeForm.vue b/src/views/system/batteryManagement/batteryModel/BatteryTypeForm.vue new file mode 100644 index 0000000..ebb2c9d --- /dev/null +++ b/src/views/system/batteryManagement/batteryModel/BatteryTypeForm.vue @@ -0,0 +1,141 @@ + + \ No newline at end of file diff --git a/src/views/system/batteryManagement/batteryModel/index.vue b/src/views/system/batteryManagement/batteryModel/index.vue new file mode 100644 index 0000000..dac8c91 --- /dev/null +++ b/src/views/system/batteryManagement/batteryModel/index.vue @@ -0,0 +1,245 @@ + + + \ No newline at end of file diff --git a/src/views/system/operationsManagement/billingModel/BillingModelForm.vue b/src/views/system/operationsManagement/billingModel/BillingModelForm.vue index 9309e8d..e7b248d 100644 --- a/src/views/system/operationsManagement/billingModel/BillingModelForm.vue +++ b/src/views/system/operationsManagement/billingModel/BillingModelForm.vue @@ -1,10 +1,8 @@ \ No newline at end of file diff --git a/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue b/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue new file mode 100644 index 0000000..f347ee0 --- /dev/null +++ b/src/views/system/operationsManagement/electricityPriceModel/components/month/ElectricityDateForm.vue @@ -0,0 +1,217 @@ + + \ No newline at end of file diff --git a/src/views/system/operationsManagement/electricityPriceModel/components/month/index.vue b/src/views/system/operationsManagement/electricityPriceModel/components/month/index.vue new file mode 100644 index 0000000..1702cb1 --- /dev/null +++ b/src/views/system/operationsManagement/electricityPriceModel/components/month/index.vue @@ -0,0 +1,250 @@ + + + \ No newline at end of file diff --git a/src/views/system/operationsManagement/electricityPriceModel/electricityPriceModelDetails.vue b/src/views/system/operationsManagement/electricityPriceModel/electricityPriceModelDetails.vue index 08e130f..9bbd343 100644 --- a/src/views/system/operationsManagement/electricityPriceModel/electricityPriceModelDetails.vue +++ b/src/views/system/operationsManagement/electricityPriceModel/electricityPriceModelDetails.vue @@ -1,45 +1,121 @@ \ No newline at end of file +/** 初始化 **/ +onMounted(() => { + getList() +}) + \ No newline at end of file diff --git a/src/views/system/operationsManagement/electricityPriceModel/yuanForm.vue b/src/views/system/operationsManagement/electricityPriceModel/yuanForm.vue new file mode 100644 index 0000000..f6f350f --- /dev/null +++ b/src/views/system/operationsManagement/electricityPriceModel/yuanForm.vue @@ -0,0 +1,127 @@ + + \ No newline at end of file diff --git a/src/views/system/vehicleManagement/feetVehicles/feetVehiclesList/feetVehiclesListForm.vue b/src/views/system/vehicleManagement/feetVehicles/feetVehiclesList/feetVehiclesListForm.vue index d096e63..73aec5b 100644 --- a/src/views/system/vehicleManagement/feetVehicles/feetVehiclesList/feetVehiclesListForm.vue +++ b/src/views/system/vehicleManagement/feetVehicles/feetVehiclesList/feetVehiclesListForm.vue @@ -6,6 +6,7 @@ :rules="formRules" label-width="130px" v-loading="formLoading" + label-position="top" > @@ -122,7 +123,7 @@ link type="primary" @click="openForm('update', scope.row.id)" - v-hasPermi="['member:tag:update']" + > 编辑 @@ -130,7 +131,7 @@ link type="danger" @click="handleDelete(scope.row.id)" - v-hasPermi="['member:tag:delete']" + > 删除 @@ -138,7 +139,7 @@ link type="primary" @click="openDetail(scope.row.id)" - v-hasPermi="['system:sms-log:query']" + > 详情 @@ -148,7 +149,7 @@ type="danger" @click="handleCheck2(scope.row.id)" v-if="scope.row.status == 0" - v-hasPermi="['system:post:delete']" + > 启用 @@ -157,7 +158,7 @@ type="danger" @click="handleCheck2(scope.row.id)" v-if="scope.row.status == 1" - v-hasPermi="['system:post:delete']" + > 禁用 @@ -169,7 +170,7 @@ link type="danger" @click="dialogVisible_binding = true" - v-hasPermi="['system:post:delete']" + v-if="scope.row.teamId == null " > 绑定车队 @@ -178,7 +179,7 @@ link type="danger" @click="boundFleetJB(scope.row)" - v-hasPermi="['system:post:delete']" + v-if="scope.row.teamId != null " > 解绑 diff --git a/src/views/system/vehicleManagement/feetVehicles/fleetDriverAudit/index.vue b/src/views/system/vehicleManagement/feetVehicles/fleetDriverAudit/index.vue index 1ef3e57..09387a7 100644 --- a/src/views/system/vehicleManagement/feetVehicles/fleetDriverAudit/index.vue +++ b/src/views/system/vehicleManagement/feetVehicles/fleetDriverAudit/index.vue @@ -58,7 +58,7 @@ 搜索 重置 - + 新增 @@ -118,7 +118,7 @@ --> + > 审核 diff --git a/src/views/system/vehicleManagement/personalVehicle/vehicleAudit/index.vue b/src/views/system/vehicleManagement/personalVehicle/vehicleAudit/index.vue index 77075d9..f206f31 100644 --- a/src/views/system/vehicleManagement/personalVehicle/vehicleAudit/index.vue +++ b/src/views/system/vehicleManagement/personalVehicle/vehicleAudit/index.vue @@ -6,7 +6,7 @@ :model="queryParams" ref="queryFormRef" :inline="true" - label-width="68px" + label-width="100px" > +   @@ -118,11 +119,11 @@ 删除 --> + > 详情 + > 审核 diff --git a/src/views/system/vehicleManagement/personalVehicle/vehiclesList/index.vue b/src/views/system/vehicleManagement/personalVehicle/vehiclesList/index.vue index c19d406..cb3fe97 100644 --- a/src/views/system/vehicleManagement/personalVehicle/vehiclesList/index.vue +++ b/src/views/system/vehicleManagement/personalVehicle/vehiclesList/index.vue @@ -6,7 +6,7 @@ :model="queryParams" ref="queryFormRef" :inline="true" - label-width="80px" + label-width="100px" > 搜索 重置 - + 新增 导出 @@ -79,6 +79,7 @@ +   @@ -136,7 +137,7 @@ link type="primary" @click="openForm('update', scope.row.id)" - v-hasPermi="['member:tag:update']" + > 编辑 @@ -144,20 +145,20 @@ link type="danger" @click="handleDelete(scope.row.id)" - v-hasPermi="['member:tag:delete']" + > 删除 + > 详情 + > 启用 + > 禁用 - - + + - + - + + + - - + - - - - + + - - - + + + - - - + - - - + + + - - + + + - - - + + + + + {{}} + + formRef.value?.resetFields() +} + \ No newline at end of file