修改租赁在合同制作只能修改

This commit is contained in:
tangfutang 2020-09-25 11:36:20 +08:00
parent 1e15aa1e01
commit f08e32c9ad
2 changed files with 14 additions and 4 deletions

View File

@ -184,6 +184,11 @@
setItemRequired(0,"CAR_COLOUR",true);
setItemRequired(0,"ENGINE_NUMBER",true);
setItemReadOnly(0,0,"MEMO",false);
document.getElementById('BRAND').nextSibling.remove();
document.getElementById('CAR_SERIES').nextSibling.remove();
document.getElementById('MODEL').nextSibling.remove();
//第一车贷产品其他配置说明为必填
<%-- if("DYCD"=="<%=operationType%>"){
setItemRequired(0,"MEMO",true);
@ -322,7 +327,7 @@
var sParam = "FlowUnid="+"<%=sFlowUnid%>"+"&TempletNo="+"<%=sListTempletNo%>";
var righttype="<%=RightType%>";
if(righttype=="ReadOnly"){sParam=sParam+"&RightType=<%=RightType%>";}
sParam=sParam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&TaskNo=<%=taskno%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>&carAttributes=<%=carAttributes%>";
sParam=sParam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&TaskNo=<%=taskno%>&InfoTempletNo=<%=sInfoTempletNo%>&EquipType=<%=sEquipType%>&carAttributes=<%=carAttributes%>&FlowName=<%=flowName%>";
AsControl.OpenView(sUrl,sParam,"_self","");
}

View File

@ -87,22 +87,27 @@
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String flowNo = CurPage.getParameter("FlowNo");
String falg = "true";
if("BContractApproveFlow".equals(flowNo)||"BContractChangeFlow".equals(flowNo)){
falg = "false";
}
String sButtons[][] =null;
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
RightType="ReadOnly";
sButtons=new String[][] {
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""}
};
}else if("ContractOnhireFlow".equals(CurPage.getParameter("FlowNo"))){
}else if("ContractOnhireFlow".equals(flowNo)){
sButtons=new String[][] {
{"true","","Button","修改","修改租赁物信息","viewAndEdit()","","","","btn_icon_edit"},
};
}else{
sButtons=new String[][]{
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
{"true","","Button","新增","新增租赁物信息","newRecord()","","","","btn_icon_add",""},
{falg,"","Button","新增","新增租赁物信息","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改租赁物信息","viewAndEdit()","","","","btn_icon_edit"},
{"true","","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
{falg,"","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
//{"true","","Button","导入Excel","导入租赁物信息Excel","inExcel()","","","","",""},
//{"true","","Button","导出Excel","导出租赁物信息Excel","exportPage('"+sWebRootPath+"',0,'excel','"+dwTemp.getArgsValue()+"')","","","","",""},
//{"true","","Button","下载模板","下载租赁物信息模板","downLoad()","","","","",""}