上传附件点击下一步按钮方法修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-09-21 16:54:15 +08:00
parent 8151a31866
commit fa8e16be7d

View File

@@ -1032,65 +1032,138 @@ export default {
that.list.map((i) => { that.list.map((i) => {
delete i.name delete i.name
}) })
let data = { if(JSON.parse(localStorage.mainRiskCodes)[0] == 'GFRS_M0076' || JSON.parse(localStorage.mainRiskCodes)[0] == 'GFRS_M0077') {
orderDTO: { this.$dialog
orderInfoDTO: { .alert({
orderNo: this.$route.query.orderNo, title: '提示',
productCode: JSON.parse(localStorage.mainRiskCodes)[0], message: '尊敬的客户您好!感谢您投保我公司“爱心保/安心保”产品,在本保险合同生效后被保险人将获得一份专属的健康管理服务,详情请登录公司官方微信公众号“国富人寿保险”>发现国富>新市民专区 查询或拨打公司客服热线400-694-6688咨询本服务为无偿提供。',
}, confirmButtonColor: '#E9332E',
appntDTO: { })
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt, .then(() => {
}, let data = {
mediaDTOS: that.list, orderDTO: {
}, orderInfoDTO: {
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER', orderNo: this.$route.query.orderNo,
} productCode: JSON.parse(localStorage.mainRiskCodes)[0],
saveInformation(data).then((res) => { },
if (res.result == '0') { appntDTO: {
this.$toast.clear() relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
if (!this.changeCard) { },
window.localStorage.setItem('accountInfomation-bank', that.bank) mediaDTOS: that.list,
window.localStorage.setItem('accountInformationRadio', that.radio) },
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked)) orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
window.localStorage.setItem('jumpFromSign', '') }
} saveInformation(data).then((res) => {
window.localStorage.removeItem('imgfront') if (res.result == '0') {
window.localStorage.removeItem('imgBackPath') this.$toast.clear()
window.localStorage.removeItem('imgfrontPath') if (!this.changeCard) {
window.localStorage.removeItem('imgfrontInsured') window.localStorage.setItem('accountInfomation-bank', that.bank)
window.localStorage.removeItem('imgfrontInsuredPath') window.localStorage.setItem('accountInformationRadio', that.radio)
window.localStorage.removeItem('imgBackInsuredPath') window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
window.localStorage.removeItem('bankCardUrl') window.localStorage.setItem('jumpFromSign', '')
window.localStorage.removeItem('bankCardUrlPath') }
window.localStorage.removeItem('bankCardUrlInsured') window.localStorage.removeItem('imgfront')
window.localStorage.removeItem('bankCardUrlInsuredPath') window.localStorage.removeItem('imgBackPath')
that.$jump({ window.localStorage.removeItem('imgfrontPath')
flag: 'h5', window.localStorage.removeItem('imgfrontInsured')
extra: { window.localStorage.removeItem('imgfrontInsuredPath')
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo, window.localStorage.removeItem('imgBackInsuredPath')
pullRefresh: '1', window.localStorage.removeItem('bankCardUrl')
backToFirst: '1', window.localStorage.removeItem('bankCardUrlPath')
window.localStorage.removeItem('bankCardUrlInsured')
window.localStorage.removeItem('bankCardUrlInsuredPath')
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
pullRefresh: '1',
backToFirst: '1',
},
routerInfo: {
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
},
})
} else {
if(res.resultMessage.indexOf('Engine')!= -1){
this.thisdialogshow = true
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦请确认并重新录入如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为本人、配偶、子女、父母人工审核中请您耐心等待哦~'
this.thisdialogcontent = res.resultMessage.split('【Engine】')
this.thisdialogcontent.splice(0,1)
}else{
Dialog.confirm({
title: '提示',
message: res.resultMessage,
confirmButtonColor:'#FF0000',
showCancelButton:false
})
}
}
})
})
.catch(() => {
return
})
} else {
let data = {
orderDTO: {
orderInfoDTO: {
orderNo: this.$route.query.orderNo,
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
}, },
routerInfo: { appntDTO: {
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo, relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
}, },
}) mediaDTOS: that.list,
} else { },
if(res.resultMessage.indexOf('Engine')!= -1){ orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
this.thisdialogshow = true
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦请确认并重新录入如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为本人、配偶、子女、父母人工审核中请您耐心等待哦~'
this.thisdialogcontent = res.resultMessage.split('【Engine】')
this.thisdialogcontent.splice(0,1)
}else{
Dialog.confirm({
title: '提示',
message: res.resultMessage,
confirmButtonColor:'#FF0000',
showCancelButton:false
})
}
} }
}) saveInformation(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
if (!this.changeCard) {
window.localStorage.setItem('accountInfomation-bank', that.bank)
window.localStorage.setItem('accountInformationRadio', that.radio)
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
window.localStorage.setItem('jumpFromSign', '')
}
window.localStorage.removeItem('imgfront')
window.localStorage.removeItem('imgBackPath')
window.localStorage.removeItem('imgfrontPath')
window.localStorage.removeItem('imgfrontInsured')
window.localStorage.removeItem('imgfrontInsuredPath')
window.localStorage.removeItem('imgBackInsuredPath')
window.localStorage.removeItem('bankCardUrl')
window.localStorage.removeItem('bankCardUrlPath')
window.localStorage.removeItem('bankCardUrlInsured')
window.localStorage.removeItem('bankCardUrlInsuredPath')
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
pullRefresh: '1',
backToFirst: '1',
},
routerInfo: {
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
},
})
} else {
if(res.resultMessage.indexOf('Engine')!= -1){
this.thisdialogshow = true
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦请确认并重新录入如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为本人、配偶、子女、父母人工审核中请您耐心等待哦~'
this.thisdialogcontent = res.resultMessage.split('【Engine】')
this.thisdialogcontent.splice(0,1)
}else{
Dialog.confirm({
title: '提示',
message: res.resultMessage,
confirmButtonColor:'#FF0000',
showCancelButton:false
})
}
}
})
}
}, },
}, },
computed: { computed: {