@@ -366,9 +366,11 @@ export default { | |||
// } | |||
let ee = parseFloat(item.wages_money); | |||
let newitem = JSON.parse(JSON.stringify(item)); | |||
newitem.wages_money = isNaN(ee) | |||
? sum.toFixed(2) | |||
: ee.toFixed(2).replace(/[^0-9.]/g, ""); | |||
newitem.wages_money = | |||
// isNaN(ee) | |||
// ? sum.toFixed(2) | |||
// : | |||
ee.toFixed(2).replace(/[^0-9.]/g, ""); | |||
this.gongzi.splice(idx, 1, newitem); | |||
console.log("gongzi:", this.gongzi); | |||
this.edit_idx = -1; |