|
|
@ -2,7 +2,7 @@
|
|
|
|
<el-drawer title="基本信息" v-model="dialogVisible" size="60%">
|
|
|
|
<el-drawer title="基本信息" v-model="dialogVisible" size="60%">
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions-item label="电价模型名称" min-width="120">
|
|
|
|
<el-descriptions-item label="电价模型名称" min-width="120">
|
|
|
|
{{ oldlist.name || "--" }}
|
|
|
|
{{ oldlist.name || '--' }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
@ -10,15 +10,19 @@
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<!-- table -->
|
|
|
|
<!-- table -->
|
|
|
|
<ContentWrap>
|
|
|
|
<ContentWrap>
|
|
|
|
<el-table :data="stationList" :stripe="true" :show-overflow-tooltip="true" :header-cell-style="{
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
:data="stationList"
|
|
|
|
|
|
|
|
:stripe="true"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
:header-cell-style="{
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
}">
|
|
|
|
}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="换电站编码" align="center" prop="stationNo" />
|
|
|
|
<el-table-column label="换电站编码" align="center" prop="stationNo" width="120" />
|
|
|
|
<el-table-column label="换电站名称" align="center" prop="stationName" />
|
|
|
|
<el-table-column label="换电站名称" align="center" prop="stationName" width="120" />
|
|
|
|
<el-table-column label="换电站识别号" align="center" prop="stationSn" />
|
|
|
|
<el-table-column label="换电站识别号" align="center" prop="stationSn" width="120" />
|
|
|
|
<!-- <el-table-column label="地理位置" align="center" prop="stationLocation" /> -->
|
|
|
|
<!-- <el-table-column label="地理位置" align="center" prop="stationLocation" /> -->
|
|
|
|
<el-table-column label="站类型" align="center" prop="stationType" >
|
|
|
|
<el-table-column label="站类型" align="center" prop="stationType" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.SITECLASSIFICATION_TYPE" :value="scope.row.stationType" />
|
|
|
|
<dict-tag :type="DICT_TYPE.SITECLASSIFICATION_TYPE" :value="scope.row.stationType" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -29,11 +33,21 @@
|
|
|
|
<el-table-column label="区域名称" align="center" prop="areaName" />
|
|
|
|
<el-table-column label="区域名称" align="center" prop="areaName" />
|
|
|
|
<!-- <el-table-column label="区域编号" align="center" prop="areaCode" /> -->
|
|
|
|
<!-- <el-table-column label="区域编号" align="center" prop="areaCode" /> -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="营运时间" align="center" prop="operationTime" width="180"
|
|
|
|
<el-table-column
|
|
|
|
:formatter="dateFormatter"/>
|
|
|
|
label="营运时间"
|
|
|
|
<el-table-column label="投放时间 " align="center" prop="launchTime" width="180"
|
|
|
|
align="center"
|
|
|
|
:formatter="dateFormatter"/>
|
|
|
|
prop="operationTime"
|
|
|
|
<el-table-column label="联系方式-手机号 " align="center" prop="contactWay" />
|
|
|
|
width="180"
|
|
|
|
|
|
|
|
:formatter="dateFormatter"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="投放时间 "
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="launchTime"
|
|
|
|
|
|
|
|
width="180"
|
|
|
|
|
|
|
|
:formatter="dateFormatter"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="联系方式-手机号 " align="center" prop="contactWay" width="130" />
|
|
|
|
<!-- <el-table-column label="服务电话" align="center" prop="serviceTel" /> -->
|
|
|
|
<!-- <el-table-column label="服务电话" align="center" prop="serviceTel" /> -->
|
|
|
|
<!-- <el-table-column label="联系方式-邮箱地址 " align="center" prop="email" /> -->
|
|
|
|
<!-- <el-table-column label="联系方式-邮箱地址 " align="center" prop="email" /> -->
|
|
|
|
<el-table-column label="负责人" align="center" prop="principal" />
|
|
|
|
<el-table-column label="负责人" align="center" prop="principal" />
|
|
|
@ -45,7 +59,7 @@
|
|
|
|
<!-- <el-table-column label="站型类型 " align="center" prop="siteType" /> -->
|
|
|
|
<!-- <el-table-column label="站型类型 " align="center" prop="siteType" /> -->
|
|
|
|
<!-- 1:公共; 50:个人; 100:公交(专用)101:环卫(专用)102:物流(专用)103: 出租⻋(专用)104:分时租赁(专用)105:小区共享(专用)106:单位(专用)107:私人共享桩(专用)255:其他 -->
|
|
|
|
<!-- 1:公共; 50:个人; 100:公交(专用)101:环卫(专用)102:物流(专用)103: 出租⻋(专用)104:分时租赁(专用)105:小区共享(专用)106:单位(专用)107:私人共享桩(专用)255:其他 -->
|
|
|
|
<!-- <el-table-column label="服务车型" align="center" prop="matchVehicles" /> -->
|
|
|
|
<!-- <el-table-column label="服务车型" align="center" prop="matchVehicles" /> -->
|
|
|
|
<el-table-column label="是否全天营业" align="center" prop="oahFlag" >
|
|
|
|
<el-table-column label="是否全天营业" align="center" prop="oahFlag" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.OAHFLAG_STATUS" :value="scope.row.oahFlag" />
|
|
|
|
<dict-tag :type="DICT_TYPE.OAHFLAG_STATUS" :value="scope.row.oahFlag" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -55,29 +69,31 @@
|
|
|
|
<!-- 站点分类 1:充电站;2:换电站;3:充换电一体站 -->
|
|
|
|
<!-- 站点分类 1:充电站;2:换电站;3:充换电一体站 -->
|
|
|
|
<!-- <el-table-column label="建设场所" align="center" prop="constructionSite" /> -->
|
|
|
|
<!-- <el-table-column label="建设场所" align="center" prop="constructionSite" /> -->
|
|
|
|
<!-- construction建设场所 1:居民区;2:公共机构;3:企事业单位;4:写字楼;5:工业园区;6:交通枢纽;7:大型文体设施;8:城市绿地;9:大型建筑配建停车场;10:路边停车位;11:城际高速服务区;2:风景区;13:公交场站;14:加油加气站;15:出租车;255:其他 -->
|
|
|
|
<!-- construction建设场所 1:居民区;2:公共机构;3:企事业单位;4:写字楼;5:工业园区;6:交通枢纽;7:大型文体设施;8:城市绿地;9:大型建筑配建停车场;10:路边停车位;11:城际高速服务区;2:风景区;13:公交场站;14:加油加气站;15:出租车;255:其他 -->
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enable" >
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enable" width="100">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.enable" />
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.enable" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 0:未启用 1:启用 -->
|
|
|
|
<!-- 0:未启用 1:启用 -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="计费电量" align="center" prop="electricitySource" >
|
|
|
|
<el-table-column label="计费电量" align="center" prop="electricitySource" width="100">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.ELECTRICITYSOURCE" :value="scope.row.electricitySource" />
|
|
|
|
<dict-tag :type="DICT_TYPE.ELECTRICITYSOURCE" :value="scope.row.electricitySource" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 计费电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<!-- 计费电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<el-table-column label="电价电量" align="center" prop="electricityPriceSource" >
|
|
|
|
<el-table-column label="电价电量" align="center" prop="electricityPriceSource" width="100">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.ELECTRICITYSOURCE" :value="scope.row.electricityPriceSource" />
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:type="DICT_TYPE.ELECTRICITYSOURCE"
|
|
|
|
|
|
|
|
:value="scope.row.electricityPriceSource"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 电价电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<!-- 电价电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<!-- <el-table-column label="soc差值来源" align="center" prop="socSource" /> -->
|
|
|
|
<!-- <el-table-column label="soc差值来源" align="center" prop="socSource" /> -->
|
|
|
|
<!-- soc差值来源:1:换电时的SOC;2:充电时的SOC -->
|
|
|
|
<!-- soc差值来源:1:换电时的SOC;2:充电时的SOC -->
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</ContentWrap>
|
|
|
|
</ContentWrap>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
@ -85,22 +101,22 @@
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<!-- table -->
|
|
|
|
<!-- table -->
|
|
|
|
<ContentWrap>
|
|
|
|
<ContentWrap>
|
|
|
|
<el-table :data="electricityDate" :stripe="true" :show-overflow-tooltip="true" :header-cell-style="{
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
:data="electricityDate"
|
|
|
|
|
|
|
|
:stripe="true"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
:header-cell-style="{
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
}">
|
|
|
|
}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="电价模型名称 " align="center" prop="name" />
|
|
|
|
<el-table-column label="电价模型名称" align="center" prop="name" width="120" />
|
|
|
|
<el-table-column label="时段数量" align="center" prop="periodsAmount" />
|
|
|
|
<el-table-column label="时段数量" align="center" prop="periodsAmount" />
|
|
|
|
<el-table-column label="开始日期 " align="center" prop="startDate" width="180"
|
|
|
|
<el-table-column label="开始日期" align="center" prop="startDate" width="180" />
|
|
|
|
/>
|
|
|
|
<el-table-column label="结束日期" align="center" prop="endDate" width="180" />
|
|
|
|
<el-table-column label="结束日期 " align="center" prop="endDate" width="180"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="尖电价(分)" align="center" prop="theTipPrice" />
|
|
|
|
<el-table-column label="尖电价(分)" align="center" prop="theTipPrice" />
|
|
|
|
<el-table-column label="峰电价(分)" align="center" prop="peakPrice" />
|
|
|
|
<el-table-column label="峰电价(分)" align="center" prop="peakPrice" />
|
|
|
|
<el-table-column label="平电价(分)" align="center" prop="flatPrice" />
|
|
|
|
<el-table-column label="平电价(分)" align="center" prop="flatPrice" />
|
|
|
|
<el-table-column label="谷电价(分)" align="center" prop="theValleyPrice" />
|
|
|
|
<el-table-column label="谷电价(分)" align="center" prop="theValleyPrice" />
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="是否启用" align="center" prop="status">
|
|
|
|
<el-table-column label="是否启用" align="center" prop="status">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.status" />
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.status" />
|
|
|
@ -116,9 +132,14 @@
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<!-- table -->
|
|
|
|
<!-- table -->
|
|
|
|
<ContentWrap>
|
|
|
|
<ContentWrap>
|
|
|
|
<el-table :data="electricityTimeList" :stripe="true" :show-overflow-tooltip="true" :header-cell-style="{
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
:data="electricityTimeList"
|
|
|
|
|
|
|
|
:stripe="true"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
:header-cell-style="{
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
}">
|
|
|
|
}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="电价模型名称" align="center" prop="name" />
|
|
|
|
<el-table-column label="电价模型名称" align="center" prop="name" />
|
|
|
|
<el-table-column label="类型" align="center" prop="type">
|
|
|
|
<el-table-column label="类型" align="center" prop="type">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
@ -126,23 +147,20 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 1尖2峰3平4谷 -->
|
|
|
|
<!-- 1尖2峰3平4谷 -->
|
|
|
|
<el-table-column label="尖电价开始时刻" align="center" prop="startTime" width="180"
|
|
|
|
<el-table-column label="尖电价开始时刻" align="center" prop="startTime" width="180" />
|
|
|
|
/>
|
|
|
|
<el-table-column label="尖电价结束时刻" align="center" prop="endTime" width="180" />
|
|
|
|
<el-table-column label="尖电价结束时刻" align="center" prop="endTime" width="180"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</ContentWrap>
|
|
|
|
</ContentWrap>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-drawer>
|
|
|
|
</el-drawer>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
|
|
|
import { ElectricityPriceApi, ElectricityPriceVO } from '@/api/operationsManagement/electricityPriceModel'
|
|
|
|
import {
|
|
|
|
|
|
|
|
ElectricityPriceApi,
|
|
|
|
|
|
|
|
ElectricityPriceVO
|
|
|
|
|
|
|
|
} from '@/api/operationsManagement/electricityPriceModel'
|
|
|
|
/** 电价模型 表单 */
|
|
|
|
/** 电价模型 表单 */
|
|
|
|
defineOptions({ name: 'ElectricityPriceForm' })
|
|
|
|
defineOptions({ name: 'ElectricityPriceForm' })
|
|
|
|
|
|
|
|
|
|
|
@ -166,10 +184,10 @@
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
operatorId: undefined,
|
|
|
|
operatorId: undefined
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const formRules = reactive({
|
|
|
|
const formRules = reactive({
|
|
|
|
name: [{ required: true, message: '电价模型名称不能为空', trigger: 'blur' }],
|
|
|
|
name: [{ required: true, message: '电价模型名称不能为空', trigger: 'blur' }]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
|
|
|
|
|
|
|
@ -210,8 +228,6 @@
|
|
|
|
await ElectricityPriceApi.createElectricityPrice(data)
|
|
|
|
await ElectricityPriceApi.createElectricityPrice(data)
|
|
|
|
message.success(t('common.createSuccess'))
|
|
|
|
message.success(t('common.createSuccess'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
dialogVisible.value = false
|
|
|
|
// 发送操作成功的事件
|
|
|
|
// 发送操作成功的事件
|
|
|
|
emit('success')
|
|
|
|
emit('success')
|
|
|
@ -231,7 +247,7 @@
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
operatorId: undefined,
|
|
|
|
operatorId: undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
formRef.value?.resetFields()
|
|
|
|
formRef.value?.resetFields()
|
|
|
|
}
|
|
|
|
}
|
|
|
|