<template>
    <div class="basic-info-detail">
        <div class="basic-info-title">
            <img src="@/assets/enterpriseLibrary/legalperson.png" alt="法人信息">
            <span>法人信息</span>
        </div>

        <div class="detail-content">
            <!-- 身份证人像面 -->
            <div class="detail-item">
                <div class="item-label">身份证人像面</div>
                <div class="item-value">
                    <el-image :src="url" :preview-src-list="srcList" class="license-image">
                    </el-image>
                </div>
            </div>
            <!-- 身份证国徽面 -->
            <div class="detail-item">
                <div class="item-label">身份证国徽面</div>
                <div class="item-value">
                    <el-image :src="url" :preview-src-list="srcList" class="license-image">
                    </el-image>
                </div>
            </div>
            <!-- 法人姓名 -->
            <div class="detail-item">
                <div class="item-label">法人姓名</div>
                <div class="item-value">{{ enterpriseName || '中讯科技股份有限公司' }}</div>
            </div>

            <!-- 法人身份证号 -->
            <div class="detail-item">
                <div class="item-label">法人身份证号</div>
                <div class="item-value">{{ enterpriseCode || '12345678901313132390' }}</div>
            </div>

            <!-- 身份证有效期 -->
            <div class="detail-item">
                <div class="item-label">身份证有效期</div>
                <div class="item-value">{{ registeredCapital || '11000.00' }}</div>
            </div>

            <!-- 法人职务 -->
            <div class="detail-item">
                <div class="item-label">法人职务</div>
                <div class="item-value">{{ businessTerm || '2015/01/01-2035/01/01' }}</div>
            </div>

            <!-- 法人联系方式 -->
            <div class="detail-item">
                <div class="item-label">法人联系方式</div>
                <div class="item-value">{{ residence || '安徽省合肥市蜀山区望江西路100号' }}</div>
            </div>

        </div>
    </div>
</template>

<script>
import UploadFile from '@/views/common/UploadFile.vue'
import basicInfo from '@/assets/enterpriseLibrary/basic-info.png'
export default {
    name: 'LegalPersonDetail',
    components: {
        UploadFile
    },
    data() {
        return {
            name: '',
            enterpriseName: '',
            enterpriseCode: '',
            registeredCapital: '',
            businessTerm: '',
            residence: '',
            businessScope: '',
            fileList: [],
            url: basicInfo,
            srcList: [basicInfo],
        }
    },
    methods: {

    },
}
</script>

<style scoped lang="scss">
.basic-info-title {
    display: flex;
    align-items: center;
    margin: 10px 0;

    span {
        margin: 0 5px;
        font-size: 20px;
    }
}

.detail-content {
    .detail-item {
        margin-bottom: 16px;
        .item-label {
            color: #424242;
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .item-value {
            color: #424242;
            font-size: 16px;
            line-height: 1.5;

            .license-image {
                max-width: 200px;
                max-height: 120px;
                border-radius: 6px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                object-fit: cover;
            }
        }
    }
}
</style>