From 24e7010dd8bbb0ecb235b3a257ce86d522ef936b Mon Sep 17 00:00:00 2001 From: zhangbb Date: Wed, 12 Jun 2019 10:53:27 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=82=E6=9B=B4=E6=94=B9=E5=B0=8FBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LCContractTerminate/LCContractTerminateInfo.jsp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp index 0a435d59a..eb6290a7a 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp @@ -95,10 +95,14 @@ setItemValue(0,getRow(),"REPURCHASE_MONEY",remaincorpus); setItemValue(0,getRow(),"FIST_RENT",terminateInfo.fist_rent); setItemValue(0,getRow(),"FIST_CORPUS","0"); - var ratio = 0.05; - if(!(("<%=ratio%>"=="")||"<%=ratio%>"==null)){ - ratio=(Number("<%=ratio%>")/100).toFixed(2); + + var ratio=0; + if("<%=ratio%>"==""||"<%=ratio%>"==null||"<%=ratio%>"=="null"){ + ratio = 0.05; + }else{ + ratio = (Number("<%=ratio%>")/100).toFixed(2); } + setItemValue(0,getRow(),"HANDLING_CHARGE",Math.round(Number(remaincorpus*ratio)*100)/100); var dateRate=Number("<%=yearrate%>")/100;//获取利率 // var sDate1 = getItemValue(0,getRow(),"PAYDAY_DATE");//获取提出日期