|  |  | 
 |  |  |                     this.donorchargeorgans.forEach(item => { | 
 |  |  |                       item.taXmoney = item.pretaxcost - item.taxedcost; | 
 |  |  |                       item.taXmoney = item.taXmoney.toFixed(2); | 
 |  |  |                       this.accumulation();//计算 | 
 |  |  |                       this.accumulation(); //计算 | 
 |  |  |                       this.form.istax = 1; | 
 |  |  |                       this.submitForm(); | 
 |  |  |                     }); | 
 |  |  | 
 |  |  |     // 金额合计 | 
 |  |  |     accumulation() { | 
 |  |  |       this.form.pretaxamount = this.donorchargeorgans.reduce( | 
 |  |  |         (acc, obj) => acc + obj.pretaxcost, | 
 |  |  |         (acc, obj) => acc + Number(obj.pretaxcost), | 
 |  |  |         0 | 
 |  |  |       ); | 
 |  |  |       this.form.taxMoney = this.donorchargeorgans.reduce( | 
 |  |  | 
 |  |  |         0 | 
 |  |  |       ); | 
 |  |  |       this.form.taxedamount = this.donorchargeorgans.reduce( | 
 |  |  |         (acc, obj) => acc + obj.taxedcost, | 
 |  |  |         (acc, obj) => acc + Number(obj.taxedcost), | 
 |  |  |         0 | 
 |  |  |       ); | 
 |  |  |     }, |