emis-sapp/components/buns-goodsize-sheet/buns-goodsize-sheet.vue

80 lines
1.5 KiB
Vue
Raw Normal View History

2023-12-17 16:16:18 +00:00
<template>
<tpx-dialog :show="show" title="填写预估重量体积" @onClose="handleCloseModal()">
2023-12-17 17:04:27 +00:00
<view style="position: relative;height: calc(60vh);">
<tpx-layout>
<template v-slot:body>
2024-01-29 10:48:55 +00:00
<bpe-goodsize-tmp v-if="show" :value="submitVals"></bpe-goodsize-tmp>
2023-12-17 17:04:27 +00:00
</template>
<template v-slot:footer>
<view class="blcok-white-noradius" style="margin-top: 0;margin-bottom: 0;">
<u-button @click="handleSubmitValue()" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;"
>确认</u-button>
</view>
</template>
</tpx-layout>
2023-12-17 16:16:18 +00:00
</view>
</tpx-dialog>
</template>
<script>
2024-01-29 10:48:55 +00:00
import BpeGoodsizeTmp from "@/components/buns-post-edit-templates/bpe-goodsize-tmp"
2023-12-17 16:16:18 +00:00
export default {
2024-01-29 10:48:55 +00:00
components: { BpeGoodsizeTmp },
watch: {
show(v){
if(v) {
this.submitVals = JSON.parse(JSON.stringify(this.value))
}
}
},
2023-12-17 16:16:18 +00:00
props: {
show: {
default () {
return false
}
},
value: {
default () {
2024-01-29 10:48:55 +00:00
return {
}
2023-12-17 16:16:18 +00:00
}
}
},
data() {
return {
2024-01-29 10:48:55 +00:00
submitVals: {}
2023-12-17 16:16:18 +00:00
}
},
created() {
},
onHide() {
},
2024-01-29 10:48:55 +00:00
unmounted() {
},
2023-12-17 16:16:18 +00:00
methods: {
handleCloseModal() {
this.$emit('update:show', false)
},
2024-01-29 10:48:55 +00:00
handleSubmitValue() {
const val = this.submitVals
this.$emit('onSure', val)
this.$emit('update:value', val)
2023-12-17 16:16:18 +00:00
this.handleCloseModal()
}
}
}
</script>
<style scoped lang="scss">
.shet-cont{
padding: 10rpx 0 30rpx 0;
}
2023-12-17 17:04:27 +00:00
.jsfm-item{
margin-top: 30rpx;
}
2023-12-17 16:16:18 +00:00
</style>