|
|
|
@ -343,8 +343,10 @@
|
|
|
|
|
if (parseFloat(row.realScore) > max) {
|
|
|
|
|
row.realScore = max;
|
|
|
|
|
}
|
|
|
|
|
this.calculateTotalScore('realScore')
|
|
|
|
|
this.postForm.percentageScore = (this.postForm.realScore / this.postForm.totalScore * 100).toFixed(2);
|
|
|
|
|
if (row.realScore){
|
|
|
|
|
this.calculateTotalScore('realScore')
|
|
|
|
|
this.postForm.percentageScore = (this.postForm.realScore / this.postForm.totalScore * 100).toFixed(2);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleInput(row, props) {
|
|
|
|
|
row.realScore = row.realScore.replace(/[^0-9.]/g, '');
|
|
|
|
@ -411,6 +413,7 @@
|
|
|
|
|
});
|
|
|
|
|
if (hasEmptyRealScore){
|
|
|
|
|
$.modal.alertWarning("所选自查项内有未评分项,请检查");
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
// console.log(hasEmptyRealScore);
|
|
|
|
|
// console.log(this.cachedData)
|
|
|
|
|