From 3cdb30c9ba40d70370a7d2114aa6427122c87729 Mon Sep 17 00:00:00 2001 From: lenovo <123> Date: Mon, 26 Dec 2022 17:25:36 +0800 Subject: [PATCH] =?UTF-8?q?2022-12-26=E4=B8=A4=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/erp/fabric/modules/ZyFabricForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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},