优化单据:给序列号录入框的校验进行优化
This commit is contained in:
@@ -173,7 +173,7 @@
|
|||||||
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
||||||
{ title: '单位', key: 'unit', width: '4%', type: FormTypes.normal },
|
{ title: '单位', key: 'unit', width: '4%', type: FormTypes.normal },
|
||||||
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
||||||
validateRules: [{ pattern: /^\S{1,100}$/, message: '请小于100位字符' }]
|
validateRules: [{ pattern: /^.{1,100}$/, message: '请小于100位字符' }]
|
||||||
},
|
},
|
||||||
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.input },
|
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.input },
|
||||||
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
|
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
|
||||||
|
|||||||
@@ -270,7 +270,7 @@
|
|||||||
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
||||||
{ title: '单位', key: 'unit', width: '4%', type: FormTypes.normal },
|
{ title: '单位', key: 'unit', width: '4%', type: FormTypes.normal },
|
||||||
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
||||||
validateRules: [{ pattern: /^\S{1,100}$/, message: '请小于100位字符' }]
|
validateRules: [{ pattern: /^.{1,100}$/, message: '请小于100位字符' }]
|
||||||
},
|
},
|
||||||
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.input },
|
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.input },
|
||||||
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
|
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
|
||||||
|
|||||||
@@ -232,7 +232,7 @@
|
|||||||
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
||||||
{ title: '单位', key: 'unit', width: '5%', type: FormTypes.normal },
|
{ title: '单位', key: 'unit', width: '5%', type: FormTypes.normal },
|
||||||
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
||||||
validateRules: [{ pattern: /^\S{1,100}$/, message: '请小于100位字符' }]
|
validateRules: [{ pattern: /^.{1,100}$/, message: '请小于100位字符' }]
|
||||||
},
|
},
|
||||||
{ title: '批号', key: 'batchNumber', width: '8%', type: FormTypes.input },
|
{ title: '批号', key: 'batchNumber', width: '8%', type: FormTypes.input },
|
||||||
{ title: '有效期', key: 'expirationDate',width: '9%', type: FormTypes.date },
|
{ title: '有效期', key: 'expirationDate',width: '9%', type: FormTypes.date },
|
||||||
|
|||||||
@@ -248,7 +248,7 @@
|
|||||||
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
{ title: '库存', key: 'stock', width: '5%', type: FormTypes.normal },
|
||||||
{ title: '单位', key: 'unit', width: '4%', type: FormTypes.normal },
|
{ title: '单位', key: 'unit', width: '4%', type: FormTypes.normal },
|
||||||
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
{ title: '序列号', key: 'snList', width: '12%', type: FormTypes.input, placeholder: '多个序列号用逗号隔开',
|
||||||
validateRules: [{ pattern: /^\S{1,100}$/, message: '请小于100位字符' }]
|
validateRules: [{ pattern: /^.{1,100}$/, message: '请小于100位字符' }]
|
||||||
},
|
},
|
||||||
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.input },
|
{ title: '批号', key: 'batchNumber', width: '7%', type: FormTypes.input },
|
||||||
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
|
{ title: '有效期', key: 'expirationDate',width: '7%', type: FormTypes.date },
|
||||||
|
|||||||
Reference in New Issue
Block a user