添加分段融详细信息和分段配置根据租金测算方式显示

This commit is contained in:
tangfutang 2021-07-28 18:42:47 +08:00
parent f497953a2b
commit 3e4f7302e1
3 changed files with 60 additions and 0 deletions

View File

@ -11,6 +11,7 @@
doTemp.setHtmlEvent( "DISCOUNT", "onblur", "changeDiscount" );
doTemp.setHtmlEvent( "DISCOUNT_RATE", "onblur", "changeDiscountRate" );
doTemp.setHtmlEvent( "CLEAN_LEASE_RATIO", "onblur", "changeCleanLeaseRatio" );
doTemp.setHtmlEvent( "CLEAN_LEASE_MONEY", "onblur", "changeCleanLeaseMoney" );
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式
@ -20,6 +21,7 @@
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","保存","保存","save()","","","","btn_icon_save",""},
{"true","All","Button","ÏêÇé","±£´æ","viewAndEdit()","","","","btn_icon_detail",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
@ -69,6 +71,22 @@
}
}
function changeCleanLeaseMoney() {
var subsectionConfig = parent.getItemValue( 0, 0, 'SUBSECTION_CONDIG' );
var equipAmt = parent.getItemValue( 0, 0, 'EQUIP_AMT' );
var cleanLeaseMoney = parent.getItemValue( 0, 0, 'CLEAN_LEASE_MONEY' );
var clm = getItemValue( 0, getRow(), 'CLEAN_LEASE_MONEY' );
if ( subsectionConfig ) {
if ( 'CarPrice' === subsectionConfig ) {
setItemValue( 0, getRow(), 'CLEAN_LEASE_RATIO', Decimal( clm ).div( equipAmt ).mul( 100 ).toFixed( 2 ) );
} else {
setItemValue( 0, getRow(), 'CLEAN_LEASE_RATIO', Decimal( clm ).div( cleanLeaseMoney ).mul( 100 ).toFixed( 2 ) );
}
} else {
setItemValue( 0, getRow(), 'CLEAN_LEASE_RATIO', '' );
}
}
function save() {
var rowCount = getRowCount( 0 );
var allRatio = Decimal( 0 );
@ -113,5 +131,8 @@
}
as_save( 0 );
}
function viewAndEdit(){
AsDialog.PopView("/Accounting/LoanSimulation/LCSubsectionRentPlanTempList.jsp","flowunid=<%=flowunid%>","resizable=yes;dialogWidth=1250px;dialogHeight=800px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"ÏêϸÐÅÏ¢");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,37 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2021-07-28
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("LCSubsectionRentPlanTempList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize((pageSize==null||"undefined".equals(pageSize))?24:Integer.parseInt(pageSize));
dwTemp.genHTMLObjectWindow(CurPage.getParameter("flowunid"));
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"false","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"false","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"false","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -900,7 +900,9 @@ function changeSettleMethod2(){
}
document.all( 'A_Group_0020' ).style.display = 'none';
showItem(0,"SUBSECTION_CONDIG",'none');
if ( settleMethod === 'segmented_financing' ) {
showItem(0,"SUBSECTION_CONDIG",'block');
document.all( 'A_Group_0020' ).style.display = 'block';
var param = 'CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>';
AsControl.OpenView( '/Accounting/LoanSimulation/LCCalcSubsectionInfoTempList.jsp', param, 'subsection_list' );