Commit 2113691a authored by 季圣华's avatar 季圣华
Browse files

修改商品条码的校验逻辑

parent 6c97b4a0
...@@ -337,7 +337,6 @@ ...@@ -337,7 +337,6 @@
{ {
title: '条码', key: 'barCode', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}', title: '条码', key: 'barCode', width: '15%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}',
validateRules: [{ required: true, message: '${title}不能为空' }, validateRules: [{ required: true, message: '${title}不能为空' },
{ pattern: /[^%&',;=?$x22]+$/, message: '含有%&\',;=?$"等字符' },
{ pattern: /^.{4,40}$/, message: '长度为4到40位' }, { pattern: /^.{4,40}$/, message: '长度为4到40位' },
{ handler: this.validateBarCode}] { handler: this.validateBarCode}]
}, },
......
Supports Markdown
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