2025修订内容更改
This commit is contained in:
@@ -18,8 +18,10 @@
|
||||
<van-cell title="联系人" :value="formData.contactName" />
|
||||
<van-cell title="联系人手机号" :value="formData.contactPhone" />
|
||||
<van-cell title="详细地址" :value="formData.detailAddress" />
|
||||
<van-field v-model="formData.totalArea" v-input.float label="总建筑面积(㎡)" placeholder="请输入" @input="showTips" type="number" required :rules="[{ required: true }]" input-align="right">
|
||||
<van-field v-model="formData.totalArea" v-input.float label="总建筑面积(㎡)" placeholder="请输入" @input="showTips" @blur="checkArea" type="number" required :rules="[{ required: true }]" input-align="right">
|
||||
</van-field>
|
||||
<div class="tips" v-if="checkAreaTip">同一社会信用代码下建筑面积和用能人数重复</div>
|
||||
<div class="tips" v-if="!checkAreaTip&&formData.totalArea>50000">总建筑面积>5万平方米,请确认是否属实</div>
|
||||
<div class="tips" v-if="tips0 == true">0<总建筑面积<{{validateData}}万平方米</div>
|
||||
<div class="tips" v-if="tips1 == true">要大于可利用屋面面积或者地下车库面积</div>
|
||||
<van-field v-model="formData.availableArea" v-input.float label="可利用屋面面积(㎡)" placeholder="请输入" required :rules="[{ required: true}]" @input="showTips1" type="number" input-align="right">
|
||||
@@ -39,8 +41,9 @@
|
||||
<div class="tips" v-if="tips7 == true">数据机房面积≤0.5*总建筑面积</div>
|
||||
<van-cell title="建筑投运年份(年)" is-link required :rules="[{ required: true, message: '请选择建筑投运年份年份' }]" :value="formData.operationYear" @click="handelOpen" />
|
||||
<!-- <van-field v-model="formData.operationYear" label="建筑投运年份(年)" label-width="140" input-align="right" is-link placeholder="请选择" readonly @click="handelClickYear('operationYear', 'SET_HEAT_YEAR')" /> -->
|
||||
<van-field v-model="formData.peopleNum" v-input.numNo0 required :rules="[{required: true, message: `请先选择建筑类型再填写` }]" :label="peopleShow" placeholder="" type="number" input-align="right">
|
||||
<van-field v-model="formData.peopleNum" v-input.numNo0 required @blur="checkArea" :rules="[{required: true, message: `请先选择建筑类型再填写` }]" :label="peopleShow" placeholder="" type="number" input-align="right">
|
||||
</van-field>
|
||||
<div class="tips" v-if="checkAreaTip">同一社会信用代码下建筑面积和用能人数重复</div>
|
||||
<van-cell title="建筑外观照片" :required="$store.getters.cityType" :rules="[{ required: $store.getters.cityType}] "/>
|
||||
<van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" />
|
||||
<div class="tips tipImage" v-if="$store.getters.cityType&&fileList.length<1">请上传建筑外观照片</div>
|
||||
@@ -311,6 +314,7 @@ import {
|
||||
uploadFile,
|
||||
changeSaveStateAPI,
|
||||
// downloadFile,
|
||||
duplicateCheck,
|
||||
} from '@/api/api.js'
|
||||
// import { debuglog } from 'util'
|
||||
import {debounce} from '@/utils/common.js'
|
||||
@@ -596,6 +600,7 @@ export default {
|
||||
],
|
||||
validateData: '',
|
||||
doDebounce: null,
|
||||
checkAreaTip: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -721,6 +726,19 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
async checkArea(){
|
||||
if(this.formData.totalArea>50000&&this.formData.peopleNum){
|
||||
let params = {
|
||||
totalArea: this.formData.totalArea,
|
||||
customerId: this.formData.customerId,
|
||||
peopleNum: this.formData.peopleNum,
|
||||
year: this.tidCid.item&&this.tidCid.item.year
|
||||
}
|
||||
let res = await duplicateCheck(params)
|
||||
this.checkAreaTip = res.data
|
||||
}
|
||||
|
||||
},
|
||||
showTips() {
|
||||
if (Number(this.formData.totalArea)>0&&Number(this.formData.totalArea)<this.validateData*10000) {
|
||||
this.tips0 = false
|
||||
@@ -1851,7 +1869,7 @@ 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){
|
||||
if(this.checkAreaTip|| 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)){
|
||||
|
||||
Reference in New Issue
Block a user