给计量单位做个校验

This commit is contained in:
季圣华 2021-01-07 23:57:03 +08:00
parent ab680f9ff9
commit 80753381bd

View File

@ -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",