| | |
| | | // 总金额 |
| | | totalPrice: function 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(function (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: _this2.cyclePrice |
| | | fee: item.fee |
| | | }; |
| | | }); |
| | | this.$u.api.applyChangeCreate({ |