diff --git a/components/buns-post-edit-templates/bpe-choosetypelist-tmp.vue b/components/buns-post-edit-templates/bpe-choosetypelist-tmp.vue index b5f2f8f..2748ffd 100644 --- a/components/buns-post-edit-templates/bpe-choosetypelist-tmp.vue +++ b/components/buns-post-edit-templates/bpe-choosetypelist-tmp.vue @@ -47,14 +47,15 @@ searchParam: { handler(newVal, oldVal){ let vals = Object.values(newVal) + if(JSON.stringify(newVal) == JSON.stringify(oldVal || {})) { + return false + } this.proTypeList = [] if(this.autoCalc) { // 所有关联入参都有值再 执行自动计算,数据未变化不做计算 if(vals.length == vals.filter(v => !!v).length) { - if(JSON.stringify(newVal) != JSON.stringify(oldVal || {})) { - console.log("====watch cost calcWaybillFee===") - this.calcTypeFee(newVal); - } + console.log("====watch cost calcWaybillFee===") + this.calcTypeFee(newVal); } } else { this.modelInfo.freight = 0