uu
This commit is contained in:
parent
6c105fbb0c
commit
2807ec14b3
@ -85,7 +85,7 @@
|
||||
<view class="com-section mt-30">产品类型</view>
|
||||
<view class="blcok-white yunf-list" style="padding-bottom: 2rpx;">
|
||||
|
||||
<tpx-checkitems :list="proTypeList" v-model:value="submitParam.productType" v-model:text="submitParam.productTypeName" v-slot="curPro" min-checked="1" type="single"
|
||||
<tpx-checkitems :list="proTypeList" v-model:value="productType" v-model:text="productTypeName" v-slot="curPro" min-checked="1" type="single"
|
||||
:transKeyVal="{valKey: 'productType', titleKey: 'productTypeName'}"
|
||||
>
|
||||
<view slot :class="`yunf-item ${curPro.checked?'active':''}`">
|
||||
@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user