From 8f4505205bc0a07b34f10d87cb33d291b37bbe10 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 7 Jul 2020 11:09:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E4=B8=9A=E7=BB=A9=E6=8F=90?= =?UTF-8?q?=E6=88=90=E4=BC=98=E6=97=B6=E9=97=B4=E5=A4=A7=E5=B0=8F=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/MarketPercentage/index.html | 10 ++++++++++ .../Admin/View/MarketPercentage/marketstaffsettle.html | 10 ++++++++++ .../View/MarketPercentage/personmarketstaffsettle.html | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/Application/Admin/View/MarketPercentage/index.html b/Application/Admin/View/MarketPercentage/index.html index b314f0908..bc8b7c544 100644 --- a/Application/Admin/View/MarketPercentage/index.html +++ b/Application/Admin/View/MarketPercentage/index.html @@ -196,6 +196,16 @@ }else{ url += '?' + query; } + + var start = $("#time_start").val(); + var end = $("#time_end").val(); + if(start !='' && end != ''){ + if (Date.parse(start) > Date.parse(end)){ + layer.msg('开始时间必须小于等于结束时间'); + return false; + } + } + window.location.href = url; }); $(".paixu").click(function(){ diff --git a/Application/Admin/View/MarketPercentage/marketstaffsettle.html b/Application/Admin/View/MarketPercentage/marketstaffsettle.html index 669c8590c..20dce716f 100644 --- a/Application/Admin/View/MarketPercentage/marketstaffsettle.html +++ b/Application/Admin/View/MarketPercentage/marketstaffsettle.html @@ -188,6 +188,16 @@ }else{ url += '?' + query; } + + var start = $("#time_start").val(); + var end = $("#time_end").val(); + if(start !='' && end != ''){ + if (Date.parse(start) > Date.parse(end)){ + layer.msg('开始时间必须小于等于结束时间'); + return false; + } + } + window.location.href = url; }); $(".paixu").click(function(){ diff --git a/Application/Admin/View/MarketPercentage/personmarketstaffsettle.html b/Application/Admin/View/MarketPercentage/personmarketstaffsettle.html index 1edd0bb35..ce5842dbb 100644 --- a/Application/Admin/View/MarketPercentage/personmarketstaffsettle.html +++ b/Application/Admin/View/MarketPercentage/personmarketstaffsettle.html @@ -204,6 +204,16 @@ }else{ url += '?' + query; } + + var start = $("#time_start").val(); + var end = $("#time_end").val(); + if(start !='' && end != ''){ + if (Date.parse(start) > Date.parse(end)){ + layer.msg('开始时间必须小于等于结束时间'); + return false; + } + } + window.location.href = url; }); $(".paixu").click(function(){