|
@@ -96,6 +96,15 @@
|
|
|
$(id).removeAttr("class","hide");
|
|
|
|
|
|
})
|
|
|
+ var maxTotal=0;
|
|
|
+ var length=$("#treeTable2 tbody tr").length;
|
|
|
+ for (var i=0;i<length;i++){
|
|
|
+ var zhi=$("#treeTable2 tbody").find("tr").eq(i).find("#maxDeduct").val();
|
|
|
+ if (undefined!=zhi && ''!=zhi){
|
|
|
+ maxTotal=maxTotal+parseInt(zhi);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $("#maxTotal").html(maxTotal);
|
|
|
});
|
|
|
|
|
|
function insertTitle(tValue){
|
|
@@ -145,7 +154,7 @@
|
|
|
obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
|
|
|
obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
|
|
|
}
|
|
|
- function reportMaxDeduct(maxDeduct,id,parentId,obj){
|
|
|
+ function reportMaxDeduct(deduct,id,parentId,obj){
|
|
|
<%--console.log(${fns:toJson(list)})--%>
|
|
|
<%--var dataList = ${fns:toJson(list)}--%>
|
|
|
<%--var maxDeductTotal = 0;--%>
|
|
@@ -159,7 +168,7 @@
|
|
|
<%-- // maxDeductTotal = dataList[i].maxDeduct;--%>
|
|
|
<%-- // }--%>
|
|
|
<%--}--%>
|
|
|
- if(isNaN(maxDeduct)){
|
|
|
+ if(isNaN(deduct)){
|
|
|
parent.layer.msg("输入的不是数字格式",{icon:2});
|
|
|
$(obj).val("")
|
|
|
return false;
|
|
@@ -167,7 +176,7 @@
|
|
|
$.ajax({
|
|
|
url:"${ctx}/workreview/workReviewStandard/reportMaxDeduct",
|
|
|
data:{
|
|
|
- "maxDeduct":maxDeduct,
|
|
|
+ "maxDeduct":deduct,
|
|
|
"id":id,
|
|
|
},
|
|
|
type:"post",
|
|
@@ -175,7 +184,7 @@
|
|
|
if(data.status){
|
|
|
var length=$("#treeTable2 tbody tr").length;
|
|
|
for (var i=0;i<length;i++){
|
|
|
- var zhi=$("#treeTable2 tbody").find("tr").eq(i).find("#maxDeduct").val();
|
|
|
+ var zhi=$("#treeTable2 tbody").find("tr").eq(i).find("#deduct").val();
|
|
|
if (undefined!=zhi && ''!=zhi){
|
|
|
total=total+parseInt(zhi);
|
|
|
}
|
|
@@ -1559,7 +1568,8 @@
|
|
|
<%--<th width="25%">序号</th>--%>
|
|
|
<th width="40%">符合内容及评分标准</th>
|
|
|
<th width="10%">自校</th>
|
|
|
- <th width="20%"><span class="require-item">*</span>打分</th>
|
|
|
+ <th width="10%">最高分</th>
|
|
|
+ <th width="10%"><span class="require-item">*</span>打分</th>
|
|
|
<th >打分意见</th>
|
|
|
|
|
|
<%--<th width="15%">操作</th>--%>
|
|
@@ -1579,17 +1589,21 @@
|
|
|
<i class="fa fa-check"></i>
|
|
|
</td>
|
|
|
<td class="input-td">
|
|
|
- <input id="maxDeduct" htmlEscape="false" class="form-control layui-input judgment" onChange="if(this.value)reportMaxDeduct(this.value,'${workReviewAudit.id}','${workReviewAudit.parent.id}',this)" placeholder="${workReviewAudit.maxDeduct}" />
|
|
|
+ <input id="maxDeduct" readonly="true" htmlEscape="false" class="form-control layui-input" style="background-color: #fff;text-align: center" value="${workReviewAudit.maxDeduct}" />
|
|
|
+ </td>
|
|
|
+ <td class="input-td">
|
|
|
+ <input id="deduct" htmlEscape="false" class="form-control layui-input judgment" onChange="if(this.value)reportMaxDeduct(this.value,'${workReviewAudit.id}','${workReviewAudit.parent.id}',this)" placeholder="请输入" />
|
|
|
</td>
|
|
|
<td class="input-td">
|
|
|
- <input id="deductOpinion" placeholder="请输入打分意见" readonly="true" style="background-color: #FFFFFF;" name="deductOpinion" value="" onclick="openDeductInfo(this.value,'${workReviewAudit.id}',this)" class="form-control layui-input judgment"/>
|
|
|
+ <input id="deductOpinion" placeholder="请输入打分意见" readonly="true" style="background-color: #FFFFFF;" name="deductOpinion" value="" onclick="openDeductInfo(this.value,'${workReviewAudit.id}',this)" class="form-control layui-input"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
<tr>
|
|
|
<td colspan="2" style="font-weight: bold">总分</td>
|
|
|
- <td style="padding: 0px;">
|
|
|
- <input id="total" name="reviewScore" htmlEscape="false" readonly="true" class="form-control layui-input ">
|
|
|
+ <td id="maxTotal"></td>
|
|
|
+ <td class="input-td">
|
|
|
+ <input id="total" name="reviewScore" htmlEscape="false" readonly="true" style="background-color: #FFFFFF;" class="form-control layui-input ">
|
|
|
</td>
|
|
|
<td></td>
|
|
|
</tr>
|