| | |
| | | </div> |
| | | </div> |
| | | <el-table |
| | | v-if="item" |
| | | :data="activeName === '0' ? form.addDetailList : form.delDetailList" |
| | | border |
| | | show-summary |
| | |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = '总价' |
| | | } else if (index === 7) { |
| | | } else if (this.item.hasDispatchUnit === 1 && index === 6) { |
| | | let total = 0 |
| | | if (this.activeName === '0') { |
| | | this.form.addDetailList.forEach(item => { |
| | | total += item.fee || 0 |
| | | }) |
| | | sums[index] = (total || 0).toFixed(2) |
| | | } else { |
| | | this.form.delDetailList.forEach(item => { |
| | | total += item.reducePrice |
| | | }) |
| | | sums[index] = (total || 0).toFixed(2) |
| | | } |
| | | } else if (this.item.hasDispatchUnit !== 1 && index === 7) { |
| | | let total = 0 |
| | | if (this.activeName === '0') { |
| | | this.form.addDetailList.forEach(item => { |