mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 23:36:44 +08:00
修改转账不成功问题件校验逻辑
This commit is contained in:
@@ -53,20 +53,22 @@
|
||||
</template>
|
||||
</van-field>
|
||||
</div>
|
||||
<div class="item">
|
||||
<van-field v-model="transfer.bank" @click="getBankListItem" label-class="labels" readonly label="开户银行" placeholder="请选择"> </van-field>
|
||||
</div>
|
||||
<div class="item">
|
||||
<van-field v-model="transfer.card" :maxlength="19" label-class="labels" label="银行卡号" placeholder="请输入银行卡号"
|
||||
><template #button>
|
||||
<van-button size="small" class="button" round color="#e4393c" type="primary" @click.stop="toggleCardScan(true)">银行卡扫描</van-button>
|
||||
</template>
|
||||
</van-field>
|
||||
</div>
|
||||
<div class="item">
|
||||
<van-field label-class="labels" readonly label="银行卡照片"></van-field>
|
||||
<div class="cardList">
|
||||
<van-uploader :max-count="2" :after-read="cardUpload" name="card" v-model="transfer.cardPhoto" />
|
||||
<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>
|
||||
<div class="item">
|
||||
<van-field v-model="transfer.card" :maxlength="19" label-class="labels" label="银行卡号" placeholder="请输入银行卡号"
|
||||
><template #button>
|
||||
<van-button size="small" class="button" round color="#e4393c" type="primary" @click.stop="toggleCardScan(true)">银行卡扫描</van-button>
|
||||
</template>
|
||||
</van-field>
|
||||
</div>
|
||||
<div class="item">
|
||||
<van-field label-class="labels" readonly label="银行卡照片"></van-field>
|
||||
<div class="cardList">
|
||||
<van-uploader :max-count="2" :after-read="cardUpload" name="card" v-model="transfer.cardPhoto" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="checkedBox" v-if="issueType === '818901'">
|
||||
@@ -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,28 +314,28 @@ export default {
|
||||
if (this.transfer.mode === '') {
|
||||
return this.$toast('请选择处理方式')
|
||||
}
|
||||
// 校验开户行
|
||||
if (!this.transfer.bank) {
|
||||
return this.$toast('请选择开户行')
|
||||
}
|
||||
// 银行卡号校验
|
||||
let regx = /^(\d{16}|\d{18}|\d{19})$/
|
||||
if (!regx.test(this.transfer.card)) {
|
||||
return this.$toast('银行卡号不符合规则')
|
||||
}
|
||||
if (this.transfer.cardPhoto.length === 0) {
|
||||
return this.$toast('请上传银行卡图片')
|
||||
// 非终止转账
|
||||
if (this.transfer.mode !== 2) {
|
||||
// 校验开户行
|
||||
if (!this.transfer.bank) {
|
||||
return this.$toast('请选择开户行')
|
||||
}
|
||||
// 银行卡号校验
|
||||
let regx = /^(\d{16}|\d{18}|\d{19})$/
|
||||
if (!regx.test(this.transfer.card)) {
|
||||
return this.$toast('银行卡号不符合规则')
|
||||
}
|
||||
if (this.transfer.cardPhoto.length === 0) {
|
||||
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('请完成签名后继续操作')
|
||||
}
|
||||
// 校验签名
|
||||
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 = {
|
||||
|
||||
Reference in New Issue
Block a user