|
@@ -7,6 +7,7 @@
|
|
|
<script src="${ctxStatic}/layer-v2.3/laydate/laydate.js"></script>
|
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
|
<link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
|
+ <link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
|
<script type="text/javascript">
|
|
|
var validateForm;
|
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
@@ -26,23 +27,26 @@
|
|
|
for(var i = 0;i < tdlen;i++){
|
|
|
var status = $("#projectFilingbatchRelations"+i+"_status").val();
|
|
|
var boxNum = $("#projectFilingbatchRelations"+i+"_boxNum").val();
|
|
|
- var reboxNum = $("#projectFilingbatchRelations"+i+"_reBoxNum").val();
|
|
|
+ var parentId = $("#projectFilingbatchRelations"+i+"_parentId").val();
|
|
|
+ //var reboxNum = $("#projectFilingbatchRelations"+i+"_reBoxNum").val();
|
|
|
var projectName = $("#projectFilingbatchRelations"+i+"_projectName").val();
|
|
|
- if(undefined != status && null !=status && ''!= status){
|
|
|
- if(5 == status){
|
|
|
- if('' != boxNum && undefined!= boxNum && null != boxNum){
|
|
|
- if(boxNum != reboxNum){
|
|
|
- layer.msg(projectName +":两次案卷号不相同,请重新填写", { icon: 2, offset: "error", time:1000 });
|
|
|
+ if("0" == parentId){
|
|
|
+ if(undefined != status && null !=status && ''!= status){
|
|
|
+ if(5 == status){
|
|
|
+ if('' != boxNum && undefined!= boxNum && null != boxNum){
|
|
|
+ /*if(boxNum != reboxNum){
|
|
|
+ layer.msg(projectName +":两次案卷号不相同,请重新填写", { icon: 2, offset: "error", time:1000 });
|
|
|
+ return false;
|
|
|
+ }*/
|
|
|
+ }else{
|
|
|
+ layer.msg("请输入项目 "+projectName+" 的案卷号", { icon: 2, offset: "error", time:1000 });
|
|
|
return false;
|
|
|
}
|
|
|
- }else{
|
|
|
- layer.msg("请输入项目 "+projectName+" 的案卷号", { icon: 2, offset: "error", time:1000 });
|
|
|
- return false;
|
|
|
}
|
|
|
+ }else{
|
|
|
+ layer.msg("请给项目 "+projectName+" 选择审批状态", { icon: 2, offset: "error", time:1000 });
|
|
|
+ return false;
|
|
|
}
|
|
|
- }else{
|
|
|
- layer.msg("请给项目 "+projectName+" 选择审批状态", { icon: 2, offset: "error", time:1000 });
|
|
|
- return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -57,6 +61,19 @@
|
|
|
return false;
|
|
|
}
|
|
|
$(document).ready(function() {
|
|
|
+ $(".listTr").click(function(){
|
|
|
+ var name=$(this).find("td").eq(0).find("input").eq(0).val();
|
|
|
+ var tiao="."+name;
|
|
|
+ var span=$(this).find("td").eq(2);
|
|
|
+ var ss=$(span).val().split(" ")[4];
|
|
|
+ $(span).toggle(function () {
|
|
|
+ $(tiao).hide();
|
|
|
+ $(span).find("span").attr("class","treeTable-icon")
|
|
|
+ },function () {
|
|
|
+ $(tiao).show();
|
|
|
+ $(span).find("span").attr("class","treeTable-icon open")
|
|
|
+ });
|
|
|
+ })
|
|
|
validateForm = $("#inputForm").validate({
|
|
|
submitHandler: function(form){
|
|
|
loading('正在提交,请稍等...');
|
|
@@ -146,6 +163,7 @@
|
|
|
<div class="layui-item layui-col-sm6 lw6">
|
|
|
<label class="layui-form-label">归档批次号:</label>
|
|
|
<div class="layui-input-block">
|
|
|
+
|
|
|
<form:input path="filingBatch" id="filingBatch" readonly="true" class="form-control layui-input" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -155,8 +173,14 @@
|
|
|
<form:input path="createBy.name" id="createBy" readonly="true" class="form-control layui-input" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm12 lw7">
|
|
|
- <label class="layui-form-label">归档信息:</label>
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <label class="layui-form-label">归档名称:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:input path="filingName" htmlEscape="false" readonly="true" class="form-control layui-input required"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
|
+ <label class="layui-form-label">归档说明:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<form:textarea path="information" readonly="true" htmlEscape="false" rows="4" maxlength="200" class="form-control "/>
|
|
|
</div>
|
|
@@ -181,35 +205,65 @@
|
|
|
<c:choose>
|
|
|
<c:when test="${not empty projectFilingBatch}">
|
|
|
<c:forEach items="${projectFilingBatch.project}" var="project" varStatus="index">
|
|
|
- <tr id="workAccountList${index.index}">
|
|
|
- <td class="hide">
|
|
|
- <input id="workAccountList${index.index}_id" name="workAccountList[${index.index}].id" type="hidden" value="${project.id}"/>
|
|
|
- <input id="workAccountList${index.index}_delFlag" name="workAccountList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
- </td>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${project.flag ==1}">
|
|
|
+ <tr id="workAccountList${index.index}">
|
|
|
+ <td class="hide">
|
|
|
+ <input id="workAccountList${index.index}_id" name="workAccountList[${index.index}].id" type="hidden" value="${project.id}"/>
|
|
|
+ <input id="workAccountList${index.index}_delFlag" name="workAccountList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input id="workAccountList${index.index}_boxNum" name="workAccountList[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control required layui-input"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workAccountList${index.index}_reBoxNum" name="workAccountList[${index.index}].reBoxNum" maxlength="32" type="text" value="${projectFilingBatch.reBoxNum}" class="form-control required layui-input"/>
|
|
|
+ </td>
|
|
|
+ <td style="overflow: visible;">
|
|
|
+ <select name="clientType" id="clientType" lay-filter="cc" lay-verify="ctype" class="form-control simple-select clientType">
|
|
|
+ <option value="" >--是否通过--</option>
|
|
|
+ <option value="5" itemLabel="label">通过</option>
|
|
|
+ <option value="4" itemLabel="label">驳回</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <tr id="workAccountList${index.index}">
|
|
|
+ <td class="hide">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
|
|
|
- <td>
|
|
|
- <input id="workAccountList${index.index}_boxNum" name="workAccountList[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control required layui-input"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="workAccountList${index.index}_reBoxNum" name="workAccountList[${index.index}].reBoxNum" maxlength="32" type="text" value="${projectFilingBatch.reBoxNum}" class="form-control required layui-input"/>
|
|
|
- </td>
|
|
|
- <td style="overflow: visible;">
|
|
|
- <select name="clientType" id="clientType" lay-filter="cc" lay-verify="ctype" class="form-control simple-select clientType">
|
|
|
- <option value="" >--是否通过--</option>
|
|
|
- <option value="5" itemLabel="label">通过</option>
|
|
|
- <option value="4" itemLabel="label">驳回</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
</c:forEach>
|
|
|
</c:when>
|
|
|
<c:otherwise>
|
|
@@ -229,48 +283,80 @@
|
|
|
<table id="contentTable" class="table table-bordered table-condensed can-edit">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th style="text-align: center">归档项目编号</th>
|
|
|
- <th style="text-align: center" >归档项目名称</th>
|
|
|
- <th style="text-align: center">报告号</th>
|
|
|
- <th style="text-align: center" >案卷号</th>
|
|
|
- <th style="text-align: center" >确认案卷号</th>
|
|
|
- <th style="text-align: center" >审批</th>
|
|
|
+ <th width="20%" style="text-align: center">归档项目编号</th>
|
|
|
+ <th width="20%" style="text-align: center" >归档项目名称</th>
|
|
|
+ <th width="20%" style="text-align: center">报告号</th>
|
|
|
+ <th width="20%" style="text-align: center" >案卷号</th>
|
|
|
+<%-- <th style="text-align: center" >确认案卷号</th>--%>
|
|
|
+ <th width="20%" style="text-align: center" >审批</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="workClientLinkmanList">
|
|
|
<c:if test="${not empty projectFilingBatch}">
|
|
|
<c:forEach items="${projectFilingBatch.project}" var="project" varStatus="index">
|
|
|
- <tr id="projectFilingbatchRelations${index.index}">
|
|
|
- <td class="hide">
|
|
|
- <input id="projectFilingbatchRelations${index.index}_id" name="projectFilingbatchRelations[${index.index}].id" type="hidden" value="${project.id}"/>
|
|
|
- <input id="projectFilingbatchRelations${index.index}_delFlag" name="projectFilingbatchRelations[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
- </td>
|
|
|
- <td class="hide">
|
|
|
- <input id="projectFilingbatchRelations${index.index}_status" name="projectFilingbatchRelations[${index.index}].status" type="hidden" value=""/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" value="${project.projectId}" readonly="readonly" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="projectFilingbatchRelations${index.index}_projectName" type="text" value="${project.projectName}" readonly="readonly" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" value="${project.projectReportNumber}" readonly="readonly" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="projectFilingbatchRelations${index.index}_boxNum" name="projectFilingbatchRelations[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control layui-input"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="projectFilingbatchRelations${index.index}_reBoxNum" name="projectFilingbatchRelations[${index.index}].reBoxNum" maxlength="32" type="text" value="${projectFilingBatch.reBoxNum}" class="form-control layui-input"/>
|
|
|
- </td>
|
|
|
- <td style="overflow: visible;">
|
|
|
- <select id="projectFilingbatchRelations${index.index}_clientType" name="projectFilingbatchRelations${index.index}.clientType" id="clientType" lay-filter="cc" lay-verify="ctype" class="form-control simple-select clientType">
|
|
|
- <option value="" >--是否通过--</option>
|
|
|
- <option value="5" itemLabel="label">通过</option>
|
|
|
- <option value="4" itemLabel="label">驳回</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${project.parentId == '0'}">
|
|
|
+ <tr class="listTr" id="projectFilingbatchRelations${index.index}">
|
|
|
+ <td class="hide">
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_id" name="projectFilingbatchRelations[${index.index}].id" type="hidden" value="${project.id}"/>
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_delFlag" name="projectFilingbatchRelations[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_parentId" type="hidden" value="${project.parentId}"/>
|
|
|
+ </td>
|
|
|
+ <td class="hide">
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_status" name="projectFilingbatchRelations[${index.index}].status" type="hidden" value=""/>
|
|
|
+ </td>
|
|
|
+ <td style="background-color: #f1f1f1;">
|
|
|
+ <div></div>
|
|
|
+ <span class="treeTable-icon open" style="padding-left: 10px;"><i class="layui-icon layui-icon-triangle-d"></i></span> ${project.projectId}
|
|
|
+<%-- <span style="padding-left: 10px;padding-right: 10px;float: left">-</span>${project.projectId}--%>
|
|
|
+<%-- <input style="cursor:Pointer" type="text" value=" - ${project.projectId}" readonly="readonly" class="form-control"/>--%>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_projectName" type="text" value="${project.projectName}" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" value="${project.projectReportNumber}" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_boxNum" name="projectFilingbatchRelations[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control layui-input"/>
|
|
|
+ </td>
|
|
|
+<%-- <td>--%>
|
|
|
+<%-- <input id="projectFilingbatchRelations${index.index}_reBoxNum" name="projectFilingbatchRelations[${index.index}].reBoxNum" maxlength="32" type="text" value="${projectFilingBatch.reBoxNum}" class="form-control layui-input"/>--%>
|
|
|
+<%-- </td>--%>
|
|
|
+ <td style="overflow: visible;">
|
|
|
+ <select id="projectFilingbatchRelations${index.index}_clientType" name="projectFilingbatchRelations${index.index}.clientType" id="clientType" lay-filter="cc" lay-verify="ctype" class="form-control simple-select clientType">
|
|
|
+ <option value="" >--是否通过--</option>
|
|
|
+ <option value="5" itemLabel="label">通过</option>
|
|
|
+ <option value="4" itemLabel="label">驳回</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <tr class="${project.parentId}" id="workAccountList${index.index}">
|
|
|
+ <td class="hide">
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_parentId" type="hidden" value="${project.parentId}"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="${project.projectId}" style="text-align: center" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td style="background-color: #f1f1f1;display:table-cell; vertical-align:middle;text-align: center">
|
|
|
+ <a class="attention-info" title="${project.projectReportNumber}" href="javascript:void(0);" onclick="preview('预览', '${project.url}','80%', '80%')">${project.projectReportNumber}</a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="" class="form-control"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input type="text" readonly value="" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td style="background-color: #f1f1f1;display:table-cell; vertical-align:middle;text-align: center">
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${project.url}');" class="op-btn op-btn-add"> 下载 </a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+
|
|
|
</c:forEach>
|
|
|
</c:if>
|
|
|
</tbody>
|