diff --git a/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp b/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp index da12163f7..e72666c56 100644 --- a/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp +++ b/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp @@ -40,19 +40,21 @@ setItemReadOnly(0,0,"effect_end",false); setItemReadOnly(0,0,"product_id",true); setItemReadOnly(0,0,"dis_attribute",true); + setItemReadOnly(0,0,"fix_amount",true); + setItemReadOnly(0,0,"dis_ratio",true); setItemRequired(0,"effect_end",true); } var fix_amount = getItemValue(0,0,"fix_amount"); var dis_ratio = getItemValue(0,0,"dis_ratio"); - if(fix_amount!=""){ + /* if(fix_amount!=""){ setItemReadOnly(0,0,"fix_amount",false); setItemReadOnly(0,0,"dis_ratio",true); } if(dis_ratio !=""){ setItemReadOnly(0,0,"dis_ratio",false); setItemReadOnly(0,0,"fix_amount",true); - } + } */ function selectcommission(){ var commission = getItemValue(0,0,"dis_attribute"); diff --git a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp index 13f2f8a61..465285f23 100644 --- a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp +++ b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp @@ -100,7 +100,7 @@ return false; } } - function checkphone(){ +/* function checkphone(){ var DISTRIBUTOR_TEL = getItemValue(0,getRow(0),"DISTRIBUTOR_TEL"); var phone = /^[1][3,4,5,7,8][0-9]{9}$/; if(phone.test(DISTRIBUTOR_TEL)){ @@ -111,8 +111,8 @@ alert("电话号格式不正确!"); return false; } - } - function telnumber(){ + } */ +/* function telnumber(){ var DEALER_PHONE = getItemValue(0,getRow(0),"DEALER_PHONE"); var phone = /^[1][3,4,5,7,8][0-9]{9}$/; if(phone.test(DEALER_PHONE)){ @@ -123,7 +123,7 @@ alert("电话号格式不正确!"); return false; } - } + } */ function save() { var result = false; var distributor_coding = getItemValue(0,0,'DISTRIBUTOR_CODING'); @@ -136,14 +136,14 @@ if(TelResult==false){ return; } - var Tel = checkphone(); + /* var Tel = checkphone(); if(Tel==false){ return; } var phone = telnumber(); if(phone==false){ return; - } + } */ var result1 = Checkfield(); //if(result==true){ if(result==true && result1==true){ diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/rightsFileList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/rightsFileList.jsp index 163063cbe..d3cfe9546 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/rightsFileList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/rightsFileList.jsp @@ -35,7 +35,11 @@ } function saveRecord(){ - debugger; + var projectid = getItemValue(0,0,"PROJECT_ID"); + if(projectid.length==0){ + alert("请先选择数据!"); + return; + } var param={}; var tempParam={}; var sparam=""; diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp index 326a922c6..f6245f354 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LCContractTerminate/LCContractTerminateInfo.jsp @@ -23,6 +23,7 @@ ASObjectModel doTemp = new ASObjectModel(sTempletNo); doTemp.setDefaultValue("PAYMENT_NUMBER", paymentnumber); doTemp.setHtmlEvent("PAYDAY_ADJUST","onchange","getTerminateInfo"); + doTemp.setHtmlEvent("ADJUST_TYPE","onchange","changeInfo"); doTemp.setHtmlEvent("REPURCHASE_RATIO","onchange","getRepurchaseMoney"); ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform @@ -50,19 +51,27 @@ } function getTerminateInfo(){ + var adjusttype = getItemValue(0,0,"ADJUST_TYPE"); + if(adjusttype.length==0){ + alert("请先选择变更类型!!!"); + return; + } //检查约定终止日是否合法 var paydayAdjust = getItemValue(0,getRow(),"PAYDAY_ADJUST"); var result = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","checkPaydayAdjust","contractId=<%=contractId%>,paymentnumber=<%=paymentnumber%>,paydayAdjust="+paydayAdjust); if(result.result != "true"){ alert(result.msg); setItemValue(0,getRow(),"PAYDAY_ADJUST",""); - }else{ + }else{ var terminateInfo = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","getTerminateInfo","contractId=<%=contractId%>,paymentnumber=<%=paymentnumber%>,paydayAdjust="+paydayAdjust); var remaincorpus = terminateInfo.remaincorpus; var remaininterest = terminateInfo.remaininterest; var overduerent = terminateInfo.overduerent; + var remainfpenalty = terminateInfo.remainfpenalty; + var surplusinterest = terminateInfo.remaininterest; //逾期利息暂时赋值为0 - setItemValue(0,getRow(),"DUN_PENALTY","0"); +// setItemValue(0,getRow(),"DUN_PENALTY","0"); + setItemValue(0,getRow(),"DUN_PENALTY",remainfpenalty); setItemValue(0,getRow(),"AGREED_PENALTY","0"); //已到期租金 setItemValue(0,getRow(),"DUN_RENT",overduerent); @@ -84,8 +93,19 @@ setItemValue(0,getRow(),"SDHANDLING_CHARGE","0"); //计算合同债券总计 - setItemValue(0,getRow(),"CONTRACT_TOTAL",getContractBondTotal()); - +// setItemValue(0,getRow(),"CONTRACT_TOTAL",getContractBondTotal()); + if(adjusttype=="02"){ + var fessMoney = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","getLcCarDispose","contractId=<%=contractId%>"); + if(fessMoney.length>0){ + var fessMoneys = fessMoney.split("@"); + setItemValue(0,getRow(),"COLLECT_FEES",fessMoneys[0]); + setItemValue(0,getRow(),"DISPOSE_MONEY",fessMoneys[1]); + setItemValue(0,getRow(),"SURPLUSINTEREST",surplusinterest); + setItemValue(0,getRow(),"CONTRACT_TOTAL",parseFloat(getItemValue(0,getRow(),"DUN_RENT"))+parseFloat(fessMoneys[0])); + } + }else{ + setItemValue(0,getRow(),"CONTRACT_TOTAL",getItemValue(0,getRow(),"DUN_RENT")); + } } } //计算债券总计 @@ -179,6 +199,20 @@ setItemValue(0,getRow(),p,result[p]); } } + changeInfo(); }); + + function changeInfo(){ + var adjusttype = getItemValue(0,0,"ADJUST_TYPE"); + if(adjusttype=="02"){ + $("#A_div_1698").attr("style","display:block;"); + $("#A_div_1896").attr("style","display:block;"); + $("#A_div_2094").attr("style","display:block;"); + }else{ + $("#A_div_1698").attr("style","display:none;"); + $("#A_div_1896").attr("style","display:none;"); + $("#A_div_2094").attr("style","display:none;"); + } + } <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp index 501a18228..c45acd776 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp @@ -18,7 +18,10 @@ String flowstate = CurPage.getParameter("flowstate"); String flowunid = CurPage.getParameter("FlowUnid"); String flowName = CurPage.getParameter("FlowName");//获取流程名称 + String projectId = CurPage.getParameter("ProjectId");//获取项目id String clean_lease_money = Sqlca.getString("select CLEAN_LEASE_MONEY from LC_CALC_CONDITION_TEMP where flowunid='"+flowunid+"'"); + //获取合同状态 + String projectstatus = Sqlca.getString("select PROJECT_STATUS from lb_project_info where id='"+projectId+"'"); //int money = Integer.parseInt(clean_lease_money); if(clean_lease_money==null){ clean_lease_money="0"; @@ -188,6 +191,13 @@ $("#A_div_1170").attr("style","display:none;"); $("#A_div_1180").attr("style","display:none;"); $("#A_div_1250").attr("style","display:none;"); + $("#A_Group_0020").attr("style","display:none;"); + if("13"==<%=projectstatus%>){ + html='