|
@ -7,9 +7,14 @@ import {validateNum} from "@/utils/validator"; |
|
|
export const SampleCodeRules = reactive({ |
|
|
export const SampleCodeRules = reactive({ |
|
|
code: [required], |
|
|
code: [required], |
|
|
batchLowLimiting: [{ validator:validateNum, message: '请输入整数', trigger: 'blur'}], |
|
|
batchLowLimiting: [{ validator:validateNum, message: '请输入整数', trigger: 'blur'}], |
|
|
batchUpperLimiting: [ |
|
|
batchUpperLimiting: [{ required:true, message: '该项为必填', trigger: 'blur'}, { validator:validateNum, message: '请输入整数', trigger: 'blur'}], |
|
|
{ required:true, message: '该项为必填', trigger: 'blur'}, |
|
|
s1: [{ required }], |
|
|
{ validator:validateNum, message: '请输入整数', trigger: 'blur'}], |
|
|
s2: [{ required }], |
|
|
|
|
|
s3: [{ required }], |
|
|
|
|
|
s4: [{ required }], |
|
|
|
|
|
g1: [{ required }], |
|
|
|
|
|
g2: [{ required }], |
|
|
|
|
|
g3: [{ required }] |
|
|
}) |
|
|
}) |
|
|
const samplingSchemeList = await getSamplingScheme() |
|
|
const samplingSchemeList = await getSamplingScheme() |
|
|
export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|