<template>
  <div>
    <el-dialog
      :title="title"
      :visible.sync="dialogVisible"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      :destroy-on-close="true"
      width="50%"
    >
      <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="160px" class="demo-ruleForm">
        <el-form-item label="业务号" prop="bizNo">
          <span>{{ ruleForm.bizNo }}</span>
        </el-form-item>
        <el-form-item label="除名决定事实" prop="ancheyear">
          <span>{{ ruleForm.truth }}</span>
        </el-form-item>
        <el-form-item label="除名决定的理由" prop="reason">
          <span>{{ ruleForm.reason }}</span>
        </el-form-item>
        <el-form-item label="除名决定的依据" prop="ancheyear">
          <span>{{ ruleForm.law }}</span>
        </el-form-item>
        <el-form-item label="除名决定的后果" prop="ancheyear">
          <span>{{ ruleForm.result }}</span>
        </el-form-item>
        <el-form-item label="关联企业" prop="ancheyear">
          <div v-for="item in entList" :key="item">
            {{ item.entName }}
          </div>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="dialogVisible = false">关闭</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
import { expelledAnnouncementListBase } from '@/api/除名公告.js'
export default {
  data() {
    return {
      dataId: '',
      title: '',
      dialogVisible: false,
      ruleForm: {
        allowTime: 0,
        endTime: '',
        beginTime: '',
        ancheyear: '',
        uniscid: '',
        timeStamp: []
      },
      entList: [],
      ancheyearOptions: []
    }
  },
  created() {

  },
  mounted() {
  },
  methods: {
    openDialog(row) {
      this.dialogVisible = true
      this.title = '详情'
      this.ruleForm = row
      const params = {
        current: 1,
        size: 1000,
        entity: {
          bizId: row.id
        }
      }
      expelledAnnouncementListBase(params).then(res => {
        this.entList = res.data.records
      })
    }
  }
}
</script>

<style scoped lang="scss">

</style>
