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 @@ - - - - + + - - - + - - - - -