00a867b3 by renchao@pashanhoo.com

style:家庭房产

1 parent 1e651d41
import cookies from './util.cookies'
export function getUrlParam(paraName) {
export function getUrlParam (paraName) {
let url = document.location.toString();
let arrObj = url.split('?');
......@@ -22,7 +22,7 @@ export function getUrlParam(paraName) {
}
}
export function setToken(token) {
export function setToken (token) {
if (token === undefined) {
if (process.env.NODE_ENV === 'development') {
sessionStorage.removeItem('token')
......@@ -38,10 +38,26 @@ export function setToken(token) {
}
}
export function getToken() {
export function getToken () {
if (process.env.NODE_ENV === 'development') {
return sessionStorage.getItem('token')
}
return cookies.get('ACCESS_TOKEN')
}
// 获取当前时间
export function getNewDate (type = 1) {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0');
const day = String(now.getDate()).padStart(2, '0');
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
const seconds = String(now.getSeconds()).padStart(2, '0');
if (type == 1) {
return `${year}${month}${day}日`
} else {
return `${year}${month}${day}${hours}${minutes}${seconds}秒`
}
}
\ No newline at end of file
......
......@@ -110,7 +110,7 @@
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" v-show="false">
<embed id="LODOP_EM" type="application/x-print-lodop" width=700 height=500 pluginspage="install_lodop32.exe" />
</object>
<printView ref="printContent" v-show="false" />
<printView ref="printContent" :form="form" v-show="false" />
</div>
</template>
<script>
......
<!--
* @Description: 不动产查询证明打印模板
* @Autor: renchao
* @LastEditTime: 2023-06-28 11:27:37
* @LastEditTime: 2023-06-28 14:45:07
-->
<template>
<div class="printView" style="width:100%;padding:20px">
......@@ -18,13 +18,13 @@
text-align: center;">不动产登记信息查询证明</h2>
<h5 style=" text-align: center;
margin-top: 20px;
font-size: 18px;">查询证明编号: LS201803050045</h5>
font-size: 18px;">查询证明编号: {{form.djSqcxDO.cxbh}}</h5>
<p style="text-indent: 2em;
margin-top: 15px;
line-height: 24px;
font-size: 18px;">根据《不动产登记暂行条例》和《不动产登记资料查询暂行办法》
有关规定,经线上查询不动产登记信息系统,权利人: 杜林
,证件号:612322197805120010,截止2022年10月17日 13时15分13秒
,证件号:612322197805120010,截止{{newDatez}}
,名下不动产登记信息查询结果如下:</p>
<table style=" border-collapse: collapse;
width: 100%;
......@@ -68,7 +68,7 @@
line-height: 26px;
font-size: 18px;">
<li style="list-style: none;">城固县不动产登记交易服务中心</li>
<li style="list-style: none;">2022年10月17日</li>
<li style="list-style: none;">{{newDate}}</li>
</ul>
<ol style="margin-left: 20px;
line-height: 26px;">
......@@ -82,14 +82,21 @@
</template>
<script>
import QRCode from 'qrcode';
import { getNewDate } from '@/utils/util'
export default {
props: {
form: {
type: Object,
default: () => ({})
}
},
data () {
return {
qrcodeImage: '',
text: '22222222',
tableData: [
]
],
newDate: getNewDate(),
newDatez: getNewDate(2)
}
},
mounted () {
......@@ -97,7 +104,7 @@
},
methods: {
generateQRCode () {
QRCode.toDataURL(this.text)
QRCode.toDataURL(this.form.djSqcxDO.cxbh)
.then(url => {
this.qrcodeImage = url
})
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-28 14:45:20
-->
<template>
<div class="from-clues">
<!-- 家庭房产 -->
......@@ -90,7 +95,6 @@
this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", {
sqcxBsm: row.bsmSqcx
})
// this.$popupDialog("模板", "sqcx/jtfc/components/printView", {})
}
}
}
......