|
|
@ -2,6 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
import {validateHanset,validateFax,validatePostCode} from '@/utils/validator' |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 货主 |
|
|
|
*/ |
|
|
@ -273,13 +275,16 @@ export const OwnerRules = reactive({ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
phone: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'} |
|
|
|
], |
|
|
|
fax: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateFax, message: '请输入正确的传真', trigger: 'blur'} |
|
|
|
], |
|
|
|
postId: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validatePostCode, message: '请输入正确的邮编', trigger: 'blur'} |
|
|
|
], |
|
|
|
contacts: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|