|
@ -2,7 +2,7 @@ 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' |
|
|
import {validateHanset,validateFax,validatePostCode,validateYS} from '@/utils/validator' |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 供应商 |
|
|
* @returns {Array} 供应商 |
|
@ -254,7 +254,8 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const SupplierRules = reactive({ |
|
|
export const SupplierRules = reactive({ |
|
|
code: [ |
|
|
code: [ |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }, |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
|
|
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} |
|
|
], |
|
|
], |
|
|
name: [ |
|
|
name: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|