From c1e012813cae3318a74c7b9273d01d3040c807cf Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Thu, 13 Jun 2024 10:00:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202061=20=E4=BA=8C=E7=BA=A7=E5=BA=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=AD=E9=80=80=E5=BA=93=E3=80=81=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E6=95=B0=E9=87=8F=E5=8F=AF=E4=BB=A5=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=B0=8F=E6=95=B0=E3=80=81=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../secondStore/secondStore.vue | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sgzb-ui/src/views/claimAndRefund/secondStore/secondStore.vue b/sgzb-ui/src/views/claimAndRefund/secondStore/secondStore.vue index 2f0a808c..4891e1da 100644 --- a/sgzb-ui/src/views/claimAndRefund/secondStore/secondStore.vue +++ b/sgzb-ui/src/views/claimAndRefund/secondStore/secondStore.vue @@ -304,7 +304,7 @@ - + { + if (value && !/^[1-9]\d*$/.test(value)) { + callback(new Error('请输入正整数')) + } else { + callback() + } + }, + trigger: 'blur', + } ], teamName: [ { @@ -591,6 +601,16 @@ export default { message: '退库数量不能为空', trigger: 'blur', }, + { + validator: (rule, value, callback) => { + if (value && !/^[1-9]\d*$/.test(value)) { + callback(new Error('请输入正整数')) + } else { + callback() + } + }, + trigger: 'blur', + } ], teamName: [ {