aa
This commit is contained in:
@@ -175,7 +175,7 @@
|
|||||||
<div class="item-title-row">
|
<div class="item-title-row">
|
||||||
<div class="item-title">每期租金</div>
|
<div class="item-title">每期租金</div>
|
||||||
<div class="item-after">
|
<div class="item-after">
|
||||||
<input type="number" id="input_rent01" class="textAlignLeft" placeholder="请输入每期租金">
|
<input type="number" id="input_rent" class="textAlignLeft" placeholder="请输入每期租金">
|
||||||
<label>元</label>
|
<label>元</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1735,7 +1735,7 @@ $("#evaluation_btn").on("click", function () {
|
|||||||
$.toast("到期日期必须晚于起租日期");
|
$.toast("到期日期必须晚于起租日期");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var nowDay = new Date().format("yyyy-MM-dd");
|
var nowDay = formatTime(new Date());
|
||||||
if($("#input_time02").val()<nowDay){
|
if($("#input_time02").val()<nowDay){
|
||||||
$("#evaluation_btn").removeAttr("disabled");
|
$("#evaluation_btn").removeAttr("disabled");
|
||||||
$.toast("到期日期不能早于今天");
|
$.toast("到期日期不能早于今天");
|
||||||
@@ -1774,7 +1774,9 @@ $("#evaluation_btn").on("click", function () {
|
|||||||
$.toast("收租日期不能晚于到期日期");
|
$.toast("收租日期不能晚于到期日期");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($("#input_time03").val()<i){
|
alert($("#input_time03").val())
|
||||||
|
alert(nowDay)
|
||||||
|
if($("#input_time03").val()<nowDay){
|
||||||
$("#evaluation_btn").removeAttr("disabled");
|
$("#evaluation_btn").removeAttr("disabled");
|
||||||
$.toast("下次收租日期不能早于今天");
|
$.toast("下次收租日期不能早于今天");
|
||||||
return false;
|
return false;
|
||||||
@@ -1824,6 +1826,19 @@ $("#evaluation_btn").on("click", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function formatTime(time){
|
||||||
|
var now = new Date(time);
|
||||||
|
var year=now.getFullYear();
|
||||||
|
var month=now.getMonth()+1;
|
||||||
|
if(month<10){
|
||||||
|
month = "0"+month
|
||||||
|
}
|
||||||
|
var date=now.getDate();
|
||||||
|
if(date<10){
|
||||||
|
date = "0"+date
|
||||||
|
}
|
||||||
|
return year+"-"+month+"-"+date;
|
||||||
|
}
|
||||||
//判断是否登录
|
//判断是否登录
|
||||||
//var loginFlag=false;
|
//var loginFlag=false;
|
||||||
function checkIsLogin(){
|
function checkIsLogin(){
|
||||||
|
|||||||
Reference in New Issue
Block a user