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