|
|
@ -348,7 +348,20 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
//表单校验
|
|
|
|
export const LocationRules = reactive({ |
|
|
|
code: [ |
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
name: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
aisle: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
shelf: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
warehouseCode: [ |
|
|
|
{ required: true, message: '请输入仓库代码', trigger: 'change' } |
|
|
@ -369,7 +382,8 @@ export const LocationRules = reactive({ |
|
|
|
{ required: true, message: '请输入拣料优先级', trigger: 'blur' } |
|
|
|
], |
|
|
|
userGroupCode: [ |
|
|
|
{ required: true, message: '请输入用户组代码', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入用户组代码', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
available: [ |
|
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
|