mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 05:16:44 +08:00
【国富人寿】建议书的单号拼接到链接上
This commit is contained in:
@@ -2696,6 +2696,9 @@
|
|||||||
|
|
||||||
//建议书需要添加全部投保人信息,电投只需要投保人ID
|
//建议书需要添加全部投保人信息,电投只需要投保人ID
|
||||||
let insuredDTOItem = Object.assign(this.saleInsuredPersonInfo, { riskDTOLst: riskDTOLst })
|
let insuredDTOItem = Object.assign(this.saleInsuredPersonInfo, { riskDTOLst: riskDTOLst })
|
||||||
|
if (!insuredDTOItem.insuredAge) {
|
||||||
|
insuredDTOItem.insuredAge = insuredDTOItem.age
|
||||||
|
}
|
||||||
let orderNo = localStorage.isFrom == 'proposal'?this.$route.query.proposalOrderNo:this.$route.query.orderNo
|
let orderNo = localStorage.isFrom == 'proposal'?this.$route.query.proposalOrderNo:this.$route.query.orderNo
|
||||||
let params = {
|
let params = {
|
||||||
orderType: 'RISK_ORDER',
|
orderType: 'RISK_ORDER',
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ export default {
|
|||||||
this.$CacheUtils.setLocItem('proposalNo', item.orderInfoDTO.orderNo)
|
this.$CacheUtils.setLocItem('proposalNo', item.orderInfoDTO.orderNo)
|
||||||
//新增 解决直接点击预览报错问题
|
//新增 解决直接点击预览报错问题
|
||||||
localStorage.mainRiskCode = item.insuredDTOs[0].mainRisk[0].mainRiskCode
|
localStorage.mainRiskCode = item.insuredDTOs[0].mainRisk[0].mainRiskCode
|
||||||
let url = `/proposal/proposalInfo?proposalNo=${item.orderInfoDTO.orderNo}`
|
let url = `/proposal/proposalInfo?proposalOrderNo=${item.orderInfoDTO.orderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
@@ -322,11 +322,11 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/sale/insuredInfo?edit=1',
|
url: location.origin + '/#/sale/insuredInfo?edit=1&proposalOrderNo=' + res.content.orderNo,
|
||||||
backToFirst: '1'
|
backToFirst: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/sale/insuredInfo?edit=1'
|
path: '/sale/insuredInfo?edit=1&proposalOrderNo=' + res.content.orderNo
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -505,14 +505,14 @@ export default {
|
|||||||
proposalNo: ''
|
proposalNo: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.$route.query.proposalNo) {
|
if (this.$route.query.proposalOrderNo) {
|
||||||
this.proposalNo = this.$route.query.proposalNo;
|
this.proposalNo = this.$route.query.proposalOrderNo;
|
||||||
params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo
|
params.proposalInfoDTO.proposalNo = this.$route.query.proposalOrderNo
|
||||||
this.$CacheUtils.setLocItem('proposalNo',this.$route.query.proposalNo)
|
this.$CacheUtils.setLocItem('proposalNo',this.$route.query.proposalOrderNo)
|
||||||
}
|
}
|
||||||
if (this.isWeixin) {
|
if (this.isWeixin) {
|
||||||
//在微信端
|
//在微信端
|
||||||
params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo
|
params.proposalInfoDTO.proposalNo = this.$route.query.proposalOrderNo
|
||||||
/*this.mainRiskCodes = JSON.parse(this.$route.query.mainRiskCodes)*/
|
/*this.mainRiskCodes = JSON.parse(this.$route.query.mainRiskCodes)*/
|
||||||
this.$CacheUtils.setLocItem('token',this.$route.query.token)
|
this.$CacheUtils.setLocItem('token',this.$route.query.token)
|
||||||
let agentResult = await getAgentInfo({}) //调取代理人查询接口
|
let agentResult = await getAgentInfo({}) //调取代理人查询接口
|
||||||
@@ -546,7 +546,7 @@ export default {
|
|||||||
if (agentResult.result == '0') {
|
if (agentResult.result == '0') {
|
||||||
this.agent.name = agentResult.name
|
this.agent.name = agentResult.name
|
||||||
}
|
}
|
||||||
params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo
|
params.proposalInfoDTO.proposalNo = this.$route.query.proposalOrderNo
|
||||||
getDemo(params).then(res => {
|
getDemo(params).then(res => {
|
||||||
this.formatLocal(res)
|
this.formatLocal(res)
|
||||||
})
|
})
|
||||||
@@ -637,7 +637,7 @@ export default {
|
|||||||
extra: {
|
extra: {
|
||||||
title: title,
|
title: title,
|
||||||
content: shareContent,
|
content: shareContent,
|
||||||
url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(localStorage.proposalNo) + '&token=' + encodeURI(res.content),
|
url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(this.$route.query.proposalOrderNo) + '&token=' + encodeURI(res.content),
|
||||||
img: this.$assetsUrl + 'images/logo.png'
|
img: this.$assetsUrl + 'images/logo.png'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -362,9 +362,9 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/sale/payMent'
|
url: location.origin + '/#/sale/payMent?orderNo=' + order.orderInfoDTO.orderNo
|
||||||
},
|
},
|
||||||
routerInfo: { path: '/sale/payMent' }
|
routerInfo: { path: '/sale/payMent?orderNo=' + order.orderInfoDTO.orderNo }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//支付失败去换卡
|
//支付失败去换卡
|
||||||
@@ -378,13 +378,13 @@ export default {
|
|||||||
localStorage.setItem('changeCard', true)
|
localStorage.setItem('changeCard', true)
|
||||||
switch (orderStatus) {
|
switch (orderStatus) {
|
||||||
case '55': //账户信息页
|
case '55': //账户信息页
|
||||||
url = '/sale/AccountInformation'
|
url = '/sale/AccountInformation?orderNo=' + order.orderInfoDTO.orderNo
|
||||||
break
|
break
|
||||||
case '48': //账户信息填写成功,跳到影像上传页
|
case '48': //账户信息填写成功,跳到影像上传页
|
||||||
url = '/sale/AttachmentManagement'
|
url = '/sale/AttachmentManagement?orderNo=' + order.orderInfoDTO.orderNo
|
||||||
break
|
break
|
||||||
case '49': //影像上传页填写成功,跳到银行卡号确认页
|
case '49': //影像上传页填写成功,跳到银行卡号确认页
|
||||||
url = '/sale/SignatureConfirmation'
|
url = '/sale/SignatureConfirmation?orderNo=' + order.orderInfoDTO.orderNo
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
@@ -404,9 +404,9 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/sale/payMent'
|
url: location.origin + '/#/sale/payMent?orderNo=' + order.orderInfoDTO.orderNo
|
||||||
},
|
},
|
||||||
routerInfo: { path: '/sale/payMent' }
|
routerInfo: { path: '/sale/payMent?orderNo=' + order.orderInfoDTO.orderNo }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查看保单
|
//查看保单
|
||||||
@@ -416,10 +416,10 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/sale/detail?type=1'
|
url: location.origin + '/#/sale/detail?type=1&orderNo=' + order.orderInfoDTO.orderNo
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/sale/detail',
|
path: '/sale/detail?orderNo=' + order.orderInfoDTO.orderNo,
|
||||||
query: {
|
query: {
|
||||||
type: 1
|
type: 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -282,15 +282,23 @@ export default {
|
|||||||
if (signFlag) {
|
if (signFlag) {
|
||||||
const res = await payFlag({ orderNo: this.orderNo })
|
const res = await payFlag({ orderNo: this.orderNo })
|
||||||
console.dir(res)
|
console.dir(res)
|
||||||
if (res.content.payFlag == 'Y') {
|
if (res.result == 0) {
|
||||||
this.getAcceptInsurance()
|
if (res.content.payFlag == 'Y') {
|
||||||
|
this.getAcceptInsurance()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
this.$router.push({ path: '/sale/payResultFail' })
|
|
||||||
}, 2000)
|
|
||||||
}
|
}
|
||||||
|
// if (res.content.payFlag == 'Y') {
|
||||||
|
// this.getAcceptInsurance()
|
||||||
|
// } else {
|
||||||
|
// debugger
|
||||||
|
// this.$toast(res.resultMessage)
|
||||||
|
//
|
||||||
|
// setTimeout(() => {
|
||||||
|
// this.$router.push({ path: '/sale/payResultFail' })
|
||||||
|
// }, 2000)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 取消支付
|
// 取消支付
|
||||||
|
|||||||
Reference in New Issue
Block a user