<template>
  <div class="basic-info">
    <cy-info-title>基础信息</cy-info-title>
    <el-form
      :model="ruleForm"
      label-position="top"
      label-width="150px"
      class="rule-form-orange"
    >
      <el-form-item label="资方授信编号">
        <el-input v-model="ruleForm.creditNo" disabled placeholder="请输入资方授信编号" />
      </el-form-item>
      <el-form-item label="机构类型">
        <el-input v-model="ruleForm.institutionType" disabled placeholder="请输入机构类型" />
      </el-form-item>
      <el-form-item label="资方名称">
        <el-input v-model="ruleForm.capitalName" disabled placeholder="请输入资方名称" />
      </el-form-item>
      <el-form-item label="客户经理">
        <el-input v-model="ruleForm.belongName" disabled placeholder="请输入客户经理" />
      </el-form-item>
      <el-form-item label="部门">
        <el-input v-model="ruleForm.orgName" disabled placeholder="请输入机构类型" />
      </el-form-item>
      <el-form-item label="授信状态">
        <el-input v-model="ruleForm.creditStatus" disabled placeholder="请输入机构类型" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    detailsInfo: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      ruleForm: {
        creditNo: '',
        institutionType: '',
        capitalName: '',
        belongName: '',
        orgName: '',
        creditStatus: ''
      }
    }
  },
  watch: {
    detailsInfo: {
      handler(newV) {
        if (newV && Object.keys(newV).length) {
          this.ruleForm = JSON.parse(JSON.stringify(newV))
        }
      },
      immediate: true
      // deep: true
    }
  }
}
</script>

<style lang="scss" scoped>
.basic-info {

}

</style>
