emis-sapp/components/buns-post-edit-templates/bpe-cost-tmp.vue
2024-01-31 17:18:28 +08:00

114 lines
2.7 KiB
Vue

<template>
<view class="shet-cont">
<view class="jsfm-item" style="padding-top: 0;">
<u-row>
<view class="lft1 font-28">计费方式</view>
<view style="flex: 1;">
<u-radio-group v-model="submitInfo.costType"
@change="groupChange"
>
<u-radio v-for="(item, index) in costTypeList" :label="item.title" :name="item.val"
activeColor="#B12D29" size="30" labelSize="26" :custom-style="`margin-right: ${index+1<costTypeList.length?30:0}rpx;`"
>
</u-radio>
</u-radio-group>
</view>
</u-row>
</view>
<view class="jsfm-item">
<u-row>
<view class="lft1 font-28">
<tpx-select :list="[]" v-model:value="submitInfo.kehuid" placeholder="清关费" mode="drop" :isWhite="true"></tpx-select>
</view>
<u-row custom-style="flex:1;">
<tpx-input v-model:value="submitInfo.ke1" :isWhite="true" custom-style="width: 120rpx;"></tpx-input>
<text class="font-26 pl-20 pr-10">续重</text>
<tpx-input v-model:value="submitInfo.xuzh" :isWhite="true" custom-style="width: 120rpx;" suffix="KG"></tpx-input>
</u-row>
<view class="delicon">
<u-icon name="minus-circle" size="30"></u-icon>
</view>
</u-row>
<view class="mt-10">运输费计算公式: </view>
</view>
<view class="jsfm-item">
<u-row>
<view class="lft1 font-28">
<tpx-select :list="[]" v-model:value="submitInfo.kehuid" placeholder="清关费" mode="drop" :isWhite="true"></tpx-select>
</view>
<u-row custom-style="flex:1;">
<tpx-input v-model:value="submitInfo.fei" :isWhite="true" custom-style="" suffix="CNY"></tpx-input>
</u-row>
<view class="delicon">
<u-icon name="minus-circle" size="30"></u-icon>
</view>
</u-row>
</view>
<u-row justify="center">
<u-button custom-style="border-radius: 16rpx;height:60rpx;font-size: 30rpx;margin-top: 20rpx;" :plain="true" type="primary">
<u-icon name="plus" size="30" color="#B12D29"></u-icon>
<text class="pl-10">增加收费项</text>
</u-button>
</u-row>
</view>
</template>
<script>
export default {
computed: {
submitInfo: {
get(){
return this.value
}
}
},
props: {
value: {
default () {
return { }
}
}
},
data() {
return {
costTypeList: [
{ title: '按重量', val: 1 },
{ title: '按体积', val: 2 },
{ title: '一口价', val: 3 },
]
}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.shet-cont{
}
.jsfm-item{
padding: 20rpx 0;
border-bottom: 2rpx solid #F6F6F6;
.lft1{
width: 150rpx;
margin-right: 10rpx;
}
.delicon{
padding: 16rpx 0 16rpx 20rpx;
}
}
</style>