diff --git a/src/main/resources/templates/admin/project_estimate_add.ftl b/src/main/resources/templates/admin/project_estimate_add.ftl index 15157b9..fa3a8b8 100644 --- a/src/main/resources/templates/admin/project_estimate_add.ftl +++ b/src/main/resources/templates/admin/project_estimate_add.ftl @@ -338,6 +338,7 @@ var endTime = $("#endDate").val(); if (startTime > endTime) { window.confirm('开始日期应早于结束日期'); + return; } $("#pmsForm").attr("action","${base}/project/estimateAddSave"); $("#pmsForm").submit(); @@ -347,6 +348,7 @@ var endTime = $("#endDate").val(); if (startTime > endTime) { window.confirm('开始日期应早于结束日期'); + return; } $("#pmsForm").attr("action","${base}/project/estimateAddSaveAndApprove"); $("#pmsForm").submit(); diff --git a/src/main/resources/templates/admin/project_estimate_edit.ftl b/src/main/resources/templates/admin/project_estimate_edit.ftl index 056d28f..5f2a2ab 100644 --- a/src/main/resources/templates/admin/project_estimate_edit.ftl +++ b/src/main/resources/templates/admin/project_estimate_edit.ftl @@ -345,6 +345,7 @@ var endTime = $("#endDate").val(); if (startTime > endTime) { window.confirm('开始日期应早于结束日期'); + return; } $("#pmsForm").attr("action","${base}/project/estimateEditSave"); $("#pmsForm").submit(); @@ -354,6 +355,7 @@ var endTime = $("#endDate").val(); if (startTime > endTime) { window.confirm('开始日期应早于结束日期'); + return; } $("#pmsForm").attr("action","${base}/project/estimateEditSaveAndApprove"); $("#pmsForm").submit();