|
@@ -22,21 +22,33 @@
|
|
|
}
|
|
|
var flag=true;
|
|
|
if($("#flag").val()!="no1"){
|
|
|
- $("#workClientLinkmanList tr").each(function(){
|
|
|
- var clientType=$(this).find("td").eq(5).find(".clientType").val();
|
|
|
- var reboxNum=$(this).find("td").eq(4).find(".reboxNum").val();
|
|
|
- var boxNum=$(this).find("td").eq(3).find(".boxNum").val();
|
|
|
- if (boxNum =="" || reboxNum=="" || clientType==""){
|
|
|
- layer.msg("请输入项目信息", { icon: 2, offset: "error", time:2000 });
|
|
|
- flag=false;
|
|
|
+ var tdlen = $("#workClientLinkmanList tr").length;
|
|
|
+ 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 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 });
|
|
|
+ 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;
|
|
|
}
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
if (flag==true){
|
|
|
$("#inputForm").submit();
|
|
|
return true;
|
|
|
- }else{
|
|
|
- layer.msg("请输入项目信息", { icon: 2, offset: "error", time:2000 });
|
|
|
}
|
|
|
|
|
|
|
|
@@ -151,7 +163,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group layui-row first">
|
|
|
+ <%--<div class="form-group layui-row first">
|
|
|
<div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
<table id="contentTable" class="table table-bordered table-condensed can-edit">
|
|
|
<thead>
|
|
@@ -162,27 +174,35 @@
|
|
|
<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>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="workClientLinkmanList">
|
|
|
<c:choose>
|
|
|
<c:when test="${not empty projectFilingBatch}">
|
|
|
<c:forEach items="${projectFilingBatch.project}" var="project" varStatus="index">
|
|
|
- <tr>
|
|
|
+ <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 name="projectId" type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
+ <input type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input name="projectName" type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
+ <input type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input name="projectReportNumber" type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
+ <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><input name="boxNum" id="boxNum" type="text" value="${projectFilingBatch.boxNum}" class="form-control boxNum"/></td>
|
|
|
- <td><input name="reboxNum" id="reboxNum" onchange="upcase(this)" value="${projectFilingBatch.reBoxNum}" type="text" class="form-control reboxNum"/></td>
|
|
|
<td style="overflow: visible;">
|
|
|
- <input type="hidden" id="getProId" value="${project.id}"/>
|
|
|
<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>
|
|
@@ -202,7 +222,63 @@
|
|
|
</c:choose>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
+ </div>--%>
|
|
|
+
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
+ <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>
|
|
|
+ </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:forEach>
|
|
|
+ </c:if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</form:form>
|
|
|
<div class="form-group layui-row">
|
|
|
<div class="form-group-label"><h2>审批流程</h2></div>
|
|
@@ -218,87 +294,12 @@
|
|
|
var form = layui.form;
|
|
|
//下拉框监听器
|
|
|
layui.form.on('select(cc)', function(data){
|
|
|
- var tr=$(this).parent().parent().parent().parent()
|
|
|
- var boxNum=$(tr).find(".boxNum").val();
|
|
|
- var reboxNum=$(tr).find(".reboxNum").val();
|
|
|
- var proId=(tr).find("#getProId").val();
|
|
|
- var status=$(tr).find("#clientType").val();
|
|
|
- if (status!="" && boxNum!="" && reboxNum !=""){
|
|
|
- //修改项目状态
|
|
|
- $.ajax({
|
|
|
- type : "POST",
|
|
|
- url : "${ctx}/projectFilingBatch/projectFilingBatchInfo/updateProjectPass",
|
|
|
- data : {
|
|
|
- 'status':status,
|
|
|
- 'proId':proId,
|
|
|
- "boxNum":boxNum,
|
|
|
- "reboxNum":reboxNum
|
|
|
- },
|
|
|
- //请求成功
|
|
|
- success : function(result) {
|
|
|
- // layer.msg("项目状态修改成功", { icon: 1, offset: "auto", time:2000 });
|
|
|
- },
|
|
|
- });
|
|
|
- }else if (status=="5"){
|
|
|
- layer.msg("请输入前面信息", { icon: 2, offset: "error", time:2000 });
|
|
|
- $("#flag").val("no1")
|
|
|
- }
|
|
|
-
|
|
|
+ console.log(data.value);
|
|
|
+ var dataId = data.elem.id;
|
|
|
+ var a =dataId.substring(0,dataId.indexOf("_")+1);
|
|
|
+ $("#"+a +"status").val(data.value)
|
|
|
});
|
|
|
});
|
|
|
</script>
|
|
|
-<script type="text/javascript">
|
|
|
- function upcase(obj) {
|
|
|
- var tr=obj.parentNode.parentNode;
|
|
|
- var boxNum=jQuery(tr).find("#boxNum").val()
|
|
|
- var reboxNum=jQuery(tr).find("#reboxNum").val()
|
|
|
- if (boxNum!=""){
|
|
|
- if (reboxNum!=""){
|
|
|
- if(boxNum!=reboxNum){
|
|
|
- jQuery(tr).find("#reboxNum").val("");
|
|
|
- layer.msg("确认案卷号与案卷号不匹配", { icon: 2, offset: "error", time:2000 });
|
|
|
- }
|
|
|
- }else{
|
|
|
- layer.msg("请输入再次确认案卷号", { icon: 2, offset: "error", time:2000 });
|
|
|
- }
|
|
|
- }else{
|
|
|
- layer.msg("请输入案卷号", { icon: 2, offset: "error", time:2000 });
|
|
|
- }
|
|
|
- }
|
|
|
- function proType(obj) {
|
|
|
- var tr=obj.parentNode.parentNode;
|
|
|
- var boxNum=jQuery(tr).find("#boxNum").val()
|
|
|
- var reboxNum=jQuery(tr).find("#reboxNum").val()
|
|
|
- var pass=jQuery(tr).find("#clientType").val();
|
|
|
- var proId=jQuery(tr).find("#getProId").val();
|
|
|
- if (boxNum!=""){
|
|
|
- if (reboxNum!=""){
|
|
|
- if(boxNum!=reboxNum){
|
|
|
- }else{
|
|
|
-
|
|
|
- <%--//修改项目状态--%>
|
|
|
- <%--$.ajax({--%>
|
|
|
- <%-- type : "POST",--%>
|
|
|
- <%-- url : "${ctx}/projectFilingBatch/projectFilingBatchInfo/updateProjectPass",--%>
|
|
|
- <%-- data : {--%>
|
|
|
- <%-- 'status':pass,--%>
|
|
|
- <%-- 'proId':proId,--%>
|
|
|
- <%-- "boxNum":boxNum,--%>
|
|
|
- <%-- "reboxNum":reboxNum--%>
|
|
|
- <%-- },--%>
|
|
|
- <%-- //请求成功--%>
|
|
|
- <%-- success : function(result) {--%>
|
|
|
- <%-- layer.msg("项目状态修改成功", { icon: 1, offset: "auto", time:2000 });--%>
|
|
|
- <%-- },--%>
|
|
|
-
|
|
|
- <%--});--%>
|
|
|
- }
|
|
|
- }else{
|
|
|
- layer.msg("请输入再次确认案卷号", { icon: 2, offset: "error", time:2000 });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-</script>
|
|
|
</body>
|
|
|
</html>
|