投被同人处理

This commit is contained in:
mengxiaolong
2020-09-10 18:07:43 +08:00
parent 126f2a181b
commit c097ca7a40

View File

@@ -67,7 +67,7 @@
</div>
<!-- end -->
<div class="autograph">
<div class="list" v-if="!releationType">
<div class="list" v-if="(!releationType && $route.query.receiveType === '0') || (releationType && $route.query.receiveType === '0')">
<span>投保人亲笔签名</span>
<van-button type="danger" size="small" @click="autograph(0)">{{ policyholderSigned ? '已签名' : '未签名' }}</van-button>
</div>
@@ -276,7 +276,7 @@ export default {
name,
type: '1',
number,
keyword: personType === 0 ? '投保人签名:' : this.releationType ? '投保人/被保险人签名' : '被保险人签名:',
keyword: personType === 0 ? '投保人签名:' : this.releationType ? '投保人/被保险人签名' : '被保险人/监护人签名:',
pageNo: '1',
index: 1,
offset: 20,
@@ -301,9 +301,11 @@ export default {
if (personType === 0) {
this.toAirSign('0', '投保人签名:', '10', '2', personType)
} else {
let keyword = '被保险人签名:'
let keyword = ''
if (this.releationType) {
keyword = '投保人/' + keyword
keyword = '投保人/被保险人签名:'
} else {
keyword = '被保险人/监护人签名:'
}
this.toAirSign('0', keyword, '10', '2', personType)
}
@@ -373,23 +375,16 @@ export default {
// 下一步
async submit() {
// 校验回复内容
if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写具体回复信息')
if (this.issueType === 'TB89' && (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400))
return this.$toast('请输入4-400个字符')
if (this.issueType === 'TB89') {
if (this.newContract.feedback.trim() === '') return this.$toast('请填写具体回复信息')
if (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400) return this.$toast('请输入4-400个字符')
}
// 校验补充资料
if (this.issueType === '828601') {
if (!this.checkSupplementData()) return this.$toast('请上传补充资料')
if (!this.checked) {
return this.$toast('请先阅读并勾选协议')
}
// 校验签名
if (this.$route.query.receiveType === '0') {
if (!this.policyholderSigned) return this.$toast('签名未完成, 请先进行签名')
} else if (this.$route.query.receiveType === '1' && !this.releationType) {
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('签名未完成, 请先进行签名')
} else if (this.$route.query.receiveType === '1' && this.releationType) {
if (!this.insurantSigned) return this.$toast('签名未完成, 请先进行签名')
}
this.$toast.loading()
this.imageResultList.splice(0)
if (this.isWeixin) {
@@ -426,10 +421,6 @@ export default {
}
// 转账不成功
if (this.issueType === '818901') {
// 校验处理方式
if (this.transfer.mode === '') {
return this.$toast('请先选择处理方式')
}
// 非终止转账
if (this.transfer.mode === 3) {
// 校验开户行