diff --git a/pages/post/freightCalculate.vue b/pages/post/freightCalculate.vue
index 388de32..1866012 100644
--- a/pages/post/freightCalculate.vue
+++ b/pages/post/freightCalculate.vue
@@ -85,7 +85,7 @@
产品类型
-
@@ -154,6 +154,16 @@
// type: Boolean
// }
},
+ watch:{
+ submitParam: {
+ handler:function(){
+ this.productType = ''
+ this.productTypeName = ''
+ this.proTypeList = []
+ },
+ deep: true
+ }
+ },
computed: {
waySearchParam() {
@@ -170,7 +180,7 @@
return this.$store.getters.dicData
},
checkedEstFee() {
- let item = this.proTypeList.filter(t=> t.val == this.submitParam.productType)[0] || {}
+ let item = this.proTypeList.filter(t=> t.val == this.productType)[0] || {}
return item.estFee
},
},
@@ -201,6 +211,8 @@
countryRes: { list: [] },
provRes: { list: [] },
wayRes: { list: [] },
+ productType: '',
+ productTypeName: '',
submitParam: {
reciever: {
country: '',
@@ -264,8 +276,6 @@
async handleCalPost(type) {
let params = JSON.parse(JSON.stringify(this.submitParam));
params.calcFeeType = 1 // "计费类型 1-重量计费 2-体积计费"
- this.proTypeList = []
- this.submitParam.productType = ''
let res = await apiService.preCalcWaybillFee({ ...params, _loading: true })
this.proTypeList = res.data || []
if(this.proTypeList.length > 0) {
@@ -280,6 +290,8 @@
let { sendSiteCode, sendSiteName } = this.getDefaultData()
cpData.sendSiteCode = sendSiteCode
cpData.sendSiteName = sendSiteName
+ cpData.productTypeName = this.productTypeName
+ cpData.productType = this.productType
this.goto(`post/openorder?defaultSubParams=${encodeURIComponent(JSON.stringify(cpData))}&type=create`)
}
}