bug 4445修复: 评分得分可以输入填入比标准大的数值

This commit is contained in:
gaowdong 2024-12-30 18:00:03 +08:00
parent 2820d70736
commit 2865efcdec
1 changed files with 11 additions and 1 deletions

View File

@ -316,7 +316,7 @@ function subQuarterEvaContentInit() {
html += '<tr>';
html += '<th rowspan="1" colspan="1">机具管理10分。半年评价周期内按结算中丢失公司施工机具丢失原值每万元扣1分扣完为止。</th>';
html += '<th rowspan="1" colspan="1">10</th>';
html += '<th rowspan="1" colspan="1"><input class="textInput" type="text" id="b08" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,\'\')}else{this.value=this.value.replace(/\\D/g,\'\')}" onafterpaste="isNums()"></th>';
html += '<th rowspan="1" colspan="1"><input class="textInput" type="text" id="b08" onblur="checkScore(this)" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,\'\')}else{this.value=this.value.replace(/\\D/g,\'\')}" onafterpaste="isNums()"></th>';
html += '<th rowspan="1" colspan="1"><input class="textInput" type="text" id="r08" ></th>';
html += '<th rowspan="1" colspan="1"></th>';
html += '</tr>';
@ -324,6 +324,16 @@ function subQuarterEvaContentInit() {
$("#tb0").append(html);
}
function checkScore(obj) {
var inputScore = $(obj).val();
if($.isNumeric(inputScore)) {
var num1 = parseFloat(inputScore);
if(num1 > 10) {
layer.alert("评分不能大于10分");
$(obj).val("");
}
}
}
//循环追加核心人员列表表头
function subCorePersonEvaluatetop(list) {