<template>
  <el-card shadow="never">
    <template #header>
      <div class="card-header">
        <span>确认信息</span>
      </div>
    </template>
    <div class="">
      <el-row>
        <el-col :span="12">
          <el-form label-width="145px" label-position="left">
            <el-form-item label="姓名">
              {{ formData.contactName }}
            </el-form-item>
            <el-form-item label="身份证">
              {{ formData.identityCard }}
            </el-form-item>

            <el-form-item label="身份证图片">
              <div class="mr20">
                <el-image :src="formData.portraitFace" style="width: 200px; height: 130px" fit="cover"/>
                <div style="text-align: center;font-size: 14px;color: #626566;">人像面</div>
              </div>

              <div>
                <el-image :src="formData.nationalEmblemFace" style="width: 200px; height: 130px" fit="cover"/>
                <div style="text-align: center;font-size: 14px;color: #626566;">国徽面</div>
              </div>
            </el-form-item>
          </el-form>
        </el-col>
        <el-col :span="12">
          <el-form label-width="145px" label-position="left">
            <el-form-item label="企业名称">
              {{ formData.name }}
            </el-form-item>
            <el-form-item label="法人代表">
              {{ formData.legalPerson }}
            </el-form-item>

            <el-form-item label="企业营业执照">
              <div class="mr20">
                <el-image :src="formData.businessLicense" style="width: 200px; height: 130px" fit="cover"/>
              </div>
            </el-form-item>
          </el-form>
        </el-col>
        <el-col :span="12">
          <el-form label-width="145px" label-position="left" style="padding-top: 30px">
            <el-form-item label="手机号">
              {{ formData.mobile }}
            </el-form-item>

            <el-form-item label="承诺书上传">
              <div class="mr20">
                <el-image :src="formData.letterOfCommitment" style="width: 132px; height: 200px" fit="cover"/>
              </div>
            </el-form-item>
          </el-form>
        </el-col>
      </el-row>
    </div>
  </el-card>
</template>

<script setup>
import { defineProps } from 'vue'

defineProps({
  formData: {
    type: Object
  }
})

</script>

<style scoped lang="scss">
@import url('./base.scss');

.el-form-item {
  margin-bottom: 5px;
}
</style>
