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

给计量单位做个校验

parent ab680f9f
...@@ -356,7 +356,10 @@ ...@@ -356,7 +356,10 @@
var otherName = $.trim($("#otherName").val()); var otherName = $.trim($("#otherName").val());
var otherNum = $.trim($("#otherNum").val()); var otherNum = $.trim($("#otherNum").val());
var name = basicName + "," + otherName + "(1:" + otherNum + ")"; var name = basicName + "," + otherName + "(1:" + otherNum + ")";
if(otherNum<=1){
$.messager.alert('提示', '计量单位比例必须大于1', 'warning');
return;
}
$.ajax({ $.ajax({
url: url, url: url,
type: "post", 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