Commit f9d3e825 authored by 前端-许佳敏's avatar 前端-许佳敏 Committed by 许佳敏

fix: 修复请购单的物料表格-备注可以不填

(cherry picked from commit 35465e6885cdfed7af37b1c7a05bcfab19efa975)
parent 80136578
......@@ -167,22 +167,15 @@ export const MaterialTableCell: React.FC<MaterialTableCellProps> = ({
{
validator: validatorNumber
},
] : dataIndex === 'remark' ?
[
{
required: true,
message: intl.formatMessage({ id: 'purchaseRequisition.neirongbuneng1weikong', defaultMessage: '内容不能为空' }),
},
]
: [
{
pattern: /^\d+(\.\d{1,4})?$/,
message: intl.formatMessage({ id: 'purchaseRequisition.danjiajinxiansi', defaultMessage: '单价仅限四位小数' }),
},
{
validator: validatorNumber
}
]}
] : [
{
pattern: /^\d+(\.\d{1,4})?$/,
message: intl.formatMessage({ id: 'purchaseRequisition.danjiajinxiansi', defaultMessage: '单价仅限四位小数' }),
},
{
validator: validatorNumber
}
]}
>
{chooseFormItem(formItem, record[dataIndex] || '')}
</Form.Item>
......
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