From 4ba29f2393042924b4228a4446cdbde4cdc736e6 Mon Sep 17 00:00:00 2001 From: liyuetong Date: Wed, 27 Oct 2021 14:36:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=B3=E5=B7=9E=EF=BC=8C=E7=A9=BA=E7=AD=BE?= =?UTF-8?q?=E8=B0=83=E6=95=B4toAirSign=E6=96=B9=E6=B3=95=E6=97=B6=EF=BC=8C?= =?UTF-8?q?originStatus=E7=94=B12=E5=8F=98=E6=88=903=EF=BC=8CtwoimgBase64D?= =?UTF-8?q?ata=E5=8F=98=E6=88=90threeimgBase64Data=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/InsuranceRiskReminder.vue | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/views/ebiz/sale/InsuranceRiskReminder.vue b/src/views/ebiz/sale/InsuranceRiskReminder.vue index 45bba426e..d4827e07b 100644 --- a/src/views/ebiz/sale/InsuranceRiskReminder.vue +++ b/src/views/ebiz/sale/InsuranceRiskReminder.vue @@ -107,7 +107,6 @@
本人签名 :
- {{appntSign.documentStatus}} {{ appntSign.documentStatus == '2' ? '签名' : '已签名' }} @@ -170,13 +169,13 @@ export default { }, 100) window.appCallBack = this.appCallBack } - if (this.isWeixin) { - let imgBase64Data = sessionStorage.getItem('twoimgBase64Data') - let wxSigned = sessionStorage.getItem('twowxSigned') + if (this.isWeixin) { + let imgBase64Data = sessionStorage.getItem('threeimgBase64Data') + let wxSigned = sessionStorage.getItem('threewxSigned') let signInfo = JSON.parse(localStorage.getItem('signInfo')) console.log('`````````````````````````````````') - console.log('imgBase64Data: twoimgBase64Data:' + imgBase64Data) + console.log('imgBase64Data: threeimgBase64Data:' + imgBase64Data) console.log('wxSigned: ' + wxSigned) if (wxSigned) { //答题数据反显 @@ -195,7 +194,12 @@ export default { this.isSign = false this.isDisabledComplite = false } + } else { + console.log('第一次进入电子保单') + this.getOrderDetail() } + }else{ + this.getOrderDetail() } // 调用初始化方法 this.init() @@ -252,8 +256,6 @@ export default { this.idNo = this.saleInsuredInfo.idNo // 调用获取柳州分红万能投连型产品编码集合的方法 this.getUniversalCodeLstFunc() - // 调用查询详情数据的方法 - this.getOrderDetail() }, /** @@ -291,7 +293,9 @@ export default { getOrderDetail(data).then(res => { if (res.result == '0') { res.orderDTO.ebizSignDTOS.map(item => { - if (item.documentCode == '11') { + //documentCode 签字文档编号 + if (item.documentCode == '11') { + //signType 签名类型 0 投保人 1 被保人 2 本人 if (item.signType == '0' || item.signType == '2') { that.appntSign = item that.tipsPolicyUrl = item.policyUrl @@ -300,6 +304,7 @@ export default { }) if (that.isWeixin) { if (res.orderDTO.ebizSignDTOS.length > 1) { + //0 未读 1 已读 2 未签名 3 已签名 if (that.appntSign.documentStatus == '3') { that.isDisabledComplite = false } @@ -395,7 +400,7 @@ export default { } } if (this.isWeixin) { - this.toAirSign('0', '投保人签字', '10', '2') + this.toAirSign('0', '投保人签字', '10', '3') } else { EWebBridge.webCallAppInJs('ca_sign', { number: that.saleInsuredInfo.idNo, // 身份证号码 @@ -480,7 +485,7 @@ export default { if (res.result == '0') { this.$toast.clear() window.localStorage.setItem('detailJump', '') - sessionStorage.twowxSigned = false + sessionStorage.threewxSigned = false let doubleRecordFlag = localStorage.doubleRecordFlag let routeUrl = '/sale/signatureOfElectronic' if (doubleRecordFlag == '1') { @@ -536,7 +541,7 @@ export default { if (res.result == '0') { this.$toast.clear() window.localStorage.setItem('detailJump', '') - sessionStorage.twowxSigned = false + sessionStorage.threewxSigned = false let doubleRecordFlag = localStorage.doubleRecordFlag let routeUrl = '/sale/signatureOfElectronic' if (doubleRecordFlag == '1') {