printApplication.vue 17.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
<template>
  <div>
    <div id="printMe" style="width: 100%;height: 100%;background-color: #f5f5f5;padding: 5px;">
    <div style="overflow-x: auto;width: 100%;height: 100%;background: #fff;text-align: center;padding: 4px;overflow-y: scroll;">
      <div style="font-size: 24px;font-weight: bolder;margin: 20px 0px;">不动产登记申请书</div>
      <div style="display:flex">
        <div>
          <table cellpadding="0" cellspacing="0" style="width: 100%;color: #333;">
            <col width="30" />
            <col width="50" />
            <col width="160" />
            <col width="50" />
            <col width="120" />     
            <tr>
              <td rowspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">收件</td>
              <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">编号</td>
              <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">0000001</td>
              <td rowspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">收件人</td>
              <td rowspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">超级管理员</td>            
            </tr>
            <tr>
              <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">日期</td>
              <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">2022/12/8</td>
            </tr>
          </table>
        </div>
        <div style="margin-left: 20px;font-size: 14px;">
          单位:
          <span style="font-family:Wingdings;font-size:18px;color:red">&#254;</span>平方米
          <!-- <span style="font-family:Wingdings;font-size:40px;">&#250;</span> -->
          <span style="display: inline-block;border: 1px solid rgb(114, 113, 113);border-radius: 2px;box-sizing: border-box;width: 10px;height: 10px;margin-left:10px"></span>
          公顷(<span style="display: inline-block;border: 1px solid rgb(114, 113, 113);border-radius: 2px;box-sizing: border-box;width: 10px;height: 10px;"></span>亩)、万元  
        </div>
      </div>
      <div style="margin-top:20px"></div>
      <table cellpadding="0" cellspacing="0" style="width: 100%;color: #333;">
        <col width="80" />
        <col width="100" />
        <col width="180" />
        <col width="80" />
        <col width="60" />
        <col width="20" />
        <col width="180" />    
        <tr>
          <td rowspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;font-size: 16px">申请登记事由</td>
          <td colspan="6" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;text-align: left;">
            <span v-for="item in ywlxList" :key="item.value" style="margin:0px 8px">
              <span style="font-family:Wingdings;font-size:18px;color:red" v-if="item.checked">&#254;</span>
              <span style="display: inline-block;border: 1px solid rgb(114, 113, 113);border-radius: 2px;box-sizing: border-box;width: 10px;height: 10px;" v-else></span>
              {{item.name}}
            </span>
          </td>
        </tr>
        <tr>
          <td colspan="6" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;text-align: left;">
            <span v-for="item in djlxList" :key="item.value" style="margin:0px 8px">
              <span style="font-family:Wingdings;font-size:18px;color:red" v-if="item.checked">&#254;</span>
              <span class="check-box" style="display: inline-block;border: 1px solid rgb(114, 113, 113);border-radius: 2px;box-sizing: border-box;width: 10px;height: 10px;" v-else></span>
              {{item.name}}
            </span>
          </td>
        </tr>
        <tr>
          <td rowspan="14" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;font-size: 16px">申请人情况</td>
          <td colspan="6" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;font-size:16px;font-weight: bolder;text-align: center;">登记申请人</td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">权利人姓名(名称)</td>
          <td colspan="5" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-for="(item,index) in printData.qlrList" :index="index" :key="item.bsmSqr">
              {{item.sqrmc}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">身份证件种类</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">身份证</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">证件号</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-for="(item,index) in printData.qlrList" :index="index" :key="item.bsmSqr">
              {{item.zjh}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">通讯地址</td>
          <td colspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].txdz}}
            </span>
          </td>
          <td colspan="1" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">邮编</td>
          <td colspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].yb}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">法定代表人或负责人</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].frmc}}
            </span>
          </td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">联系电话</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].frdh}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">代理人姓名</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].dlrmc}}
            </span>
          </td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">联系电话</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].dlrdh}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">代理机构名称</td>
          <td colspan="5" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.qlrList.length > 0">
              {{printData.qlrList[0].dlrjg}}
            </span>
          </td>
        </tr>
        <tr>
          <td colspan="7" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;font-size:16px;font-weight: bolder;text-align: center;">登记申请人</td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">义务人姓名(名称)</td>
          <td colspan="5" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-for="(item,index) in printData.ywrList" :index="index" :key="item.bsmSqr">
              {{item.sqrmc}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">身份证件种类</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">身份证</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">证件号</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-for="(item,index) in printData.ywrList" :index="index" :key="item.bsmSqr">
              {{item.zjh}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">通讯地址</td>
          <td colspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].txdz}}
            </span>
          </td>
          <td colspan="1" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">邮编</td>
          <td colspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].yb}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">法定代表人或负责人</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].frmc}}
            </span>
          </td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">联系电话</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].frdh}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">代理人姓名</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].dlrmc}}
            </span>
          </td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">联系电话</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].dlrdh}}
            </span>
          </td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">代理机构名称</td>
          <td colspan="5" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">
            <span v-if="printData.ywrList.length > 0">
              {{printData.ywrList[0].dljg}}
            </span>
          </td>
        </tr>
        <tr>
          <td rowspan="6" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;font-size: 16px">不动产情况</td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">坐落</td>
          <td colspan="5" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">{{printData.bdcdyInfo.zl}}</td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">不动产单元号</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">{{printData.bdcdyInfo.bdcdyh}}</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">不动产类型</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">房屋</td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">面积</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">111.3㎡</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">用途</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">城镇住宅用地</td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">原不动产权属证书号</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">xxxx号</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">用海类型</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;"></td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">构筑物类型</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;"></td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">林种</td>
          <td colspan="3" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;"></td>
        </tr>
        <tr>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;font-size: 16px">抵押情况</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">被担保债权数额(最高债权数额)</td>
          <td style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">{{printData.dyaqQlxx.zgzqqdss}}</td>
          <td colspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">债务履行期限(债权确定期间)</td>
          <td colspan="2" style="border: 1px solid rgb(194, 191, 191);line-height: 30px;padding: 0 4px;">{{printData.dyaqQlxx.dyqx}}</td>
        </tr>
      </table>
    </div>
    <button @click="printView()"> 打印预览  </button>
  </div>
  </div>
</template>
<script>

import { mapGetters } from 'vuex';
import { getLodop } from "@/utils/LodopFuncs";
import { getPrintApplicationInfo } from "@/api/fqsq.js";
export default {
  components: {},
  computed: {
    ...mapGetters(['dictData'])
  },
  props: ["formData"],
  data () {
    return {
      ywlxList: [
        {name: '国有建设用地使用权',value: 'A03',checked:true},
        {name: '国有建设用地使用权/房屋所有权',value: 'A04',checked:false},
      ],
      djlxList: [
        {name: '首次登记',value: '100',checked:true},
        {name: '转移登记',value: '200',checked:false},
        {name: '变更登记',value: '300',checked:false},
        {name: '注销登记',value: '400',checked:false},
        {name: '更正登记',value: '901',checked:false},
        {name: '异议登记',value: 'B38',checked:false},
        {name: '预告登记',value: '902',checked:false},
        {name: '查封登记',value: 'B39',checked:false},
        {name: '其他___________',value: '99',checked:false},
      ],
      printData: {
        qlrList: {},
        ywrList: {},
        bdcdyInfo: {},
        dyaqQlxx: {}
      }
    }
  },
  mounted() {
    this.queryData();
  },
  methods: {
    printView(){
      let lodop = getLodop();
      lodop.PRINT_INIT("测试");
      //纵坐标开始点位,横坐标开始点位,纸张宽度,纸张高度
      lodop.ADD_PRINT_HTM(0,10,760,1200,document.getElementById("printMe").innerHTML);
      lodop.PREVIEW();
    },
    queryData(){
      getPrintApplicationInfo(this.formData).then(res => {
        if(res.code == 200){
          this.printData = res.result 
        }
      })
    }
  }
}
</script>
<style scoped lang='scss'>
.zdxx { 
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  padding: 5px;
}

.print-title{
  font-size: 24px;
  font-weight: bolder;
  margin: 20px 0px;
}

.print-unit{
  line-height: 60px;
  margin-left: 20px;
  font-size: 14px;
}

.left-title{
  font-size: 16px
}

.inline-title{
  font-size:16px;
  font-weight: bolder;
}

.text-left {
  text-align: left;
}

.check-box {
  display: inline-block;
  border: 1px solid rgb(114, 113, 113);
  border-radius: 2px;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
}


.tablebox {
  overflow-x: auto;
  width: 100%;
  height: 100%;
  background: #fff;
  text-align: center;
  padding: 4px;
  overflow-y: scroll;

  .printTable {
    width: 100%;
    color: #333;

    td {
      border: 1px solid rgb(194, 191, 191);
      line-height: 30px;
      padding: 0 4px;
    }

    .title {
      line-height: 68px;
      font-size: 20px;
    }

    .unit {
      text-align: right;
    }

    .title2 {
      writing-mode: vertical-lr;
      letter-spacing: 6px;
    }

    .bhqk {
      padding: 0;

      .box {
        width: 745px;
        overflow: auto;
      }
      table {
        .bhqkTh {
          width: 110px;
          line-height: 40px;
          background-color: #f5f5f5;
          border: 1px solid rgb(228, 228, 228);
          font-weight: bold;
        }

        td {
          width: 180px;
        }
      }
    }
  }
}
</style>