|
@@ -66,22 +66,72 @@
|
|
<%-- return false;--%>
|
|
<%-- return false;--%>
|
|
<%--}--%>
|
|
<%--}--%>
|
|
var validateForm;
|
|
var validateForm;
|
|
|
|
+ // function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
|
+ // if(validateForm.form()){
|
|
|
|
+ // if(obj == 1){
|
|
|
|
+ //
|
|
|
|
+ // $('#flag').val('yes');
|
|
|
|
+ // }else{
|
|
|
|
+ // $('#flag').val('no');
|
|
|
|
+ // }
|
|
|
|
+ // $("#inputForm").submit();
|
|
|
|
+ // return true;
|
|
|
|
+ // }else {
|
|
|
|
+ // parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
|
+ var ss= document.getElementById("iframe").contentWindow.document.getElementById("opinion").value
|
|
|
|
+ $("#opinion").val(ss);
|
|
if(validateForm.form()){
|
|
if(validateForm.form()){
|
|
- if(obj == 1){
|
|
|
|
-
|
|
|
|
- $('#flag').val('yes');
|
|
|
|
- }else{
|
|
|
|
- $('#flag').val('no');
|
|
|
|
|
|
+ if(obj == 1) {
|
|
|
|
+ // var flags=judgment();
|
|
|
|
+ var flags=true;
|
|
|
|
+ $(".judgment").each(function(){
|
|
|
|
+ var zhi=$(this).val();
|
|
|
|
+ var s=$(this).parent().html();
|
|
|
|
+ if (''==zhi || null == zhi){
|
|
|
|
+ // if(!$("#"+this.id).is(":hidden")){
|
|
|
|
+ $(this).css("border","1px solid red")
|
|
|
|
+ flags=false;
|
|
|
|
+ // }
|
|
|
|
+ }else{
|
|
|
|
+ $(this).css("border","1px solid #f1f1f1")
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if (!flags){
|
|
|
|
+ parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
|
|
+ }
|
|
|
|
+ if (flags){
|
|
|
|
+ $("#flag").val("yes");
|
|
|
|
+ }else{
|
|
|
|
+ return flags;
|
|
|
|
+ }
|
|
|
|
+ /*var technicistRemarks = $("#technicistRemarks").val();
|
|
|
|
+ var type = $("#type").val();
|
|
|
|
+ if( type==4 && (undefined == technicistRemarks || null ==technicistRemarks || '' ==technicistRemarks)){
|
|
|
|
+ top.layer.msg("请填写技术负责人审核意见!", {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }*/
|
|
|
|
+ }else {
|
|
|
|
+ if(obj == 2){
|
|
|
|
+ $("#flag").val("no1");
|
|
|
|
+ }else {
|
|
|
|
+ $("#flag").val("no2");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
$("#inputForm").submit();
|
|
$("#inputForm").submit();
|
|
return true;
|
|
return true;
|
|
- }else {
|
|
|
|
|
|
+ }else{
|
|
parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
}
|
|
}
|
|
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
$("#upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
$("#upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
$("#gistdata_upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
$("#gistdata_upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
@@ -189,6 +239,7 @@
|
|
<input type="hidden" id="projectId" name="projectId" value="${projectRecords.projectId}"/>
|
|
<input type="hidden" id="projectId" name="projectId" value="${projectRecords.projectId}"/>
|
|
<input type="hidden" id="projectName" name="projectName" value="${projectRecords.projectName}"/>
|
|
<input type="hidden" id="projectName" name="projectName" value="${projectRecords.projectName}"/>
|
|
<input type="hidden" id="processInstanceId" name="processInstanceId" value="${projectRecords.processInstanceId}"/>
|
|
<input type="hidden" id="processInstanceId" name="processInstanceId" value="${projectRecords.processInstanceId}"/>
|
|
|
|
+ <input type="hidden" id="opinion" name="act.comment" value="" maxlength="250">
|
|
|
|
|
|
<%-- <form:hidden path="id"/>--%>
|
|
<%-- <form:hidden path="id"/>--%>
|
|
<form:hidden path="type"/>
|
|
<form:hidden path="type"/>
|
|
@@ -204,7 +255,7 @@
|
|
<form:hidden id="flag" path="act.flag"/>
|
|
<form:hidden id="flag" path="act.flag"/>
|
|
<form:hidden path="referenceAttachmentId"/>
|
|
<form:hidden path="referenceAttachmentId"/>
|
|
<form:hidden path="catalogueAttachmentId"/>
|
|
<form:hidden path="catalogueAttachmentId"/>
|
|
- <input type="hidden" id="opinion" name="act.comment" value="" maxlength="250">
|
|
|
|
|
|
+ <input type="hidden" id="opinion" name="comment" value="" maxlength="250">
|
|
<sys:message content="${message}"/>
|
|
<sys:message content="${message}"/>
|
|
<div class="form-group layui-row first lw12">
|
|
<div class="form-group layui-row first lw12">
|
|
<div class="tapfixed" style="width: 80%;">
|
|
<div class="tapfixed" style="width: 80%;">
|
|
@@ -1863,13 +1914,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
-<%-- <div class="form-group layui-row">--%>
|
|
|
|
-<%-- <div class="form-group-label">--%>
|
|
|
|
-<%-- <div style="float: right"> <a href="javascript:void(0)" style='background-color: #FFB800' onclick="openDialogre('个人模板列表', '${ctx}/auditTemplate/auditTemplate/templateList?identification=${identification}&name=${identificationName}','80%', '70%','','关闭')" class="nav-btn layui-btn layui-btn-sm" ><i class="fa fa-file-excel-o"></i> 审核意见模板列表</a></div>--%>
|
|
|
|
-<%-- <h2>审批意见</h2>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <iframe id="iframe" src="${ctx}/auditTemplate/auditTemplate/iframeView?identification=${identification}" name="listresult" frameborder="0" align="left" width="100%" height="300" scrolling="value"></iframe>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label">
|
|
|
|
+ <div style="float: right"> <a href="javascript:void(0)" style='background-color: #FFB800' onclick="openDialogre('个人模板列表', '${ctx}/auditTemplate/auditTemplate/templateList?identification=${identification}&name=${identificationName}','80%', '70%','','关闭')" class="nav-btn layui-btn layui-btn-sm" ><i class="fa fa-file-excel-o"></i> 审核意见模板列表</a></div>
|
|
|
|
+ <h2>审批意见</h2>
|
|
|
|
+ </div>
|
|
|
|
+ <iframe id="iframe" src="${ctx}/auditTemplate/auditTemplate/iframeView?identification=${identification}" name="listresult" frameborder="0" align="left" width="100%" height="300" scrolling="value"></iframe>
|
|
|
|
+ </div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|