From 249879c3e97951ad87cca0f4cc645687e11b6c9f Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Fri, 18 Oct 2024 23:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=B4=B9=E8=AE=A1=E7=AE=97=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/buns-post-edit-templates/bpe-cost-tmp.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/buns-post-edit-templates/bpe-cost-tmp.vue b/components/buns-post-edit-templates/bpe-cost-tmp.vue index 19319cb..d8ae03c 100644 --- a/components/buns-post-edit-templates/bpe-cost-tmp.vue +++ b/components/buns-post-edit-templates/bpe-cost-tmp.vue @@ -178,8 +178,8 @@ if(JSON.stringify(newVal) == JSON.stringify(oldVal || {})) { return false } - // 所有关联入参都有值再 执行自动计算,数据未变化不做计算 - if(vals.length == vals.filter(v => !!v).length) { + // 所有关联入参都有值或者为0再 执行自动计算,数据未变化不做计算 + if(vals.length == vals.filter(v => (v==0 || !!v)).length) { console.log("====watch cost calcWaybillFee===") this.calcWaybillFee(newVal); }