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");//获取提出日期