优化管理模块页面的校验

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

@@ -353,13 +353,16 @@
//保存收支项目
$("#saveInOutItem").off("click").on("click", function () {
if (checkInOutItemName()) {
if(!$('#inOutItemFM').form('validate')){
return;
}
if (!$("#type").val()) {
$.messager.alert('提示', '请选择类型!', 'warning');
return;
}
if (checkInOutItemName()) {
return;
}
$.ajax({
url: url,
type: "post",