style:家庭房产
Showing
4 changed files
with
40 additions
and
13 deletions
1 | import cookies from './util.cookies' | 1 | import cookies from './util.cookies' |
2 | export function getUrlParam(paraName) { | 2 | export function getUrlParam (paraName) { |
3 | let url = document.location.toString(); | 3 | let url = document.location.toString(); |
4 | let arrObj = url.split('?'); | 4 | let arrObj = url.split('?'); |
5 | 5 | ||
... | @@ -22,7 +22,7 @@ export function getUrlParam(paraName) { | ... | @@ -22,7 +22,7 @@ export function getUrlParam(paraName) { |
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | export function setToken(token) { | 25 | export function setToken (token) { |
26 | if (token === undefined) { | 26 | if (token === undefined) { |
27 | if (process.env.NODE_ENV === 'development') { | 27 | if (process.env.NODE_ENV === 'development') { |
28 | sessionStorage.removeItem('token') | 28 | sessionStorage.removeItem('token') |
... | @@ -38,10 +38,26 @@ export function setToken(token) { | ... | @@ -38,10 +38,26 @@ export function setToken(token) { |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 | ||
41 | export function getToken() { | 41 | export function getToken () { |
42 | if (process.env.NODE_ENV === 'development') { | 42 | if (process.env.NODE_ENV === 'development') { |
43 | return sessionStorage.getItem('token') | 43 | return sessionStorage.getItem('token') |
44 | } | 44 | } |
45 | return cookies.get('ACCESS_TOKEN') | 45 | return cookies.get('ACCESS_TOKEN') |
46 | } | 46 | } |
47 | 47 | ||
48 | // 获取当前时间 | ||
49 | |||
50 | export function getNewDate (type = 1) { | ||
51 | const now = new Date(); | ||
52 | const year = now.getFullYear(); | ||
53 | const month = String(now.getMonth() + 1).padStart(2, '0'); | ||
54 | const day = String(now.getDate()).padStart(2, '0'); | ||
55 | const hours = String(now.getHours()).padStart(2, '0'); | ||
56 | const minutes = String(now.getMinutes()).padStart(2, '0'); | ||
57 | const seconds = String(now.getSeconds()).padStart(2, '0'); | ||
58 | if (type == 1) { | ||
59 | return `${year}年${month}月${day}日` | ||
60 | } else { | ||
61 | return `${year}年${month}月${day}日 ${hours}时${minutes}分${seconds}秒` | ||
62 | } | ||
63 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -110,7 +110,7 @@ | ... | @@ -110,7 +110,7 @@ |
110 | <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" v-show="false"> | 110 | <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" v-show="false"> |
111 | <embed id="LODOP_EM" type="application/x-print-lodop" width=700 height=500 pluginspage="install_lodop32.exe" /> | 111 | <embed id="LODOP_EM" type="application/x-print-lodop" width=700 height=500 pluginspage="install_lodop32.exe" /> |
112 | </object> | 112 | </object> |
113 | <printView ref="printContent" v-show="false" /> | 113 | <printView ref="printContent" :form="form" v-show="false" /> |
114 | </div> | 114 | </div> |
115 | </template> | 115 | </template> |
116 | <script> | 116 | <script> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: 不动产查询证明打印模板 | 2 | * @Description: 不动产查询证明打印模板 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-06-28 11:27:37 | 4 | * @LastEditTime: 2023-06-28 14:45:07 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="printView" style="width:100%;padding:20px"> | 7 | <div class="printView" style="width:100%;padding:20px"> |
... | @@ -18,13 +18,13 @@ | ... | @@ -18,13 +18,13 @@ |
18 | text-align: center;">不动产登记信息查询证明</h2> | 18 | text-align: center;">不动产登记信息查询证明</h2> |
19 | <h5 style=" text-align: center; | 19 | <h5 style=" text-align: center; |
20 | margin-top: 20px; | 20 | margin-top: 20px; |
21 | font-size: 18px;">查询证明编号: LS201803050045</h5> | 21 | font-size: 18px;">查询证明编号: {{form.djSqcxDO.cxbh}}</h5> |
22 | <p style="text-indent: 2em; | 22 | <p style="text-indent: 2em; |
23 | margin-top: 15px; | 23 | margin-top: 15px; |
24 | line-height: 24px; | 24 | line-height: 24px; |
25 | font-size: 18px;">根据《不动产登记暂行条例》和《不动产登记资料查询暂行办法》 | 25 | font-size: 18px;">根据《不动产登记暂行条例》和《不动产登记资料查询暂行办法》 |
26 | 有关规定,经线上查询不动产登记信息系统,权利人: 杜林 | 26 | 有关规定,经线上查询不动产登记信息系统,权利人: 杜林 |
27 | ,证件号:612322197805120010,截止2022年10月17日 13时15分13秒 | 27 | ,证件号:612322197805120010,截止{{newDatez}} |
28 | ,名下不动产登记信息查询结果如下:</p> | 28 | ,名下不动产登记信息查询结果如下:</p> |
29 | <table style=" border-collapse: collapse; | 29 | <table style=" border-collapse: collapse; |
30 | width: 100%; | 30 | width: 100%; |
... | @@ -68,7 +68,7 @@ | ... | @@ -68,7 +68,7 @@ |
68 | line-height: 26px; | 68 | line-height: 26px; |
69 | font-size: 18px;"> | 69 | font-size: 18px;"> |
70 | <li style="list-style: none;">城固县不动产登记交易服务中心</li> | 70 | <li style="list-style: none;">城固县不动产登记交易服务中心</li> |
71 | <li style="list-style: none;">2022年10月17日</li> | 71 | <li style="list-style: none;">{{newDate}}</li> |
72 | </ul> | 72 | </ul> |
73 | <ol style="margin-left: 20px; | 73 | <ol style="margin-left: 20px; |
74 | line-height: 26px;"> | 74 | line-height: 26px;"> |
... | @@ -82,14 +82,21 @@ | ... | @@ -82,14 +82,21 @@ |
82 | </template> | 82 | </template> |
83 | <script> | 83 | <script> |
84 | import QRCode from 'qrcode'; | 84 | import QRCode from 'qrcode'; |
85 | import { getNewDate } from '@/utils/util' | ||
85 | export default { | 86 | export default { |
87 | props: { | ||
88 | form: { | ||
89 | type: Object, | ||
90 | default: () => ({}) | ||
91 | } | ||
92 | }, | ||
86 | data () { | 93 | data () { |
87 | return { | 94 | return { |
88 | qrcodeImage: '', | 95 | qrcodeImage: '', |
89 | text: '22222222', | ||
90 | tableData: [ | 96 | tableData: [ |
91 | 97 | ], | |
92 | ] | 98 | newDate: getNewDate(), |
99 | newDatez: getNewDate(2) | ||
93 | } | 100 | } |
94 | }, | 101 | }, |
95 | mounted () { | 102 | mounted () { |
... | @@ -97,7 +104,7 @@ | ... | @@ -97,7 +104,7 @@ |
97 | }, | 104 | }, |
98 | methods: { | 105 | methods: { |
99 | generateQRCode () { | 106 | generateQRCode () { |
100 | QRCode.toDataURL(this.text) | 107 | QRCode.toDataURL(this.form.djSqcxDO.cxbh) |
101 | .then(url => { | 108 | .then(url => { |
102 | this.qrcodeImage = url | 109 | this.qrcodeImage = url |
103 | }) | 110 | }) | ... | ... |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-06-28 14:45:20 | ||
5 | --> | ||
1 | <template> | 6 | <template> |
2 | <div class="from-clues"> | 7 | <div class="from-clues"> |
3 | <!-- 家庭房产 --> | 8 | <!-- 家庭房产 --> |
... | @@ -90,7 +95,6 @@ | ... | @@ -90,7 +95,6 @@ |
90 | this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { | 95 | this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { |
91 | sqcxBsm: row.bsmSqcx | 96 | sqcxBsm: row.bsmSqcx |
92 | }) | 97 | }) |
93 | // this.$popupDialog("模板", "sqcx/jtfc/components/printView", {}) | ||
94 | } | 98 | } |
95 | } | 99 | } |
96 | } | 100 | } | ... | ... |
-
Please register or sign in to post a comment