diff --git a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue index 360110ce..669d9d93 100644 --- a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue @@ -317,11 +317,11 @@ ], money: [ { required: true, message: '请输入单价!'}, - {pattern: /^\d*\.?\d+$/,message:'请输入正数'} + {pattern: /^\d*\.?\d\d$/,message:'请输入正数,保留两位小数'} ], retailPrice: [ { required: true, message: '请输入零售价!'}, - {pattern: /^\d*\.?\d+$/,message:'请输入正数'} + {pattern: /^\d*\.?\d\d$/,message:'请输入正数,保留两位小数'} ], // money: [ // { required: false},