|
@@ -223,7 +223,7 @@ export default {
|
|
if (dl && dl.length) {
|
|
if (dl && dl.length) {
|
|
let t = 0
|
|
let t = 0
|
|
dl.map(b => t = t + b.splitAmount)
|
|
dl.map(b => t = t + b.splitAmount)
|
|
- hasError = (t != item.splitAmount) ? 2 : 0
|
|
|
|
|
|
+ hasError = (Number(t) != Number(item.splitAmount)) ? 2 : 0
|
|
}
|
|
}
|
|
item.childDetailSplitList = dl
|
|
item.childDetailSplitList = dl
|
|
}
|
|
}
|
|
@@ -251,7 +251,7 @@ export default {
|
|
row.childDetailSplitList.map(item => {
|
|
row.childDetailSplitList.map(item => {
|
|
totalFy = totalFy + item.splitAmount
|
|
totalFy = totalFy + item.splitAmount
|
|
})
|
|
})
|
|
- if (totalFy >= row.splitAmount) {
|
|
|
|
|
|
+ if (totalFy.toFixed(2) >= Number(row.splitAmount)) {
|
|
this.$warning({
|
|
this.$warning({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '人员平摊费用合计必需等于费用承担金额'
|
|
content: '人员平摊费用合计必需等于费用承担金额'
|