This commit is contained in:
aihe 2024-08-06 23:03:12 +08:00
parent d079e1d4cb
commit 84c450db77

View File

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