mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 20:42:52 +08:00
feat(insurance): 更新被保人信息并添加问卷跳转功能
- 将 insuredInfo 重命名为 insured 以保持命名一致性 - 新增 handleApplyInformationClick 方法处理下一步操作 - 实现 navigateSuitabilityQuestionnaire 方法跳转至产品评估页面 - 在点击申请信息按钮时执行所有主任务并导航至问卷 - 修复了获取被保人信息时的属性引用错误
This commit is contained in:
@@ -90,6 +90,7 @@ export default {
|
||||
},
|
||||
events: {
|
||||
updateTotalPremium: money => {
|
||||
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
||||
this.totalPremium = money
|
||||
}
|
||||
}
|
||||
@@ -168,14 +169,14 @@ export default {
|
||||
return orderDetail({ orderNo }).then(({ result, orderDTO, resultMessage }) => {
|
||||
if (result !== '0') return this.$toast(resultMessage)
|
||||
const { insuredDTOs, appntDTO } = orderDTO
|
||||
this.insuredInfo = insuredDTOs[0] || {}
|
||||
this.insured = insuredDTOs[0] || {}
|
||||
this.applicant = appntDTO
|
||||
const { riskDTOLst } = insuredDTOs[0]
|
||||
this.risks = riskDTOLst
|
||||
|
||||
return {
|
||||
applicant: appntDTO,
|
||||
insured: this.insuredInfo
|
||||
insured: this.insured
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -197,6 +198,7 @@ export default {
|
||||
handleBankCancel() {
|
||||
this.options.showBankAccountMsgPopup = false
|
||||
},
|
||||
/** 点击下一步时进行信息处理 */
|
||||
async handleApplyInformationClick() {
|
||||
for (let task of this.nextStepProcesserContainer.getAllTasks()) {
|
||||
const [id, info] = task
|
||||
@@ -204,6 +206,23 @@ export default {
|
||||
if (!info.isMainTask) continue
|
||||
await this.nextStepProcesserContainer.executeTask(id)
|
||||
}
|
||||
|
||||
this.navigateSuitabilityQuestionnaire()
|
||||
},
|
||||
/**导航到适应性问卷*/
|
||||
navigateSuitabilityQuestionnaire() {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/sale/productEvaluate?orderNo=${this.$route.query.orderNo}`
|
||||
},
|
||||
routerInfo: {
|
||||
query: {
|
||||
orderNo: this.$route.query.orderNo
|
||||
},
|
||||
name: 'productEvaluate'
|
||||
}
|
||||
})
|
||||
},
|
||||
async handleCalculatePremiumClick() {
|
||||
const [ref] = this.$refs['CalculatePremiumRef']
|
||||
|
||||
Reference in New Issue
Block a user