<template>
  <div>
    <BaseDialog
      width="900px"
      :isShow.sync="isCompanyDetailDialog"
      title="公司详情"
      @close="close"
      :appendToBody="true"
      :confirmStatus="false"
      :isShowFooter="false"
    >
      <div class="content">
        <detailList
          :column="2"
          :border="true"
          :listLabel="listLabel"
          :listData="listData"
        ></detailList>
      </div>
    </BaseDialog>
  </div>
</template>
  
  <script>
import detailList from "@/views/companyManagement/component/detailList";
import { getCompanyTypeList } from '@/views/companyManagement/component/typeList'
export default {
  components: { detailList },
  data() {
    return {
      listData: {},
      listLabel: [
        { label: "企业名称", value: "companyName" },
        { label: "登记机关", value: "registrationAuthority" },
        { label: "信用代码", value: "creditCode" },
        { label: "经验范围", value: "experienceScope" },
        {
          label: "企业类型",
          value: "companyLevel",
          type: "type",
          options: getCompanyTypeList(),
        },
        { label: "联系人", value: "companyContacts" },
        { label: "注册资本", value: "registeredCapital" },
        { label: "联系电话", value: "contactPhone" },
        { label: "法定代表", value: "legalRepresentative" },
        { label: "所在部门", value: "department" },
        { label: "企业地址", value: "companyAddress" },
        { label: "所属岗位", value: "position" },
        { label: "成立日期", value: "establishDate", type: "time" },
        { label: "预览", value: "businessImg", type: "img" },
        { label: "营业期限", value: "operateDate", type: "time" },
        { label: "备注", value: "companyRemarks" },
      ],
      ruleForm: {},
      isCompanyDetailDialog: false,
    };
  },

  mounted() {

  },

  methods: {
    openBoxs(row) {
      this.isCompanyDetailDialog = true;
      this.listData = row;
    },
    close() {},
  },
};
</script>
  
<style lang="scss" scoped>
.content {
  /deep/ .el-descriptions-item__label.is-bordered-label {
    color: #333;
    font-weight: bold;
    width: 110px;
  }
  /deep/ .el-descriptions--medium.is-bordered .el-descriptions-item__cell {
    width: 255px;
  }
}
</style>
  