From 58d5da7d30be2ad1e4a4268eab1cd9421fd5d44a Mon Sep 17 00:00:00 2001 From: zhangbb Date: Thu, 10 Sep 2020 15:47:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=86=E6=B6=A6=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E6=94=B9=E8=BF=9B=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommissionChargeConfigInfo.jsp | 62 +++++++++--- .../Rent/RentReback/SplittingChargeList.jsp | 21 +--- src_sql/view/vi_split_config.sql | 20 ++++ src_sql/view/vi_splitting_pay.sql | 52 ++++------ src_sql/鎶曚骇SQL/v20200915/zhangbb0915-2.sql | 96 ++++++++++--------- .../CopyLCSplittingPayTempToForml.java | 5 +- .../flow/rent/rentreback/OtherPayMethod.java | 51 ++++++---- .../rentreback/VILCSplitCHargeHandler.java | 21 ++-- 8 files changed, 194 insertions(+), 134 deletions(-) create mode 100644 src_sql/view/vi_split_config.sql 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 @@