From 7949f54cc1083ac7ba3f5e8200229d1064cd64bf Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Fri, 22 Sep 2023 16:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=B8=82=E6=B0=91=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/AttachmentManagement.vue | 209 +++++++++++-------- 1 file changed, 123 insertions(+), 86 deletions(-) diff --git a/src/views/ebiz/sale/AttachmentManagement.vue b/src/views/ebiz/sale/AttachmentManagement.vue index 68dce6674..49c1ad7cb 100644 --- a/src/views/ebiz/sale/AttachmentManagement.vue +++ b/src/views/ebiz/sale/AttachmentManagement.vue @@ -9,7 +9,7 @@ -
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
下一步
+ +
+
校验失败原因:
+
{{index+1}}:{{item}}
+
+
+ +
+
尊敬的客户您好!
+
感谢您投保我公司“爱心保/安心保”产品,在本保险合同生效后被保险人将获得一份专属的健康管理服务,详情请登录公司官方微信公众号“国富人寿保险”>发现国富>新市民专区 查询或拨打公司客服热线400-694-6688咨询,本服务为无偿提供。
+
+
@@ -280,6 +292,9 @@ import utils from '../../../assets/js/business-common' export default { data() { return { + thisnewpeopledialogshow: false, + thisdialogshow: false, + thisdialogcontent: '', isNotify: false, //是否有异常的健康告知 isNotifyInsured: false, // 订单号 @@ -352,7 +367,8 @@ export default { changeCard: localStorage.changeCard, salePageFlag: '9', imageType: '', - subBusinessNo: '' + subBusinessNo: '', + subBusinessType: '', } }, async created() { @@ -750,8 +766,9 @@ export default { } }) }, - test(name, type, subBusinessNo, id, bnfId) { + test(name, type, subBusinessType, subBusinessNo, id, bnfId) { this.imageType = type + this.subBusinessType = subBusinessType this.bnfId = bnfId this.id = id this.type = name @@ -829,7 +846,7 @@ export default { businessType: '', imageInfoType: that.imageType, rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'), - subBusinessType: '0', + subBusinessType: that.subBusinessType, subBusinessNo: that.subBusinessNo, fileName: that.imgName, } @@ -1015,77 +1032,85 @@ export default { } }); }, - + newpeopledialogconfirm(){ + let that = this + that.thisnewpeopledialogshow = false + let data = { + orderDTO: { + orderInfoDTO: { + orderNo: this.$route.query.orderNo, + productCode: JSON.parse(localStorage.mainRiskCodes)[0], + }, + appntDTO: { + relationToInsured: that.saleInsuredPersonInfo.relationToAppnt, + }, + mediaDTOS: that.list, + }, + orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER', + } + 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 { + let thisTime = new Date().getTime() + window.localStorage.setItem('serrorTime',thisTime) + 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 + }) + } + } + }) + }, // 点击下一步 next() { let that = this that.list.map((i) => { delete i.name }) + let nowTime = new Date().getTime() + let localTime = window.localStorage.getItem('serrorTime') + if(nowTime - localTime < 20000){ + this.$toast('您操作过于频繁,请20S后再试!') + return false + } if(JSON.parse(localStorage.mainRiskCodes)[0] == 'GFRS_M0076' || JSON.parse(localStorage.mainRiskCodes)[0] == 'GFRS_M0077') { - this.$dialog - .alert({ - title: '提示', - message: '尊敬的客户您好!感谢您投保我公司“爱心保/安心保”产品,在本保险合同生效后被保险人将获得一份专属的健康管理服务,详情请登录公司官方微信公众号“国富人寿保险”>发现国富>新市民专区 查询或拨打公司客服热线400-694-6688咨询,本服务为无偿提供。', - confirmButtonColor: '#E9332E', - }) - .then(() => { - let data = { - orderDTO: { - orderInfoDTO: { - orderNo: this.$route.query.orderNo, - productCode: JSON.parse(localStorage.mainRiskCodes)[0], - }, - appntDTO: { - relationToInsured: that.saleInsuredPersonInfo.relationToAppnt, - }, - mediaDTOS: that.list, - }, - orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER', - } - 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 { - Dialog.confirm({ - title: '提示', - message: res.resultMessage, - confirmButtonColor:'#FF0000', - showCancelButton:false - }) - } - }) - }) - .catch(() => { - return - }) + that.thisnewpeopledialogshow = true } else { let data = { orderDTO: { @@ -1131,12 +1156,21 @@ export default { }, }) } else { - Dialog.confirm({ - title: '提示', - message: res.resultMessage, - confirmButtonColor:'#FF0000', - showCancelButton:false - }) + let thisTime = new Date().getTime() + window.localStorage.setItem('serrorTime',thisTime) + 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 + }) + } } }) } @@ -1359,4 +1393,7 @@ export default { .redRadioCheckbox { overflow: hidden; } + /deep/ .van-field__label{ + width: 50vw; + }