<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="mainEnterpriseCount" class="one-form-item">
        <el-input v-model="detailsInfo.mainEnterpriseCount" disabled placeholder="请输入红线否决项" />
      </el-form-item>
      <el-form-item label="测算结论" prop="mainEnterpriseResult" class="one-form-item">
        <el-input v-model="detailsInfo.mainEnterpriseResult" disabled placeholder="请输入测算结论" />
      </el-form-item>
      <template v-if="hasGuaranteeEnterprise">
        <cy-info-title type="center">担保企业</cy-info-title>
        <el-form-item label="红线否决项" prop="guaranteeEnterpriseCount" class="one-form-item">
          <el-input v-model="detailsInfo.guaranteeEnterpriseCount" disabled placeholder="请输入红线否决项" />
        </el-form-item>
        <el-form-item label="测算结论" prop="guaranteeEnterpriseResult" class="one-form-item">
          <el-input v-model="detailsInfo.guaranteeEnterpriseResult" disabled placeholder="请输入测算结论" />
        </el-form-item>
      </template>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    detailsInfo: {
      type: Object,
      default: () => {
        return {
          mainEnterpriseCount: '',
          mainEnterpriseResult: '',
          guaranteeEnterpriseCount: '',
          guaranteeEnterpriseResult: ''
        }
      }
    },
    hasGuaranteeEnterprise: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      ruleForm: {
        mainEnterpriseCount: '',
        mainEnterpriseResult: '',
        guaranteeEnterpriseCount: '',
        guaranteeEnterpriseResult: ''
      }
    }
  }

}
</script>

<style lang="scss" scoped>
.assess {

}
</style>
