Commit 80753381 authored by 季圣华's avatar 季圣华
Browse files

给计量单位做个校验

parent ab680f9f
......@@ -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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment