djbfm.vue 2.41 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-07-19 09:52:42
-->
<template>
  <div class="djbfm">
    <el-button class="print" v-print="printObj">打印</el-button>
    <div class="fm" id="box">
      <p>
        <font style="">{{ info.sheng }}</font>
        省 (区、市)
        <font>{{ info.shi }}</font>
        市 (区)
        <font>{{ info.xian }}</font>
        区 (县、市)
      </p>
      <p>
        <font>{{ info.jdh }}</font>
        街道 (乡、镇)
        <font>{{ info.jfh }}</font>
        街坊 (村)
        <font>{{ info.zh }}</font>

      </p>
      <div class="title">不动产登记簿</div>
      <p>
        宗地/宗海号:
        <font>{{ info.zddm }}</font>
      </p>
      <div class="bottom">
        <p>
          登记机构:
          <font>{{ info.djjg }}</font>
        </p>
      </div>
    </div>
  </div>

</template>

<script>
  import { getDjbfm } from "@/api/djbDetail.js";

  export default {
    data () {
      return {
        printObj: {
          id: "box",
          //其他配置项,
        },
        //传递参数
        propsParam: this.$attrs,
        info: {},
      };
    },
    mounted () {
      this.loadData();
    },
    methods: {
      /**
       * @description: loadData
       * @author: renchao
       */
      loadData () {
        getDjbfm({ bdcdyid: this.propsParam.bdcdyid }).then((res) => {
          if (res.code === 200) {
            this.info = res.result;
          }
        })
      }
    }
  }
</script>
<style lang="scss" scoped>
  .djbfm {
    width: 100%;
    height: 100%;
    position: relative;
    .print {
      // background-color: #0079fe;
      z-index: 10;
      position: absolute;
      left: 11px;
      top: 5px;
    }
  }
  .fm {
    width: 100%;
    height: 100%;
    background: #fff;
    line-height: 45px;
    text-align: center;
    font-size: 18px;
    font-family: serif;
  }
  font {
    border-bottom: 1px solid #000;
    display: inline-block;
    padding: 0 15px;
    line-height: 16px;
  }

  .title {
    height: 40%;
    display: flex;
    font-size: 38px;
    color: #000;
    justify-content: center;
    align-items: center;
  }

  .bottom {
    position: absolute;
    bottom: 0px;
    text-align: center;
    width: 100%;
    left: 0;
    height: 100px;
    line-height: 100px;

    p {
      font-size: 28px;
    }

    font {
      font-size: 24px;
      line-height: 24px;
    }
  }
</style>