[FIX]【电投】修复在账户信息页面银行卡未校验空白字符问题

This commit is contained in:
mengxiaolong
2020-07-21 10:15:43 +08:00
parent cec1ab5630
commit 350764cb20

View File

@@ -287,9 +287,9 @@ export default {
this.$toast('本产品年龄大于65岁不能投保')
return
}
let data
let cardData = {}
if (this.saleInsuredInfo.idNo) {
data = {
cardData = {
account: this.bankId,
idNo: this.saleInsuredInfo.idNo,
idType: this.saleInsuredInfo.idType,
@@ -297,7 +297,7 @@ export default {
name: this.saleInsuredInfo.name
}
} else {
data = {
cardData = {
account: this.bankId,
idNo: this.appntDTO.idNo,
idType: this.appntDTO.idType,
@@ -316,7 +316,7 @@ export default {
let valid = await this.$validator.validate()
// that.$validator.validate().then(valid => {
if (valid === true) {
let res = await checkCard(data)
let res = await checkCard(cardData)
this.$toast.clear()
if (res.result != '0') {
return this.$toast(res.resultMessage)