|
@@ -68,6 +68,9 @@
|
|
|
<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>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
@@ -107,6 +110,9 @@
|
|
|
<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="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"><image :src="rimg"></image></view>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
@@ -116,6 +122,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>
|
|
@@ -174,6 +183,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>
|
|
@@ -209,6 +221,18 @@
|
|
|
<view class="rimg"></view>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
|
+ <uni-forms-item label="房屋类型" required name="houseType">
|
|
|
+ <picker range-key='dictLabel' :disabled="isdisabled" :value="fwlxidx" :range="fwlxList" @change='bindDateChangeh'>
|
|
|
+ <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>
|
|
|
+ </uni-forms-item>
|
|
|
<uni-forms-item label="使用期限" name="usagePeriod">
|
|
|
<view class="flexc">
|
|
|
<uni-easyinput :disabled="isdisabled" v-model="houserinfo.usagePeriod" :inputBorder='false' placeholder="请输入使用期限" />
|
|
@@ -246,6 +270,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>
|
|
@@ -255,6 +282,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>
|
|
@@ -264,6 +294,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>
|
|
@@ -325,7 +358,7 @@
|
|
|
"houseId":"",//关联房屋信息表的house_id
|
|
|
"residentRelationship":"",//居住人员与户主的关系,如父子、夫妻等
|
|
|
"isHouseholder":"",//是否是户主 N不是 Y是
|
|
|
-
|
|
|
+ "houseType":null,//房屋类型 1:普通住宅,2:洋房
|
|
|
"residentIdCard":"",//居住人员身份证号码,18位
|
|
|
// "residentBirthday":"",//居住人员出生日期
|
|
|
"residentGender":'',//居住人员性别:1-男,2-女
|
|
@@ -401,14 +434,19 @@
|
|
|
qllxList:[],
|
|
|
fwytList:[],
|
|
|
sfList:[],
|
|
|
+ fwlxList:[],
|
|
|
+ fwlxidx:'',
|
|
|
+ fwlx:'',
|
|
|
rzflag:false,
|
|
|
choseidx:'',
|
|
|
+ clearSize:24,
|
|
|
houserinfo:{
|
|
|
"houseId":'',
|
|
|
"tenantId":"",//租户id
|
|
|
"houseImage":null,//房本照片
|
|
|
"ownerName":null,//权利人姓名
|
|
|
"location":null,//房屋坐落位置
|
|
|
+ "houseType":null,//房屋类型 1:普通住宅,2:洋房
|
|
|
"rightType":null,//权利类型,如所有权、使用权等
|
|
|
"area":null,//房屋面积,单位为平方米
|
|
|
"documentNumber":null,//房屋相关的字第号
|
|
@@ -532,6 +570,33 @@
|
|
|
}
|
|
|
return aite.actions;
|
|
|
},
|
|
|
+ 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='';
|
|
|
+ }
|
|
|
+ },
|
|
|
getchangea(e){
|
|
|
var tenantId=this.datainfo.tenantId;
|
|
|
this.datainfo.tenantId=e.dictValue;
|
|
@@ -599,6 +664,17 @@
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ // 房屋类型
|
|
|
+ getDictionaryFn('house_type').then(res=>{
|
|
|
+ if(res.code==200){
|
|
|
+ this.fwlxList = res.data.map(v => {
|
|
|
+ return {
|
|
|
+ dictLabel: v.dictLabel,
|
|
|
+ dictValue: v.dictValue
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
// 是否
|
|
|
getDictionaryFn('sys_yes_no').then(res=>{
|
|
|
if(res.code==200){
|
|
@@ -734,6 +810,11 @@
|
|
|
this.datainfo.specialType=this.dslxList[val].dictValue;
|
|
|
this.dslx=this.dslxList[val].dictLabel;
|
|
|
},
|
|
|
+ bindDateChangeh(e){
|
|
|
+ var val=e.detail.value;
|
|
|
+ this.houserinfo.houseType=this.fwlxList[val].dictValue;
|
|
|
+ this.fwlx=this.fwlxList[val].dictLabel;
|
|
|
+ },
|
|
|
getDetail(){
|
|
|
residentInfoDet(this.id).then(res=>{
|
|
|
if(res.code==200){
|
|
@@ -783,6 +864,10 @@
|
|
|
this.$toast('请输入门牌号')
|
|
|
return
|
|
|
}
|
|
|
+ if(!houserinfo.houseType){
|
|
|
+ this.$toast('请选择房屋类型')
|
|
|
+ return
|
|
|
+ }
|
|
|
houserinfo.tenantId=params.tenantId;
|
|
|
var newarr=[]
|
|
|
newarr.push(houserinfo)
|