This commit is contained in:
jiawei
2023-02-22 11:46:33 +08:00
parent c0ead93059
commit 49c06b44e9
8 changed files with 19 additions and 11 deletions

View File

@@ -103,7 +103,8 @@ export default {
pageItem: '风险测评',
urlStr: '/sale/answerPage',
tabClass: '',
show:this.$store.getters.getAnswerType,
// show:this.$store.getters.getAnswerType,
show:localStorage.getItem('updateAnswerType'),
imgCheckedUrl: this.$assetsUrl + 'images/kmh/fx1.png',
imgNoCheckedUrl: this.$assetsUrl + 'images/kmh/fx2.png'
},
@@ -112,7 +113,8 @@ export default {
pageItem: '风险测评结果',
urlStr: '/sale/answerSuccess',
tabClass: '',
show:this.$store.getters.getAnswerType,
// show:this.$store.getters.getAnswerType,
show:localStorage.getItem('updateAnswerType'),
imgCheckedUrl: this.$assetsUrl + 'images/kmh/fxjg1.png',
imgNoCheckedUrl: this.$assetsUrl + 'images/kmh/fxjg2.png'
},

View File

@@ -650,7 +650,7 @@ export default {
}
},
async created() {
this.$store.commit('updateAnswerType', false )
// this.$store.commit('updateAnswerType', false )
let res = await getOrderDetail({ orderNo: localStorage.orderNo })
this.$toast.loading({
duration: 0, // 持续展示 toast
@@ -678,7 +678,8 @@ export default {
})
}
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType )
localStorage.setItem('updateAnswerType',updateAnswerType)
// this.$store.commit('updateAnswerType', updateAnswerType )
this.appntDTO = res.orderDTO.appntDTO
this.orderInfoDTO = res.orderDTO.orderInfoDTO
//如果是从编辑进来的

View File

@@ -80,6 +80,7 @@ export default {
// 是否从添加指定受益人页面跳转
if (localStorage.fromAddBeneficiaryInfo) {
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
localStorage.setItem('updateAnswerType',updateAnswerType)
this.$store.commit('updateAnswerType', updateAnswerType )
this.type = '2'
this.beneficiaries = this.beneficiaries.concat(JSON.parse(localStorage.beneficiaryInfo))

View File

@@ -558,6 +558,7 @@ export default {
if (res.result == 0) {
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
console.log(updateAnswerType,'updateAnswerType');
localStorage.setItem('updateAnswerType',updateAnswerType)
this.$store.commit( 'updateAnswerType',updateAnswerType )
//投保人信息返显
this.userInfo = res.orderDTO.appntDTO

View File

@@ -620,6 +620,7 @@ export default {
this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType )
localStorage.setItem('updateAnswerType',updateAnswerType)
//投被同人
if (res.orderDTO.insuredDTOs.length && res.orderDTO.insuredDTOs[0].relationToAppnt == '1') {
this.$nextTick(() => {

View File

@@ -200,6 +200,7 @@ export default {
// this.isShowEvaluationPoint = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType )
localStorage.setItem('updateAnswerType',updateAnswerType)
console.log(updateAnswerType,'updateAnswerType');
this.$store.commit( 'updateAnswerType',updateAnswerType )
this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false

View File

@@ -2,7 +2,7 @@
* @Author: jiawei
* @Date: 2023-02-15 09:41:46
* @LastEditors: jiawei jia.wei@ebiz-digits.com
* @LastEditTime: 2023-02-20 17:55:07
* @LastEditTime: 2023-02-22 11:44:35
* @FilePath: \ebiz-h5\src\views\ebiz\sale\answerPage.vue
* @Description:
-->
@@ -71,8 +71,8 @@ export default {
created(){
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
if (res.result == 0) {
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType )
// let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
// this.$store.commit('updateAnswerType', updateAnswerType )
this.question =JSON.parse( res.orderDTO.riskEvaluationDTO.quentionAnswer)
console.log( this.question,' this.question');
this.isDisabledType()

View File

@@ -66,10 +66,11 @@ export default {
created(){
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
if (res.result == 0) {
let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
this.$store.commit('updateAnswerType', updateAnswerType )
this.riskEvaluationDTO = res.orderDTO.riskEvaluationDTO
this.getStatement()
// let updateAnswerType = res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint =='1'?true:false
// this.$store.commit('updateAnswerType', updateAnswerType )
// localStorage.setItem('updateAnswerType',updateAnswerType)
this.riskEvaluationDTO = res.orderDTO.riskEvaluationDTO
this.getStatement()
} else {
this.$toast(res.resultMessage)
}