<template>
  <div>
    <div class="content-head">
      <dataBreadcrumb :breads="breads"></dataBreadcrumb>
      <h3>查看</h3>
      <div>查看基本信息、企业资质文件</div>
    </div>
    <div class="detail-list">
      <div>
        <h5>基本信息</h5>
        <ul class="flex">
          <li>  
            <div>单位名称</div>
            <div>{{detail.companyName}}</div>
          </li>  
		  <li>
		    <div>法人姓名</div>
		    <div>{{detail.legalPersonName}}</div>
		  </li>
		  <li>
		    <div>统一社会信用代码</div>
		    <div>{{detail.socialCode}}</div>
		  </li>
		  <li>
		    <div>行政区域 </div>
		    <div>{{detail.companyName}}</div>
		  </li>      
		  <li>
		    <div>单位性质</div>
		    <div>{{detail.companyNature}}</div>
		  </li>
		  <li>
		    <div>单位所在地</div>
		    <div>{{detail.location}}</div>
		  </li>
		
		  <li>
		    <div>注册资本(万元)</div>
		    <div>{{detail.registeredCapital}}</div>
		  </li>
		  <li>
		    <div>联系地址</div>
		    <div>{{detail.contactAddress}}</div>
		  </li>   
		  <li>
		    <div>联系人姓名</div>
		    <div>{{detail.companyName}}</div>
		  </li>
		  <li>
		    <div> 手机号 </div>
		    <div>{{detail.legalPersonPhone}}</div>
		  </li>
		  <li>
		    <div>电子邮箱 </div>
		    <div>{{detail.companyName}}</div>
		  </li>
        </ul>
        <div class="detail-item">
          <div>经营范围</div>
          <div>一般项目：技术服务，技术开发</div>
        </div>
		 <div class="detail-item">
		  <div>行业类型</div>
		  <div>{{detail.businessScope}}</div>
		</div>
      </div>
      <div class="operation">
        <el-button @click="back">返回</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import {bidderDetail} from '@api/purchaser/supply'
	
import dataBreadcrumb from '@components/dataBreadcrumb.vue'
export default {
  components: {
    dataBreadcrumb
  },
  data() {
    return {
	 detail:{},
      breads: ['招标管理', '招标项目管理', '工作台'], 
    }
  },
  created() {
  	this.getbidderDetail();
  },
  methods: {
      async getbidderDetail() {
          try {
			 let companyId=localStorage.getItem("companyId")
            const {
              data,
              code
            } = await bidderDetail(companyId)
            if (code === 200) {
              this.detail = data
            }
          } catch (e) {
            console.log(e)
          }
        }
  }

}
</script>


<style scoped>
	.detail-list>div>ul>li {
		margin-right: 150px;
		margin-bottom: 50px;
		width: 180px
	}
	
	.detail-list>div>ul {
		flex-wrap: wrap;
		margin-left: 30px;
		margin-top: 20px;
	}
	
	.detail-head {
		margin-left: 30px;
		padding-top: 10px;
	}
	
	.detail-head>h3 {
		font-weight: bold;
		margin-top: 10px;
		margin-bottom: 10px;
	}
	
	.detail-list {
		box-sizing: border-box;
		padding-top: 20px;
		background-color: #F0F2F5;
		margin-top: 10px;
	}
	
	.detail-list>div {
		background-color: #FFFF;
		padding-bottom: 20px;
	}
	
	.detail-list h5 {
		font-weight: bold;
		height: 50px;
		line-height: 50px;
		border-bottom: 1px solid #F0F2F5;
		box-sizing: border-box;
		padding-left: 30px;
	}
	
	.detail-item {
		margin-left: 30px;
		margin-bottom: 30px;
	}
	
	.detail-item>div:first-child {
		margin-bottom: 10px;
	}
	.operation {
		box-sizing: border-box;
 height: 80px;
 padding:20px 20px 0 0;
		margin-top: 10px;
		margin-bottom: 10px;
		display: flex;
		justify-content: flex-end;
	}
	
</style>
