<template>
  <div>
    <el-card class="my-card">
      <div style="display: flex">
        <div class="el-icon-tickets" style="font-size: 38px; color: blue; margin-right: 10px" />
        <div>
          <p style="font-size: 18px; font-weight: bolder; margin-bottom: 10px">利率测算报告</p>
          <span>创建时间：{{ detail.time }}</span>
        </div>
      </div>
      <el-button @click="goBack()">返回</el-button>
    </el-card>
    <el-card>
      <el-tabs v-model="activeName" class="tabs-container">
        <el-tab-pane label="利率测算报告" name="report">
          <div class="title">
            <span class="left-line">客户基本信息</span>
            <div class="el-icon-arrow-up" />
          </div>
          <el-row class="bordered-row">
            <el-col :span="6">
              <span class="gray-title border-top-left">证件号</span>
            </el-col>
            <el-col :span="6">
              <span class="border-top-left">{{ data.custBasicData.custId }}</span>
            </el-col>
            <el-col :span="6">
              <span class="gray-title border-top-left">客户姓名</span>
            </el-col>
            <el-col :span="6">
              <span class="border-top-left">{{ data.custBasicData.custName }}</span>
            </el-col>
          </el-row>
        </el-tab-pane>
        <el-tab-pane label="利率审批流程" name="process" />
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      detail: {
        time: '2024-10-12 10:21:09'
      },
      activeName: 'report',
      data: {
        custBasicData: {
          custId: 330326196111522213,
          custName: '张三',
          loanReceiptTime: '1年以内（含）',
          guaranteeWay: '信用',
          loanAmount: '500000.00',
          loanProduct: '普通信用保证类贷款',
          loanUseWay: '经营性贷款',
          payBackWay: '不分期',
          depositLoan: '否'
        }
      }
    };
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped>
.my-card >>> .el-card__body {
  display: flex;
  justify-content: space-between;
}
.tabs-container >>> .el-tabs__header .is-top {
  display: flex;
  justify-content: center;
}
.title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(232, 232, 232);
  padding-bottom: 10px;
}
.left-line {
  border-left: 2px solid blue;
  padding-left: 15px;
}
.bordered-row {
  border: 1px solid rgb(204, 204, 204);
  border-top: none;
  border-left: none;
  padding: 10px;
}
.gray-title {
  background-color: rgb(240, 242, 245);
  color: rgb(89, 89, 89);
}
.border-top-left {
  border: 1px solid rgb(204, 204, 204);
  border-right: none;
  border-bottom: none;
  padding: 10px;
}
</style>
