<template>
  <div id="detailInfo">
    <el-row>
      <el-col :span="24" class="top">
        <span class="shu"></span><span class="title">{{ formTitle }}</span>
      </el-col>
      <el-col :span="24">
        <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
          <span v-if="ruleForm.status === '1' || ruleForm.status === '2'">
            <el-form-item label="审核状态：">
              <span>{{ ruleForm.status === '0' ? '审核中' : ruleForm.status === '1' ? '审核通过' : '审核拒绝' }}</span>
            </el-form-item>
          </span>
          <el-form-item label="企业名称：">
            <el-input v-model="ruleForm.company_name" disabled></el-input>
          </el-form-item>
          <el-form-item label="工商注册地址：">
            <el-input v-model="ruleForm.registered_addr" disabled></el-input>
          </el-form-item>
          <el-form-item label="实际经营地址：">
            <el-input v-model="ruleForm.business_addr" disabled></el-input>
          </el-form-item>
          <el-form-item label="所属行业：">
            <el-select v-model="ruleForm.profession_one" placeholder="请选择" disabled> </el-select>
            <el-select v-model="ruleForm.profession_two" placeholder="请选择" disabled> </el-select>
            <el-select v-model="ruleForm.profession_three" placeholder="请选择" disabled> </el-select>
            <el-select v-model="ruleForm.profession_four" placeholder="请选择" disabled> </el-select>
          </el-form-item>
          <el-form-item label="融资联系人：">
            <el-input v-model="ruleForm.contacts" disabled></el-input>
          </el-form-item>
          <el-form-item label="联系人手机：">
            <el-input v-model="ruleForm.contact_number" disabled></el-input>
          </el-form-item>
          <el-form-item label="联系人职位：">
            <el-input v-model="ruleForm.contact_position" disabled></el-input>
          </el-form-item>
          <el-form-item label="	联系人邮箱：">
            <el-input v-model="ruleForm.contact_email" disabled></el-input>
          </el-form-item>
          <el-form-item label="固定电话：">
            <el-input v-model="ruleForm.telephone" disabled></el-input>
          </el-form-item>
          <span v-if="ruleForm.status === '0'">
            <el-form-item>
              <el-button type="primary" @click="submitForm()">审核通过</el-button>
              <el-button type="danger" @click="resetForm()">审核拒绝</el-button>
            </el-form-item>
          </span>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'detailInfo',
  props: {
    formTitle: null,
    ruleForm: null,
    rules: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    submitForm(ruleForm) {
      this.$emit('submitForm', { data: this.ruleForm });
    },
    resetForm(ruleForm) {
      this.$emit('resetForm', { data: this.ruleForm });
    },
  },
};
</script>

<style lang="less" scoped>
.top .shu {
  float: left;
  width: 4px;
  height: 20px;
  background: rgba(233, 2, 29, 1);
}
.top .title {
  float: left;
  padding: 0 10px;
  font-size: 16px;
  font-family: Source Han Sans SC;
  font-weight: bold;
  color: rgba(40, 40, 40, 1);
}
/deep/.el-button {
  color: #fff;
  background-color: red;
  border-color: red;
}
</style>
