|
@@ -44,8 +44,8 @@
|
|
|
style="margin-left: 20rpx;"
|
|
|
v-model="datainfo.houseId"
|
|
|
:list='fwlist'
|
|
|
- valueName='dictLabel'
|
|
|
- keyName="dictValue"
|
|
|
+ valueName='detailedAddress'
|
|
|
+ keyName="houseId"
|
|
|
:valuea="datainfo.houseId"
|
|
|
:chosevalue="datainfo.detailedAddress"
|
|
|
:isdisabled="(ptype=='edit'&&datainfo.examine=='2')?true:false"
|
|
@@ -69,7 +69,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="datainfo.residentRelationship&&!hzgx">{{statusFormats(datainfo.residentRelationship,hzgxList,'hzgx')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="hzgx?'co27':'coa'">{{hzgx||"请选择与户主关系"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="datainfo.residentRelationship" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('hzgx')"></uni-icons>
|
|
|
+ <uni-icons v-if="datainfo.residentRelationship&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('hzgx')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg">
|
|
|
<image :src="rimg"></image>
|
|
@@ -114,7 +114,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="datainfo.residentAppearance&&!rymm">{{statusFormats(datainfo.residentAppearance,rymmList,'rymm')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="rymm?'co27':'coa'">{{rymm||"请选择人员面貌"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="datainfo.residentAppearance" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('rymm')"></uni-icons>
|
|
|
+ <uni-icons v-if="datainfo.residentAppearance&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('rymm')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg" @click.stop="datainfo.residentAppearance=''"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -126,7 +126,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="datainfo.specialType&&!dslx">{{statusFormats(datainfo.specialType,dslxList,'dslx')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="dslx?'co27':'coa'">{{dslx||"如有五保户等特殊类型,请选择"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="datainfo.specialType" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('dslx')"></uni-icons>
|
|
|
+ <uni-icons v-if="datainfo.specialType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('dslx')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -148,7 +148,7 @@
|
|
|
<block v-if="phofile&&phofile.length">
|
|
|
<view class="assimg" v-for="(ite,idx) in phofile" :key="idx" @click="getPreviewa(idx,phofile)">
|
|
|
<image :src="baseUrl+ite" class="img"></image>
|
|
|
- <image :src="rdelimg" class="delimg" @click.stop="getDelFn(idx,'fm')"></image>
|
|
|
+ <image :src="rdelimg" v-if="!isdisabled" class="delimg" @click.stop="getDelFn(idx,'fm')"></image>
|
|
|
</view>
|
|
|
</block>
|
|
|
<view class="addbox" @click="getaddImageava">
|
|
@@ -187,7 +187,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="houserinfo.rightType&&!qllx">{{statusFormats(houserinfo.rightType,qllxList,'qllx')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="qllx?'co27':'coa'">{{qllx||"请选择权利类型"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="houserinfo.rightType" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('qllx')"></uni-icons>
|
|
|
+ <uni-icons v-if="houserinfo.rightType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('qllx')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -230,7 +230,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="houserinfo.houseType&&!fwlx">{{statusFormats(houserinfo.houseType,fwlxList,'fwlx')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="fwlx?'co27':'coa'">{{fwlx||"请选择房屋类型"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="houserinfo.houseType" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwlx')"></uni-icons>
|
|
|
+ <uni-icons v-if="houserinfo.houseType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwlx')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -267,7 +267,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="houserinfo.houseStatus&&!fwzt">{{statusFormats(houserinfo.houseStatus,fwztList,'fwzt')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="fwzt?'co27':'coa'">{{fwzt||"请选择房屋状态"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="houserinfo.houseStatus" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwzt')"></uni-icons>
|
|
|
+ <uni-icons v-if="houserinfo.houseStatus&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwzt')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -279,7 +279,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="houserinfo.usageType&&!fwyt">{{statusFormats(houserinfo.usageType,fwytList,'fwyt')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="fwyt?'co27':'coa'">{{fwyt||"请选择房屋用途"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="houserinfo.usageType" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwyt')"></uni-icons>
|
|
|
+ <uni-icons v-if="houserinfo.usageType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwyt')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -291,7 +291,7 @@
|
|
|
<view class="flex1 txr f13 co27" v-if="houserinfo.hasParkingSpace&&!ywcw">{{statusFormats(houserinfo.hasParkingSpace,ywcwList,'ywcw')}}</view>
|
|
|
<view class="flex1 txr f13" v-else :class="ywcw?'co27':'coa'">{{ywcw||"请选择有/无"}}</view>
|
|
|
<view class="flex0" @click.stop="">
|
|
|
- <uni-icons v-if="houserinfo.hasParkingSpace" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('ywcw')"></uni-icons>
|
|
|
+ <uni-icons v-if="houserinfo.hasParkingSpace&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('ywcw')"></uni-icons>
|
|
|
</view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
@@ -308,7 +308,7 @@
|
|
|
</block>
|
|
|
</block>
|
|
|
</uni-collapse>
|
|
|
- <view class="mt12">
|
|
|
+ <view class="mt12" v-if="!isdisabled">
|
|
|
<!-- <view class="hbtns mb10 bgb" @click="getAddfb" v-if="datainfo.residentType==1&&datainfo.isHouseholder=='Y'">添加房屋信息</view> -->
|
|
|
<view class="hbtns bga" @click="getSubmit">提交</view>
|
|
|
</view>
|
|
@@ -495,6 +495,9 @@
|
|
|
this.isdisabled=false;
|
|
|
},
|
|
|
onClear(type){
|
|
|
+ if(this.isdisabled){
|
|
|
+ return
|
|
|
+ }
|
|
|
if(type=='hzgx'){
|
|
|
this.datainfo.residentRelationship='';
|
|
|
this.hzgx='';
|
|
@@ -522,6 +525,9 @@
|
|
|
}
|
|
|
},
|
|
|
getSyFn(e){
|
|
|
+ if(this.isdisabled){
|
|
|
+ return
|
|
|
+ }
|
|
|
this.datainfo.isHouseholder=e
|
|
|
console.log(this.datainfo.isHouseholder)
|
|
|
},
|
|
@@ -590,11 +596,12 @@
|
|
|
this.listNoPageTenant(e.dictValue)
|
|
|
},
|
|
|
getchange(e){
|
|
|
- this.datainfo.houseId=e.dictValue;
|
|
|
- this.datainfo.detailedAddress=e.dictLabel;
|
|
|
- this.houserinfo.detailedAddress=e.dictLabel;
|
|
|
- this.houserinfo.houseId=e.dictValue;
|
|
|
- this.houserinfo.location=e.location;
|
|
|
+ this.datainfo.houseId=e.houseId;
|
|
|
+ this.datainfo.detailedAddress=e.detailedAddress;
|
|
|
+ // this.houserinfo.detailedAddress=e.dictLabel;
|
|
|
+ // this.houserinfo.houseId=e.dictValue;
|
|
|
+ // this.houserinfo.location=e.location;
|
|
|
+ this.houserinfo=JSON.parse(JSON.stringify(e))
|
|
|
},
|
|
|
// 获取租户列表
|
|
|
gettenantList(){
|
|
@@ -620,13 +627,15 @@
|
|
|
}
|
|
|
listNoPageTenant(params).then(res=>{
|
|
|
if(res.code==200){
|
|
|
- this.fwlist= res.data.map(v => {
|
|
|
- return {
|
|
|
- dictLabel: v.detailedAddress,
|
|
|
- dictValue: v.houseId,
|
|
|
- location: v.location
|
|
|
- }
|
|
|
- })
|
|
|
+ // this.fwlist= res.data.map(v => {
|
|
|
+ // return {
|
|
|
+ // dictLabel: v.detailedAddress,
|
|
|
+ // dictValue: v.houseId,
|
|
|
+ // location: v.location
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ this.fwlist=JSON.parse(JSON.stringify(res.data))
|
|
|
+
|
|
|
// if(res.rows&&res.rows.length<2){
|
|
|
// var newObj=res.rows[0];
|
|
|
// this.datainfo.houseId=newObj.houseId;
|
|
@@ -814,6 +823,9 @@
|
|
|
var houseinfo=res.data.houseInfoRedidentList[0]
|
|
|
this.houserinfo=JSON.parse(JSON.stringify(houseinfo))
|
|
|
}
|
|
|
+ // if(res.data.examine==2){
|
|
|
+ // this.isdisabled=true
|
|
|
+ // }
|
|
|
|
|
|
}
|
|
|
})
|