|
|
@@ -29,6 +29,7 @@ import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { doBankSign, } from '@/business/bank'
|
|
|
import { useNavigation } from '@/hooks/navigation'
|
|
|
import AppSelect from '@mobile/components/base/select/index.vue'
|
|
|
+import { validateRules } from '@/constants/regex'
|
|
|
|
|
|
const {router}=useNavigation()
|
|
|
const { formData, onSubmit, cusSignBank } = doBankSign()
|
|
|
@@ -52,6 +53,12 @@ const formRules: { [key in keyof Proto.t2bBankSignReq]?: FieldRule[] } = {
|
|
|
BankAccountNo: [{
|
|
|
required: true,
|
|
|
message: '请输入银行卡账号',
|
|
|
+ validator: (val) => {
|
|
|
+ if (validateRules.bankcardno.validate(val)) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return validateRules.bankcardno.message
|
|
|
+ }
|
|
|
}],
|
|
|
BankAccountName: [{
|
|
|
required: true,
|