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