|
@@ -29,12 +29,12 @@
|
|
</view>
|
|
</view>
|
|
<uni-forms-item label="身份证号" required name="residentIdCard">
|
|
<uni-forms-item label="身份证号" required name="residentIdCard">
|
|
<view class="flexc">
|
|
<view class="flexc">
|
|
- <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentIdCard" :inputBorder='false' placeholder="自动识别" />
|
|
|
|
|
|
+ <uni-easyinput disabled v-model="datainfo.residentIdCard" :inputBorder='false' placeholder="自动识别" />
|
|
</view>
|
|
</view>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="姓名" required name="residentName">
|
|
<uni-forms-item label="姓名" required name="residentName">
|
|
<view class="flexc">
|
|
<view class="flexc">
|
|
- <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentName" :inputBorder='false' placeholder="自动识别" />
|
|
|
|
|
|
+ <uni-easyinput disabled v-model="datainfo.residentName" :inputBorder='false' placeholder="自动识别" />
|
|
</view>
|
|
</view>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
<uni-forms-item label="性别" required name="residentGender">
|
|
<uni-forms-item label="性别" required name="residentGender">
|
|
@@ -53,13 +53,13 @@
|
|
<uni-easyinput :disabled="isdisabled" v-model="datainfo.residentPhone" :inputBorder='false' placeholder="请输入手机号码" />
|
|
<uni-easyinput :disabled="isdisabled" v-model="datainfo.residentPhone" :inputBorder='false' placeholder="请输入手机号码" />
|
|
</view>
|
|
</view>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
- <uni-forms-item label="居住门户" required name="portalId">
|
|
|
|
|
|
+ <uni-forms-item label="居住门户" required name="houseId">
|
|
<w-select
|
|
<w-select
|
|
style="margin-left: 20rpx;"
|
|
style="margin-left: 20rpx;"
|
|
- v-model="chooseValue"
|
|
|
|
|
|
+ v-model="datainfo.houseId"
|
|
:list='fwlist'
|
|
:list='fwlist'
|
|
- valueName='label'
|
|
|
|
- keyName="value"
|
|
|
|
|
|
+ valueName='dictLabel'
|
|
|
|
+ keyName="dictValue"
|
|
:chosevalue="datainfo.detailedAddress"
|
|
:chosevalue="datainfo.detailedAddress"
|
|
:filterable='filterable'
|
|
:filterable='filterable'
|
|
@change='getchange'
|
|
@change='getchange'
|
|
@@ -106,7 +106,7 @@
|
|
<picker range-key='dictLabel' :disabled="isdisabled" :value="dslxidx" :range="dslxList" @change='bindDateChanged'>
|
|
<picker range-key='dictLabel' :disabled="isdisabled" :value="dslxidx" :range="dslxList" @change='bindDateChanged'>
|
|
<uni-forms-item label="特殊类型" name="specialType">
|
|
<uni-forms-item label="特殊类型" name="specialType">
|
|
<view class="flexc mh35">
|
|
<view class="flexc mh35">
|
|
- <view class="flex1 txr f13 co27" v-if="datainfo.specialType&&!dslx">{{statusFormats(datainfo.residentAppearance,dslxList,'dslx')}}</view>
|
|
|
|
|
|
+ <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="flex1 txr f13" v-else :class="dslx?'co27':'coa'">{{dslx||"如有五保户等特殊类型,请选择"}}</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -152,10 +152,10 @@
|
|
import config from '@/config'
|
|
import config from '@/config'
|
|
import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
|
|
import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
|
|
import {uploadIdentify,uploadmore} from '@/utils/common.js'
|
|
import {uploadIdentify,uploadmore} from '@/utils/common.js'
|
|
- import {houseInfolistNoPage} from "@/api/work/work.js"
|
|
|
|
|
|
+ import {houseInfolistNoPage,houseInfoList} from "@/api/work/work.js"
|
|
import {residentInfoAdd,residentInfoPut,residentInfoDet} from "@/api/work/people.js"
|
|
import {residentInfoAdd,residentInfoPut,residentInfoDet} from "@/api/work/people.js"
|
|
import {getDictionaryFn} from "@/api/system/user.js"
|
|
import {getDictionaryFn} from "@/api/system/user.js"
|
|
- import {selectValueKey} from "@/utils/common.js"
|
|
|
|
|
|
+ import {selectValueKey,selectDictValue} from "@/utils/common.js"
|
|
import {getOcrIdCard} from "@/api/system/card.js"
|
|
import {getOcrIdCard} from "@/api/system/card.js"
|
|
import wSelect from "@/people/components/w-select/w-select.vue"
|
|
import wSelect from "@/people/components/w-select/w-select.vue"
|
|
export default {
|
|
export default {
|
|
@@ -228,7 +228,9 @@
|
|
ptype:'add',
|
|
ptype:'add',
|
|
filterable:true,
|
|
filterable:true,
|
|
chooseValue:'',
|
|
chooseValue:'',
|
|
- map:{text:'dictLabel',value:'dictValue'}
|
|
|
|
|
|
+ map:{text:'dictLabel',value:'dictValue'},
|
|
|
|
+ houseId:'',
|
|
|
|
+ pfrom:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad: function(e) {
|
|
onLoad: function(e) {
|
|
@@ -238,6 +240,10 @@
|
|
this.isdisabled=true;
|
|
this.isdisabled=true;
|
|
this.getDetail()
|
|
this.getDetail()
|
|
}
|
|
}
|
|
|
|
+ if(e.houseId){
|
|
|
|
+ this.houseId=e.houseId;
|
|
|
|
+ this.pfrom="house";
|
|
|
|
+ }
|
|
this.init()
|
|
this.init()
|
|
uni.getSystemInfo({
|
|
uni.getSystemInfo({
|
|
success: (e) => {
|
|
success: (e) => {
|
|
@@ -256,6 +262,9 @@
|
|
methods: {
|
|
methods: {
|
|
checkPermi,
|
|
checkPermi,
|
|
checkRole,
|
|
checkRole,
|
|
|
|
+ kaType(data, list) {
|
|
|
|
+ return selectDictValue(list, data);
|
|
|
|
+ },
|
|
getEditFn(){
|
|
getEditFn(){
|
|
this.isdisabled=false;
|
|
this.isdisabled=false;
|
|
},
|
|
},
|
|
@@ -273,21 +282,42 @@
|
|
return aite.actions;
|
|
return aite.actions;
|
|
},
|
|
},
|
|
getchange(e){
|
|
getchange(e){
|
|
- this.datainfo.houseId=e.value;
|
|
|
|
- this.datainfo.detailedAddress=e.label;
|
|
|
|
|
|
+ this.datainfo.houseId=e.dictValue;
|
|
|
|
+ this.datainfo.detailedAddress=e.dictLabel;
|
|
},
|
|
},
|
|
init(){
|
|
init(){
|
|
- houseInfolistNoPage().then(res=>{
|
|
|
|
- if(res.code==200){
|
|
|
|
- this.fwlist= res.rows.map(v => {
|
|
|
|
- return {
|
|
|
|
- label: v.detailedAddress,
|
|
|
|
- value: v.houseId,
|
|
|
|
- location: v.location
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ if(this.pfrom=='house'){
|
|
|
|
+ var houseId=this.houseId;
|
|
|
|
+ var params={
|
|
|
|
+ houseId:houseId
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ houseInfoList(params).then(res=>{
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.fwlist= res.rows.map(v => {
|
|
|
|
+ return {
|
|
|
|
+ dictLabel: v.detailedAddress,
|
|
|
|
+ dictValue: v.houseId,
|
|
|
|
+ location: v.location
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.datainfo.houseId=this.houseId;
|
|
|
|
+ this.datainfo.detailedAddress=this.kaType(this.houseId,this.fwlist)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ houseInfolistNoPage().then(res=>{
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.fwlist= res.rows.map(v => {
|
|
|
|
+ return {
|
|
|
|
+ dictLabel: v.detailedAddress,
|
|
|
|
+ dictValue: v.houseId,
|
|
|
|
+ location: v.location
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
// 是否
|
|
// 是否
|
|
getDictionaryFn('sys_yes_no').then(res=>{
|
|
getDictionaryFn('sys_yes_no').then(res=>{
|
|
if(res.code==200){
|
|
if(res.code==200){
|