From 5628ebfc9aad27d0e1c0d4e86061f10be4e237ff Mon Sep 17 00:00:00 2001 From: mengxiaolong Date: Wed, 12 Aug 2020 09:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=9B=9E=E6=98=BE=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/questions/QuestionsDetail.vue | 117 ++++++++++++++++--- 1 file changed, 100 insertions(+), 17 deletions(-) diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index 3d075a6af..5c0667ea8 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -105,7 +105,7 @@
- +
@@ -212,7 +212,7 @@ export default { show: false, //显示银行列表 showDiscern: false, //是否开启银行卡识别 clear: false, //是否清空银行卡识别数据 - cardUploadResult: [] + cardUploadResult: null }, // 勾选协议 checked: false, @@ -255,12 +255,21 @@ export default { switch (detail.name) { case 'policyholderIdCardA': this.supplement.policyholderIdCardAUploadResult = result + if (this.isWeixin) { + localStorage.setItem('policyholderIdCardAUploadResult', JSON.stringify(result)) + } break case 'policyholderIdCardB': this.supplement.policyholderIdCardBUploadResult = result + if (this.isWeixin) { + localStorage.setItem('policyholderIdCardBUploadResult', JSON.stringify(result)) + } break case 'policyholderBankCardA': this.supplement.policyholderBankCardAUploadResult = result + if (this.isWeixin) { + localStorage.setItem('policyholderBankCardAUploadResult', JSON.stringify(result)) + } break } }, @@ -297,9 +306,15 @@ export default { switch (detail.name) { case 'insurantIdCardA': this.supplement.insurantIdCardAUploadResult = result + if (this.isWeixin) { + localStorage.setItem('insurantIdCardAUploadResult', JSON.stringify(result)) + } break case 'insurantIdCardB': this.supplement.insurantIdCardBUploadResult = result + if (this.isWeixin) { + localStorage.setItem('insurantIdCardBUploadResult', JSON.stringify(result)) + } break } }, @@ -318,17 +333,23 @@ export default { }, // 转账不成功问题件添加银行卡照片 async cardUpload(file, detail) { + // 供微信签名回调回显图片 if (this.isWeixin) { localStorage.setItem(detail.name, file.content) } let res = await this.afterRead(file) - this.transfer.cardUploadResult.push({ - rgssUrl: res.path - }) + this.transfer.cardUploadResult = { + rgssUrl: res.path, + imageInfoType: '3', + subBusinessType: '0' + } + if (this.isWeixin) { + localStorage.setItem('transferCardUploadResult', JSON.stringify(this.transfer.cardUploadResult)) + } }, // 转账不成功问题件删除银行卡照片 transferBankCardDelete() { - this.transfer.cardUploadResult.splice(0) + this.transfer.cardUploadResult = null }, // 签名 async autograph(personType) { @@ -556,13 +577,9 @@ export default { problemData.bankType = this.transfer.bankCode problemData.bankName = this.transfer.bank problemData.bankNo = this.transfer.card - for (let item of this.transfer.cardUploadResult) { - item.imageInfoType = '3' - item.subBusinessType = '0' - } // 选择非终止转账时上传银行卡照片 if (this.transfer.mode !== 2) { - problemData.list = this.transfer.cardUploadResult + problemData.list.push(this.transfer.cardUploadResult) } } // 更新问题件数据 @@ -663,41 +680,107 @@ export default { // localstorage存在投保人签名信息 if (localStorage.getItem('policyholderSignInfo')) { - console.log('policyholderSignInfo', localStorage.getItem('policyholderSignInfo')) this.policyholderBase64 = localStorage.getItem('policyholderSignInfo') this.policyholderSigned = true } // localstorage存在被保人签名信息 if (localStorage.getItem('insurantSignInfo')) { - console.log('insurantSignInfo', localStorage.getItem('insurantSignInfo')) this.insurantBase64 = localStorage.getItem('insurantSignInfo') this.insurantSigned = true } - // localstorage存在回复内容时不允许修改回复内容 + // localstorage存在回复内容时回显回复内容 if (localStorage.getItem('problemReplay')) { - console.log('problemReplay', localStorage.getItem('problemReplay')) this.newContract.feedback = localStorage.getItem('problemReplay') this.newContract.feedbackAvailable = true } if (localStorage.getItem('agreementChecked')) { - console.log('agreementChecked', localStorage.getItem('agreementChecked')) this.checked = true } + // localstorage存在处理类型回显处理类型 if (localStorage.getItem('resolveType')) { this.transfer.mode = Number(localStorage.getItem('resolveType')) } + // localstorage存在银行名称回显银行名称 if (localStorage.getItem('problemBank')) { - this.transfer.mode = localStorage.getItem('problemBank') + this.transfer.bank = localStorage.getItem('problemBank') } + // localstorage存在银行卡号回显银行卡号 if (localStorage.getItem('problemCard')) { this.transfer.card = localStorage.getItem('problemCard') } + + // 签名回调回显银行卡照片 + if (localStorage.getItem('bankcardA')) { + this.transfer.cardPhoto.push({ + content: localStorage.getItem('bankcardA') + }) + } + + // 补充资料问题件 + { + // 签名回调回显被保人身份证头像面 + if (localStorage.getItem('policyholderIdCardA')) { + this.supplement.insurantIdCardA.push({ + content: localStorage.getItem('policyholderIdCardA') + }) + } + + // 签名回调保存被保人身份证头像面上传结果 + if (localStorage.getItem('insurantIdCardAUploadResult')) { + this.supplement.insurantIdCardA.push({ + content: localStorage.getItem('insurantIdCardAUploadResult') + }) + } + + // 签名回调回显被保人身份证国徽面 + if (localStorage.getItem('insurantIdCardBUploadResult')) { + this.supplement.insurantIdCardB.push({ + content: localStorage.getItem('insurantIdCardBUploadResult') + }) + } + + // 签名回调回显投保人身份证头像面 + if (localStorage.getItem('policyholderIdCardA')) { + this.supplement.policyholderIdCardA.push({ + content: localStorage.getItem('policyholderIdCardA') + }) + } + + // 签名回调保存投保人身份证头像面上传结果 + if (localStorage.getItem('policyholderIdCardAUploadResult')) { + this.supplement.policyholderIdCardAUploadResult = JSON.parse(localStorage.getItem('policyholderIdCardAUploadResult')) + } + + // 签名回调回显投保人身份证国徽面 + if (localStorage.getItem('policyholderIdCardB')) { + this.supplement.policyholderIdCardB.push({ + content: localStorage.getItem('policyholderIdCardB') + }) + } + + // 签名回调保存投保人身份证国徽面上传结果 + if (localStorage.getItem('policyholderIdCardBUploadResult')) { + this.supplement.policyholderIdCardBUploadResult = JSON.parse(localStorage.getItem('policyholderIdCardBUploadResult')) + } + + // 签名回调回显投保人银行卡照片 + if (localStorage.getItem('policyholderBankCardA')) { + this.supplement.policyholderBankCardA.push({ + content: localStorage.getItem('policyholderBankCardA') + }) + } + } + + // 签名回调后保存转账不成功上传银行卡照片结果信息 + if (localStorage.getItem('transferCardUploadResult')) { + this.transfer.cardUploadResult = JSON.parse(localStorage.getItem('transferCardUploadResult')) + } } this.getBankList() this.getQuestionDetail()