rules: {
changeType: [
{ required: true, message: "请选择调整类型", trigger: "change" },
],
amount: [
{ required: true, message: "请输入调整金额", trigger: "blur" },
{
required: true,
pattern:
/^(([1-9]\d*|[0]{1,1})|([0][.]{1}[0-9]{0,2}[1-9]+)|([1-9]\d*[.]{1}[0-9]+))$/,
message: "请输入大于0的数",
},
],
description: [
{ required: true, message: "请填写调整原因", trigger: "blur" },
],
},
element 大于0可为小数
最新推荐文章于 2023-12-25 17:54:24 发布