优化商品条码的格式

This commit is contained in:
季圣华
2022-12-16 22:27:46 +08:00
parent 48487866ed
commit e2aaf4ba6a

View File

@@ -337,8 +337,8 @@
{ {
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: /^[1-9]\d*$/, message: '请输入零以上的正整数' }, { pattern: /[^%&',;=?$x22]+$/, message: '含有%&\',;=?$"等字符' },
{ pattern: /^\d{4,13}$/, message: '4到13位数字' }, { pattern: /^.{4,40}$/, message: '长度为4到40位' },
{ handler: this.validateBarCode}] { handler: this.validateBarCode}]
}, },
{ {