BUG 29456
This commit is contained in:
@@ -32,9 +32,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<AiPagePicker class="select" :selected.sync="userList">
|
||||
<span v-if="!userList.length">请选择</span>
|
||||
<span v-if="userList.length" style="color: #333;">{{ userList[0].name }}</span>
|
||||
<u-icon name="arrow-right" color="#DDD" size="28"></u-icon>
|
||||
<AiMore v-model="form.name"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
</div>
|
||||
@@ -178,7 +176,7 @@
|
||||
<AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2" :disabled="id != ''"></AiUploader>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" >
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
@@ -438,13 +436,11 @@ export default {
|
||||
id: '',
|
||||
$areaId: '',
|
||||
isEdit: false,
|
||||
id: '',
|
||||
girdInfo: {},
|
||||
householdIdNumber: '',
|
||||
objectType: '',
|
||||
userList: [],
|
||||
photo: [],
|
||||
userList: [],
|
||||
flag: false,
|
||||
helthList: [],
|
||||
namelist:[],
|
||||
@@ -471,14 +467,6 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
userChange() {
|
||||
if(this.userList != '') {
|
||||
this.isEdit = true;
|
||||
this.form.name = userList[0].name
|
||||
this.form.idNumber = userList[0].idNumber
|
||||
return [this.isEdit,this.form.name,this.form.idNumber]
|
||||
}
|
||||
},
|
||||
...mapState(['user'])
|
||||
},
|
||||
|
||||
@@ -532,7 +520,7 @@ export default {
|
||||
this.namelist.splice(index, 1)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
this.form.healthyStatus = this.namelist.map(v=>v.dictValue).join(',')
|
||||
},
|
||||
@@ -599,14 +587,14 @@ export default {
|
||||
if(this.photo.length) {
|
||||
this.form.photo = this.photo[0].accessUrl
|
||||
}
|
||||
|
||||
|
||||
this.form.girdId = this.girdInfo.girdId
|
||||
this.form.girdName = this.girdInfo.girdName
|
||||
// this.form.householdIdNumber = this.form.idNumber
|
||||
// this.form.householdRelation = '01'
|
||||
// this.form.isHousehold = 1
|
||||
this.current = 1
|
||||
|
||||
|
||||
// if(!this.form.riskType) {
|
||||
// return this.$u.toast('请选择风险因素')
|
||||
// }
|
||||
@@ -624,7 +612,7 @@ export default {
|
||||
this.guaranteeList.push(index)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
this.form.guaranteeCheck = this.guaranteeList.join(',')
|
||||
|
||||
this.checkInit('jcbxCxyiliao',this.basicsCheckList, 0)
|
||||
@@ -685,7 +673,17 @@ export default {
|
||||
}
|
||||
this.form.age = age
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
userList: {
|
||||
handler: function (v) {
|
||||
let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {}
|
||||
this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName}
|
||||
this.form.sex = this.idCardNoUtil.getIdCardInfo(idNumber)?.sex
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -739,7 +737,7 @@ export default {
|
||||
border: 1px solid #1174FE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user