|
|
@ -2,7 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter2 } from '@/utils/formatTime' |
|
|
|
import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import {validateTwoNum } from '@/utils/validator' |
|
|
|
import {validateTwoNum,validateSixNum } from '@/utils/validator' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
@ -716,18 +716,18 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const InspectionRecordPackageRules = reactive({ |
|
|
|
qualifiedAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
], |
|
|
|
frozenAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
], |
|
|
|
destroyAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
], |
|
|
|
noQualifiedAmount: [ |
|
|
|
required, |
|
|
|
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
{ validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'} |
|
|
|
], |
|
|
|
}) |
|
|
|