|
|
|
@ -10,172 +10,172 @@
|
|
|
|
|
<el-form :model="state.ruleForm" ref="ruleFormRef" label-width="auto">
|
|
|
|
|
<el-row :gutter="10">
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="换电站编码" prop="stationNo" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.swapStationCode')" prop="stationNo" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationNo" placeholder="" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="换电站名称" prop="stationName" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.swapStationName')" prop="stationName" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationName" placeholder="" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="站类型" prop="stationType" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.swapStationType')" prop="stationType" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationType" placeholder="" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="换电站识别号" prop="stationSn" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.swapStationID')" prop="stationSn" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationSn" placeholder="" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="地理位置">
|
|
|
|
|
<el-form-item :label="$t('message.stop.geographicLocation')">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationLocation" placeholder="" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="经度">
|
|
|
|
|
<el-form-item :label="$t('message.stop.longitude')">
|
|
|
|
|
<el-input v-model="state.ruleForm.longitude" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="纬度">
|
|
|
|
|
<el-form-item :label="$t('message.stop.latitude')">
|
|
|
|
|
<el-input v-model="state.ruleForm.latitude" placeholder="" clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="区域编号">
|
|
|
|
|
<el-form-item :label="$t('message.stop.areaCode')">
|
|
|
|
|
<el-input v-model="state.ruleForm.areaCode" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="区域名称">
|
|
|
|
|
<el-form-item :label="$t('message.stop.areaName')">
|
|
|
|
|
<el-input v-model="state.ruleForm.areaName" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="营运开始时间" prop="operatetionstime" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.operatetionstime" type="date" placeholder="营运开始时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
<el-form-item :label="$t('message.stop.operationStartTime')" prop="operatetionstime" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.operatetionstime" type="date" :placeholder="$t('message.stop.operationStartTime')" format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="营运结束时间" prop="operatetionetime" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.operatetionetime" type="date" placeholder="营运结束时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
<el-form-item :label="$t('message.stop.operationEndTime')" prop="operatetionetime" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.operatetionetime" type="date" :placeholder="$t('message.stop.operationEndTime')" format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="服务状态" prop="sevstatus" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.serviceStatus')" prop="sevstatus" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.sevstatus" placeholder="" type="number" max="127" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="运营状态" prop="stationStatus" :rules="[{ required: true, message: '不能为空', trigger: 'change' }]">
|
|
|
|
|
<el-select v-model="state.ruleForm.stationStatus" placeholder="运营状态" clearable class="w100">
|
|
|
|
|
<el-option label="营业中" :value="1" />
|
|
|
|
|
<el-option label="歇业中" :value="2" />
|
|
|
|
|
<el-option label="设备维护" :value="3" />
|
|
|
|
|
<el-option label="暂停营业" :value="4" />
|
|
|
|
|
<el-form-item :label="$t('message.stop.operationStatus')" prop="stationStatus" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'change' }]">
|
|
|
|
|
<el-select v-model="state.ruleForm.stationStatus" :placeholder="$t('message.stop.operationStatus')" clearable class="w100">
|
|
|
|
|
<el-option :label="$t('message.stop.openForBusiness')" :value="1" />
|
|
|
|
|
<el-option :label="$t('message.stop.temporarilyClosed')" :value="2" />
|
|
|
|
|
<el-option :label="$t('message.stop.equipmentMaintenance')" :value="3" />
|
|
|
|
|
<el-option :label="$t('message.stop.businessSuspended')" :value="4" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="投放时间">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.launchTime" type="date" placeholder="投放时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
<el-form-item :label="$t('message.stop.deploymentTime')">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.launchTime" type="date" :placeholder="$t('message.stop.deploymentTime')" format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="联系方式" prop="contactWay" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.contactInformation')" prop="contactWay" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.contactWay" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="负责人" prop="principal" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.stationManager')" prop="principal" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.principal" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="所属运营企业">
|
|
|
|
|
<el-form-item :label="$t('message.stop.operatingCompany')">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationCompany" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="所属运营企业统一社会信用代码">
|
|
|
|
|
<el-form-item :label="$t('message.stop.operatingCompanyCreditCode')">
|
|
|
|
|
<el-input v-model="state.ruleForm.socialCreditCode" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="站控主机软件版本号" prop="stationSftVer" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.mainControllerSoftwareVersion')" prop="stationSftVer" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationSftVer" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="供应商代码" prop="supplierCode" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.supplierCode')" prop="supplierCode" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.supplierCode" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="换电站基础信息版本号" prop="stationVersion" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.basicInfoVersion')" prop="stationVersion" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationVersion" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="换电站硬件版本">
|
|
|
|
|
<el-form-item :label="$t('message.stop.hardwareVersion')">
|
|
|
|
|
<el-input v-model="state.ruleForm.hardwareVersion" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="总体故障等级">
|
|
|
|
|
<el-form-item :label="$t('message.stop.overallFaultLevel')">
|
|
|
|
|
<el-input v-model="state.ruleForm.faultlevel" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="加解锁方式">
|
|
|
|
|
<el-form-item :label="$t('message.stop.lockUnlockMethod')">
|
|
|
|
|
<el-input v-model="state.ruleForm.lockType" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="进入方式">
|
|
|
|
|
<el-form-item :label="$t('message.stop.entryMethod')">
|
|
|
|
|
<el-input v-model="state.ruleForm.accessType" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="举升方式">
|
|
|
|
|
<el-form-item :label="$t('message.stop.liftingMethod')">
|
|
|
|
|
<el-input v-model="state.ruleForm.riseType" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="配电容量(kVA)">
|
|
|
|
|
<el-form-item :label="$t('message.stop.powerDistributionCapacity')">
|
|
|
|
|
<el-input v-model="state.ruleForm.distributionCapacity" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="修改时间">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.modifyTime" type="date" placeholder="修改时间" disabled format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
<el-form-item :label="$t('message.stop.modificationTime')">
|
|
|
|
|
<el-date-picker v-model="state.ruleForm.modifyTime" type="date" :placeholder="$t('message.stop.modificationTime')" disabled format="YYYY-MM-DD" value-format="YYYY-MM-DD" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="总功率(kw)">
|
|
|
|
|
<el-form-item :label="$t('message.stop.totalPower')">
|
|
|
|
|
<el-input v-model="state.ruleForm.totalPower" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="省份" prop="stationProvince" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.province')" prop="stationProvince" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationProvince" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="城市" prop="stationCity" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.city')" prop="stationCity" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationCity" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="组织机构ID">
|
|
|
|
|
<el-form-item :label="$t('message.stop.organizationID')">
|
|
|
|
|
<el-input v-model="state.ruleForm.organizationId" placeholder="" type="number" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
|
|
|
<el-form-item label="站控电脑MAC地址" prop="stationMac" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
|
<el-form-item :label="$t('message.stop.stationControlPCMACAddress')" prop="stationMac" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
|
<el-input v-model="state.ruleForm.stationMac" placeholder="" class="w100" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -198,7 +198,8 @@ import { ElMessageBox, ElMessage } from 'element-plus';
|
|
|
|
|
import { getAPI } from '/@/utils/axios-utils';
|
|
|
|
|
import { SysSideBasisApi } from '/@/api-services/api';
|
|
|
|
|
import { UpdateStopSideInput } from '/@/api-services/models';
|
|
|
|
|
|
|
|
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
title: String,
|
|
|
|
|
});
|
|
|
|
|