|
@@ -1,94 +1,163 @@
|
|
|
<template>
|
|
|
- <el-dialog :title="title" :visible.sync="dialogFormVisible" width="900px" @close="close">
|
|
|
- <el-form ref="form" :model="form" :rules="rules">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item :disabled="!idAdd?true:false" label="id" prop="id"><el-input class="inputs" v-model.trim="form.id" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="公司名称" prop="name"><el-input class="inputs" v-model.trim="form.name" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="别名" prop="aname"><el-input class="inputs" v-model.trim="form.aname" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="风电装机容量" prop="windcapacity"><el-input class="inputs" v-model.trim="form.windcapacity" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="风电容量单位" prop="windcapacityUnit"><el-input class="inputs" v-model.trim="form.windcapacityunit" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="风电装机数量" prop="windquantity"><el-input class="inputs" v-model.trim="form.windquantity" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="光伏装机容量" prop="capacity"><el-input class="inputs" v-model.trim="form.capacity" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="光伏容量单位" prop="capacityUnit"><el-input class="inputs" v-model.trim="form.capacityunit" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="光伏装机数量集中" prop="quantityjz"><el-input class="inputs" v-model.trim="form.quantityjz" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="光伏装机数量组串" prop="quantityzc"><el-input class="inputs" v-model.trim="form.quantityzc" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入风电装机容量2" prop="jrwindcapacity"><el-input class="inputs" v-model.trim="form.jrwindcapacity" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入风电容量单位2" prop="jrwindcapacityUnit"><el-input class="inputs" v-model.trim="form.jrwindcapacityunit" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入风电装机数量2" prop="jrwindquantity"><el-input class="inputs" v-model.trim="form.jrwindquantity" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入光伏装机容量2" prop="jrcapacity"><el-input class="inputs" v-model.trim="form.jrcapacity" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入光伏容量单位2" prop="jrcapacityUnit"><el-input class="inputs" v-model.trim="form.jrcapacityunit" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入光伏装机数量集中" prop="jrquantityjz"><el-input class="inputs" v-model.trim="form.jrquantityjz" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="风电场站数量" prop="windnumber"><el-input class="inputs" v-model.trim="form.windnumber" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="光伏场站数量" prop="number"><el-input class="inputs" v-model.trim="form.number" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入风电场站数" prop="jrwindnumber"><el-input class="inputs" v-model.trim="form.jrwindnumber" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接入光伏场站数" prop="jrnumber"><el-input class="inputs" v-model.trim="form.jrnumber" autocomplete="off"></el-input></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!-- "windnumber": 风电场站数量,
|
|
|
- "number": 光伏场站数量,
|
|
|
- "jrwindnumber": 接入风电场站数,
|
|
|
- "jrnumber": 接入光伏场站数, -->
|
|
|
- <el-row>
|
|
|
- <el-col :span="12"><el-form-item label="接入光伏装机数量组串" prop="jrquantityzc"><el-input class="inputs" v-model.trim="form.jrquantityzc" autocomplete="off"></el-input></el-form-item></el-col>
|
|
|
- <el-col :span="12"></el-col>
|
|
|
- </el-row>
|
|
|
+ <el-dialog :title="title" :visible.sync="dialogFormVisible" width="900px" @close="close" top="2%">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="170px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item :disabled="!idAdd ? true : false" label="编码" prop="id">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.id" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="公司名称" prop="name">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.name" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="公司名称" prop="cascaderSel" v-if="idAdd">
|
|
|
+ <el-cascader v-model="form.cascaderSel" :options="options" style="width: 240px"
|
|
|
+ :props="{ checkStrictly: true, label: 'name', value: 'id', children: 'children' }" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="别名" prop="aname">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.aname" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="集团" prop="windpowerstationId" v-if="!idAdd">
|
|
|
+ <el-input class="inputs" v-model="form.group" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="区域" prop="windpowerstationId" v-if="!idAdd">
|
|
|
+ <el-input class="inputs" v-model="form.region" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <!-- 风电 -->
|
|
|
+ <el-divider><span>风电信息</span></el-divider>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="风电装机容量" prop="windCapacity">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.windCapacity" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="风电场站数量" prop="windNumber">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.windNumber" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="风电容量单位" prop="windCapacityUnit">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.windCapacityUnit" autocomplete="off">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="12">
|
|
|
+ <el-form-item label="风电装机数量" prop="windquantity">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.windquantity" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col> -->
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="风电装机数量海上" prop="windQuantityHs">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.windQuantityHs" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="风电装机数量陆地" prop="windQuantityLd">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.windQuantityLd" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入风电装机容量" prop="jrwindCapacity">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrwindCapacity" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入风电容量单位" prop="jrwindCapacityUnit">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrwindCapacityUnit" autocomplete="off">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="12">
|
|
|
+ <el-form-item label="接入风电装机数量" prop="jrwindquantity">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrwindquantity" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col> -->
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入风电装机数量海上" prop="jrwindQuantityHs">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrwindQuantityHs" autocomplete="off">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入风电装机数量陆地" prop="jrwindQuantityLd">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrwindQuantityLd" autocomplete="off">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入风电场站数" prop="jrWindNumber">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrWindNumber" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <!-- 光伏 -->
|
|
|
+ <el-divider><span>光伏信息</span></el-divider>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="光伏容量单位" prop="capacityUnit">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.capacityUnit" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="光伏装机容量" prop="capacity">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.capacity" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="光伏装机数量集中" prop="quantityJz">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.quantityJz" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="光伏装机数量组串" prop="quantityZc">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.quantityZc" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入光伏装机容量" prop="jrCapacity">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrCapacity" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入光伏容量单位" prop="jrCapacityUnit">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrCapacityUnit" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入光伏装机数量集中" prop="jrquantityJz">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrquantityJz" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="光伏场站数量" prop="number">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.number" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入光伏场站数" prop="jrNumber">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrNumber" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="接入光伏装机数量组串" prop="jrquantityZc">
|
|
|
+ <el-input placeholder="请输入" class="inputs" v-model.trim="form.jrquantityZc" autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="close">取 消</el-button>
|
|
@@ -111,50 +180,60 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
form: {
|
|
|
+ cascaderSel: [],
|
|
|
id: '',
|
|
|
name: '',
|
|
|
aname: '',
|
|
|
- windcapacity: '',
|
|
|
- windcapacityunit: '',
|
|
|
- windquantity: '',
|
|
|
+ windCapacity: '',
|
|
|
+ windCapacityUnit: '',
|
|
|
+ // windquantity: '',
|
|
|
+ windQuantityHs: '',
|
|
|
+ windQuantityLd: '',
|
|
|
capacity: '',
|
|
|
- capacityunit: '',
|
|
|
- quantityjz: '',
|
|
|
- quantityzc: '',
|
|
|
- jrwindcapacity: '',
|
|
|
- jrwindcapacityunit: '',
|
|
|
- jrwindquantity: '',
|
|
|
- jrcapacity: '',
|
|
|
- jrcapacityunit: '',
|
|
|
- jrquantityjz: '',
|
|
|
- jrquantityzc: '',
|
|
|
- windnumber: '',
|
|
|
+ capacityUnit: '',
|
|
|
+ quantityJz: '',
|
|
|
+ quantityZc: '',
|
|
|
+ jrwindCapacity: '',
|
|
|
+ jrwindCapacityUnit: '',
|
|
|
+ // jrwindquantity: '',
|
|
|
+ jrwindQuantityHs: '',
|
|
|
+ jrwindQuantityLd: '',
|
|
|
+ jrCapacity: '',
|
|
|
+ jrCapacityUnit: '',
|
|
|
+ jrquantityJz: '',
|
|
|
+ jrquantityZc: '',
|
|
|
+ windNumber: '',
|
|
|
number: '',
|
|
|
- jrwindnumber: '',
|
|
|
- jrnumber: '',
|
|
|
+ jrWindNumber: '',
|
|
|
+ jrNumber: '',
|
|
|
},
|
|
|
rules: {
|
|
|
id: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
name: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
aname: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- windcapacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- windcapacityunit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- windquantity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ cascaderSel: [{ required: true, trigger: 'blur', message: '请选择场站' }],
|
|
|
+ windCapacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ windCapacityUnit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ // windquantity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ windQuantityHs: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ windQuantityLd: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
capacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- capacityunit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- quantityjz: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- quantityzc: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrwindcapacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrwindcapacityunit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrwindquantity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrcapacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrcapacityunit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrquantityjz: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrquantityzc: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- windnumber: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ capacityUnit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ quantityJz: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ quantityZc: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrwindCapacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrwindCapacityUnit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ // jrwindquantity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrwindQuantityHs: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrwindQuantityLd: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrCapacity: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrCapacityUnit: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrquantityJz: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrquantityZc: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ windNumber: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
number: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrwindnumber: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
- jrnumber: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrWindNumber: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
+ jrNumber: [{ required: true, trigger: 'blur', message: '请输入' }],
|
|
|
},
|
|
|
title: '',
|
|
|
dialogFormVisible: false,
|
|
@@ -183,6 +262,12 @@ export default {
|
|
|
save() {
|
|
|
this.$refs['form'].validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
+ if (!this.form.groupId) {
|
|
|
+ this.form.groupId = this.form.cascaderSel[0]
|
|
|
+ }
|
|
|
+ if (!this.form.regionId) {
|
|
|
+ this.form.regionId = this.form.cascaderSel[1]
|
|
|
+ }
|
|
|
api.addCompanys(this.form).then(res => {
|
|
|
if (res.data) {
|
|
|
this.$message({
|