This commit is contained in:
jiawei
2023-02-22 16:01:03 +08:00
parent 73fd6d896d
commit 5befbcda16
7 changed files with 21 additions and 28 deletions

View File

@@ -241,18 +241,6 @@ export default {
}) })
} }
}, },
computed:{
isupdateAnswerType(){
return this.$store.state.updateAnswerType
}
},
watch: {
isupdateAnswerType(newVal,oldVal){
console.log(newVal,'newVal');
console.log(oldVal,'oldVal');
this.$store.state.updateAnswerType = newVal
}
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@@ -1,7 +1,7 @@
<template> <template>
<div style="background: #f5f5f5" class="select-product-container"> <div style="background: #f5f5f5" class="select-product-container">
<div v-if="isFrom == 'sale'"> <div v-if="isFrom == 'sale'">
<index-bar></index-bar> <index-bar :key="renovate"></index-bar>
</div> </div>
<div class="mt8"></div> <div class="mt8"></div>
<div v-for="(item, index) in chooseProducts" :key="index" class="mb20 bg-white mh15 pv15 pr15 pl10 radius5"> <div v-for="(item, index) in chooseProducts" :key="index" class="mb20 bg-white mh15 pv15 pr15 pl10 radius5">
@@ -147,6 +147,7 @@ export default {
checkedUrl: require('@/assets/images/kmh/checked.png'), checkedUrl: require('@/assets/images/kmh/checked.png'),
noCheckedUrl: require('@/assets/images/kmh/no_checked.png'), noCheckedUrl: require('@/assets/images/kmh/no_checked.png'),
proposalOrderNo:'', proposalOrderNo:'',
renovate:'',//刷新子组件
} }
}, },
components: { components: {
@@ -263,9 +264,6 @@ export default {
orderType: 'proposalInsuredInfo', orderType: 'proposalInsuredInfo',
orderDTO: { insuredDTOs: [{ insuredId: insuredId }] } orderDTO: { insuredDTOs: [{ insuredId: insuredId }] }
}) })
let updateAnswerType = resultData.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType )
console.log(updateAnswerType,'updateAnswerType');
} else { } else {
this.$toast.loading({ this.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
@@ -280,6 +278,7 @@ export default {
let updateAnswerType = resultData.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false let updateAnswerType = resultData.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType ) this.$store.commit('updateAnswerType', updateAnswerType )
console.log(updateAnswerType,'updateAnswerType'); console.log(updateAnswerType,'updateAnswerType');
this.renovate = new Date().getTime()
let riskDTOLst let riskDTOLst
if (isProposal) { if (isProposal) {
this.$CacheUtils.setLocItem('saleInsuredInfo',JSON.stringify(resultData.content[0].appntDTO))//存储投保人信息 this.$CacheUtils.setLocItem('saleInsuredInfo',JSON.stringify(resultData.content[0].appntDTO))//存储投保人信息

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="accountInformation-container redRadioCheckbox"> <div class="accountInformation-container redRadioCheckbox">
<index-bar></index-bar> <index-bar :key="renovate"></index-bar>
<div class="aaountInfomation-content" v-if="!isScan"> <div class="aaountInfomation-content" v-if="!isScan">
<van-radio-group v-model="radio" class="flex pl30 pr30 pt15 pb15 justify-content-s bg-white mt10"> <van-radio-group v-model="radio" class="flex pl30 pr30 pt15 pb15 justify-content-s bg-white mt10">
@@ -201,7 +201,7 @@ export default {
accBankCity: '', accBankCity: '',
areaStr: '', areaStr: '',
orderInfoDTO: '', orderInfoDTO: '',
updateAnswerType:false, renovate:'',
} }
}, },
methods: { methods: {
@@ -651,7 +651,7 @@ export default {
} }
}, },
async created() { async created() {
// this.$store.commit('updateAnswerType', false ) this.$store.commit('updateAnswerType', false )
let res = await getOrderDetail({ orderNo: localStorage.orderNo }) let res = await getOrderDetail({ orderNo: localStorage.orderNo })
this.$toast.loading({ this.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
@@ -660,10 +660,10 @@ export default {
message: '加载中……' message: '加载中……'
}) })
if (res.result == 0) { if (res.result == 0) {
this.updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType ) this.$store.commit('updateAnswerType', updateAnswerType )
console.log(updateAnswerType,'updateAnswerType555555555555'); this.renovate = new Date().getTime()
console.log(updateAnswerType,'updateAnswerType');
if(res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint == '1'&&res.orderDTO.riskEvaluationDTO.totalScore == null){ if(res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint == '1'&&res.orderDTO.riskEvaluationDTO.totalScore == null){
Dialog.alert({ Dialog.alert({
title: '提示', title: '提示',
@@ -757,7 +757,7 @@ export default {
// this.updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false // this.updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
// let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false // let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', this.updateAnswerType ) this.$store.commit('updateAnswerType', this.updateAnswerType )
console.log(this.updateAnswerType,'updateAnswerType6666666666'); console.log(this.updateAnswerType,'updateAnswerType');
}, },
computed: { computed: {
listenChange() { listenChange() {

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="beneficiary-container redRadioCheckbox"> <div class="beneficiary-container redRadioCheckbox">
<div style="background: rgb(245, 245, 245);" class="pt3 pb5"> <div style="background: rgb(245, 245, 245);" class="pt3 pb5">
<index-bar></index-bar> <index-bar :key="renovate"></index-bar>
</div> </div>
<div h10></div> <div h10></div>
<div class="fs14 flex justify-content-s pv12 ph15 van-hairline--bottom"> <div class="fs14 flex justify-content-s pv12 ph15 van-hairline--bottom">
@@ -64,6 +64,7 @@ export default {
}, },
data() { data() {
return { return {
renovate: '',
type: '1', type: '1',
insuredPerson: '', //被保险人 insuredPerson: '', //被保险人
isAssign: false, // 是否指定受益人 isAssign: false, // 是否指定受益人
@@ -87,6 +88,7 @@ export default {
this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType ) this.$store.commit('updateAnswerType', updateAnswerType )
this.renovate = new Date().getTime()
console.log(updateAnswerType,'updateAnswerType'); console.log(updateAnswerType,'updateAnswerType');
this.$utils.intLocalStorage(res) this.$utils.intLocalStorage(res)
this.type = res.orderDTO.orderInfoDTO.bnfFlag == '1' ? '2' : '1' //bnfFlag 0-法定受益人 1-指定受益人 this.type = res.orderDTO.orderInfoDTO.bnfFlag == '1' ? '2' : '1' //bnfFlag 0-法定受益人 1-指定受益人

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="insured-info-container pb60 redRadioCheckbox"> <div class="insured-info-container pb60 redRadioCheckbox">
<!-- 基本信息 --> <!-- 基本信息 -->
<index-bar></index-bar> <index-bar :key="renovate"></index-bar>
<van-cell-group class="mt10"> <van-cell-group class="mt10">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">基本信息</p> <p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">基本信息</p>
<customer-picker <customer-picker
@@ -422,6 +422,7 @@ export default {
}, },
data() { data() {
return { return {
renovate: '',
specilFlag: '', //特殊显示-为桂企产品专写 1-桂企 undefind-其他 specilFlag: '', //特殊显示-为桂企产品专写 1-桂企 undefind-其他
productCodes: [], //产品编码-用于“产品允许投保人单位列表获取”接口,作为请求参数 productCodes: [], //产品编码-用于“产品允许投保人单位列表获取”接口,作为请求参数
isScan: false, //是否显示证件扫描组件 isScan: false, //是否显示证件扫描组件
@@ -559,6 +560,7 @@ export default {
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
console.log(updateAnswerType,'updateAnswerType'); console.log(updateAnswerType,'updateAnswerType');
this.$store.commit( 'updateAnswerType',updateAnswerType ) this.$store.commit( 'updateAnswerType',updateAnswerType )
this.renovate = new Date().getTime()
//投保人信息返显 //投保人信息返显
this.userInfo = res.orderDTO.appntDTO this.userInfo = res.orderDTO.appntDTO
this.setCustomerMarriage(res.orderDTO.appntDTO.marriage) this.setCustomerMarriage(res.orderDTO.appntDTO.marriage)

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="insured-person-container pb50 redRadioCheckbox"> <div class="insured-person-container pb50 redRadioCheckbox">
<!-- 基本信息 --> <!-- 基本信息 -->
<index-bar></index-bar> <index-bar :key="renovate"></index-bar>
<van-cell-group v-if="!isScan"> <van-cell-group v-if="!isScan">
<p style="border-bottom: 1px solid #ebedf0" class="mt10 fs15 fwb pl10 pv12">基本信息</p> <p style="border-bottom: 1px solid #ebedf0" class="mt10 fs15 fwb pl10 pv12">基本信息</p>
<van-field <van-field
@@ -606,7 +606,7 @@ export default {
userWorkcompanys:[],//单位数据 userWorkcompanys:[],//单位数据
manageComCode:'',//代理人管理机构 52贵州 45广西 manageComCode:'',//代理人管理机构 52贵州 45广西
areaValue:'', //代理人管理机构--省级编号 areaValue:'', //代理人管理机构--省级编号
isShowEvaluationPoint:'0'//是否展示风险测评 renovate:''//是否展示风险测评
} }
}, },
created() { created() {
@@ -617,9 +617,9 @@ export default {
if (orderNo) { if (orderNo) {
getOrderDetail({ orderNo: orderNo }).then((res) => { getOrderDetail({ orderNo: orderNo }).then((res) => {
if (res.result == 0) { if (res.result == 0) {
this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType ) this.$store.commit('updateAnswerType', updateAnswerType )
this.renovate = new Date().getTime()
console.log(updateAnswerType,'updateAnswerType'); console.log(updateAnswerType,'updateAnswerType');
//投被同人 //投被同人
if (res.orderDTO.insuredDTOs.length && res.orderDTO.insuredDTOs[0].relationToAppnt == '1') { if (res.orderDTO.insuredDTOs.length && res.orderDTO.insuredDTOs[0].relationToAppnt == '1') {

View File

@@ -3,7 +3,7 @@
<div class="pb50"> <div class="pb50">
<div class="allFalse"> <div class="allFalse">
<div style="background-color: rgb(245, 245, 245);padding-bottom:5px"> <div style="background-color: rgb(245, 245, 245);padding-bottom:5px">
<index-bar></index-bar> <index-bar :key="renovate"></index-bar>
</div> </div>
<div v-if="!isSpecificMedicalInsurance" class="flex justify-content-s align-items-c bg-white pt20 pb20 pr10"> <div v-if="!isSpecificMedicalInsurance" class="flex justify-content-s align-items-c bg-white pt20 pb20 pr10">
<span class="pl10">告知项目</span> <span class="pl10">告知项目</span>
@@ -144,6 +144,7 @@ import IndexBar from '@/components/ebiz/sale/IndexBar'
export default { export default {
data() { data() {
return { return {
renovate:'',
// 告知信息 // 告知信息
impartDTOS: [], impartDTOS: [],
// 折叠面板 // 折叠面板
@@ -201,6 +202,7 @@ export default {
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit( 'updateAnswerType',updateAnswerType ) this.$store.commit( 'updateAnswerType',updateAnswerType )
console.log(updateAnswerType,'updateAnswerType'); console.log(updateAnswerType,'updateAnswerType');
this.renovate = new Date().getTime()
this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false
console.log('this.is ====', this.isExistAdditionalRisk) console.log('this.is ====', this.isExistAdditionalRisk)