mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 19:06:43 +08:00
[FIX] 删除字段添加投保被保地址关联
This commit is contained in:
@@ -318,8 +318,8 @@
|
|||||||
<van-field
|
<van-field
|
||||||
v-model="homeName"
|
v-model="homeName"
|
||||||
readonly
|
readonly
|
||||||
label="家庭地址"
|
label="联系地址"
|
||||||
name="家庭地址"
|
name="联系地址"
|
||||||
required
|
required
|
||||||
right-icon="arrow"
|
right-icon="arrow"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
<!-- <van-popup v-model="areaShow" position="bottom">
|
<!-- <van-popup v-model="areaShow" position="bottom">
|
||||||
<van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '1')" @cancel="areaShow = false" />
|
<van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '1')" @cancel="areaShow = false" />
|
||||||
</van-popup> -->
|
</van-popup> -->
|
||||||
<!-- 家庭地址选择 -->
|
<!-- 联系地址选择 -->
|
||||||
<van-popup v-model="homeShow" position="bottom"
|
<van-popup v-model="homeShow" position="bottom"
|
||||||
><van-area :area-list="areaLists" value="450000" @confirm="sureArea($event, '2')" @cancel="homeShow = false"
|
><van-area :area-list="areaLists" value="450000" @confirm="sureArea($event, '2')" @cancel="homeShow = false"
|
||||||
/></van-popup>
|
/></van-popup>
|
||||||
@@ -439,9 +439,9 @@ export default {
|
|||||||
valueKey: 'text',
|
valueKey: 'text',
|
||||||
// census: '', //户籍
|
// census: '', //户籍
|
||||||
// areaName: '', //单位地址
|
// areaName: '', //单位地址
|
||||||
homeName: '', //家庭地址
|
homeName: '', //联系地址
|
||||||
companyDefault: false, //设置公司地址为默认地址
|
companyDefault: false, //设置公司地址为默认地址
|
||||||
homeDefault: false, //设置家庭地址为默认地址
|
homeDefault: false, //设置联系地址为默认地址
|
||||||
setDefaultAddress: false, //设为联系地址
|
setDefaultAddress: false, //设为联系地址
|
||||||
sessionId: '', //后台返回的 id
|
sessionId: '', //后台返回的 id
|
||||||
effectiveDateTypeAble: false, //长期按钮是否禁用
|
effectiveDateTypeAble: false, //长期按钮是否禁用
|
||||||
@@ -550,7 +550,7 @@ export default {
|
|||||||
{ code: res.orderDTO.appntDTO.homeProvince },
|
{ code: res.orderDTO.appntDTO.homeProvince },
|
||||||
{ code: res.orderDTO.appntDTO.homeCity },
|
{ code: res.orderDTO.appntDTO.homeCity },
|
||||||
{ code: res.orderDTO.appntDTO.homeArea }
|
{ code: res.orderDTO.appntDTO.homeArea }
|
||||||
]) //获取家庭地址
|
]) //获取联系地址
|
||||||
// this.census = getAreaName([{ code: res.orderDTO.appntDTO.householdProvince }, { code: res.orderDTO.appntDTO.householdCity }]) //获取户籍
|
// this.census = getAreaName([{ code: res.orderDTO.appntDTO.householdProvince }, { code: res.orderDTO.appntDTO.householdCity }]) //获取户籍
|
||||||
}
|
}
|
||||||
//------------------------专为桂企写死--begin---------------//
|
//------------------------专为桂企写死--begin---------------//
|
||||||
@@ -669,10 +669,7 @@ export default {
|
|||||||
// this.columns = DataDictionary.degree
|
// this.columns = DataDictionary.degree
|
||||||
// break
|
// break
|
||||||
case '4':
|
case '4':
|
||||||
this.columns = [
|
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
|
||||||
{ id: 0, text: '有' },
|
|
||||||
{ id: 1, text: '无' }
|
|
||||||
]
|
|
||||||
break
|
break
|
||||||
case '5':
|
case '5':
|
||||||
this.columns = DataDictionary.taxIdentity
|
this.columns = DataDictionary.taxIdentity
|
||||||
@@ -928,7 +925,7 @@ export default {
|
|||||||
// this.areaName = getAreaName([{ code: data.companyProvince }, { code: data.companyCity }, { code: data.companyArea }]) //单位地址
|
// this.areaName = getAreaName([{ code: data.companyProvince }, { code: data.companyCity }, { code: data.companyArea }]) //单位地址
|
||||||
// }
|
// }
|
||||||
if (data.homeProvince.length) {
|
if (data.homeProvince.length) {
|
||||||
this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //家庭地址
|
this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //联系地址
|
||||||
}
|
}
|
||||||
// 计算年龄
|
// 计算年龄
|
||||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||||
@@ -1278,7 +1275,7 @@ export default {
|
|||||||
// ;[this.userInfo.companyProvince, this.userInfo.companyCity, this.userInfo.companyArea] = [area[0].code, area[1].code, area[2].code]
|
// ;[this.userInfo.companyProvince, this.userInfo.companyCity, this.userInfo.companyArea] = [area[0].code, area[1].code, area[2].code]
|
||||||
// this.areaShow = false
|
// this.areaShow = false
|
||||||
// break
|
// break
|
||||||
case '2': //家庭地址
|
case '2': //联系地址
|
||||||
this.homeName = getAreaName(area, 'new')
|
this.homeName = getAreaName(area, 'new')
|
||||||
;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code]
|
;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code]
|
||||||
this.homeShow = false
|
this.homeShow = false
|
||||||
|
|||||||
@@ -343,7 +343,9 @@
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<!-- 家庭信息 -->
|
<!-- 家庭信息 -->
|
||||||
<van-cell-group class="mt5" v-if="!isScan">
|
<van-cell-group class="mt5" v-if="!isScan">
|
||||||
<p style=" border-bottom: 1px solid #ebedf0" class=" fs15 fwb pl10 mt10 pv12">家庭信息</p>
|
<p style=" border-bottom: 1px solid #ebedf0" class=" fs15 fwb pl10 mt10 pv12">
|
||||||
|
家庭信息 <van-checkbox v-model="withRootUser.value">复选框</van-checkbox>
|
||||||
|
</p>
|
||||||
<!-- <van-field
|
<!-- <van-field
|
||||||
:value="userInfo.marriage | idToText('marriage')"
|
:value="userInfo.marriage | idToText('marriage')"
|
||||||
readonly
|
readonly
|
||||||
@@ -369,8 +371,8 @@
|
|||||||
<van-field
|
<van-field
|
||||||
v-model="homeName"
|
v-model="homeName"
|
||||||
readonly
|
readonly
|
||||||
label="家庭地址"
|
label="联系地址"
|
||||||
name="家庭地址"
|
name="联系地址"
|
||||||
required
|
required
|
||||||
right-icon="arrow"
|
right-icon="arrow"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -411,7 +413,7 @@
|
|||||||
<van-popup v-model="areaShow" position="bottom">
|
<van-popup v-model="areaShow" position="bottom">
|
||||||
<van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '1')" @cancel="areaShow = false" />
|
<van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '1')" @cancel="areaShow = false" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
<!-- 家庭地址选择 -->
|
<!-- 联系地址选择 -->
|
||||||
<van-popup v-model="homeShow" position="bottom">
|
<van-popup v-model="homeShow" position="bottom">
|
||||||
<van-area :area-list="areaLists" value="450000" @confirm="sureArea($event, '2')" @cancel="homeShow = false" />
|
<van-area :area-list="areaLists" value="450000" @confirm="sureArea($event, '2')" @cancel="homeShow = false" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
@@ -466,6 +468,10 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
withRootUser: {
|
||||||
|
load: false, //防止重复请求
|
||||||
|
value: false
|
||||||
|
},
|
||||||
isScan: false, //是否显示证件扫描组件
|
isScan: false, //是否显示证件扫描组件
|
||||||
effectiveDateTypeAble: false, //长期按钮是否禁用
|
effectiveDateTypeAble: false, //长期按钮是否禁用
|
||||||
sexRadio: [
|
sexRadio: [
|
||||||
@@ -593,7 +599,7 @@ export default {
|
|||||||
// this.sureArea([{ code: insuredInfo.householdProvince }, { code: insuredInfo.householdCity }], '3')
|
// this.sureArea([{ code: insuredInfo.householdProvince }, { code: insuredInfo.householdCity }], '3')
|
||||||
//单位地址
|
//单位地址
|
||||||
// this.sureArea([{ code: insuredInfo.companyProvince }, { code: insuredInfo.companyCity }, { code: insuredInfo.companyArea }], '1')
|
// this.sureArea([{ code: insuredInfo.companyProvince }, { code: insuredInfo.companyCity }, { code: insuredInfo.companyArea }], '1')
|
||||||
//家庭地址
|
//联系地址
|
||||||
this.sureArea([{ code: insuredInfo.homeProvince }, { code: insuredInfo.homeCity }, { code: insuredInfo.homeArea }], '2')
|
this.sureArea([{ code: insuredInfo.homeProvince }, { code: insuredInfo.homeCity }, { code: insuredInfo.homeArea }], '2')
|
||||||
//是否长期
|
//是否长期
|
||||||
if (insuredInfo.effectiveDateType == 'false') {
|
if (insuredInfo.effectiveDateType == 'false') {
|
||||||
@@ -645,7 +651,7 @@ export default {
|
|||||||
// { code: insuredPersonInfo.companyArea }
|
// { code: insuredPersonInfo.companyArea }
|
||||||
// ])
|
// ])
|
||||||
// }
|
// }
|
||||||
//家庭地址
|
//联系地址
|
||||||
if (insuredPersonInfo.homeProvince.length) {
|
if (insuredPersonInfo.homeProvince.length) {
|
||||||
this.homeName = getAreaName([
|
this.homeName = getAreaName([
|
||||||
{ code: insuredPersonInfo.homeProvince },
|
{ code: insuredPersonInfo.homeProvince },
|
||||||
@@ -667,7 +673,7 @@ export default {
|
|||||||
// { code: saleInsuredPersonInfo.homeProvince },
|
// { code: saleInsuredPersonInfo.homeProvince },
|
||||||
// { code: saleInsuredPersonInfo.homeCity },
|
// { code: saleInsuredPersonInfo.homeCity },
|
||||||
// { code: saleInsuredPersonInfo.homeArea }
|
// { code: saleInsuredPersonInfo.homeArea }
|
||||||
// ]) //家庭地址
|
// ]) //联系地址
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -775,10 +781,7 @@ export default {
|
|||||||
} /*else if (pickerType == '3') {
|
} /*else if (pickerType == '3') {
|
||||||
this.columns = DataDictionary.degree
|
this.columns = DataDictionary.degree
|
||||||
} */ else if (pickerType == '4') {
|
} */ else if (pickerType == '4') {
|
||||||
this.columns = [
|
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
|
||||||
{ id: 0, text: '有' },
|
|
||||||
{ id: 1, text: '无' }
|
|
||||||
]
|
|
||||||
} else if (pickerType == '5') {
|
} else if (pickerType == '5') {
|
||||||
this.columns = DataDictionary.taxIdentity
|
this.columns = DataDictionary.taxIdentity
|
||||||
} /* else if (pickerType == '6') {
|
} /* else if (pickerType == '6') {
|
||||||
@@ -888,7 +891,7 @@ export default {
|
|||||||
// this.sureArea([{ code: insuredInfo.householdProvince }, { code: insuredInfo.householdCity }], '3')
|
// this.sureArea([{ code: insuredInfo.householdProvince }, { code: insuredInfo.householdCity }], '3')
|
||||||
//单位地址
|
//单位地址
|
||||||
// this.sureArea([{ code: insuredInfo.companyProvince }, { code: insuredInfo.companyCity }, { code: insuredInfo.companyArea }], '1')
|
// this.sureArea([{ code: insuredInfo.companyProvince }, { code: insuredInfo.companyCity }, { code: insuredInfo.companyArea }], '1')
|
||||||
//家庭地址
|
//联系地址
|
||||||
this.sureArea([{ code: insuredInfo.homeProvince }, { code: insuredInfo.homeCity }, { code: insuredInfo.homeArea }], '2')
|
this.sureArea([{ code: insuredInfo.homeProvince }, { code: insuredInfo.homeCity }, { code: insuredInfo.homeArea }], '2')
|
||||||
//是否长期
|
//是否长期
|
||||||
if (insuredInfo.effectiveDateType == 'false') {
|
if (insuredInfo.effectiveDateType == 'false') {
|
||||||
@@ -1165,7 +1168,7 @@ export default {
|
|||||||
// this.areaName = getAreaName([{ code: data.companyProvince }, { code: data.companyCity }, { code: data.companyArea }]) //单位地址
|
// this.areaName = getAreaName([{ code: data.companyProvince }, { code: data.companyCity }, { code: data.companyArea }]) //单位地址
|
||||||
// }
|
// }
|
||||||
if (data.homeProvince.length) {
|
if (data.homeProvince.length) {
|
||||||
this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //家庭地址
|
this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //联系地址
|
||||||
}
|
}
|
||||||
//计算年龄
|
//计算年龄
|
||||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||||
@@ -1533,7 +1536,7 @@ export default {
|
|||||||
// ;[this.userInfo.companyProvince, this.userInfo.companyCity, this.userInfo.companyArea] = [area[0].code, area[1].code, area[2].code]
|
// ;[this.userInfo.companyProvince, this.userInfo.companyCity, this.userInfo.companyArea] = [area[0].code, area[1].code, area[2].code]
|
||||||
// this.areaShow = false
|
// this.areaShow = false
|
||||||
// break
|
// break
|
||||||
case '2': //家庭地址
|
case '2': //联系地址
|
||||||
this.homeName = getAreaName(area)
|
this.homeName = getAreaName(area)
|
||||||
;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code]
|
;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code]
|
||||||
this.homeShow = false
|
this.homeShow = false
|
||||||
@@ -1613,7 +1616,7 @@ export default {
|
|||||||
// case '1': //户籍
|
// case '1': //户籍
|
||||||
// this.censusShow = true
|
// this.censusShow = true
|
||||||
// break
|
// break
|
||||||
case '2': //家庭地址
|
case '2': //联系地址
|
||||||
this.homeShow = true
|
this.homeShow = true
|
||||||
break
|
break
|
||||||
case '3': //单位地址
|
case '3': //单位地址
|
||||||
@@ -1731,6 +1734,24 @@ export default {
|
|||||||
this.timeId = null
|
this.timeId = null
|
||||||
this.countDown = 60
|
this.countDown = 60
|
||||||
this.codeDisabled = false
|
this.codeDisabled = false
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
async 'withRootUser.value'(n) {
|
||||||
|
if (n) {
|
||||||
|
const rs = await getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') })
|
||||||
|
this.homeName = getAreaName([
|
||||||
|
{ code: rs.orderDTO.appntDTO.homeProvince },
|
||||||
|
{ code: rs.orderDTO.appntDTO.homeCity },
|
||||||
|
{ code: rs.orderDTO.appntDTO.homeArea }
|
||||||
|
])
|
||||||
|
this.userInfo.homeProvince = rs.orderDTO.appntDTO.homeProvince
|
||||||
|
this.userInfo.homeCity = rs.orderDTO.appntDTO.homeCity
|
||||||
|
this.userInfo.homeArea = rs.orderDTO.appntDTO.homeArea
|
||||||
|
this.userInfo.homeAddress = rs.orderDTO.appntDTO.homeAddress
|
||||||
|
} else {
|
||||||
|
this.homeName = this.userInfo.homeAddress = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// watch: {
|
// watch: {
|
||||||
// 'userInfo.idNo': {
|
// 'userInfo.idNo': {
|
||||||
|
|||||||
Reference in New Issue
Block a user