diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp index 6900b8d10..62cac02a5 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/CommissionChargeConfigInfo.jsp @@ -1,4 +1,5 @@ <%@page import="com.itextpdf.text.log.SysoCounter"%> +<%@page import="com.amarsoft.app.util.ProductParamUtil"%> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/Frame/resources/include/include_begin_info.jspf"%> @@ -27,29 +28,45 @@ include setItemValue(0, getRow(), "product_id",sReturn[1]); setItemValue(0, getRow(), "distributor_name",sReturn[2]); setItemValue(0, getRow(), "product_name",sReturn[3]); + changeIncomeNumber(sReturn[1]); }, "请选择分润配置") } - + function changeIncomeNumber(productId){ + var incomeNumber=$("#INCOME_NUMBER").children(); + var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.rent.rentreback.OtherPayMethod","getParamByProductId", + "productId="+productId); + if(sResult!=null&&sResult!=0){ + var inNumber = sResult.split(","); + var inerNumber = $("#INCOME_NUMBER").val(); + $("#INCOME_NUMBER").empty(); + var inco={}; + for(var i=0;i100){ + alert("比率不能超过100%"); + return false; + } + if(Number(charge)>Number(incomeNumber)){ + alert("期次不能大于租赁期限"); + return false; + } + } return true; } diff --git a/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeList.jsp b/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeList.jsp index 57c0a8201..533401c96 100644 --- a/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Rent/RentReback/SplittingChargeList.jsp @@ -27,26 +27,15 @@