This commit is contained in:
2024-12-27 17:32:14 +08:00
parent a27fe8f098
commit 058b20ef5a
5 changed files with 36 additions and 78 deletions

View File

@@ -437,8 +437,9 @@ export default {
},
// 总合格率
passRate() {
let _totalQuantity = this.totalQuantity * 1.0
if (this.totalQuantity > 0) {
return Math.ceil((this.totalQualifiedNumber / this.totalQuantity) * 100) + '%'
return ((this.totalQualifiedNumber / _totalQuantity) * 100).toFixed(1) + '%'
} else {
return '0%'
}