uu
This commit is contained in:
parent
fcf4ee6761
commit
4414d3f71f
@ -45,10 +45,15 @@
|
||||
</tpx-select>
|
||||
|
||||
<view class="pt-20">
|
||||
<u-row custom-style="flex: 1">
|
||||
<u-row custom-style="flex: 1" justify="between">
|
||||
<text class="font-26 pr-10">总费用</text>
|
||||
<tpx-input v-model:value="modelInfo.freight" :isWhite="true" _digit="5"
|
||||
custom-style="width: 120rpx;height: 46rpx;" suffix="CNY"></tpx-input>
|
||||
<view v-if="modelInfo.calcFeeType==3">
|
||||
<tpx-input v-model:value="modelInfo.freight" :isWhite="true" _digit="5"
|
||||
inputAlign="right" custom-style="width: 460rpx;height: 46rpx;" suffix="CNY"></tpx-input>
|
||||
</view>
|
||||
<view v-else>
|
||||
{{modelInfo.freight || 0}}<text class="clr-sub pl-10">CNY</text>
|
||||
</view>
|
||||
</u-row>
|
||||
</view>
|
||||
<view class="pt-20">
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<u-input shape="circle" :placeholder="placeholder" :modelValue="value" :clearable="clearable"
|
||||
:custom-style="inputStyle" :readonly="readonly" :type="type" :inputAlign="inputAlign"
|
||||
:placeholder-style="`color: #999;${placeholderStyle};` " @change="handleChange"
|
||||
:formatter="formatter"
|
||||
:formatter="formatter" :disabled="disabled"
|
||||
>
|
||||
<template v-if="suffix" #suffix>
|
||||
<text class="font-26 clr-sub pl-10">{{suffix}}</text>
|
||||
@ -51,6 +51,11 @@
|
||||
return ''
|
||||
}
|
||||
},
|
||||
disabled:{
|
||||
default () {
|
||||
return false
|
||||
}
|
||||
},
|
||||
placeholder:{
|
||||
default () {
|
||||
return ''
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
const tabList = [
|
||||
{ title: '寄件地址', val: 1 },
|
||||
{ title: '收件地址', val: 2 },
|
||||
{ title: '其他', val: 3 }
|
||||
// { title: '其他', val: 3 }
|
||||
]
|
||||
export default {
|
||||
props: {
|
||||
|
||||
@ -260,6 +260,8 @@
|
||||
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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user