修改租赁物数量校验和提示语

This commit is contained in:
tangfutang 2020-09-25 19:05:00 +08:00
parent 77f7fc0c7f
commit d79268ca0a

View File

@ -181,12 +181,12 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newRecord(){
var countNumber = getRowCount(0);
if(Number(countNumber)<2){
// if(Number(countNumber)<2){
//判断是否承租人租赁车辆数量
var res0=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkGuaranteeCarByCertid",'certid=<%=certid%>'+',flowunid=<%=sFlowUnid%>');
if(res0 != "0"){
alert(res0);
}
//var res0=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","checkGuaranteeCarByCertid",'certid=<%=certid%>'+',flowunid=<%=sFlowUnid%>');
//if(res0 != "0"){
// alert(res0);
//}
var sUrl = "/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp";
var sParam = 'FlowUnid='+'<%=sFlowUnid%>'+"&ListTempletNo="+"<%=sTempletNo%>";
var righttype="<%=RightType%>";
@ -196,9 +196,9 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
sParam=sParam+"&ProjectNo=<%=ProjectNo%>&ProjectId=<%=projectId%>&ApplyType=<%=ApplyType%>&FlowName=<%=flowName%>&ContractId=<%=contractid%>&ShowType=<%=showtype%>&operationType=<%=operationType%>&carAttributes=<%=carAttributes%>";
AsControl.OpenView(sUrl,sParam,"_self","");
} else {
/* } else {
alert("租赁物信息最多只能有两个!");
}
} */
}
@ -224,7 +224,7 @@ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.
function deleteRecord(){
var carAttribute = getItemValue(0,getRow(),"car_attribute");
if(carAttribute=="head"){
alert("牵引车不允许删除!");
alert("车不允许删除!");
return ;
}
var ID = getItemValue(0,getRow(),"ID");