mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 20:26:44 +08:00
受益人婚姻状况修改
This commit is contained in:
@@ -358,6 +358,14 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setCustomerMarriage(marriageCode) {
|
||||
for (let status of DataDictionary.marriage) {
|
||||
if (status.id == marriageCode) {
|
||||
this.userInfo.marriageStatus = status.text
|
||||
// this.userInfo.marriage = status.id
|
||||
}
|
||||
}
|
||||
},
|
||||
setBankArea(areaInfo) {
|
||||
let province = areaInfo[0]
|
||||
let city = areaInfo[1]
|
||||
@@ -370,19 +378,16 @@ export default {
|
||||
},
|
||||
onMarriageConfirm(value) {
|
||||
this.userInfo.marriageStatus = value.text
|
||||
if (value.text === '已婚') {
|
||||
this.userInfo.marriage = '1'
|
||||
} else {
|
||||
this.userInfo.marriage = '2'
|
||||
for (let status of DataDictionary.marriage) {
|
||||
if (status.text === value.text) {
|
||||
this.userInfo.marriage = status.id
|
||||
}
|
||||
}
|
||||
this.isMarriageStatusShow = false
|
||||
},
|
||||
setMarriageStatus() {
|
||||
this.isMarriageStatusShow = true
|
||||
this.columns = [
|
||||
{ id: 1, text: '已婚' },
|
||||
{ id: 2, text: '单身' }
|
||||
]
|
||||
this.columns = DataDictionary.marriage
|
||||
},
|
||||
//监听名字变化
|
||||
nameChange(name) {
|
||||
@@ -649,8 +654,7 @@ export default {
|
||||
this.userInfo.birthday = data.birthday //出生日期
|
||||
this.userInfo.idType = data.customerIdType //证件类型
|
||||
this.userInfo.idNo = data.customerIdNumber //证件号码
|
||||
this.userInfo.marriageStatus = data.marryStatus === '1' ? '已婚' : data.marryStatus === '2' ? '单身' : null
|
||||
this.userInfo.marriage = data.marryStatus
|
||||
this.setCustomerMarriage(data.marryStatus)
|
||||
this.userInfo.village = data.homeAddress
|
||||
this.userInfo.mobile = data.customerPhone
|
||||
if (data.homeProvince && data.homeCity && data.homeArea) {
|
||||
@@ -695,6 +699,13 @@ export default {
|
||||
// if (insuredSex == appntSex) {
|
||||
// return this.$toast('性别输入有误')
|
||||
// }
|
||||
|
||||
for (let status of DataDictionary.marriage) {
|
||||
if (status.text === this.userInfo.marriageStatus) {
|
||||
this.userInfo.marriage = status.id
|
||||
}
|
||||
}
|
||||
|
||||
console.log(insuredDetail)
|
||||
// 页面跳转
|
||||
let valid = await this.$validator.validate()
|
||||
|
||||
Reference in New Issue
Block a user