|
|
@ -1,4 +1,5 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import {validateHanset,validateFax,validatePostCode,validateYS} from '@/utils/validator' |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const SupplierRules = reactive({ |
|
|
@ -6,6 +7,10 @@ export const SupplierRules = reactive({ |
|
|
|
{ required: true, message: '请输入供应商名称', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
phone: [ |
|
|
|
{ max: 11, message: '不得超过11个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'} |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|