优化管理模块页面的校验
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user