|
@@ -21,15 +21,17 @@
|
|
|
}
|
|
|
}
|
|
|
var flag=true;
|
|
|
- $("#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;
|
|
|
- }
|
|
|
- })
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
if (flag==true){
|
|
|
$("#inputForm").submit();
|
|
|
return true;
|
|
@@ -175,13 +177,13 @@
|
|
|
<input name="projectName" type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input name="projectReportNumber" type="text" readonly value="${project.projectReportNumber}" class="form-control required"/>
|
|
|
+ <input name="projectReportNumber" type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
</td>
|
|
|
- <td><input name="boxNum" id="boxNum" type="text" value="${projectFilingBatch.boxNum}" class="form-control required boxNum"/></td>
|
|
|
- <td><input name="reboxNum" id="reboxNum" onchange="upcase(this)" value="${projectFilingBatch.reBoxNum}" type="text" class="form-control required reboxNum"/></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 required clientType">
|
|
|
+ <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>
|
|
@@ -237,8 +239,9 @@
|
|
|
// layer.msg("项目状态修改成功", { icon: 1, offset: "auto", time:2000 });
|
|
|
},
|
|
|
});
|
|
|
- }else{
|
|
|
+ }else if (status=="5"){
|
|
|
layer.msg("请输入前面信息", { icon: 2, offset: "error", time:2000 });
|
|
|
+ $("#flag").val("no1")
|
|
|
}
|
|
|
|
|
|
});
|