emis-app/components/buns-post-edit-templates/bpe-good-kuaidi-tmp.vue

117 lines
2.6 KiB
Vue
Raw Normal View History

2024-01-31 09:32:42 +00:00
<template>
<view class="edm-input-item">
2024-04-27 12:44:15 +00:00
<tpx-select v-model:value="modelInfo.packType" :list="dicData.emis_tab_packing_type"
2024-05-26 11:11:31 +00:00
mode="drop" type="multiple"
2024-01-31 09:32:42 +00:00
>
2024-05-26 11:11:31 +00:00
<tpx-text-item label="包装类型" :value="modelInfo.packType" :list="dicData.emis_tab_packing_type" ></tpx-text-item>
2024-01-31 09:32:42 +00:00
</tpx-select>
</view>
2024-06-11 07:22:26 +00:00
<view v-if="modelInfo.pickupMethod == 1">
<view class="edm-input-item">
<tpx-select v-model:value="modelInfo.prepareInExpress" :list="dicData.emis_express_code"
mode="drop"
>
<tpx-text-item label="同行快递">
<template v-slot:right>
<tpx-input v-model:value="modelInfo.prepareInExpress" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</tpx-select>
</view>
<view class="edm-input-item">
<tpx-text-item label="快递单号">
2024-04-27 15:19:55 +00:00
<template v-slot:right>
2024-06-11 07:22:26 +00:00
<tpx-input v-model:value="modelInfo.prepareInBillCode" inputAlign="right"></tpx-input>
2024-04-27 15:19:55 +00:00
</template>
</tpx-text-item>
2024-06-11 07:22:26 +00:00
</view>
<view class="edm-input-item">
<tpx-text-item label="是否需要代垫运费">
<template v-slot:right>
2024-06-15 10:08:14 +00:00
<u-switch v-model="modelInfo.blPrepareInFreight" @change="handleDDianSwitch"
activeValue="1" inactiveValue="0" active-color="#B12D29" size="34"
></u-switch>
2024-06-11 07:22:26 +00:00
</template>
</tpx-text-item>
</view>
2024-06-15 10:08:14 +00:00
<view v-if="modelInfo.blPrepareInFreight == '1'" class="edm-input-item">
2024-06-11 07:22:26 +00:00
<tpx-text-item label="代垫预估">
<template v-slot:right>
<tpx-input v-model:value="modelInfo.prepareInEstFee" _digit="5" inputAlign="right" suffix="CNY"></tpx-input>
</template>
</tpx-text-item>
</view>
<view class="edm-input-item">
<tpx-text-item label="供应商">
<template v-slot:right>
<tpx-input v-model:value="modelInfo.prepareInSupplier" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
<view class="edm-input-item">
<tpx-text-item label="自定义标记">
<template v-slot:right>
<tpx-input v-model:value="modelInfo.prepareInRemark" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
2024-01-31 09:32:42 +00:00
</view>
2024-04-27 12:44:15 +00:00
2024-01-31 09:32:42 +00:00
</template>
<script>
export default {
computed: {
2024-04-27 12:44:15 +00:00
dicData() {
return this.$store.getters.dicData
},
modelInfo: {
2024-01-31 09:32:42 +00:00
get(){
return this.value
}
}
},
props: {
value: {
default () {
return { }
}
}
},
data() {
return {
2024-05-24 10:59:30 +00:00
2024-01-31 09:32:42 +00:00
}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
2024-06-15 10:08:14 +00:00
handleDDianSwitch(val){
2024-06-18 16:16:19 +00:00
if(val!=1) {
this.modelInfo.prepareInEstFee = undefined
}
2024-06-15 10:08:14 +00:00
}
2024-01-31 09:32:42 +00:00
}
}
</script>
<style scoped lang="scss">
.edm-input-item{
padding: 20rpx 0;
border-bottom: 2rpx solid #F6F6F6;
}
</style>