<template>
  <div class="assess">
    <el-form ref="ruleForm" :model="ruleForm" label-position="top" label-width="120px" class="rule-form-orange">
      <cy-info-title type="center">项目授信</cy-info-title>
      <el-form-item label="是否准入" prop="admitted">
        <el-input v-model="ruleForm.admitted" placeholder="请输入是否准入" disabled />
      </el-form-item>
      <el-form-item label="核心企业-固定额度得分" prop="fixedCreditScore">
        <el-input v-model="ruleForm.fixedCreditScore" placeholder="请输入核心企业-固定额度得分" disabled />
      </el-form-item>
      <el-form-item label="核心企业-专项额度得分" prop="specialQuotaScore">
        <el-input v-model="ruleForm.specialQuotaScore" placeholder="请输入核心企业-专项额度得分" disabled />
      </el-form-item>
      <el-form-item label="核心企业-固定额度（万元）" prop="fixedCredit">
        <el-input v-model="ruleForm.fixedCredit" placeholder="请输入核心企业-固定额度" disabled />
      </el-form-item>
      <el-form-item label="核心企业-专项额度（万元）" prop="specialQuota">
        <el-input v-model="ruleForm.specialQuota" placeholder="请输入核心企业-专项额度" disabled />
      </el-form-item>
      <el-form-item label="授信总额度（万元）" prop="creditLimit">
        <el-input v-model="ruleForm.creditLimit" placeholder="请输入授信总额度" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    assessInfo: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      ruleForm: {
        admitted: '',
        fixedCreditScore: '',
        specialQuotaScore: '',
        fixedCredit: '',
        specialQuota: '',
        creditLimit: ''
      },
      rules: {

      }
    }
  },
  watch: {
    assessInfo: {
      handler(newV) {
        if (newV && Object.keys(newV)) {
          this.ruleForm = {
            ...newV
          }
        }
      },
      immediate: true,
      deep: true
    }
  }
}
</script>

<style lang="scss" scoped>
.assess {
padding: 10px 15px;
}
</style>
