mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 22:26:44 +08:00
测试微信端更新问题件
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="detail-container">
|
||||
<div class="pdf">
|
||||
<!-- <iframe :src="src + pdfUrl" class="iframe"></iframe> -->
|
||||
<iframe :src="src + pdfUrl" class="iframe"></iframe>
|
||||
</div>
|
||||
<!-- 补充材料问题件 -->
|
||||
<div class="update" v-if="issueType === '828601'">
|
||||
@@ -14,9 +14,9 @@
|
||||
{{ supplement.descriptionInsurant }}
|
||||
</p>
|
||||
</div>
|
||||
<p class="uploadTitle">身份证正面照片</p>
|
||||
<p class="uploadTitle">身份证头像面照片</p>
|
||||
<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" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,9 +29,9 @@
|
||||
{{ supplement.descriptionPolicyholder }}
|
||||
</p>
|
||||
</div>
|
||||
<p class="uploadTitle">身份证正面照片</p>
|
||||
<p class="uploadTitle">身份证头像面照片</p>
|
||||
<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" />
|
||||
<p class="uploadTitle">银行卡照片</p>
|
||||
<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 BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
|
||||
import config from '@/config'
|
||||
export default {
|
||||
name: 'QuestionsDetail',
|
||||
components: {
|
||||
@@ -190,16 +191,16 @@ export default {
|
||||
},
|
||||
issueType: 0,
|
||||
// 投保人是否已签名
|
||||
policyholderSigned: false,
|
||||
policyholderSigned: true,
|
||||
policyholderBase64: '',
|
||||
// 被保人是否已签名
|
||||
insurantSigned: false,
|
||||
insurantSigned: true,
|
||||
insurantBase64: '',
|
||||
// 接收验证码手机号码
|
||||
phoneNum: '',
|
||||
showConfirm: false,
|
||||
src: '',
|
||||
pdfUrl: '',
|
||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||
pdfUrl: '/opt/ebiz/webapps/ebiz-epolicy/pdf/2020/08/09/1000000996545670/1000000996545670.pdf',
|
||||
// 转账不成功处理方式是否不可用
|
||||
handleType: false
|
||||
}
|
||||
@@ -211,8 +212,11 @@ export default {
|
||||
localStorage.setItem(detail.name, file.content)
|
||||
}
|
||||
let res = await this.afterRead(file)
|
||||
let imageType = detail.name === 'policyholderIdCardA' ? 1 : detail.name === 'policyholderIdCardB' ? 2 : 3
|
||||
this.supplement.policyholderUploadResult.push({
|
||||
rgssUrl: res.path
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: imageType,
|
||||
subBusinessType: 0
|
||||
})
|
||||
},
|
||||
async insurantUpload(file, detail) {
|
||||
@@ -221,7 +225,9 @@ export default {
|
||||
}
|
||||
let res = await this.afterRead(file)
|
||||
this.supplement.insurantUploadResult.push({
|
||||
rgssUrl: res.path
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: detail.name === 'insurantIdCardA' ? 1 : 2,
|
||||
subBusinessType: 1
|
||||
})
|
||||
},
|
||||
async cardUpload(file, detail) {
|
||||
@@ -239,6 +245,8 @@ export default {
|
||||
if (this.issueType === 'TB89') {
|
||||
if (!this.newContract.feedback.trim()) {
|
||||
return this.$toast('请先填写回复内容')
|
||||
} else {
|
||||
localStorage.setItem('problemReplay', this.newContract.feedback.trim())
|
||||
}
|
||||
}
|
||||
// 转账不成功签名前必须选择处理方式
|
||||
@@ -270,11 +278,6 @@ export default {
|
||||
this.policyholderBase64 = decodeURI(signRes.sign)
|
||||
this.policyholderSigned = true
|
||||
|
||||
if (this.issueType === 'TB89') {
|
||||
// 根据回复内容重新生成PDF&回复内容不能在更改
|
||||
this.newContract.feedbackAvailable = true
|
||||
}
|
||||
|
||||
if (this.issueType === '818901') {
|
||||
// 根据选择的处理方式重新生成PDF&处理方式不能再更改
|
||||
this.handleType = true
|
||||
@@ -355,7 +358,7 @@ export default {
|
||||
if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写回复内容')
|
||||
// 校验补充资料
|
||||
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('请上传补充资料')
|
||||
}
|
||||
}
|
||||
@@ -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.policyholderSigned) return this.$toast('请完成签名后继续操作')
|
||||
@@ -418,16 +425,8 @@ export default {
|
||||
// 补充资料类问题件
|
||||
else if (this.issueType === '828601') {
|
||||
// 被保人资料
|
||||
for (let item of this.supplement.insurantUploadResult) {
|
||||
item.imageInfoType = '1'
|
||||
item.subBusinessType = '1'
|
||||
}
|
||||
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)
|
||||
}
|
||||
// 转账不成功问题件
|
||||
@@ -520,17 +519,37 @@ export default {
|
||||
// 0代表投保人签名
|
||||
if (Number(localStorage.getItem('signedPersonType')) === 0) {
|
||||
if (signInfo.status == '0') {
|
||||
this.policyholderSigned = true
|
||||
this.policyholderBase64 = imgBase64Data
|
||||
localStorage.setItem('policyholderSignInfo', imgBase64Data)
|
||||
}
|
||||
}
|
||||
// 1代表被保人签名
|
||||
else {
|
||||
if (signInfo.status == '0') {
|
||||
localStorage.setItem('insurantSignInfo', 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
|
||||
this.insurantBase64 = imgBase64Data
|
||||
}
|
||||
|
||||
// localstorage存在回复内容时不允许修改回复内容
|
||||
if (localStorage.getItem('problemReplay')) {
|
||||
this.newContract.feedback = localStorage.getItem('problemReplay')
|
||||
this.newContract.feedbackAvailable = true
|
||||
}
|
||||
|
||||
if (localStorage.getItem('agreementChecked')) {
|
||||
this.checked = true
|
||||
}
|
||||
}
|
||||
this.getBankList()
|
||||
|
||||
Reference in New Issue
Block a user