测试微信端更新问题件

This commit is contained in:
mengxiaolong
2020-08-09 15:25:58 +08:00
parent 9ce803600a
commit 13206e5e56

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="detail-container"> <div class="detail-container">
<div class="pdf"> <div class="pdf">
<!-- <iframe :src="src + pdfUrl" class="iframe"></iframe> --> <iframe :src="src + pdfUrl" class="iframe"></iframe>
</div> </div>
<!-- 补充材料问题件 --> <!-- 补充材料问题件 -->
<div class="update" v-if="issueType === '828601'"> <div class="update" v-if="issueType === '828601'">
@@ -14,9 +14,9 @@
{{ supplement.descriptionInsurant }} {{ supplement.descriptionInsurant }}
</p> </p>
</div> </div>
<p class="uploadTitle">身份证面照片</p> <p class="uploadTitle">身份证头像面照片</p>
<van-uploader :max-count="1" :after-read="insurantUpload" name="insurantIdCardA" v-model="supplement.insurantIdCardA" /> <van-uploader :max-count="1" :after-read="insurantUpload" name="insurantIdCardA" v-model="supplement.insurantIdCardA" />
<p class="uploadTitle">身份证面照片</p> <p class="uploadTitle">身份证国徽面照片</p>
<van-uploader :max-count="1" :after-read="insurantUpload" name="insurantIdCardB" v-model="supplement.insurantIdCardB" /> <van-uploader :max-count="1" :after-read="insurantUpload" name="insurantIdCardB" v-model="supplement.insurantIdCardB" />
</div> </div>
</div> </div>
@@ -29,9 +29,9 @@
{{ supplement.descriptionPolicyholder }} {{ supplement.descriptionPolicyholder }}
</p> </p>
</div> </div>
<p class="uploadTitle">身份证面照片</p> <p class="uploadTitle">身份证头像面照片</p>
<van-uploader :max-count="1" :after-read="policyHolderUpload" name="policyholderIdCardA" v-model="supplement.policyholderIdCardA" /> <van-uploader :max-count="1" :after-read="policyHolderUpload" name="policyholderIdCardA" v-model="supplement.policyholderIdCardA" />
<p class="uploadTitle">身份证面照片</p> <p class="uploadTitle">身份证国徽面照片</p>
<van-uploader :max-count="1" :after-read="policyHolderUpload" name="policyholderIdCardB" v-model="supplement.policyholderIdCardB" /> <van-uploader :max-count="1" :after-read="policyHolderUpload" name="policyholderIdCardB" v-model="supplement.policyholderIdCardB" />
<p class="uploadTitle">银行卡照片</p> <p class="uploadTitle">银行卡照片</p>
<van-uploader :max-count="1" :after-read="policyHolderUpload" name="policyholderBankCardA" v-model="supplement.policyholderBankCardA" /> <van-uploader :max-count="1" :after-read="policyHolderUpload" name="policyholderBankCardA" v-model="supplement.policyholderBankCardA" />
@@ -127,6 +127,7 @@ import { getBankList, uploadImg, saveInformation } from '@/api/ebiz/sale/sale'
import { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions' import { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions'
import BankCardScan from '@/components/ebiz/sale/BankCardScan' import BankCardScan from '@/components/ebiz/sale/BankCardScan'
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue' import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
import config from '@/config'
export default { export default {
name: 'QuestionsDetail', name: 'QuestionsDetail',
components: { components: {
@@ -190,16 +191,16 @@ export default {
}, },
issueType: 0, issueType: 0,
// 投保人是否已签名 // 投保人是否已签名
policyholderSigned: false, policyholderSigned: true,
policyholderBase64: '', policyholderBase64: '',
// 被保人是否已签名 // 被保人是否已签名
insurantSigned: false, insurantSigned: true,
insurantBase64: '', insurantBase64: '',
// 接收验证码手机号码 // 接收验证码手机号码
phoneNum: '', phoneNum: '',
showConfirm: false, showConfirm: false,
src: '', src: location.origin + '/pdfjs/web/viewer.html?file=',
pdfUrl: '', pdfUrl: '/opt/ebiz/webapps/ebiz-epolicy/pdf/2020/08/09/1000000996545670/1000000996545670.pdf',
// 转账不成功处理方式是否不可用 // 转账不成功处理方式是否不可用
handleType: false handleType: false
} }
@@ -211,8 +212,11 @@ export default {
localStorage.setItem(detail.name, file.content) localStorage.setItem(detail.name, file.content)
} }
let res = await this.afterRead(file) let res = await this.afterRead(file)
let imageType = detail.name === 'policyholderIdCardA' ? 1 : detail.name === 'policyholderIdCardB' ? 2 : 3
this.supplement.policyholderUploadResult.push({ this.supplement.policyholderUploadResult.push({
rgssUrl: res.path rgssUrl: res.path,
imageInfoType: imageType,
subBusinessType: 0
}) })
}, },
async insurantUpload(file, detail) { async insurantUpload(file, detail) {
@@ -221,7 +225,9 @@ export default {
} }
let res = await this.afterRead(file) let res = await this.afterRead(file)
this.supplement.insurantUploadResult.push({ this.supplement.insurantUploadResult.push({
rgssUrl: res.path rgssUrl: res.path,
imageInfoType: detail.name === 'insurantIdCardA' ? 1 : 2,
subBusinessType: 1
}) })
}, },
async cardUpload(file, detail) { async cardUpload(file, detail) {
@@ -239,6 +245,8 @@ export default {
if (this.issueType === 'TB89') { if (this.issueType === 'TB89') {
if (!this.newContract.feedback.trim()) { if (!this.newContract.feedback.trim()) {
return this.$toast('请先填写回复内容') return this.$toast('请先填写回复内容')
} else {
localStorage.setItem('problemReplay', this.newContract.feedback.trim())
} }
} }
// 转账不成功签名前必须选择处理方式 // 转账不成功签名前必须选择处理方式
@@ -270,11 +278,6 @@ export default {
this.policyholderBase64 = decodeURI(signRes.sign) this.policyholderBase64 = decodeURI(signRes.sign)
this.policyholderSigned = true this.policyholderSigned = true
if (this.issueType === 'TB89') {
// 根据回复内容重新生成PDF&回复内容不能在更改
this.newContract.feedbackAvailable = true
}
if (this.issueType === '818901') { if (this.issueType === '818901') {
// 根据选择的处理方式重新生成PDF&处理方式不能再更改 // 根据选择的处理方式重新生成PDF&处理方式不能再更改
this.handleType = true this.handleType = true
@@ -355,7 +358,7 @@ export default {
if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写回复内容') if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写回复内容')
// 校验补充资料 // 校验补充资料
if (this.issueType === '828601') { if (this.issueType === '828601') {
if (this.supplement.idImgList.length === 0 || this.supplement.copyImgList.length === 0) { if (this.supplement.insurantUploadResult.length < 2 || this.supplement.policyholderUploadResult.length < 3) {
return this.$toast('请上传补充资料') return this.$toast('请上传补充资料')
} }
} }
@@ -381,7 +384,11 @@ export default {
} }
} }
} }
if (!this.checked) return this.$toast('请先同意协议') if (!this.checked) {
return this.$toast('请先同意协议')
} else {
localStorage.setItem('agreementChecked', true)
}
// 校验签名 // 校验签名
if (this.$route.query.receiveType === '0') { if (this.$route.query.receiveType === '0') {
if (!this.policyholderSigned) return this.$toast('请完成签名后继续操作') if (!this.policyholderSigned) return this.$toast('请完成签名后继续操作')
@@ -418,16 +425,8 @@ export default {
// 补充资料类问题件 // 补充资料类问题件
else if (this.issueType === '828601') { else if (this.issueType === '828601') {
// 被保人资料 // 被保人资料
for (let item of this.supplement.insurantUploadResult) {
item.imageInfoType = '1'
item.subBusinessType = '1'
}
problemData.list.push(...this.supplement.insurantUploadResult) problemData.list.push(...this.supplement.insurantUploadResult)
// 投保人资料 // 投保人资料
for (let item of this.supplement.policyholderUploadResult) {
item.imageInfoType = '1'
item.subBusinessType = '0'
}
problemData.list.push(...this.supplement.policyholderUploadResult) problemData.list.push(...this.supplement.policyholderUploadResult)
} }
// 转账不成功问题件 // 转账不成功问题件
@@ -520,18 +519,38 @@ export default {
// 0代表投保人签名 // 0代表投保人签名
if (Number(localStorage.getItem('signedPersonType')) === 0) { if (Number(localStorage.getItem('signedPersonType')) === 0) {
if (signInfo.status == '0') { if (signInfo.status == '0') {
this.policyholderSigned = true localStorage.setItem('policyholderSignInfo', imgBase64Data)
this.policyholderBase64 = imgBase64Data
} }
} }
// 1代表被保人签名 // 1代表被保人签名
else { else {
if (signInfo.status == '0') { if (signInfo.status == '0') {
this.insurantSigned = true localStorage.setItem('insurantSignInfo', imgBase64Data)
this.insurantBase64 = imgBase64Data
} }
} }
} }
// localstorage存在投保人签名信息
if (localStorage.getItem('policyholderSignInfo')) {
this.policyholderBase64 = localStorage.getItem('policyholderSignInfo')
this.policyholderSigned = true
}
// localstorage存在被保人签名信息
if (localStorage.getItem('insurantSignInfo')) {
this.insurantBase64 = localStorage.getItem('insurantSignInfo')
this.insurantSigned = true
}
// localstorage存在回复内容时不允许修改回复内容
if (localStorage.getItem('problemReplay')) {
this.newContract.feedback = localStorage.getItem('problemReplay')
this.newContract.feedbackAvailable = true
}
if (localStorage.getItem('agreementChecked')) {
this.checked = true
}
} }
this.getBankList() this.getBankList()
this.getQuestionDetail() this.getQuestionDetail()