From 5bf82697f77f477feb3f5da2b68d44ef814e929f Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Tue, 24 Sep 2024 14:58:48 +0800 Subject: [PATCH] =?UTF-8?q?9.23=20=20=20=E9=97=AE=E9=A2=98=E7=82=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../batteryretrospect/index.ts | 137 +++++---- .../orderManagement/reservationForm/index.ts | 2 +- src/utils/dict.ts | 5 +- .../batteryInfo/batteryInfoDetails.vue | 2 +- .../batteryretrospect/BatteryList.vue | 135 ++++++++ .../BatteryRetrospectDetails.vue | 177 +++++++++++ .../batteryretrospect/index.vue | 21 +- .../energyMeter/energyMeterDetails.vue | 16 +- .../energyMeter/gunlist/index.vue | 108 +++---- .../equipmentManagement/energyMeter/index.vue | 8 +- .../packageList/SetMealDetails.vue | 146 +++++++++ .../packageList/SetMealForm.vue | 25 +- .../components/SetMealRecordsDetails.vue | 140 +++++++++ .../components/SetMealRecordsForm.vue | 193 ++++++++++++ .../packageList/components/index.vue | 288 ++++++++++++++++++ .../marketingManagement/packageList/index.vue | 46 ++- .../chargingOrder/components/drawer.vue | 20 ++ .../chargingOrder/index.vue | 11 +- .../failureData/AlarmProcessRecordForm.vue | 54 +++- .../failureData/index.vue | 47 ++- .../failureUnprocessed/AlarmRecordForm.vue | 56 +++- .../failureUnprocessed/index.vue | 48 ++- .../maintenanceWorkOrder/EqmMtnDetails.vue | 4 +- .../maintenanceWorkOrder/EqmMtnForm.vue | 36 ++- .../maintenanceWorkOrder/index.vue | 11 +- .../operatorInformation/OperatorForm.vue | 1 + .../powerChangeOrder/SwapOrderForm.vue | 142 ++++++++- .../powerChangeOrder/components/drawer.vue | 2 +- .../reservationForm/AmtOrderDetails.vue | 2 +- .../reservationForm/AmtOrderForm.vue | 4 +- .../orderManagement/reservationForm/index.vue | 6 +- .../system/substation/binManagement/index.vue | 16 +- .../system/substation/siteManager/index.vue | 2 +- .../vehiclesList/vehiclesListDetail.vue | 2 +- .../vehiclesList/vehiclesListForm.vue | 18 +- 35 files changed, 1704 insertions(+), 227 deletions(-) create mode 100644 src/views/system/batteryManagement/batteryretrospect/BatteryList.vue create mode 100644 src/views/system/batteryManagement/batteryretrospect/BatteryRetrospectDetails.vue create mode 100644 src/views/system/marketingManagement/packageList/SetMealDetails.vue create mode 100644 src/views/system/marketingManagement/packageList/components/SetMealRecordsDetails.vue create mode 100644 src/views/system/marketingManagement/packageList/components/SetMealRecordsForm.vue create mode 100644 src/views/system/marketingManagement/packageList/components/index.vue diff --git a/src/api/batteryManagement/batteryretrospect/index.ts b/src/api/batteryManagement/batteryretrospect/index.ts index c91615b..a570ba1 100644 --- a/src/api/batteryManagement/batteryretrospect/index.ts +++ b/src/api/batteryManagement/batteryretrospect/index.ts @@ -1,66 +1,71 @@ -import request from '@/config/axios' - -// 电池追溯记录 VO -export interface BatteryRetrospectVO { - // 主键ID - id: number - // 换电站编码 - stationNo: string - // 电池编码 - batteryNo: string - // 安装位置:1换电站,2车辆 - position: number - // 安装时间 - installationTime: Date - // 车牌号 - vehicleNo: string - // 车辆VIN码 - vehicleVin: string - // soc - soc: number - // soe - soe: number - // soh - soh: number - // 额定容量 - ratedCapacity: number - // 额定电压 - ratedVoltage: number - // 用户编号 - userId: number - // 仓位编号 - binNo: string -} - -// 电池追溯记录 API -export const BatteryRetrospectApi = { - // 查询电池追溯记录分页 - getBatteryRetrospectPage: async (params: any) => { - return await request.get({ url: `/cloud/battery-retrospect/page`, params }) - }, - - // 查询电池追溯记录详情 - getBatteryRetrospect: async (id: number) => { - return await request.get({ url: `/cloud/battery-retrospect/get?id=` + id }) - }, - - // 新增电池追溯记录 - createBatteryRetrospect: async (data: BatteryRetrospectVO) => { - return await request.post({ url: `/cloud/battery-retrospect/create`, data }) - }, - - // 修改电池追溯记录 - updateBatteryRetrospect: async (data: BatteryRetrospectVO) => { - return await request.put({ url: `/cloud/battery-retrospect/update`, data }) - }, - - // 删除电池追溯记录 - deleteBatteryRetrospect: async (id: number) => { - return await request.delete({ url: `/cloud/battery-retrospect/delete?id=` + id }) - }, - - // 导出电池追溯记录 Excel - exportBatteryRetrospect: async (params) => { - return await request.download({ url: `/cloud/battery-retrospect/export-excel`, params }) - }, -} \ No newline at end of file +import request from '@/config/axios' +import { any } from 'vue-types' + +// 电池追溯记录 VO +export interface BatteryRetrospectVO { + // 主键ID + id: number + // 换电站编码 + stationNo: string + // 电池编码 + batteryNo: string + // 安装位置:1换电站,2车辆 + position: number + // 安装时间 + installationTime: Date + // 车牌号 + vehicleNo: string + // 车辆VIN码 + vehicleVin: string + // soc + soc: number + // soe + soe: number + // soh + soh: number + // 额定容量 + ratedCapacity: number + // 额定电压 + ratedVoltage: number + // 用户编号 + userId: number + // 仓位编号 + binNo: string +} + +// 电池追溯记录 API +export const BatteryRetrospectApi = { + // 查询电池追溯记录分页 + getBatteryRetrospectPage: async (params: any) => { + return await request.get({ url: `/cloud/battery-retrospect/page`, params }) + }, + + // 查询电池追溯记录详情 + getBatteryRetrospect: async (id: number) => { + return await request.get({ url: `/cloud/battery-retrospect/get?id=` + id }) + }, + // 详情里的表单数据 + getBatteryRetros: async (params:any) => { + return await request.get({ url: `/cloud/battery-retrospect/pageDetails`,params }) + }, + + // 新增电池追溯记录 + createBatteryRetrospect: async (data: BatteryRetrospectVO) => { + return await request.post({ url: `/cloud/battery-retrospect/create`, data }) + }, + + // 修改电池追溯记录 + updateBatteryRetrospect: async (data: BatteryRetrospectVO) => { + return await request.put({ url: `/cloud/battery-retrospect/update`, data }) + }, + + // 删除电池追溯记录 + deleteBatteryRetrospect: async (id: number) => { + return await request.delete({ url: `/cloud/battery-retrospect/delete?id=` + id }) + }, + + // 导出电池追溯记录 Excel + exportBatteryRetrospect: async (params) => { + return await request.download({ url: `/cloud/battery-retrospect/export-excel`, params }) + }, +} diff --git a/src/api/system/orderManagement/reservationForm/index.ts b/src/api/system/orderManagement/reservationForm/index.ts index abc2b4d..61af210 100644 --- a/src/api/system/orderManagement/reservationForm/index.ts +++ b/src/api/system/orderManagement/reservationForm/index.ts @@ -12,7 +12,7 @@ export interface AmtOrderVO { vehicleNo: string // 预约单号 orderNo: string - // 车辆vim码 + // 车辆vin码 vehicleVin: string // 电池类型 batteryType: string diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 153913f..4b5d945 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -126,10 +126,13 @@ export enum DICT_TYPE { RESERVATION_STATUS = 'reservation_status',// STATISTICAL_TIME_TYPE = 'statistical_time_type', MAINTENANCE_STATUS = 'maintenance_status',//0未保养,1已保养 + EQUIP_TYPE_CODE = 'equip_type_code', + ALARM_LEVEL ='alarm_level', + MAINTENANCE_LEVEL= 'maintenance_level', DRIVER_AUDIT_STATUS = 'driver_audit_status', CHARGER_TYPE = 'charger_type', CHARGER_TYPE_OUT = 'charger_type_out', - + GUN_LIST = 'gun_list', GUNSTATUS = 'gunstatus', REFUND_STATUS = 'refund_status', REFUND_STATUS_two = 'refund_status_two', diff --git a/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue b/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue index 1116ad8..a885158 100644 --- a/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue +++ b/src/views/system/batteryManagement/batteryInfo/batteryInfoDetails.vue @@ -1,5 +1,5 @@ + + \ No newline at end of file diff --git a/src/views/system/batteryManagement/batteryretrospect/BatteryRetrospectDetails.vue b/src/views/system/batteryManagement/batteryretrospect/BatteryRetrospectDetails.vue new file mode 100644 index 0000000..a03c7e6 --- /dev/null +++ b/src/views/system/batteryManagement/batteryretrospect/BatteryRetrospectDetails.vue @@ -0,0 +1,177 @@ + + + \ No newline at end of file diff --git a/src/views/system/batteryManagement/batteryretrospect/index.vue b/src/views/system/batteryManagement/batteryretrospect/index.vue index 40be6d4..047c097 100644 --- a/src/views/system/batteryManagement/batteryretrospect/index.vue +++ b/src/views/system/batteryManagement/batteryretrospect/index.vue @@ -88,9 +88,17 @@ - - --> + + \ No newline at end of file diff --git a/src/views/system/equipmentManagement/energyMeter/index.vue b/src/views/system/equipmentManagement/energyMeter/index.vue index 05f0cc4..e74ef3d 100644 --- a/src/views/system/equipmentManagement/energyMeter/index.vue +++ b/src/views/system/equipmentManagement/energyMeter/index.vue @@ -75,13 +75,7 @@ - - - - - + - + + + + + + diff --git a/src/views/system/operationMaintenanceManagement/failureData/AlarmProcessRecordForm.vue b/src/views/system/operationMaintenanceManagement/failureData/AlarmProcessRecordForm.vue index 055d86c..2a0a177 100644 --- a/src/views/system/operationMaintenanceManagement/failureData/AlarmProcessRecordForm.vue +++ b/src/views/system/operationMaintenanceManagement/failureData/AlarmProcessRecordForm.vue @@ -11,12 +11,31 @@ - + + + - - + + + + @@ -31,7 +50,20 @@ - + + + + @@ -79,7 +111,8 @@ import { AlarmProcessRecordApi, AlarmProcessRecordVO } from '@/api/system/operationMaintenanceManagement/failureData' - +import { StationInfoApi, StationInfoVO } from '@/api/share/stationinfo' +import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' /** 设备已处理报警列 表单 */ defineOptions({ name: 'AlarmProcessRecordForm' }) @@ -109,6 +142,7 @@ const formRef = ref() // 表单 Ref /** 打开弹窗 */ const open = async (type: string, id?: number) => { + getStationList() dialogVisible.value = true dialogTitle.value = t('action.' + type) formType.value = type @@ -148,7 +182,15 @@ const submitForm = async () => { formLoading.value = false } } - +const stationinfoList = ref([]) +const getStationList = async () => { + try { + const data = await StationInfoApi.getStationInfoList() + // console.log(data, 'data') + stationinfoList.value = data + } finally { + } +} /** 重置表单 */ const resetForm = () => { formData.value = { diff --git a/src/views/system/operationMaintenanceManagement/failureData/index.vue b/src/views/system/operationMaintenanceManagement/failureData/index.vue index 7790c20..e462e94 100644 --- a/src/views/system/operationMaintenanceManagement/failureData/index.vue +++ b/src/views/system/operationMaintenanceManagement/failureData/index.vue @@ -9,15 +9,16 @@ label-width="100px" > - + + + - + - + + + - + + + + { loading.value = false } } - +// 换电站编码下拉框 +const stationinfoList = ref([]) +const getStationList = async () => { + try { + const data = await StationInfoApi.getStationInfoList() + // console.log(data, 'data') + stationinfoList.value = data + } finally { + } +} /** 搜索按钮操作 */ const handleQuery = () => { queryParams.pageNo = 1 @@ -225,5 +245,6 @@ const handleExport = async () => { /** 初始化 **/ onMounted(() => { getList() + getStationList() }) \ No newline at end of file diff --git a/src/views/system/operationMaintenanceManagement/failureUnprocessed/AlarmRecordForm.vue b/src/views/system/operationMaintenanceManagement/failureUnprocessed/AlarmRecordForm.vue index acf6a33..8956c76 100644 --- a/src/views/system/operationMaintenanceManagement/failureUnprocessed/AlarmRecordForm.vue +++ b/src/views/system/operationMaintenanceManagement/failureUnprocessed/AlarmRecordForm.vue @@ -11,12 +11,31 @@ - + + + - - + + + + @@ -31,7 +50,19 @@ - + + + @@ -68,10 +99,11 @@ import { AlarmRecordApi, AlarmRecordVO } from '@/api/system/operationMaintenanceManagement/failureUnprocessed' - +import { StationInfoApi, StationInfoVO } from '@/api/share/stationinfo' +import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' /** 上报未处理报警列 表单 */ defineOptions({ name: 'AlarmRecordForm' }) - +// const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 @@ -97,6 +129,7 @@ const formRef = ref() // 表单 Ref /** 打开弹窗 */ const open = async (type: string, id?: number) => { + getStationList() dialogVisible.value = true dialogTitle.value = t('action.' + type) formType.value = type @@ -112,7 +145,16 @@ const open = async (type: string, id?: number) => { } } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 - +// 换电站编码下拉框 +const stationinfoList = ref([]) +const getStationList = async () => { + try { + const data = await StationInfoApi.getStationInfoList() + // console.log(data, 'data') + stationinfoList.value = data + } finally { + } +} /** 提交表单 */ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 const submitForm = async () => { diff --git a/src/views/system/operationMaintenanceManagement/failureUnprocessed/index.vue b/src/views/system/operationMaintenanceManagement/failureUnprocessed/index.vue index d0e5633..b0723f1 100644 --- a/src/views/system/operationMaintenanceManagement/failureUnprocessed/index.vue +++ b/src/views/system/operationMaintenanceManagement/failureUnprocessed/index.vue @@ -9,15 +9,16 @@ label-width="100px" > - + + + - + - + + + + - + + + + { loading.value = false } } - +// 换电站编码下拉框 +const stationinfoList = ref([]) +const getStationList = async () => { + try { + const data = await StationInfoApi.getStationInfoList() + // console.log(data, 'data') + stationinfoList.value = data + } finally { + } +} /** 搜索按钮操作 */ const handleQuery = () => { queryParams.pageNo = 1 @@ -217,5 +238,6 @@ const handleExport = async () => { /** 初始化 **/ onMounted(() => { getList() + getStationList() }) \ No newline at end of file diff --git a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnDetails.vue b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnDetails.vue index bf50689..52de8ed 100644 --- a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnDetails.vue +++ b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnDetails.vue @@ -21,11 +21,11 @@ width="120px"> - {{ formData.mtnTime || "--" }} - {{ formData.mtnRealTime || "--" }} diff --git a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnForm.vue b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnForm.vue index ed8eee0..276edf5 100644 --- a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnForm.vue +++ b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/EqmMtnForm.vue @@ -54,12 +54,12 @@ - - + + - + @@ -98,12 +98,36 @@ - + + + - - + + + + diff --git a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue index 00da7d4..49a9ad1 100644 --- a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue +++ b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue @@ -91,8 +91,8 @@ - - + + + + +
+ + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + +
+ +
+
+ +