Commit fb862263 authored by 王苓芝's avatar 王苓芝

序列号格式验证

parent 6db18ea2
......@@ -151,8 +151,8 @@ const LogisticsForm = props => {
initialValue: v.serialNumber,
rules: [
{
required: true,
message: '请填写序列号!',
pattern: new RegExp(/^[0-9a-zA-Z-_]{6,12}$/, 'g'),
message: '序列号格式不正确!',
},
],
})(<Input placeholder="请填写序列号" />)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment