<template>
  <div class="app-container">
    <van-nav-bar
      title="鉴证详情"
      left-arrow
      fixed
      placeholder
      @click-left="onClickLeft"
    />
<!--    <p class="title">{{attestationDetail.projectName}}成交公示</p>-->
    <van-cell title="鉴证书编号" :value="attestationDetail.jzsNumOne+'第'+attestationDetail.jzsNumTwo+'号'" />
    <van-cell title="项目名称" :value="attestationDetail.projectName" />
    <van-cell title="项目编号" :value="attestationDetail.projectCode" />
    <van-cell title="转出方" :value="attestationDetail.outName" />
    <van-cell title="转出行为批准机构名称" :value="attestationDetail.pzjg" />
    <van-cell title="法定代表人（转出方）" :value="attestationDetail.legalPerson" />
    <van-cell title="注册号（身份证）" :value="attestationDetail.idCardNum" />
    <van-cell title="受让方" :value="attestationDetail.inName" />
    <van-cell title="单位性质" :value="attestationDetail.companyNature" />
    <van-cell title="法定代表人（受让方）" :value="attestationDetail.realname" />
    <van-cell title="注册资本" :value="attestationDetail.companyCapital" />
    <van-cell title="注册号（身份证）" :value="attestationDetail.companyLicense" />
    <van-cell title="标的物情况" :value="attestationDetail.szCondition" />
    <van-cell title="转出面积（数量）" :value="attestationDetail.allCount+attestationDetail.allCountUnit" />
    <van-cell title="转出期限" :value="attestationDetail.outStartEndTime" />
    <van-cell title="确权机构" :value="attestationDetail.organization" />
    <van-cell title="权证编号" :value="attestationDetail.warrantCode" />
    <van-cell title="转出方式" :value="attestationDetail.rollout" />
    <van-cell title="交易方式" :value="attestationDetail.dealType" />
    <van-cell title="交易底价" :value="attestationDetail.price+attestationDetail.unit" />
    <van-cell title="成交金额" :value="attestationDetail.dealMoneySum+'元'" />
    <van-cell title="合同签署日期" :value="attestationDetail.contractDate" />
    <van-cell title="合同编号" :value="attestationDetail.contractCode" />
    <van-cell title="附记" :value="attestationDetail.jzsRemark" />
    <van-cell title=" " :value="'农村产权交易鉴证书'" />
    <van-cell title=" " :value="attestationDetail.jzsSignDate" />
  </div>
</template>

<script>
import { AttestationDetail } from "@/api/notice/index";
export default {
  name: "noticeDetail",
  data() {
    return {
      attestationDetail:''
    };
  },
  created() {
    this.getDetail();
  },
  methods: {
    //成交公告集合
    getDetail(){
      console.log(this.$route.query.id)
      AttestationDetail(this.$route.query.id).then(response => {
        console.log(response)
        this.attestationDetail = response.data;
        //转出方式字典
        this.getDicts("rollout_type").then(res => {
          this.attestationDetail.rollout = this.selectDictLabel(res.data,response.data.rollout);
        });
        //交易方式字典
        this.getDicts("deal_type").then(res => {
          this.attestationDetail.dealType = this.selectDictLabel(res.data,response.data.dealType);
        });
        //面积单位字典
        this.getDicts("area_unit").then(res => {
          this.attestationDetail.allCountUnit = this.selectDictLabel(res.data,response.data.allCountUnit);
        });
        //成交价格字典
        this.getDicts("price_unit").then(res => {
          this.attestationDetail.unit = this.selectDictLabel(res.data,response.data.unit);
        });
        //公司性质字典
        this.getDicts("company_nature").then(res => {
          this.attestationDetail.companyNature = this.selectDictLabel(res.data,response.data.companyNature);
        });
      });
    },

  },
};
</script>

<style scoped lang="scss">
.app-container {
  padding: 0 0 0.5rem;
  background: #ffffff;
}
.title{
  font-size: 0.5rem;
  margin-bottom: 0.5rem;
}
.van-row{
  margin-bottom: 0.4rem;
}
.van-col{
  font-size: 0.4rem;
  color: #666666;
}
</style>
