修改转账不成功问题件校验逻辑

This commit is contained in:
mengxiaolong
2020-08-04 20:37:19 +08:00
parent 7f2b1d09ca
commit 7c04588a3d

View File

@@ -53,6 +53,7 @@
</template>
</van-field>
</div>
<div v-if="this.transfer.mode !== 2">
<div class="item">
<van-field v-model="transfer.bank" @click="getBankListItem" label-class="labels" readonly label="开户银行" placeholder="请选择"> </van-field>
</div>
@@ -69,6 +70,7 @@
<van-uploader :max-count="2" :after-read="cardUpload" name="card" v-model="transfer.cardPhoto" />
</div>
</div>
</div>
<div class="checkedBox" v-if="issueType === '818901'">
<van-checkbox v-model="checked" class="checked" icon-size="16px" shape="square"
>本人已认真阅读和理解上述通知书内容同意将其作为投保要约的有效组成部分并承诺遵守</van-checkbox
@@ -76,7 +78,7 @@
</div>
</div>
<!-- end -->
<div class="autograph" v-if="issueType !== '818901'">
<div class="autograph">
<div class="list">
<span>投保人/监护人亲笔签名</span>
<van-button type="danger" size="small" @click="autograph(0)">{{ policyholderSigned ? '已签名' : '签名' }}</van-button>
@@ -312,6 +314,8 @@ export default {
if (this.transfer.mode === '') {
return this.$toast('请选择处理方式')
}
// 非终止转账
if (this.transfer.mode !== 2) {
// 校验开户行
if (!this.transfer.bank) {
return this.$toast('请选择开户行')
@@ -325,16 +329,14 @@ export default {
return this.$toast('请上传银行卡图片')
}
}
}
if (!this.checked) return this.$toast('请先同意协议')
// 转账失败问题件不用签名
if (this.issueType !== '818901') {
// 校验签名
if (this.$route.query.receiveType === '0') {
if (!this.policyholderSigned) return this.$toast('请完成签名后继续操作')
} else if (this.$route.query.receiveType === '1') {
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作')
}
}
// 短信校验
this.dialog = {
type: 'confirm',