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); }