| | |
| | | // 总金额 |
| | | totalPrice() { |
| | | // return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2) |
| | | return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2) |
| | | var totalReductPrice = 0; |
| | | this.del.forEach(item =>{ |
| | | totalReductPrice = totalReductPrice+item.fee |
| | | }) |
| | | // return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2) |
| | | return ((this.cyclePrice * this.add.length) +totalReductPrice).toFixed(2) |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | memberName: item.name, |
| | | workTypeName: item.gzName, |
| | | worktypeId: item.gzId, |
| | | fee: this.cyclePrice |
| | | fee: item.fee |
| | | } |
| | | }) |
| | | this.$u.api.applyChangeCreate({ |