<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>
