|
@@ -47,23 +47,35 @@
|
|
|
var clientCount = 0;
|
|
var clientCount = 0;
|
|
|
function doSubmit(i){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
function doSubmit(i){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
if(validateForm.form()){
|
|
if(validateForm.form()){
|
|
|
|
|
+ var onsubmit = $("#onsubmit").val();
|
|
|
|
|
+
|
|
|
|
|
+ if("true" == onsubmit){
|
|
|
|
|
+ $("#onsubmit").val(false);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ parent.layer.msg("请勿重复提交!", {icon: 5});
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
var approvalType = '${approvalType}'
|
|
var approvalType = '${approvalType}'
|
|
|
if(approvalType === '1'){
|
|
if(approvalType === '1'){
|
|
|
var signatureType=$('input:radio[name="signatureType"]:checked').val();
|
|
var signatureType=$('input:radio[name="signatureType"]:checked').val();
|
|
|
if(null == signatureType || undefined == signatureType || '' == signatureType){
|
|
if(null == signatureType || undefined == signatureType || '' == signatureType){
|
|
|
parent.layer.msg("请选择审定单签章类型",{icon:0});
|
|
parent.layer.msg("请选择审定单签章类型",{icon:0});
|
|
|
|
|
+ $("#onsubmit").val(true);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
var length = $("#file_attachment").find("tr").length ;
|
|
var length = $("#file_attachment").find("tr").length ;
|
|
|
if(length == 0){
|
|
if(length == 0){
|
|
|
top.layer.msg("请上传审定单签章附件", {icon: 0});
|
|
top.layer.msg("请上传审定单签章附件", {icon: 0});
|
|
|
|
|
+ $("#onsubmit").val(true);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
$("#inputForm").submit();
|
|
$("#inputForm").submit();
|
|
|
return true;
|
|
return true;
|
|
|
}else{
|
|
}else{
|
|
|
parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
|
|
|
+ $("#onsubmit").val(true);
|
|
|
}
|
|
}
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -845,6 +857,7 @@
|
|
|
<div class="single-form">
|
|
<div class="single-form">
|
|
|
<div class="container view-form">
|
|
<div class="container view-form">
|
|
|
<form:form id="inputForm" modelAttribute="projectRecords" action="${ctx}/ruralProject/electronicSeal/approvalSave" method="post" class="form-horizontal layui-form">
|
|
<form:form id="inputForm" modelAttribute="projectRecords" action="${ctx}/ruralProject/electronicSeal/approvalSave" method="post" class="form-horizontal layui-form">
|
|
|
|
|
+ <input type="hidden" id="onsubmit" value="true">
|
|
|
<input type="hidden" id="id" name="id" value="${projectRecords.id}">
|
|
<input type="hidden" id="id" name="id" value="${projectRecords.id}">
|
|
|
<div class="form-group layui-row first">
|
|
<div class="form-group layui-row first">
|
|
|
<div class="form-group-label"><h2>项目合同信息</h2></div>
|
|
<div class="form-group-label"><h2>项目合同信息</h2></div>
|