diff --git a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts index cbd6b2916..3e4336b4b 100644 --- a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts @@ -251,7 +251,7 @@ export const DockRules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ - { max: 50, message: '不得超过50个字符', trigger: 'blur' } + { required: true,max: 50, message: '不得超过50个字符', trigger: 'blur' } ], city: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } diff --git a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts index 3ff8f8bd0..9892ad75b 100644 --- a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts @@ -243,7 +243,7 @@ export const ProductionlineRules = reactive({ { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], name: [ - { max: 50, message: '不得超过50个字符', trigger: 'blur' } + { required: true,max: 50, message: '不得超过50个字符', trigger: 'blur' } ], workshopCode: [ { required: true, message: '请输入车间代码', trigger: 'change' }