From 5817fff11fa334832f720ca3f8b44bbdda1be6f7 Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Thu, 19 Sep 2024 09:57:25 +0800 Subject: [PATCH] =?UTF-8?q?9.19=20=E8=A1=A8=E5=8D=95=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenanceWorkOrder/index.vue | 2 +- .../hoursAndMinutes/modelTimeList.vue | 488 +++++++----------- .../billingModel/components/month/index.vue | 37 +- .../electricityPriceModelDetails.vue | 460 +++++++++-------- .../operationalModel/RunModelDetails.vue | 14 +- .../siteManager/StationInfoForm.vue | 3 +- .../feetVehiclesList/feetVehiclesListForm.vue | 2 +- 7 files changed, 451 insertions(+), 555 deletions(-) diff --git a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue index 5fd38b7..00da7d4 100644 --- a/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue +++ b/src/views/system/operationMaintenanceManagement/maintenanceWorkOrder/index.vue @@ -127,7 +127,7 @@ :formatter="dateFormatter" width="180px" /> --> - + diff --git a/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeList.vue b/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeList.vue index 3c473df..b522973 100644 --- a/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeList.vue +++ b/src/views/system/operationsManagement/billingModel/components/hoursAndMinutes/modelTimeList.vue @@ -1,312 +1,220 @@ \ No newline at end of file +} + +/** 重置按钮操作 */ +const resetQuery = () => { + queryFormRef.value.resetFields() + handleQuery() +} + +/** 添加/修改操作 */ +const formRef = ref() +const openForm = (type: string, id?: number) => { + emit('open', type, id) + // formRef.value.open(type, id) +} + +/** 删除按钮操作 */ +const handleDelete = async (id: number) => { + try { + // 删除的二次确认 + await message.delConfirm() + // 发起删除 + await BillingTimeApi.deleteBillingTime(id) + message.success(t('common.delSuccess')) + // 刷新列表 + await getList() + } catch {} +} + +/** 导出按钮操作 */ +const handleExport = async () => { + try { + // 导出的二次确认 + await message.exportConfirm() + // 发起导出 + exportLoading.value = true + const data = await BillingTimeApi.exportBillingTime(queryParams) + download.excel(data, '换电计费分时模型.xls') + } catch { + } finally { + exportLoading.value = false + } +} +async function getbillingDateData() { + const data = await ElectricityDateApi.getElectricityDatenew({ modeId: props.selectId }) //此处传月模型的id + + namelist.value = data || [] +} +/** 初始化 **/ +// onMounted(() => { +// getList() +// }) +defineExpose({ getList }) + +watch( + () => props.selectId, + async (newValue) => { + getList() + getbillingDateData() + }, + { + deep: true, + immediate: true + } +) + \ No newline at end of file diff --git a/src/views/system/operationsManagement/billingModel/components/month/index.vue b/src/views/system/operationsManagement/billingModel/components/month/index.vue index 0b88391..7cba025 100644 --- a/src/views/system/operationsManagement/billingModel/components/month/index.vue +++ b/src/views/system/operationsManagement/billingModel/components/month/index.vue @@ -127,44 +127,18 @@ - - - - + + - - - + - - - - -