diff --git a/Application/Admin/View/CompanyGameRatio/index.html b/Application/Admin/View/CompanyGameRatio/index.html index 4adffc922..1bf8f598b 100644 --- a/Application/Admin/View/CompanyGameRatio/index.html +++ b/Application/Admin/View/CompanyGameRatio/index.html @@ -30,7 +30,6 @@ height:26px;line-height:26px;font-size:12px; } .select2-results__option[aria-selected] {font-size:12px;} - .layui-layer-dialog .layui-layer-content{color:red} .butnbox {padding:10px 0 10px;} .butnbox .butnlist {overflow:hidden;clear:both;} .butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;} @@ -240,6 +239,15 @@ highlight_subnav("{:U('index')}"); $(function(){ //搜索功能 $("#search").click(function(){ + var start = $("#time_start").val(); + var end = $("#time_end").val(); + if(start !='' && end != ''){ + if (Date.parse(start) > Date.parse(end)){ + layer.msg('开始时间必须小于等于结束时间'); + return false; + } + } + var url = $(this).attr('url'); var query = $('.jssearch').find('input').serialize(); query += "&"+$('.jssearch').find('select').serialize(); diff --git a/Application/Admin/View/CompanyGameRatio/lists.html b/Application/Admin/View/CompanyGameRatio/lists.html index d2e976aea..0bf757770 100644 --- a/Application/Admin/View/CompanyGameRatio/lists.html +++ b/Application/Admin/View/CompanyGameRatio/lists.html @@ -30,7 +30,7 @@ height:26px;line-height:26px;font-size:12px; } .select2-results__option[aria-selected] {font-size:12px;} - .layui-layer-dialog .layui-layer-content{color:red} + /* .layui-layer-dialog .layui-layer-content{color:red} */ .butnbox {padding:10px 0 10px;} .butnbox .butnlist {overflow:hidden;clear:both;} .butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;} @@ -283,6 +283,14 @@ highlight_subnav("{:U('index')}"); $(function(){ //搜索功能 $("#search").click(function(){ + var start = $("#time_start").val(); + var end = $("#time_end").val(); + if(start !='' && end != ''){ + if (Date.parse(start) > Date.parse(end)){ + layer.msg('开始时间必须小于等于结束时间'); + return false; + } + } var url = $(this).attr('url'); var query = $('.jssearch').find('input').serialize(); query += "&"+$('.jssearch').find('select').serialize(); diff --git a/Application/Admin/View/CompanyStatement/lists.html b/Application/Admin/View/CompanyStatement/lists.html index df57735d3..942b0064e 100644 --- a/Application/Admin/View/CompanyStatement/lists.html +++ b/Application/Admin/View/CompanyStatement/lists.html @@ -30,7 +30,6 @@ height:26px;line-height:26px;font-size:12px; } .select2-results__option[aria-selected] {font-size:12px;} - .layui-layer-dialog .layui-layer-content{color:red} .butnbox {padding:10px 0 10px;} .butnbox .butnlist {overflow:hidden;clear:both;} .butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;} @@ -694,7 +693,15 @@ var end = $("#time_end").val(); if(start !='' && end != ''){ if (Date.parse(start) > Date.parse(end)){ - layer.msg('开始时间必须小于等于结束时间'); + layer.msg('结算开始时间必须小于等于结束时间'); + return false; + } + } + var start2 = $("#time_start2").val(); + var end2 = $("#time_end2").val(); + if(start2 !='' && end2 != ''){ + if (Date.parse(start2) > Date.parse(end2)){ + layer.msg('操作开始时间必须小于等于结束时间'); return false; } } diff --git a/Application/Admin/View/CompanyStatementLack/lists.html b/Application/Admin/View/CompanyStatementLack/lists.html index 1957a14ba..bebe385d3 100644 --- a/Application/Admin/View/CompanyStatementLack/lists.html +++ b/Application/Admin/View/CompanyStatementLack/lists.html @@ -30,7 +30,6 @@ height:26px;line-height:26px;font-size:12px; } .select2-results__option[aria-selected] {font-size:12px;} - .layui-layer-dialog .layui-layer-content{color:red} .butnbox {padding:10px 0 10px;} .butnbox .butnlist {overflow:hidden;clear:both;} .butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;} diff --git a/Application/Admin/View/CompanyStatementPool/lists.html b/Application/Admin/View/CompanyStatementPool/lists.html index 45515d5dc..3a163fcb4 100644 --- a/Application/Admin/View/CompanyStatementPool/lists.html +++ b/Application/Admin/View/CompanyStatementPool/lists.html @@ -30,7 +30,6 @@ height:26px;line-height:26px;font-size:12px; } .select2-results__option[aria-selected] {font-size:12px;} - .layui-layer-dialog .layui-layer-content{color:red} .butnbox {padding:10px 0 10px;} .butnbox .butnlist {overflow:hidden;clear:both;} .butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;} @@ -592,7 +591,16 @@ var end = $("#time_end").val(); if(start !='' && end != ''){ if (Date.parse(start) > Date.parse(end)){ - layer.msg('开始时间必须小于等于结束时间'); + layer.msg('结算开始时间必须小于等于结束时间'); + return false; + } + } + + var start2 = $("#time_start2").val(); + var end2 = $("#time_end2").val(); + if(start2 !='' && end2 != ''){ + if (Date.parse(start2) > Date.parse(end2)){ + layer.msg('操作开始时间必须小于等于结束时间'); return false; } }