mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 20:16:44 +08:00
GFRS-2468 特定疾病险-投被保人信息页订单号缓存取值修改-提交人:白金岩
This commit is contained in:
@@ -551,7 +551,8 @@ export default {
|
|||||||
//如果是编辑/导航进来
|
//如果是编辑/导航进来
|
||||||
this.isElecCont = '0'
|
this.isElecCont = '0'
|
||||||
if (this.$route.query.edit) {
|
if (this.$route.query.edit) {
|
||||||
getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => {
|
const orderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||||
|
getOrderDetail({ orderNo: orderNo }).then((res) => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
//投保人信息返显
|
//投保人信息返显
|
||||||
this.userInfo = res.orderDTO.appntDTO
|
this.userInfo = res.orderDTO.appntDTO
|
||||||
@@ -1274,7 +1275,7 @@ export default {
|
|||||||
orderType: 'APPNT_ORDER',
|
orderType: 'APPNT_ORDER',
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: localStorage.orderNo,
|
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
||||||
isElecCont: this.isElecCont
|
isElecCont: this.isElecCont
|
||||||
},
|
},
|
||||||
appntDTO: {}
|
appntDTO: {}
|
||||||
@@ -1301,7 +1302,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
str = str + 'edit=1&salePageFlag=2'
|
str = str + 'edit=1&salePageFlag=2'
|
||||||
}
|
}
|
||||||
localStorage.orderNo = resultData.orderNo
|
this.$CacheUtils.setLocItem('orderNo', resultData.orderNo)
|
||||||
// localStorage.insuredDetail = JSON.stringify(this.userInfo)
|
// localStorage.insuredDetail = JSON.stringify(this.userInfo)
|
||||||
// 添加提示
|
// 添加提示
|
||||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||||
|
|||||||
@@ -610,8 +610,9 @@ export default {
|
|||||||
this.specilFlag = this.$route.query.specilFlag
|
this.specilFlag = this.$route.query.specilFlag
|
||||||
//如果是编辑/导航进来
|
//如果是编辑/导航进来
|
||||||
// if (this.$route.query.edit) {
|
// if (this.$route.query.edit) {
|
||||||
if (localStorage.orderNo) {
|
const orderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||||
getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => {
|
if (orderNo) {
|
||||||
|
getOrderDetail({ orderNo: orderNo }).then((res) => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
//投被同人
|
//投被同人
|
||||||
if (res.orderDTO.insuredDTOs.length && res.orderDTO.insuredDTOs[0].relationToAppnt == '1') {
|
if (res.orderDTO.insuredDTOs.length && res.orderDTO.insuredDTOs[0].relationToAppnt == '1') {
|
||||||
@@ -913,7 +914,8 @@ export default {
|
|||||||
//如果关系是本人
|
//如果关系是本人
|
||||||
if (value.id == 1) {
|
if (value.id == 1) {
|
||||||
//获取订单详情
|
//获取订单详情
|
||||||
getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => {
|
const orderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||||
|
getOrderDetail({ orderNo: orderNo }).then((res) => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.isAppnt = true
|
this.isAppnt = true
|
||||||
//获取投保人信息
|
//获取投保人信息
|
||||||
@@ -1563,7 +1565,7 @@ export default {
|
|||||||
orderType: 'INSURED_ORDER',
|
orderType: 'INSURED_ORDER',
|
||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: localStorage.orderNo,
|
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
||||||
},
|
},
|
||||||
appntDTO: {},
|
appntDTO: {},
|
||||||
},
|
},
|
||||||
@@ -1814,8 +1816,9 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
async 'withRootUser.value'(n) {
|
async 'withRootUser.value'(n) {
|
||||||
if (n) {
|
const orderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||||
const rs = await getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') })
|
if (n && orderNo) {
|
||||||
|
const rs = await getOrderDetail({ orderNo: orderNo});
|
||||||
this.homeName = getAreaName([
|
this.homeName = getAreaName([
|
||||||
{ code: rs.orderDTO.appntDTO.homeProvince },
|
{ code: rs.orderDTO.appntDTO.homeProvince },
|
||||||
{ code: rs.orderDTO.appntDTO.homeCity },
|
{ code: rs.orderDTO.appntDTO.homeCity },
|
||||||
|
|||||||
Reference in New Issue
Block a user