From d44c8428c7880a331bad673dba7bb705667bc406 Mon Sep 17 00:00:00 2001 From: hanbo <2608504783@qq.com> Date: Tue, 7 Dec 2021 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=97=B6=E9=97=B4=E6=99=9A?= =?UTF-8?q?=E4=BA=8E=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4=E4=B8=8D=E4=BF=9D?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/admin/project_estimate_add.ftl | 2 ++ src/main/resources/templates/admin/project_estimate_edit.ftl | 2 ++ 2 files changed, 4 insertions(+) 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();