Commit 75cacc12 by chenwq

银行账号输入适配

1 parent db9e10fb
......@@ -325,6 +325,11 @@ export default {
this.infoForm.bankAccountNo = event.replace(/\D/g, '')
}
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
let arr = this.infoForm.bankAccountNo.split('')
if(arr[arr.length - 1] == ' ') {
arr.splice(arr.length - 1, 1)
this.infoForm.bankAccountNo = arr.join('')
}
}
},
{
......
......@@ -131,6 +131,11 @@ export default {
this.infoForm.bankAccountNo = event.replace(/\D/g, '')
}
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
let arr = this.infoForm.bankAccountNo.split('')
if(arr[arr.length - 1] == ' ') {
arr.splice(arr.length - 1, 1)
this.infoForm.bankAccountNo = arr.join('')
}
}
}, {
label: "结算凭证",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!