规则修改

This commit is contained in:
jiangyinzhi
2024-11-19 17:06:20 +08:00
parent 455c8b58da
commit 7f7ff91a5e
4 changed files with 108 additions and 10 deletions
@@ -262,6 +262,7 @@
input-align="right"
:disabled="showForm"
></van-field>
<!-- <div class="tips" v-if="tips2 == true">0<光伏实际年发电量/光伏已装机容量<2000</div> -->
<van-field
v-input.float
label="年发电小时数(h)"
@@ -516,6 +517,13 @@ export default {
},
readOnly(){
return this.yearForm.energyUnutilizedVO&&this.yearForm.energyUnutilizedVO.notUsedResidueEnergyType!='01'
},
tips2(){
let rate = Number(this.yearForm.actualPowerValue)/Number(this.yearForm.installedCapacityValue)
if(0 < rate && 2000 > rate){
return false
}
return true
}
},
mounted() {
@@ -763,6 +771,9 @@ export default {
if(this.tabName == 'c'&&this.tips0){
return
}
if(this.yearForm.isPvInstallCondition == '1'&&this.tips2){
return
}
let params = Object.assign(this.customerInfo, this.yearForm)
params.taskId = this.tidCid.taskId
if(this.$route.query.id) {