xiugai
This commit is contained in:
@@ -250,7 +250,19 @@ export default {
|
||||
}
|
||||
},
|
||||
enterpriseenergy() {
|
||||
taskList({ consNo: this.info.consNo }).then((res) => {
|
||||
this.records = res.data.list[0]
|
||||
if (!this.records.enterpriseId) {
|
||||
this.$notify({
|
||||
message: '请填写能源管理信息',
|
||||
duration: 1000,
|
||||
// background: '#34baae',
|
||||
type: 'danger'
|
||||
})
|
||||
return false
|
||||
}
|
||||
this.$router.push('./enterpriseenergy')
|
||||
})
|
||||
},
|
||||
// 返回
|
||||
onClickLeft() {
|
||||
@@ -302,13 +314,14 @@ export default {
|
||||
if (res.code === 0) {
|
||||
this.info = res.data
|
||||
// const data = {
|
||||
console.log(res.data, 'pppp')
|
||||
// customerId: JSON.parse(sessionStorage.getItem('tidCid')).customerId,
|
||||
// taskId: JSON.parse(sessionStorage.getItem('tidCid')).taskId,
|
||||
// taskType: JSON.parse(sessionStorage.getItem('tidCid')).taskType,
|
||||
// enterpriseSystemId: JSON.parse(sessionStorage.getItem('tidCid')).enterpriseSystemId,
|
||||
// item: res.data
|
||||
// }
|
||||
// sessionStorage.setItem('tidCid', JSON.stringify(data))
|
||||
sessionStorage.setItem('inVoltage', this.info.inVoltage)
|
||||
}else{
|
||||
this.info = JSON.parse(sessionStorage.getItem('tidCid')).item
|
||||
}
|
||||
|
||||
@@ -404,7 +404,11 @@ export default {
|
||||
this.doDebounce()
|
||||
},
|
||||
|
||||
save() {
|
||||
save() {
|
||||
if(!(this.list&&this.list.length>0)){
|
||||
this.$toast('请输入泵机系统信息')
|
||||
return
|
||||
}
|
||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ export default {
|
||||
dataDetail: {},
|
||||
active: 0,
|
||||
list: [], // 企业具有的通用能源系统
|
||||
listValue: [], //企业具有的通用能源系统value值
|
||||
listValue: ['01'], //企业具有的通用能源系统value值
|
||||
list2: [], // 一级计量(进出用能企业)
|
||||
listValue2: ['01'],
|
||||
listValue3: [],
|
||||
@@ -380,6 +380,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
result: function(newVal, oldVal) {
|
||||
console.log(newVal,'12344');
|
||||
if (oldVal != newVal) {
|
||||
if (this.listValue != []) {
|
||||
this.listValue = []
|
||||
@@ -784,9 +785,11 @@ export default {
|
||||
let res1 = await getCode(info1)
|
||||
if (res1.code === 0) {
|
||||
res1.data.forEach(v => {
|
||||
|
||||
this.list.push({ name: v.name, value: v.value })
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
handleClick(){
|
||||
this.doDebounce()
|
||||
@@ -796,7 +799,12 @@ export default {
|
||||
if(this.showForm) {
|
||||
return
|
||||
}
|
||||
console.log(this.listValue2, 'this.listValue2');
|
||||
if( this.listValue.indexOf("01") === -1){
|
||||
this.$toast('通用能源系统必须有配电系统')
|
||||
return
|
||||
}
|
||||
console.log(this.listValue2, 'this.listValue2', this.list);
|
||||
return
|
||||
if( this.listValue2.indexOf("01") === -1){
|
||||
this.$toast('一级计量必须有勾选电')
|
||||
return
|
||||
|
||||
@@ -407,6 +407,10 @@ export default {
|
||||
this.doDebounce()
|
||||
},
|
||||
save() {
|
||||
if(!(this.list&&this.list.length>0)){
|
||||
this.$toast('请输入风机系统信息')
|
||||
return
|
||||
}
|
||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<span>型号 {{ item.systemModel }} </span><span><van-icon name="arrow" color="#fff" /></span>
|
||||
</div>
|
||||
<div class="space-between" style="margin-top: 10px;font-size: 12px;">
|
||||
<span>单台额定容量:{{ item.ratedCapacityValue }} kVA</span><span>额定一次电压:{{ item.ratedVoltageValue }} kV</span>
|
||||
<span>单台额定容量:{{ item.ratedCapacityValue }} kVA</span><span>额定一次电压:{{ getData(item.ratedVoltageValue) }} </span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -136,6 +136,37 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
voltageLevelData:[{
|
||||
name:'10kV',
|
||||
value:"01",
|
||||
// },{
|
||||
// name:'380V',
|
||||
// value:"02",
|
||||
// },{
|
||||
// name:'6kV',
|
||||
// value:"03",
|
||||
},{
|
||||
name:'35kV',
|
||||
value:"04",
|
||||
},{
|
||||
name:'110kV',
|
||||
value:"05",
|
||||
},{
|
||||
name:'220kV',
|
||||
value:"06",
|
||||
},{
|
||||
name:'20kV',
|
||||
value:"07",
|
||||
// },{
|
||||
// name:'220V',
|
||||
// value:"08",
|
||||
},{
|
||||
name:'66kV',
|
||||
value:"09",
|
||||
},{
|
||||
name:'330kV',
|
||||
value:"10",
|
||||
}],
|
||||
newAnswer: [], // 问答题存
|
||||
title: '配电系统',
|
||||
userMsg: {}, // 任务列表单条数据
|
||||
@@ -198,6 +229,10 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
getData(value){
|
||||
let res = this.voltageLevelData.filter(ele => {return ele.value == value})
|
||||
return res&&res[0]&&res[0].name
|
||||
},
|
||||
/**
|
||||
* 图片方法
|
||||
*/
|
||||
@@ -393,6 +428,10 @@ export default {
|
||||
},
|
||||
// 保存
|
||||
save() {
|
||||
if(!(this.list&&this.list.length>0)){
|
||||
this.$toast('请输入配电系统信息')
|
||||
return
|
||||
}
|
||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -9,12 +9,13 @@
|
||||
<van-field v-model="form.systemModel" required :rules="[{ required: true },{pattern:/^.{2,20}$/, message:'2≤型号长度≤20'}]" label="型号" maxlength="20" placeholder="请输入型号"/>
|
||||
<van-field v-input.numNo0 v-model="form.systemNum" type="number" required :rules="[{ required: true }]" label="台数(台)" placeholder="请输入台数" />
|
||||
<van-field v-input.numNo0 v-model="form.ratedCapacityValue" required :rules="[{ required: true }]" ltype="number" label="单台额定容量(kVA)" placeholder="请输入" @blur="handelChange('ratedCapacityValue',50,'单台额定容量')"/>
|
||||
<van-field v-input.floatNo0 v-model="form.ratedVoltageValue" required :rules="[{ required: true }]" type="number" label="额定一次电压(kV)" input-align="right" is-link placeholder="请选择" readonly @click="levelShow = true"/>
|
||||
<van-field v-input.floatNo0 v-model="form.ratedVoltageValueText" required :rules="[{ required: true }]" type="number" label="额定一次电压(kV)" input-align="right" is-link placeholder="请选择" readonly @click="levelShow = true"/>
|
||||
<van-field v-input.num v-model="form.absoleteElecNum" type="number" label="淘汰电机数量" placeholder="请输入" />
|
||||
<van-field v-input.num v-model="form.absoleteNum" type="number" label="淘汰变压器数量" placeholder="请输入" />
|
||||
<van-field v-input.floatNo0 v-model="form.loadRate" required :rules="[{ required: true }]" type="number" label="负载率(%)" placeholder="请输入" @input="handelChangeNumber('loadRate','负载率')" />
|
||||
<van-field v-input.num v-model="form.userYear" required :rules="[{ required: true }]" type="number" label="投入年份" placeholder="请选择投入年份" is-link readonly @click="handelClickYear('userYear', 'SET_CON_YEAR')" />
|
||||
<van-cell title="设备生产日期" v-model="form.produceDate" required :rules="[{ required: true }]" type="number" placeholder="请选择设备生产日期" is-link readonly @click="datePicker = true" />
|
||||
<van-field label="设备能效等级" v-model="form.equipEfficiencyName" required :rules="[{ required: true }]" placeholder="请选择设备能效等级" is-link readonly @click="handelClickOptionShow('equipEfficiency')" />
|
||||
</van-cell-group>
|
||||
</div>
|
||||
</div>
|
||||
@@ -43,8 +44,11 @@
|
||||
</div>
|
||||
<div class="content-main">
|
||||
<van-cell v-for="item in levelList" :key="item.value" clickable style="font-weight: 400 !important; font-size: 15px !important">
|
||||
<van-checkbox :name="item" checked-color="#009999" v-model="item.checked" @click="clickCheckbox(item)">
|
||||
{{ item.value }}kV
|
||||
<van-checkbox :name="item" checked-color="#009999" v-model="item.checked" @click="clickCheckbox(item)"
|
||||
:disabled="parseFloat(inVoltage)<parseFloat(item.name)"
|
||||
|
||||
>
|
||||
{{ item.name }}
|
||||
</van-checkbox>
|
||||
</van-cell>
|
||||
</div>
|
||||
@@ -54,6 +58,7 @@
|
||||
<van-popup v-model="datePicker" position="bottom">
|
||||
<van-datetime-picker v-model="currentDate" type="date" :min-date="minDate" :max-date="maxDate" @confirm="onConfirmDate" @cancel="datePicker = false" />
|
||||
</van-popup>
|
||||
<VanPickerNew :show="showOption" :columns="columnsList" :loading="loading" @onConfirm="onConfirmOption" @onCancel="showOption=false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -72,17 +77,49 @@ export default {
|
||||
mixins: [mixin],
|
||||
data() {
|
||||
return {
|
||||
inVoltage: '',
|
||||
datePicker: false,
|
||||
currentDate: new Date(),
|
||||
maxDate: new Date(),
|
||||
levelShow: false,
|
||||
levelList:[
|
||||
{value:'10', checked: false},
|
||||
{value:'35', checked: false},
|
||||
{value:'110', checked: false},
|
||||
{value:'220', checked: false},
|
||||
{value:'330', checked: false},
|
||||
],
|
||||
levelList:[{
|
||||
name:'10',
|
||||
value:"01",
|
||||
checked: false
|
||||
},{
|
||||
name:'35',
|
||||
value:"04",
|
||||
checked: false
|
||||
},{
|
||||
name:'110',
|
||||
value:"05",
|
||||
checked: false
|
||||
},{
|
||||
name:'220',
|
||||
value:"06",
|
||||
checked: false
|
||||
},{
|
||||
name:'20',
|
||||
value:"07",
|
||||
checked: false
|
||||
},{
|
||||
name:'66',
|
||||
value:"09",
|
||||
checked: false
|
||||
},{
|
||||
name:'330',
|
||||
value:"10",
|
||||
checked: false
|
||||
}],
|
||||
// [
|
||||
// {value:'10', checked: false},
|
||||
// {value:'20', checked: false},
|
||||
// {value:'35', checked: false},
|
||||
// {value:'66', checked: false},
|
||||
// {value:'110', checked: false},
|
||||
// {value:'220', checked: false},
|
||||
// {value:'330', checked: false},
|
||||
// ],
|
||||
//电压等级选中的数据
|
||||
resultCheckboxLevel: [],
|
||||
addeditId: '', // 新增修改提交id
|
||||
@@ -104,6 +141,8 @@ export default {
|
||||
};
|
||||
},
|
||||
activated() {
|
||||
let inVoltage = sessionStorage.getItem('inVoltage')
|
||||
this.inVoltage = this.getData(inVoltage)
|
||||
this.id = '',
|
||||
this.form = {
|
||||
systemModel: "",
|
||||
@@ -143,6 +182,10 @@ export default {
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
getData(value){
|
||||
let res = this.levelList.filter(ele => {return ele.value == value})
|
||||
return res&&res[0]&&res[0].name
|
||||
},
|
||||
/**
|
||||
* 电压等级
|
||||
*/
|
||||
@@ -160,6 +203,7 @@ export default {
|
||||
const leName = this.levelList.filter((ele) => ele.checked)
|
||||
this.resultCheckboxLevel = leName
|
||||
this.form.ratedVoltageValue = leName.map((ele)=> ele.value).join(',')
|
||||
this.form.ratedVoltageValueText = leName.map((ele)=> ele.name).join(',')
|
||||
this.levelShow = false
|
||||
},
|
||||
clickCheckbox(item){
|
||||
@@ -218,6 +262,8 @@ export default {
|
||||
const res = await distributeGetInfo(this.id);
|
||||
if(res.code == 0) {
|
||||
this.form = res.data
|
||||
let Efficiency = res.data.equipEfficiency&&this.equipEfficiencyOption.find(item => item.value == res.data.equipEfficiency)
|
||||
this.form.equipEfficiencyName = Efficiency&&Efficiency.text
|
||||
this.show = false
|
||||
if (this.form.ratedVoltageValue) {
|
||||
this.resultCheckboxLevel=[]
|
||||
@@ -230,6 +276,7 @@ export default {
|
||||
})
|
||||
|
||||
this.form.ratedVoltageValue = this.resultCheckboxLevel.map((ele) => ele.value).join(',')
|
||||
this.form.ratedVoltageValueText = this.resultCheckboxLevel.map((ele) => ele.name).join(',')
|
||||
}
|
||||
}else {
|
||||
this.show = false
|
||||
|
||||
@@ -407,6 +407,10 @@ export default {
|
||||
this.doDebounce()
|
||||
},
|
||||
save() {
|
||||
if(!(this.list&&this.list.length>0)){
|
||||
this.$toast('请输入空压机系统信息')
|
||||
return
|
||||
}
|
||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
/>
|
||||
<van-field
|
||||
v-input.reset
|
||||
v-input.floatNo0
|
||||
v-input.float
|
||||
:disabled="showForm"
|
||||
type="number"
|
||||
@blur="checkData"
|
||||
@@ -518,13 +518,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
|
||||
}
|
||||
// tips2(){
|
||||
// let rate = Number(this.yearForm.actualPowerValue)/Number(this.yearForm.installedCapacityValue)
|
||||
// if(0 < rate && 2000 > rate){
|
||||
// return false
|
||||
// }
|
||||
// return true
|
||||
// }
|
||||
},
|
||||
mounted() {
|
||||
this.doDebounce=debounce(async function () {
|
||||
@@ -756,6 +756,9 @@ export default {
|
||||
Notify({ type: 'danger', duration: 500, message: '请选择年份' })
|
||||
return
|
||||
}
|
||||
if(this.tabName == 'a'){
|
||||
this.checkData()
|
||||
}
|
||||
if(this.tabName == 'b') {
|
||||
if(this.heatDemandOtherName) {
|
||||
this.yearForm.energyUnutilizedVO.heatDemandOther = this.heatDemandOtherName
|
||||
@@ -766,14 +769,14 @@ export default {
|
||||
this.yearForm.energyUnutilizedVO = Object.assign( this.yearForm.energyUnutilizedVO ,this.customerInfo)
|
||||
}
|
||||
if(this.tabName == 'a'&&this.tips1){
|
||||
return
|
||||
return
|
||||
}
|
||||
if(this.tabName == 'c'&&this.tips0){
|
||||
return
|
||||
}
|
||||
if(this.yearForm.isPvInstallCondition == '1'&&this.tips2){
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user