运费计算修改

This commit is contained in:
aihe 2024-10-18 23:09:58 +08:00
parent 3f246e681d
commit 249879c3e9

View File

@ -178,8 +178,8 @@
if(JSON.stringify(newVal) == JSON.stringify(oldVal || {})) { if(JSON.stringify(newVal) == JSON.stringify(oldVal || {})) {
return false return false
} }
// 所有关联入参都有值再 执行自动计算,数据未变化不做计算 // 所有关联入参都有值或者为0再 执行自动计算,数据未变化不做计算
if(vals.length == vals.filter(v => !!v).length) { if(vals.length == vals.filter(v => (v==0 || !!v)).length) {
console.log("====watch cost calcWaybillFee===") console.log("====watch cost calcWaybillFee===")
this.calcWaybillFee(newVal); this.calcWaybillFee(newVal);
} }