|
@@ -27,6 +27,15 @@
|
|
|
<view class="cardtip">如果识别错误,可尝试再次拍照。</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <picker range-key='dictLabel' :value="rylxidx" :range="rylxList" @change='bindDateChangee'>
|
|
|
+ <uni-forms-item label="人员类型" required name="residentType">
|
|
|
+ <view class="flexc mh35">
|
|
|
+ <view class="flex1 txr f13 co27" v-if="datainfo.residentType&&!rylx">{{statusFormats(datainfo.residentType,rylxList,'rylx')}}</view>
|
|
|
+ <view class="flex1 txr f13" v-else :class="rylx?'co27':'coa'">{{rylx||"请选择人员类型"}}</view>
|
|
|
+ <view class="rimg"><image :src="rimg"></image></view>
|
|
|
+ </view>
|
|
|
+ </uni-forms-item>
|
|
|
+ </picker>
|
|
|
<uni-forms-item label="身份证号" required name="residentIdCard">
|
|
|
<view class="flexc">
|
|
|
<uni-easyinput disabled v-model="datainfo.residentIdCard" :inputBorder='false' placeholder="自动识别" />
|
|
@@ -173,6 +182,7 @@
|
|
|
datainfo: {
|
|
|
// "residentId":"",//居住人员主键
|
|
|
"houseId":"",//关联房屋信息表的house_id
|
|
|
+ "residentType":1,//人员类型
|
|
|
// "userId":"",//关联sys_user表中user_id
|
|
|
"detailedAddress":"",//居住人员的门牌号
|
|
|
"residentName":"",//居住人员姓名
|
|
@@ -223,6 +233,9 @@
|
|
|
xbList:[],
|
|
|
phofile:[],
|
|
|
fwlist:[],
|
|
|
+ rylx:"",
|
|
|
+ rylxidx:0,
|
|
|
+ rylxList:[],
|
|
|
isdisabled:false,
|
|
|
ptype:'add',
|
|
|
filterable:true,
|
|
@@ -271,6 +284,8 @@
|
|
|
this.rymmidx=aite.key;
|
|
|
}else if(type=='dslx'){
|
|
|
this.dslxidx=aite.key;
|
|
|
+ }else if(type=='rylx'){
|
|
|
+ this.rylxidx=aite.key;
|
|
|
}
|
|
|
return aite.actions;
|
|
|
},
|
|
@@ -300,6 +315,17 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ // 人员类型
|
|
|
+ getDictionaryFn('resident_Type').then(res=>{
|
|
|
+ if(res.code==200){
|
|
|
+ this.rylxList = res.data.map(v => {
|
|
|
+ return {
|
|
|
+ dictLabel: v.dictLabel,
|
|
|
+ dictValue: v.dictValue
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
// 是否
|
|
|
getDictionaryFn('sys_yes_no').then(res=>{
|
|
|
if(res.code==200){
|