Browse Source

修改bug。

master_hella_20240701
liuchen864 6 months ago
parent
commit
615ca197bd
  1. 8
      src/views/qms/basicDataManage/inspectionScheme/addForm.vue
  2. 16
      src/views/qms/inspection/inspectionRequest/inspectionRequestMain.data.ts

8
src/views/qms/basicDataManage/inspectionScheme/addForm.vue

@ -104,7 +104,13 @@
'检验模板', '检验模板',
InspectionTemplateMain.allSchemas, InspectionTemplateMain.allSchemas,
InspectionTemplateApi.inspectionTemplatePage, InspectionTemplateApi.inspectionTemplatePage,
null, [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
false, false,
'main', 'main',
null null

16
src/views/qms/inspection/inspectionRequest/inspectionRequestMain.data.ts

@ -370,8 +370,8 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
// 表单校验 // 表单校验
export const InspectionRequestPackageRules = reactive({ export const InspectionRequestPackageRules = reactive({
packageCode: [required], // packageCode: [required],
packageSpecificationCode: [required], // packageSpecificationCode: [required],
amount: [required,{ validator:validateTwoNum, message: '小数点后最多2位', trigger: 'blur'}], amount: [required,{ validator:validateTwoNum, message: '小数点后最多2位', trigger: 'blur'}],
measuringUnit: [required], measuringUnit: [required],
}) })
@ -388,9 +388,6 @@ export const InspectionRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
table:{
width:200
},
isTableForm:false, isTableForm:false,
form:{ form:{
componentProps:{ componentProps:{
@ -406,9 +403,6 @@ export const InspectionRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([
tableForm:{ tableForm:{
disabled:false disabled:false
}, },
table:{
width:200
}
}, },
{ {
label: '包装规格', label: '包装规格',
@ -418,9 +412,6 @@ export const InspectionRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([
tableForm:{ tableForm:{
disabled:false disabled:false
}, },
table:{
width:180
}
}, },
{ {
label: '数量', label: '数量',
@ -434,9 +425,6 @@ export const InspectionRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([
tableForm:{ tableForm:{
disabled:false disabled:false
}, },
table:{
width:150
}
}, },
{ {
label: '计量单位', label: '计量单位',

Loading…
Cancel
Save