diff --git a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts
index 2b3f7af27..cfbacc86e 100644
--- a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts
+++ b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts
@@ -2,6 +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'
const { t } = useI18n() // 国际化
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)
@@ -484,11 +485,11 @@ export const InspectionJobDetail = useCrudSchemas(reactive([
sort: 'custom',
},{
label: '检验方法',
- field: 'inspectionJobCharacteristicsRespVO.inspectionMethodName',
+ field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode',
sort: 'custom',
},{
label: '采样过程编码',
- field: 'inspectionJobCharacteristicsRespVO.inspectionMethod',
+ field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode',
sort: 'custom',
},{
label: '动态修改规则编码',
@@ -587,3 +588,8 @@ export const InspectionJobPackage = useCrudSchemas(reactive([
isSearch: true,
},
]))
+//表单校验
+export const InspectionJobPackageRules = reactive({
+ sampleAmount: [required,
+ { validator:validateTwoNum, message: '小数点后最多2位', trigger: 'blur'}]
+})