[FIX]健告与家庭地址连动修改

This commit is contained in:
zhouna
2019-12-19 16:09:53 +08:00
parent b462702157
commit d323195f2a
5 changed files with 111 additions and 69 deletions

View File

@@ -460,11 +460,11 @@ export default {
},
areaNameInfo() {
let area = [{ code: this.userInfo.companyProvince }, { code: this.userInfo.companyCity }, { code: this.userInfo.companyArea }]
this.areaName = getAreaName(area, 'customer')
this.areaName = getAreaName(area)
},
homeNameInfo() {
let area = [{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }]
this.homeName = getAreaName(area)
this.homeName = getAreaName(area, 'new')
},
//弹框选择
toSelect(pickerType, valueKey) {
@@ -543,12 +543,12 @@ export default {
sureArea(area, type) {
switch (type) {
case '1': //单位地址
this.areaName = getAreaName(area, 'customer')
this.areaName = getAreaName(area)
;[this.userInfo.companyProvince, this.userInfo.companyCity, this.userInfo.companyArea] = [area[0].code, area[1].code, area[2].code]
this.areaShow = false
break
case '2': //家庭地址
this.homeName = getAreaName(area)
this.homeName = getAreaName(area, 'new')
;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code]
this.homeShow = false
break