mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 14:16:44 +08:00
【FIX】修复问卷保存时传参的问题及附件展示的问题
This commit is contained in:
BIN
src/assets/images/ebiz/evalImg.png
Normal file
BIN
src/assets/images/ebiz/evalImg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="fit-wrapper">
|
||||
<div v-if="assessResult == '1'" class="fit-container">
|
||||
<img src="@/assets/images/ebiz/refresh.png" alt="">
|
||||
<img src="@/assets/images/ebiz/evalImg.png" alt="">
|
||||
<div class="pt20 pb20 pr10 pl20">
|
||||
<span>{{ evalDesc }}</span>
|
||||
<span class="red fw400">根据以上与适当性问卷匹配结果,我司建议您终止投保,关注该产品的特征及风险,审慎作出投保决策。 如您坚持投保,请您确认和签署《投保风险警示确认书》。</span>
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="assessResult === '0'" class="fit-container">
|
||||
<img src="@/assets/images/ebiz/refresh.png" alt="">
|
||||
<img src="@/assets/images/ebiz/evalImg.png" alt="">
|
||||
<div class="pt20 pb20 pr10 pl20">{{evalDesc}}</div>
|
||||
<div class="bottom-btn bg-white flex">
|
||||
<van-button type="danger" size="large" square class="btn" v-no-more-click="1000" @click="onConfirm">确认</van-button>
|
||||
@@ -163,8 +163,6 @@ export default {
|
||||
align-items: center;
|
||||
img{
|
||||
margin-bottom:20px;
|
||||
width:100px;
|
||||
height:100px;
|
||||
}
|
||||
}
|
||||
.footer-btn{
|
||||
|
||||
@@ -307,14 +307,14 @@ export default {
|
||||
subBusinessNo: '',
|
||||
subBusinessType: '',
|
||||
changeCard: localStorage.changeCard,
|
||||
isEvalateNeed:true
|
||||
isEvalateNeed:false
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
//如果是从编辑进来的
|
||||
let res= await getOrderDetail({ orderNo: this.$route.query.orderNo,userAssessLogic:true })
|
||||
console.log('res',res.orderDTO.orderInfoDTO.assessFlag)
|
||||
this.isEvalateNeed = res.orderDTO.orderInfoDTO.assessFlag==='1'?true:false
|
||||
this.isEvalateNeed = true
|
||||
console.log('this.isEvalateNeed',this.isEvalateNeed)
|
||||
if (res.result == 0) {
|
||||
if(res.orderDTO.riskEvaluationDTO.isShowEvaluationPoint == '1'&&res.orderDTO.riskEvaluationDTO.totalScore == null){
|
||||
|
||||
@@ -162,14 +162,49 @@ export default {
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
// 'assessQuestionnaireDtoList.1': {
|
||||
// handler(newVal) {
|
||||
// if(newVal) {
|
||||
// console.log('检测到了第一项数据', newVal)
|
||||
// }
|
||||
// },
|
||||
// deep: true
|
||||
// }
|
||||
CheckBoxExtraRadio: {
|
||||
handler(newVal) {
|
||||
if(!!newVal) {
|
||||
// 创建一个新对象,保留原对象的所有属性,只修改subOption为空
|
||||
const updatedItem = {
|
||||
...this.assessQuestionnaireDtoList[1],
|
||||
subOption: newVal,
|
||||
subOptionContent:newVal=='Y'?this.CheckBoxExtraDesc:null
|
||||
};
|
||||
this.$set(this.assessQuestionnaireDtoList, 1, updatedItem);
|
||||
console.log('检测到了第一项数据', newVal,this.assessQuestionnaireDtoList)
|
||||
}
|
||||
},
|
||||
},
|
||||
CheckBoxExtraDesc:{
|
||||
handler(newVal) {
|
||||
if(!!newVal) {
|
||||
// 创建一个新对象,保留原对象的所有属性,只修改subOption为空
|
||||
const updatedItem = {
|
||||
...this.assessQuestionnaireDtoList[1],
|
||||
subOptionContent: newVal
|
||||
};
|
||||
this.$set(this.assessQuestionnaireDtoList, 1, updatedItem);
|
||||
console.log('检测到了第一项数据', newVal,this.assessQuestionnaireDtoList)
|
||||
}
|
||||
},
|
||||
},
|
||||
'answerList.1': {
|
||||
handler(newVal) {
|
||||
console.log('检测到了第一项数据', newVal)
|
||||
if(!newVal.includes('B')) {
|
||||
const updatedItem = {
|
||||
...this.assessQuestionnaireDtoList[1],
|
||||
subOption: null,
|
||||
subOptionContent: null
|
||||
};
|
||||
this.$set(this.assessQuestionnaireDtoList, 1, updatedItem);
|
||||
console.log('检测到了第一项数据', this.assessQuestionnaireDtoList)
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
mounted(){
|
||||
@@ -309,19 +344,6 @@ export default {
|
||||
score:null,
|
||||
chooseDesc,
|
||||
})
|
||||
//this.$set(this.answerList,idx,e.target.value)
|
||||
// this.assessQuestionnaireDtoList[idx]={
|
||||
// orderNo:this.$route.query.orderNo,
|
||||
// questionNo:item.questionNo,
|
||||
// questionContent:item.title,
|
||||
// choose:null,
|
||||
// chooseContent:null,
|
||||
// subOption:null,
|
||||
// subOptionContent:null,
|
||||
// score:null,
|
||||
// chooseDesc,
|
||||
// }
|
||||
console.log('输入框',e,item,idx,index)
|
||||
console.log('answerList',this.answerList)
|
||||
console.log('this.assessQuestionnaireDtoList',this.assessQuestionnaireDtoList)
|
||||
},
|
||||
@@ -332,29 +354,20 @@ export default {
|
||||
}else{
|
||||
this.showPurpose = false
|
||||
}
|
||||
console.log('多选框选择:', e,item, idx,this.answerList[idx])
|
||||
this.$set(this.assessQuestionnaireDtoList,idx,{
|
||||
orderNo:this.$route.query.orderNo,
|
||||
questionNo:item.questionNo,
|
||||
questionContent:item.title,
|
||||
choose:this.filterCheckBoxElement('letter',e,item),
|
||||
chooseContent:this.filterCheckBoxElement('content',e,item),
|
||||
subOption:e.includes('B')?this.CheckBoxExtraRadio:null,
|
||||
subOptionContent:this.CheckBoxExtraRadio=="Y"?this.CheckBoxExtraDesc:null,
|
||||
//subOption:null,
|
||||
//subOptionContent:null,
|
||||
score:this.filterCheckBoxElement('score',e,item),
|
||||
chooseDesc:null,
|
||||
subOption: this.assessQuestionnaireDtoList[1].subOption?this.assessQuestionnaireDtoList[1].subOption:null,
|
||||
subOptionContent:this.assessQuestionnaireDtoList[1].subOptionContent?this.assessQuestionnaireDtoList[1].subOptionContent:null
|
||||
|
||||
})
|
||||
// this.assessQuestionnaireDtoList[idx]={
|
||||
// orderNo:this.$route.query.orderNo,
|
||||
// questionNo:item.questionNo,
|
||||
// questionContent:item.title,
|
||||
// choose:this.filterCheckBoxElement('letter',e,item),
|
||||
// chooseContent:this.filterCheckBoxElement('content',e,item),
|
||||
// subOption:e.includes('B')?this.CheckBoxExtraRadio:null,
|
||||
// subOptionContent:this.CheckBoxExtraRadio=="Y"?this.CheckBoxExtraDesc:null,
|
||||
// score:this.filterCheckBoxElement('score',e,item),
|
||||
// chooseDesc:null,
|
||||
// }
|
||||
console.log('answerList',this.answerList)
|
||||
console.log('this.assessQuestionnaireDtoList',this.assessQuestionnaireDtoList)
|
||||
},
|
||||
@@ -410,6 +423,7 @@ export default {
|
||||
subOptionContent:null,
|
||||
score:this.filterRadioElement('score',answer,this.questionList[0]),
|
||||
chooseDesc:null,
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
@@ -436,6 +450,8 @@ export default {
|
||||
return this.$toast('请您补充险种和保额信息。')
|
||||
} else if(Array.from(this.answerList[1]).includes('B')&&!this.CheckBoxExtraRadio){
|
||||
return this.$toast('请填写完整信息')
|
||||
}else if(Array.from(this.answerList[1]).length==0){
|
||||
return this.$toast('请填写完整信息')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user