<template>
    <el-descriptions :border="border" :column="1">
        <el-descriptions-item label="维保名称" span="2">{{ maintenance.maintenanceName }}
        </el-descriptions-item>
        <el-descriptions-item label="生产厂商">{{ maintenance.manufacturer }}</el-descriptions-item>
        <el-descriptions-item label="型号">{{ maintenance.model }}</el-descriptions-item>
        <el-descriptions-item label="序列号">{{ maintenance.serialNumber }}</el-descriptions-item>
        <el-descriptions-item label="供货商">{{ maintenance.supplier }}</el-descriptions-item>
        <el-descriptions-item label="生产日期">
            {{ parseTime(maintenance.productionTime, '{y}-{m}-{d}') }}
        </el-descriptions-item>
        <el-descriptions-item label="船检编号">{{ maintenance.shipInspectionNo }}</el-descriptions-item>
    </el-descriptions>
</template>

<script lang="ts" setup>
const props = defineProps({
    maintenance: {
        type: Object,
        default: {},
    },
    border: {
        type: Boolean,
        default: true,
    }
});

</script>