mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 03:36:44 +08:00
feature/GFRS-2215【待完成】重新投保--修改进度条未提交页面不可点击及到签名页后前面不可点击操作,修改告知信息题型过滤--提交人庞兴月
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: PangXingYue
|
* @Author: PangXingYue
|
||||||
* @Date: 2021-03-23 17:07:03
|
* @Date: 2021-03-23 17:07:03
|
||||||
* @LastEditTime: 2021-03-25 19:03:38
|
* @LastEditTime: 2021-03-31 21:02:31
|
||||||
* @LastEditors: PangXingYue
|
* @LastEditors: PangXingYue
|
||||||
* @Description:
|
* @Description:
|
||||||
* @FilePath: \ebiz-h5\src\components\ebiz\insureAgain\ProgressBar.vue
|
* @FilePath: \ebiz-h5\src\components\ebiz\insureAgain\ProgressBar.vue
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Image as VanImage } from 'vant'
|
import { Image as VanImage } from 'vant'
|
||||||
|
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||||
export default {
|
export default {
|
||||||
name: 'ProgressBar',
|
name: 'ProgressBar',
|
||||||
components: {
|
components: {
|
||||||
@@ -46,22 +47,27 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeProgressBar(index) {
|
changeProgressBar(index) {
|
||||||
|
//由 localStorage.salePageFlag 来控制是否可跳到指定页面
|
||||||
|
if (localStorage.active == '3' && index != 3) {
|
||||||
|
this.$toast('已到达签名确认流程,不可以回到前面的流程')
|
||||||
|
}
|
||||||
|
if (Number(CacheUtils.getLocItem('active')) < Number(index)) return
|
||||||
var url;
|
var url;
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
url = 'InsureInformation';
|
url = 'InsureInformation?salePageFlag=ProgressBar';
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
url = 'ProductInformation';
|
url = 'ProductInformation?salePageFlag=ProgressBar';
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
url = 'Notification';
|
url = 'Notification?salePageFlag=ProgressBar';
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
url = 'SignatureConfirmation';
|
url = 'SignatureConfirmation?salePageFlag=ProgressBar';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
url = 'InsureInformation';
|
url = 'InsureInformation?salePageFlag=ProgressBar';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
|
|||||||
@@ -204,6 +204,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getReAppntPolicy() {
|
async getReAppntPolicy() {
|
||||||
|
if (!this.$route.query.salePageFlag) {
|
||||||
|
CacheUtils.setLocItem('active', this.active)
|
||||||
|
}
|
||||||
var res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
|
var res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
|
||||||
if (!res) {
|
if (!res) {
|
||||||
console.log('==================orderDetailData不存在=========================')
|
console.log('==================orderDetailData不存在=========================')
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 第一题 -->
|
<!-- 第一题 -->
|
||||||
<div v-for="(item, index) in im.impartItemDTOS" :key="index">
|
<div v-for="(item, index) in im.impartItemDTOS" :key="index">
|
||||||
<div class="mt10 pb2" v-if="item.impartCode != '2b'">
|
<div class="mt10 pb2" v-if="item.impartCode != '2b' && item.impartCode != '1a' && item.impartCode != '1b'">
|
||||||
<div class="mb20 ml20">
|
<div class="mb20 ml20">
|
||||||
<span>{{ item.impartCode + '.' + item.impartContent }}</span>
|
<span>{{ item.impartCode + '.' + item.impartContent }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -190,7 +190,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'));
|
let res = JSON.parse(CacheUtils.getLocItem('orderDetailData'));
|
||||||
console.log(res);
|
|
||||||
//投被保险人关系
|
//投被保险人关系
|
||||||
// this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false
|
// this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false
|
||||||
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
|
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
|
||||||
@@ -198,9 +197,9 @@ export default {
|
|||||||
this.saleInsuredInfo = res.orderDTO.appntDTO
|
this.saleInsuredInfo = res.orderDTO.appntDTO
|
||||||
this.saleInsuredPersonInfo = res.orderDTO.insuredDTOs[0]
|
this.saleInsuredPersonInfo = res.orderDTO.insuredDTOs[0]
|
||||||
// 获取投保人信息
|
// 获取投保人信息
|
||||||
this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(this.saleInsuredInfo))
|
CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(this.saleInsuredInfo))
|
||||||
// 获取被保险人信息recmd
|
// 获取被保险人信息recmd
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
||||||
//如果返回参数存在曾经提交的告知信息,获取曾经提交的告知信息
|
//如果返回参数存在曾经提交的告知信息,获取曾经提交的告知信息
|
||||||
let insuredFinanceImpartDTO = this.insuredFinanceImpartDTO = res.orderDTO.appntDTO.financeImpartDTO || {} //投保人财务告知集合
|
let insuredFinanceImpartDTO = this.insuredFinanceImpartDTO = res.orderDTO.appntDTO.financeImpartDTO || {} //投保人财务告知集合
|
||||||
let insuredImpartDTO = this.insuredImpartDTO = res.orderDTO.appntDTO.impartDTO || {} //投保人健康告知集合
|
let insuredImpartDTO = this.insuredImpartDTO = res.orderDTO.appntDTO.impartDTO || {} //投保人健康告知集合
|
||||||
@@ -212,15 +211,16 @@ export default {
|
|||||||
(insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) ||
|
(insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) ||
|
||||||
(insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS)
|
(insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS)
|
||||||
) {
|
) {
|
||||||
if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) {
|
|
||||||
this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType })
|
if ((insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){
|
||||||
}else if((insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){
|
|
||||||
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
|
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
|
||||||
|
} else if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) {
|
||||||
|
this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType })
|
||||||
}
|
}
|
||||||
if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) {
|
if ((insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){
|
||||||
this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType })
|
|
||||||
}else if ((insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){
|
|
||||||
this.impartDTOS.push({ impartItemDTOS: insuredPersionImpartDTO.impartItemDTOS, impartType: insuredPersionImpartDTO.impartType })
|
this.impartDTOS.push({ impartItemDTOS: insuredPersionImpartDTO.impartItemDTOS, impartType: insuredPersionImpartDTO.impartType })
|
||||||
|
} else if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) {
|
||||||
|
this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType })
|
||||||
}
|
}
|
||||||
if(this.relationToAppnt != '1'){
|
if(this.relationToAppnt != '1'){
|
||||||
if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) {
|
if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) {
|
||||||
@@ -242,10 +242,14 @@ export default {
|
|||||||
if (i.impartAnswer == '0') {
|
if (i.impartAnswer == '0') {
|
||||||
i.show = true
|
i.show = true
|
||||||
} else {
|
} else {
|
||||||
|
if (i.questions && i.questions.length>0) {
|
||||||
i.questions[0].answer = ''
|
i.questions[0].answer = ''
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log(this.impartDTOS, '==============this.impartDTOS=============')
|
||||||
}
|
}
|
||||||
//投被同人取到年纪和性别去判断是是否显示内容
|
//投被同人取到年纪和性别去判断是是否显示内容
|
||||||
this.saleInsuredAge = utilsAge.getAge(this.saleInsuredInfo.birthday, new Date())
|
this.saleInsuredAge = utilsAge.getAge(this.saleInsuredInfo.birthday, new Date())
|
||||||
@@ -258,6 +262,9 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (!this.$route.query.salePageFlag) {
|
||||||
|
CacheUtils.setLocItem('active', this.active)
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||||
|
|||||||
@@ -168,6 +168,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (!this.$route.query.salePageFlag) {
|
||||||
|
CacheUtils.setLocItem('active', this.active)
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
appCallBack(data) {
|
appCallBack(data) {
|
||||||
if (data.trigger == 'left_button_click') {
|
if (data.trigger == 'left_button_click') {
|
||||||
|
|||||||
@@ -1456,7 +1456,10 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//若进入签名页,则不允许回到签名页前面的页面
|
//若进入签名页,则不允许回到签名页前面的页面
|
||||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
// localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||||
|
if (!this.$route.query.salePageFlag) {
|
||||||
|
CacheUtils.setLocItem('active', this.active)
|
||||||
|
}
|
||||||
let that = this
|
let that = this
|
||||||
document.title = this.changeCard ? '修改银行卡号确认' : '签名确认'
|
document.title = this.changeCard ? '修改银行卡号确认' : '签名确认'
|
||||||
// 初始化
|
// 初始化
|
||||||
|
|||||||
Reference in New Issue
Block a user