You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
626 B
28 lines
626 B
<template>
|
|
<view class="card_view" v-if="ShowPackingNumber">
|
|
<text class="card_packing_code">{{ title }}</text>
|
|
<text class="card_content">{{ packingCode }}</text>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import {getSwitchInfoByCode} from '@/common/basic.js';
|
|
import {onMounted} from "vue";
|
|
import {ref} from "vue";
|
|
const props = defineProps({
|
|
packingCode: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '包装'
|
|
}
|
|
})
|
|
const ShowPackingNumber = ref(true)
|
|
onMounted(()=>{
|
|
ShowPackingNumber.value = getSwitchInfoByCode('ShowPackingNumber')
|
|
})
|
|
</script>
|
|
|
|
<style></style>
|
|
|