From 8c6174a1153ea38c01ede1b910222fb6fe1fb05f Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Sun, 20 Oct 2024 11:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/buns-post-edit-templates/bpe-cost-tmp.vue | 10 +++++++--- manifest.json | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/components/buns-post-edit-templates/bpe-cost-tmp.vue b/components/buns-post-edit-templates/bpe-cost-tmp.vue index d8ae03c..0b300cf 100644 --- a/components/buns-post-edit-templates/bpe-cost-tmp.vue +++ b/components/buns-post-edit-templates/bpe-cost-tmp.vue @@ -167,6 +167,7 @@ totalVolume: info.totalVolume, sendSiteCode: this.$store.getters.userInfo.ownerSiteCode, dispatchUnderlingSiteCode: info.dispatchUnderlingSiteCode, + custNo: info.custNo, } return param } @@ -174,12 +175,15 @@ watch: { searchParam: { handler(newVal, oldVal){ - let vals = Object.values(newVal) + let notMustKey = ['custNo'] if(JSON.stringify(newVal) == JSON.stringify(oldVal || {})) { return false } + let mustObj = JSON.parse(JSON.stringify(newVal)) + notMustKey.map(key=> { delete mustObj[key] }) + let mustVals = Object.values(mustObj) // 所有关联入参都有值或者为0再 执行自动计算,数据未变化不做计算 - if(vals.length == vals.filter(v => (v==0 || !!v)).length) { + if(mustVals.length == mustVals.filter(v => (v==0 || !!v)).length) { console.log("====watch cost calcWaybillFee===") this.calcWaybillFee(newVal); } @@ -241,7 +245,7 @@ async calcWaybillFee(params = {}) { // calcFeeType计算入参特殊处理 params.calcFeeType == 3 && (params.calcFeeType = 1); - let res = await apiService.calcWaybillFee({ custNo: this.modelInfo.custNo, ...params }) + let res = await apiService.calcWaybillFee({ ...params }) this.modelInfo.feeItems = res.data.feeList this.modelInfo.freight = res.data.totalFee diff --git a/manifest.json b/manifest.json index 0545c3f..4d08d78 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__BCB0FB5", "description" : "探路国际速运", "versionName" : "1.0.1", - "versionCode" : "1049", + "versionCode" : "1050", "transformPx" : false, /* 5+App特有相关 */ "app-plus" : {