From a895a615b2b6a40be7ee0740d3e0b998d811744f Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期六, 01 六月 2024 16:12:41 +0800 Subject: [PATCH] 11 --- src/views/project/tallage/computingBill/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue index 5556c94..50bcbba 100644 --- a/src/views/project/tallage/computingBill/index.vue +++ b/src/views/project/tallage/computingBill/index.vue @@ -800,11 +800,17 @@ handleUploadError() {}, // 寮规娣诲姞 AddDispatchpatients() { - this.donorchargeorgans = this.donorchargeorgans.concat(this.overallCase); - console.log(this.donorchargeorgans, "donorchargeorgans"); - this.donorchargeorgans.forEach(item => { - CalculationDetail({ id: item.id, fundTaxId: this.form.id }); + let newArr = this.donorchargeorgans.concat(this.overallCase); + this.donorchargeorgans = newArr.filter((item, index, self) => { + return !self.slice(index + 1).some(other => other.id === item.id); }); + + console.log(this.donorchargeorgans, "donorchargeorgans"); + if (this.form.id) { + this.donorchargeorgans.forEach(item => { + CalculationDetail({ id: item.id, fundTaxId: this.form.id }); + }); + } this.donorchargeorgans.forEach(item => { item.taXmoney = item.pretaxcost - item.taxedcost; item.taXmoney = item.taXmoney.toFixed(2); -- Gitblit v1.9.3