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