uu
This commit is contained in:
parent
6c105fbb0c
commit
2807ec14b3
@ -85,7 +85,7 @@
|
|||||||
<view class="com-section mt-30">产品类型</view>
|
<view class="com-section mt-30">产品类型</view>
|
||||||
<view class="blcok-white yunf-list" style="padding-bottom: 2rpx;">
|
<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'}"
|
:transKeyVal="{valKey: 'productType', titleKey: 'productTypeName'}"
|
||||||
>
|
>
|
||||||
<view slot :class="`yunf-item ${curPro.checked?'active':''}`">
|
<view slot :class="`yunf-item ${curPro.checked?'active':''}`">
|
||||||
@ -154,6 +154,16 @@
|
|||||||
// type: Boolean
|
// type: Boolean
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
submitParam: {
|
||||||
|
handler:function(){
|
||||||
|
this.productType = ''
|
||||||
|
this.productTypeName = ''
|
||||||
|
this.proTypeList = []
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
||||||
waySearchParam() {
|
waySearchParam() {
|
||||||
@ -170,7 +180,7 @@
|
|||||||
return this.$store.getters.dicData
|
return this.$store.getters.dicData
|
||||||
},
|
},
|
||||||
checkedEstFee() {
|
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
|
return item.estFee
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -201,6 +211,8 @@
|
|||||||
countryRes: { list: [] },
|
countryRes: { list: [] },
|
||||||
provRes: { list: [] },
|
provRes: { list: [] },
|
||||||
wayRes: { list: [] },
|
wayRes: { list: [] },
|
||||||
|
productType: '',
|
||||||
|
productTypeName: '',
|
||||||
submitParam: {
|
submitParam: {
|
||||||
reciever: {
|
reciever: {
|
||||||
country: '',
|
country: '',
|
||||||
@ -264,8 +276,6 @@
|
|||||||
async handleCalPost(type) {
|
async handleCalPost(type) {
|
||||||
let params = JSON.parse(JSON.stringify(this.submitParam));
|
let params = JSON.parse(JSON.stringify(this.submitParam));
|
||||||
params.calcFeeType = 1 // "计费类型 1-重量计费 2-体积计费"
|
params.calcFeeType = 1 // "计费类型 1-重量计费 2-体积计费"
|
||||||
this.proTypeList = []
|
|
||||||
this.submitParam.productType = ''
|
|
||||||
let res = await apiService.preCalcWaybillFee({ ...params, _loading: true })
|
let res = await apiService.preCalcWaybillFee({ ...params, _loading: true })
|
||||||
this.proTypeList = res.data || []
|
this.proTypeList = res.data || []
|
||||||
if(this.proTypeList.length > 0) {
|
if(this.proTypeList.length > 0) {
|
||||||
@ -280,6 +290,8 @@
|
|||||||
let { sendSiteCode, sendSiteName } = this.getDefaultData()
|
let { sendSiteCode, sendSiteName } = this.getDefaultData()
|
||||||
cpData.sendSiteCode = sendSiteCode
|
cpData.sendSiteCode = sendSiteCode
|
||||||
cpData.sendSiteName = sendSiteName
|
cpData.sendSiteName = sendSiteName
|
||||||
|
cpData.productTypeName = this.productTypeName
|
||||||
|
cpData.productType = this.productType
|
||||||
this.goto(`post/openorder?defaultSubParams=${encodeURIComponent(JSON.stringify(cpData))}&type=create`)
|
this.goto(`post/openorder?defaultSubParams=${encodeURIComponent(JSON.stringify(cpData))}&type=create`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user