<template>
    <template v-if="item.storageType === '2'">
        <seed-source-card :item="item" :dict="{ pt_seed_instore_type, pt_seed_type, pt_fungus_code_type }" :isInstoreDate="isInstoreDate" :showInOutAmount="showInOutAmount"></seed-source-card>
    </template>
    <template v-if="item.storageType === '4'">
        <fresh-goods-card :item="item" :dict="{ pt_fresh_instore_type }" :isInstoreDate="isInstoreDate" :showInOutAmount="showInOutAmount"></fresh-goods-card>
    </template>
    <template v-if="item.storageType === '5'">
        <medicine-card :item="item" :dict="{ st_medicine_process_type }" :isInstoreDate="isInstoreDate" :showInOutAmount="showInOutAmount"></medicine-card>
    </template>
</template>
<script lang="ts" setup>
import SeedSourceCard from '@/plant/models/warehouseCard/seed-source-card.vue';
import FreshGoodsCard from '@/plant/models/warehouseCard/fresh-goods-card.vue';
import MedicineCard from '@/plant/models/warehouseCard/medicine-card.vue';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { pt_seed_instore_type, pt_seed_type, pt_fungus_code_type, st_medicine_process_type, pt_fresh_instore_type } = toRefs<any>(proxy?.useDict('pt_seed_instore_type', 'pt_seed_type', 'pt_fungus_code_type', 'st_medicine_process_type', 'pt_fresh_instore_type') || {});
const props = defineProps({
    item: {
        type: Object,
        default: () => ({}),
    },
    isInstoreDate: {
        type: Boolean,
        default: false,
    },
    showInOutAmount: {
        type: Boolean,
        default: true,
    },
});

</script>