【关于附加综合意外伤害保险(乐享版)投保流程增加《个人信息使用授权》阅知勾选的申请】订单详情判断是否有code12,《人身保险电子投保单》要不要跳转到《个人信息使用授权》

This commit is contained in:
li.yuetong
2022-08-29 15:53:19 +08:00
parent b8b0dc58ae
commit 5ac56aa13e
2 changed files with 133 additions and 78 deletions

View File

@@ -1573,7 +1573,8 @@ export default {
}, },
//自定义key值排序用 //自定义key值排序用
addKey(item) { addKey(item) {
//ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明
// 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书
if (item.documentCode == '1') { if (item.documentCode == '1') {
item.key = 2 item.key = 2
item.routePath = 'insuranceInformation' item.routePath = 'insuranceInformation'
@@ -1606,7 +1607,7 @@ export default {
item.routePath = 'InsuranceRiskReminder' item.routePath = 'InsuranceRiskReminder'
} else if (item.documentCode == '12') { } else if (item.documentCode == '12') {
item.key = 10 item.key = 10
item.routePath = 'InsuranceRiskReminder' item.routePath = 'PersonalInformation'
} }
}, },
getSignInvalid() { getSignInvalid() {

View File

@@ -91,7 +91,7 @@
<van-button type="danger" size="large" @click="submit" :disabled="isSubmit" v-no-more-click="1000">提交</van-button> <van-button type="danger" size="large" @click="submit" :disabled="isSubmit" v-no-more-click="1000">提交</van-button>
</div> </div>
<div class="bottom-btn bg-white" v-else> <div class="bottom-btn bg-white" v-else>
<van-button type="danger" size="large" @click="next" :disabled="isDisabledComplite" v-no-more-click="1000">完成</van-button> <van-button type="danger" size="large" @click="next" :disabled="isDisabledComplite" v-no-more-click="1000">下一步</van-button>
</div> </div>
</div> </div>
</template> </template>
@@ -169,7 +169,8 @@ export default {
// // 产品编码 // // 产品编码
// chooseProductCodes: '', // chooseProductCodes: '',
// pdf名字 // pdf名字
pdfName: '' pdfName: '',
isPersonalInformation:'' // 0是 1否
} }
}, },
components: { components: {
@@ -294,6 +295,11 @@ export default {
getOrderDetail(data).then(res => { getOrderDetail(data).then(res => {
if (res.result == '0') { if (res.result == '0') {
res.orderDTO.ebizSignDTOS.map(item => { res.orderDTO.ebizSignDTOS.map(item => {
if (item.documentCode == '12') {
this.isPersonalInformation = 0 // 0代表有code12
} else{
this.isPersonalInformation = 1 // 1代表无code12
}
if (item.documentCode == '2') { if (item.documentCode == '2') {
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${item.policyUrl}`) this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${item.policyUrl}`)
this.pdfName = item.documentName this.pdfName = item.documentName
@@ -433,6 +439,7 @@ export default {
window.localStorage.setItem('jumpFromSign', '1') window.localStorage.setItem('jumpFromSign', '1')
if (this.isWeixin) { if (this.isWeixin) {
localStorage.removeItem('signInfo') localStorage.removeItem('signInfo')
if(this.isPersonalInformation == '0'){
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -460,6 +467,18 @@ export default {
} }
}) })
}else{ }else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
} else {
if(this.isPersonalInformation == '0'){
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -471,6 +490,17 @@ export default {
path: '/sale/PersonalInformation' path: '/sale/PersonalInformation'
} }
}) })
}else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
} }
} else { } else {
that.$toast(res.resultMessage) that.$toast(res.resultMessage)
@@ -504,6 +534,7 @@ export default {
window.localStorage.setItem('jumpFromSign', '1') window.localStorage.setItem('jumpFromSign', '1')
if (this.isWeixin) { if (this.isWeixin) {
localStorage.removeItem('signInfo') localStorage.removeItem('signInfo')
if(this.isPersonalInformation == '0'){
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -531,6 +562,18 @@ export default {
} }
}) })
}else{ }else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
} else {
if(this.isPersonalInformation == '0'){
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -542,6 +585,17 @@ export default {
path: '/sale/PersonalInformation' path: '/sale/PersonalInformation'
} }
}) })
}else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
} }
} else { } else {
that.$toast(res.resultMessage) that.$toast(res.resultMessage)