From d4d2aa239246b825b5a6aa49f5a36c221f98a055 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Tue, 8 May 2018 17:22:29 +0800 Subject: [PATCH] =?UTF-8?q?YOUFANG1.0.4=20=E5=87=BA=E7=A7=9F=E7=AE=A1?= =?UTF-8?q?=E7=90=86bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/rent/rentManager.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 6dea18a..dbb481a 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -116,6 +116,7 @@ $.config = {router: false} + @@ -128,6 +129,10 @@ document.addEventListener('plusready', onPlusReady, false); function onPlusReady() { var self = plus.webview.currentWebview(); id = self.houseId + var edit = new Vue({ + el:"#edit", + data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""} + }); axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){ // var data = response.data.data.houses; // $.each(data,function(i){ @@ -277,6 +282,10 @@ function onPlusReady() { $.toast("收租日期不能晚于到期日期"); return false; } + if (next_rent < rent_start) { + $.toast("收租日期不能早于起租日期"); + return false; + } if(next_rent