<template>
    <tr>
        <td class="label" colspan="2">录入人</td>
        <td colspan="3">{{props.data.inputUserName}}</td>
        <td class="label" colspan="2">推荐人</td>
        <td colspan="3">{{props.data.referee}}</td>
    </tr>
    <tr>
        <td class="label" colspan="2">部门</td>
        <td colspan="3">{{props.data.referee}}</td>
        <td class="label" colspan="2">角色</td>
        <td colspan="3">{{props.data.inputRole}}</td>
    </tr>
    <tr>
        <td class="label" colspan="2">姓名</td>
        <td class="label">年龄</td>
        <td colspan="2" class="label">身份证号</td>
        <td class="label">属相</td>
        <td class="label" colspan="2">婚姻状况</td>
        <td colspan="2" class="label">电话</td>
    </tr>
    <tr>
        <td colspan="2">{{props.data.name}}</td>
        <td>{{props.data.age}}</td>
        <td colspan="2">{{props.data.idCard}}</td>
        <td>{{props.data.zodiac}}</td>
        <td colspan="2">{{props.data.marriage
                  ? Marriage?.find((v) => v.value === props.data.marriage)?.label
                  : ''}}</td>
        <td colspan="2">{{props.data.phone}}</td>
    </tr>
    <tr>
        <td class="label" colspan="2">学历</td>
        <td class="label">职业</td>
        <td colspan="2" class="label">电子邮箱</td>
        <td class="label">月收入</td>
        <td class="label" colspan="2">预留工作单位</td>
        <td colspan="2" class="label">预留家庭住址</td>
    </tr>
    <tr>
        <td colspan="2">{{props.data.qualification}}</td>
        <td>{{props.data.career}}</td>
        <td colspan="2">{{props.data.email}}</td>
        <td>{{props.data.monthlyIncome}}</td>
        <td colspan="2">{{props.data.reserveWorkUnit}}</td>
        <td colspan="2">{{props.data.reserveAddress}}</td>
    </tr>
    <tr>
        <td rowspan="2" class="label" colspan="2">是否有起诉案件</td>
        <td rowspan="2" class="label">案件描述</td>
        <td rowspan="2" class="label">打卡收入</td>
        <td rowspan="2" class="label">打卡银行</td>
        <td colspan="3" class="label" >车</td>
        <td colspan="2" class="label">夫妻房产</td>
    </tr>
    <tr>
        <td class="label">数量</td>
        <td class="label" colspan="2">市值</td>
        <td class="label">数量（套）</td>
        <td class="label">市值</td>
    </tr>
    <tr>
        <td colspan="2">{{props.data.sueCaseId == 'Y' ? '是' : '否'}}</td>
        <td>{{props.data.caseType}}</td>
        <td>{{props.data.checkInIncome}}</td>
        <td>{{props.data.checkInBank}}</td>
        <td>{{props.data.carNum}}</td>
        <td colspan="2">{{props.data.carPrice}}</td>
        <td>{{props.data.houseNum}}</td>
        <td>{{props.data.housePrice}}</td>
    </tr>
    <tr>
        <td class="label" colspan="2">公积金及金额</td>
        <td  colspan="2" class="label">理财型保单 、股票 、基金 、大额存款</td>
        <td class="label">是否有营业执照</td>
        <td class="label">子女工作是否需要政审</td>
        <td class="label" colspan="2">贷款类型</td>
        <td class="label" colspan="2">备注<br />（个人情况说明）</td>
    </tr>
    <tr>
        <td colspan="2">{{props.data.providentFund}}</td>
        <td colspan="2">{{props.data.insurance}}</td>
        <td>{{props.data.hasBusinessLicense == 'Y' ? '是' : '否'}}</td>
        <td>{{props.data.needPoliticalReview == 'Y' ? '是' : '否'}}</td>
        <td colspan="2">{{props.data.hasLoan == 'Y' ? '是' : '不是'}}抵押类贷款，人保贷款，公积金贷款，经营贷，担保、联名担保、保证类贷款，保险类贷款（保单贷），对应名下有理财保险，分红保险，现金分期，装修贷，网贷/信用贷/信用卡与资产相关联的（如与房、车、营业执照（法人/个体）、商铺、公积金等），先息后本、按期结息自由还本</td>
        <td colspan="2">{{props.data.remark}}</td>
    </tr>
</template>
<script setup lang="jsx" name="caseDetail">
    import { useDict } from '@/hooks/useDict';
    const { Marriage } = useDict("Marriage");
    const props = defineProps({
        data: Object
    })
</script>
<style lang="scss" scoped>
table {
  width: calc(100%);
  border-collapse: collapse;
}
td {
  border: 1px solid #000;
  background: #fff;
  width: 150px;
  line-height: 11px;
  height: 40px;
  font-size: 14px;
  text-align: center;
  padding-left: 5px;
  word-wrap:break-word;
  word-break:break-all;
  color: #000;
  &.label {
    -webkit-print-color-adjust: exact;
    background-color: #dfeaf5;
    font-weight: 400 !important;
  }
}
</style>