<!-- 每日快速巡检 -->
<template>
    <div class="everyday-inspection">
        <div class="title-block">
            <div class="title-text">每日快速巡检</div>
            <div class="date-text">巡检日期: {{ date }}</div>
        </div>
        <div class="content-block">
            <div class="item-box-list">
                <template v-for="(item, index) in columnConfig" :key="index">
                    <div class="item-box">
                        <div class="left-side">
                            <img />
                        </div>
                        <div class="right-side">
                            <div class="number-label-text">{{ data[item.name] }}</div>
                            <div class="label-text">{{ item['label'] }}</div>
                        </div>
                    </div>
                </template>
            </div>
        </div>
    </div>
</template>
<script setup>
import { onMounted, ref } from 'vue';

const props = defineProps({
    data: {
        type: Object,
        default: () => ({})
    }
})

const date = ref('2025/10/10')

const columnConfig = ref([
    {
        label: '路线总里程 (公里)',
        icon: '',
        name: '',
    },
    {
        label: '完成率',
        icon: '',
        name: '',
    },
    {
        label: '复核率',
        icon: '',
        name: '',
    },
    {
        label: '派单数',
        icon: '',
        name: '',
    }
])

</script>
<style scoped lang="scss">
@use '@/styles/mixins.scss' as *;

.everyday-inspection {}

.item-box-list {
    display: flex;
    align-items: center;

    .item-box {
        display: flex;
        align-items: center;

        .number-label-text {}

        .label-text {}
    }
}
</style>