优化管理模块页面的校验

This commit is contained in:
季圣华
2020-06-07 22:37:44 +08:00
parent 1c74faab7c
commit 6f039191bb
9 changed files with 50 additions and 26 deletions

View File

@@ -457,11 +457,14 @@
//保存信息
$("#saveDepot").off("click").on("click", function () {
var infoObj = $("#depotFM").serializeObject();
infoObj.type = 0;
if(!$('#depotFM').form('validate')){
return;
}
if (checkDepotName()) {
return;
}
var infoObj = $("#depotFM").serializeObject();
infoObj.type = 0;
$.ajax({
url: url,
type: "post",