From 80753381bdfaefa40a3a571e262e0d0e19082266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 7 Jan 2021 23:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E8=AE=A1=E9=87=8F=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E5=81=9A=E4=B8=AA=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/manage/unit.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erp_web/pages/manage/unit.html b/erp_web/pages/manage/unit.html index ea14fb24..23641dc1 100644 --- a/erp_web/pages/manage/unit.html +++ b/erp_web/pages/manage/unit.html @@ -356,7 +356,10 @@ var otherName = $.trim($("#otherName").val()); var otherNum = $.trim($("#otherNum").val()); var name = basicName + "," + otherName + "(1:" + otherNum + ")"; - + if(otherNum<=1){ + $.messager.alert('提示', '计量单位比例必须大于1', 'warning'); + return; + } $.ajax({ url: url, type: "post",