From 38fd12cb330c0416fa12c3a34513ee4adcd9c99d Mon Sep 17 00:00:00 2001 From: caolc <572275724@qq.com> Date: Tue, 4 Apr 2023 15:13:04 +0800 Subject: [PATCH] 121 --- src/views/product/components/create.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 34d71e0..15747e8 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -156,7 +156,7 @@ export default { else callback("请选择炼厂"); }; var validatePass = (rule, value, callback) => { - if (!Boolean(Number(value))) { + if (value==''||Number(value)<=0) { callback(new Error('预约提货量不能为空或零')); } else { callback(); -- 2.36.2