|
@@ -64,10 +64,13 @@
|
|
|
</uni-forms-item>
|
|
|
<block v-if="datainfo.isHouseholder!='Y'">
|
|
|
<picker range-key='dictLabel' :disabled="isdisabled" :value="hzgxidx" :range="hzgxList" @change='bindDateChangea'>
|
|
|
- <uni-forms-item class="isnobor" label="与户主关系" required name="residentRelationship">
|
|
|
+ <uni-forms-item class="isnobor" label="与户主关系" name="residentRelationship">
|
|
|
<view class="flexc mh35">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg">
|
|
|
<image :src="rimg"></image>
|
|
|
</view>
|
|
@@ -110,7 +113,10 @@
|
|
|
<view class="flexc mh35">
|
|
|
<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="rimg"><image :src="rimg"></image></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>
|
|
|
+ </view>
|
|
|
+ <view class="rimg" @click.stop="datainfo.residentAppearance=''"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
|
</picker>
|
|
@@ -119,6 +125,9 @@
|
|
|
<view class="flexc mh35">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
@@ -177,6 +186,9 @@
|
|
|
<view class="flexc">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</picker>
|
|
@@ -217,6 +229,9 @@
|
|
|
<view class="flexc mh35">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</picker>
|
|
@@ -251,6 +266,9 @@
|
|
|
<view class="flexc">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</picker>
|
|
@@ -260,6 +278,9 @@
|
|
|
<view class="flexc">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</picker>
|
|
@@ -269,6 +290,9 @@
|
|
|
<view class="flexc">
|
|
|
<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>
|
|
|
+ </view>
|
|
|
<view class="rimg"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</picker>
|
|
@@ -316,6 +340,7 @@
|
|
|
cmico: require('@/mine/static/house/cmico.png'),
|
|
|
del: require('@/mine/static/house/del.png'),
|
|
|
aphoto: require('@/work/static/service/photo.png'),
|
|
|
+ close:require('@/work/static/close.png'),
|
|
|
baseUrl: config.baseUrl,
|
|
|
checkflag:true,
|
|
|
backgroundColor: "transparent",
|
|
@@ -431,7 +456,8 @@
|
|
|
"communityName":null,//房屋所在小区名称
|
|
|
"houseStatus":null,//房屋状态:1-自住,2-出租,3-空闲,4-待售
|
|
|
"parkingNumber":null,//车位号
|
|
|
- }
|
|
|
+ },
|
|
|
+ clearSize: 24,
|
|
|
}
|
|
|
},
|
|
|
onLoad: function(e) {
|
|
@@ -468,6 +494,33 @@
|
|
|
getEditFn(){
|
|
|
this.isdisabled=false;
|
|
|
},
|
|
|
+ onClear(type){
|
|
|
+ if(type=='hzgx'){
|
|
|
+ this.datainfo.residentRelationship='';
|
|
|
+ this.hzgx='';
|
|
|
+ }else if(type=='rymm'){
|
|
|
+ this.datainfo.residentAppearance='';
|
|
|
+ this.rymm='';
|
|
|
+ }else if(type=='dslx'){
|
|
|
+ this.datainfo.specialType='';
|
|
|
+ this.dslx='';
|
|
|
+ }else if(type=='qllx'){
|
|
|
+ this.houserinfo.rightType='';
|
|
|
+ this.qllx='';
|
|
|
+ }else if(type=='fwlx'){
|
|
|
+ this.houserinfo.houseType='';
|
|
|
+ this.fwlx='';
|
|
|
+ }else if(type=='fwzt'){
|
|
|
+ this.houserinfo.houseStatus='';
|
|
|
+ this.fwzt='';
|
|
|
+ }else if(type=='fwyt'){
|
|
|
+ this.houserinfo.usageType='';
|
|
|
+ this.fwyt='';
|
|
|
+ }else if(type=='ywcw'){
|
|
|
+ this.houserinfo.hasParkingSpace='';
|
|
|
+ this.ywcw='';
|
|
|
+ }
|
|
|
+ },
|
|
|
getSyFn(e){
|
|
|
this.datainfo.isHouseholder=e
|
|
|
console.log(this.datainfo.isHouseholder)
|
|
@@ -796,6 +849,10 @@
|
|
|
this.$toast('请输入详细门牌号')
|
|
|
return
|
|
|
}
|
|
|
+ if(!houserinfo.houseType){
|
|
|
+ this.$toast('请选择房屋类型')
|
|
|
+ return
|
|
|
+ }
|
|
|
houserinfo.tenantId=params.tenantId;
|
|
|
var newarr=[]
|
|
|
newarr.push(houserinfo)
|