From d2593f4c0f3e2582a597ee6c9272c4bb9c86be73 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Tue, 11 Jun 2024 13:15:01 +0800 Subject: [PATCH] uu --- components/buns-post-edit-templates/bpe-cost-tmp.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/buns-post-edit-templates/bpe-cost-tmp.vue b/components/buns-post-edit-templates/bpe-cost-tmp.vue index 0e67cc0..4451375 100644 --- a/components/buns-post-edit-templates/bpe-cost-tmp.vue +++ b/components/buns-post-edit-templates/bpe-cost-tmp.vue @@ -195,6 +195,7 @@ methods: { handleDelFee(index) { this.modelInfo.feeItems.splice(index, 1) + this.calteFreight() }, handleAddFee(val) { this.costModal.show = {} @@ -211,10 +212,6 @@ }, handleRlFeeChange(item, val){ - // 手动添加,需要更新应收 - if(item.blAutoGen == 0) { - item.fee = val - } setTimeout(()=> { this.calteFreight() }, 500) @@ -245,7 +242,7 @@ calteFreight(){ let total = 0 this.modelInfo.feeItems.map(t=> { - total += (+t.realFee) + total += (+(t.realFee || 0)) }) this.modelInfo.freight = total },