diff --git a/src/views/energyEfficiency/constructionInfo.vue b/src/views/energyEfficiency/constructionInfo.vue index b849df4..92cee1b 100644 --- a/src/views/energyEfficiency/constructionInfo.vue +++ b/src/views/energyEfficiency/constructionInfo.vue @@ -57,11 +57,12 @@ - + -
光伏总建设面积+可利用屋面面积<总建筑面积
- +
光伏总建设面积+可利用屋面面积<总建筑面积
+ +
50×光伏已建设面积/1000<光伏总装机容量<200×光伏已建设面积/1000
@@ -670,6 +671,12 @@ export default { return false } return true + }, + tips9(){ + if(50*Number(this.formData.photovoltaicArea)/1000 < this.formData.photovoltaicPhotovoltaic && 200 * Number(this.formData.photovoltaicArea)/1000 > this.formData.photovoltaicPhotovoltaic){ + return false + } + return true } }, created() { @@ -1857,9 +1864,13 @@ export default { // this.formData.enquireIds = this.aarr1.concat(this.aarr) // } // this.tips6 == true || - if(this.tips0 == true || this.tips1 == true || this.tips2 == true || this.tips3 == true || this.tips4 == true || this.tips6 == true || this.tips7 == true|| this.tips8 == true){ + if(this.tips0 == true || this.tips1 == true || this.tips2 == true || this.tips3 == true || this.tips4 == true || this.tips6 == true || this.tips7){ return; } + if(this.gfShow == 1&&(this.tips8||this.tips9)){ + this.active=1 + return + } this.formData.enquireIds = this.newAnswer.join(); if (this.tidCid) { this.formData.taskId = this.tidCid.taskId diff --git a/src/views/energyEfficiency/energyConsumption.vue b/src/views/energyEfficiency/energyConsumption.vue index 88197d2..823b902 100644 --- a/src/views/energyEfficiency/energyConsumption.vue +++ b/src/views/energyEfficiency/energyConsumption.vue @@ -271,6 +271,7 @@ export default { onConfirmYear(data) { this.currentTime.y = data.value this.currentTime.time = new Date(data.value) + this.page.pageNum = 1 this.getMonthData(); this.datePopup = false; }, @@ -299,7 +300,7 @@ export default { // 加载状态结束 this.loading = false // 数据全部加载完成 - if (this.monthList.length == this.page.total) { + if (this.page.pageNum == res.data.pages ||this.monthList.length == this.page.total) { this.immediateCheck = false this.finished = true return @@ -321,7 +322,7 @@ export default { if (res.code == 0) { this.monthList = res.data.list; this.page.total = res.data.total - if(this.monthList.length == this.page.total) { + if(this.page.pageNum == res.data.pages || this.monthList.length == this.page.total) { this.immediateCheck = false this.finished = true } else { diff --git a/src/views/enterprise/generalEnergyAddEdit.vue b/src/views/enterprise/generalEnergyAddEdit.vue index cbe262b..47b3415 100644 --- a/src/views/enterprise/generalEnergyAddEdit.vue +++ b/src/views/enterprise/generalEnergyAddEdit.vue @@ -9,7 +9,7 @@ - + @@ -33,6 +33,22 @@ + + +
+
+
取消
+
确认
+
+
+ + + {{ item.value }}kV + + +
+
+
@@ -41,14 +57,26 @@ import { distributeAdd, distributeGetInfo, distributeEdit } from "@/api/universa import { Notify } from "vant"; import mixin from '@/mixins/mixin' import Year from '../facilityManage/common-vue/year.vue' +import VanPickerNew from '@/components/vanPickerNew' export default { components: { // Header, - Year + Year, + VanPickerNew }, mixins: [mixin], data() { return { + levelShow: false, + levelList:[ + {value:'10', checked: false}, + {value:'35', checked: false}, + {value:'110', checked: false}, + {value:'220', checked: false}, + {value:'330', checked: false}, + ], + //电压等级选中的数据 + resultCheckboxLevel: [], addeditId: '', // 新增修改提交id title: '新增/修改', id: '', // 查详情时取的id @@ -95,10 +123,43 @@ export default { this.getGetInfo() } }, - mounted() { - + deactivated(){ + this.levelList.forEach((v) => { + v.checked = false + }) + this.levelShow = false + + }, + mounted() { }, methods: { + /** + * 电压等级 + */ + onCancelLe() { + this.levelList.forEach((v)=>{ + this.resultCheckboxLevel.forEach((rv)=>{ + if(v.value == rv.value) { + v.checked = true + } + }) + }) + this.levelShow = false + }, + onConfirmLe() { + const leName = this.levelList.filter((ele) => ele.checked) + this.resultCheckboxLevel = leName + this.form.ratedVoltageValue = leName.map((ele)=> ele.value).join(',') + this.levelShow = false + }, + clickCheckbox(item){ + this.levelList.forEach((v) => { + v.checked = false + if (v.value == item.value) { + v.checked = true + } + }) + }, handelChangeNumber (params,name) { if(Number(this.form[params]) > 100) { Notify({ type: "danger", message: `${name}不可超过100%` }); @@ -148,6 +209,18 @@ export default { if(res.code == 0) { this.form = res.data this.show = false + if (this.form.ratedVoltageValue) { + this.resultCheckboxLevel=[] + this.levelList.forEach((ele) => { + ele.checked = false + if (ele.value == this.form.ratedVoltageValue) { + ele.checked = true + this.resultCheckboxLevel.push(ele) + } + }) + + this.form.ratedVoltageValue = this.resultCheckboxLevel.map((ele) => ele.value).join(',') + } }else { this.show = false } @@ -157,6 +230,8 @@ export default {