|
@@ -249,19 +249,20 @@ export default {
|
|
|
// 校验承担费用合计是否超过费用承担金额
|
|
|
let totalFy = 0
|
|
|
row.childDetailSplitList.map(item => {
|
|
|
- totalFy = totalFy + item.splitAmount
|
|
|
+ totalFy = totalFy + Number(item.splitAmount)
|
|
|
})
|
|
|
- if (totalFy.toFixed(2) >= Number(row.splitAmount)) {
|
|
|
+ console.log(Number(totalFy).toFixed(2), Number(row.splitAmount).toFixed(2))
|
|
|
+ if (Number(totalFy).toFixed(2) >= Number(row.splitAmount).toFixed(2)) {
|
|
|
this.$warning({
|
|
|
title: '提示',
|
|
|
content: '人员平摊费用合计必需等于费用承担金额'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // 以适用费用
|
|
|
+ // 已使用费用
|
|
|
let ysyAmount = 0
|
|
|
row.childDetailSplitList.map(item => {
|
|
|
- ysyAmount = ysyAmount + item.splitAmount
|
|
|
+ ysyAmount = ysyAmount + Number(item.splitAmount)
|
|
|
})
|
|
|
// 添加
|
|
|
row.childDetailSplitList.push({
|