c98aaef4 by renchao@pashanhoo.com

style:房产打印

1 parent f21c2458
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
22 "node-sass": "^4.14.1", 22 "node-sass": "^4.14.1",
23 "normalize.css": "7.0.0", 23 "normalize.css": "7.0.0",
24 "nprogress": "0.2.0", 24 "nprogress": "0.2.0",
25 "qrcode": "^1.5.3",
25 "vue": "2.6.10", 26 "vue": "2.6.10",
26 "vue-json-editor": "^1.4.3", 27 "vue-json-editor": "^1.4.3",
27 "vue-quill-editor": "^3.0.6", 28 "vue-quill-editor": "^3.0.6",
......
...@@ -108,24 +108,28 @@ ...@@ -108,24 +108,28 @@
108 </div> 108 </div>
109 <!-- 打印模板需要此模块 --> 109 <!-- 打印模板需要此模块 -->
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=820 height=450 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" />
113 </div> 114 </div>
114 </template> 115 </template>
115 <script> 116 <script>
116 import store from '@/store/index.js' 117 import store from '@/store/index.js'
117 import { datas } from "./addjtfcdata"; 118 import { datas } from "./addjtfcdata";
118 import { getLodop } from "@/utils/LodopFuncs" 119 import { getLodop } from "@/utils/LodopFuncs"
120 import printView from "./printView.vue";
119 import { getIdCardInfo } from '@/utils/operation.js' 121 import { getIdCardInfo } from '@/utils/operation.js'
120 import { getPrintTemplateByCode } from "@/api/system"; 122 import { getPrintTemplateByCode } from "@/api/system";
121 import { addJtfcCxjgXx, getJtfcInfo, printJtcfInfo } from "@/api/sqcx"; 123 import { addJtfcCxjgXx, getJtfcInfo, printJtcfInfo } from "@/api/sqcx";
122 import { log } from 'bpmn-js-token-simulation';
123 export default { 124 export default {
125 components: {
126 printView
127 },
124 props: { 128 props: {
125 formData: { 129 formData: {
126 type: Object, 130 type: Object,
127 default: () => { }, 131 default: () => { }
128 }, 132 }
129 }, 133 },
130 data () { 134 data () {
131 return { 135 return {
...@@ -428,16 +432,15 @@ ...@@ -428,16 +432,15 @@
428 }, 432 },
429 //打开打印预览 433 //打开打印预览
430 openPrintPrew () { 434 openPrintPrew () {
431 //根据编号获取对应信息 435 let lodop = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
432 getPrintTemplateByCode({ tmpno: 'jtfcdys' }).then(res => { 436 // 获取页面的HTML内容
433 if (res.code == 200) { 437 const pageHtml = this.$refs.printContent.$el.innerHTML;
434 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); 438 lodop.ADD_PRINT_HTM(20, 20, "100%", "100%", pageHtml);
435 LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板 439 lodop.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW", true); // 打印页面宽度自适应
436 LODOP.PREVIEW(); 440 lodop.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "100%"); // 打印页面缩放比例
441 lodop.PREVIEW();
437 } 442 }
438 })
439 } 443 }
440 },
441 }; 444 };
442 </script> 445 </script>
443 <style scoped lang="scss"> 446 <style scoped lang="scss">
......
1 <!--
2 * @Description: 不动产查询证明打印模板
3 * @Autor: renchao
4 * @LastEditTime: 2023-06-28 11:27:37
5 -->
6 <template>
7 <div class="printView" style="width:100%;padding:20px">
8 <h1 style="color: red;
9 text-align: center;
10 font-size: 38px;">城固县不动产登记交易服务中心</h1>
11 <hr style=" margin-top: 20px;
12 margin-bottom: 10px;
13 height: 1px;
14 width:100%;
15 border: none;
16 background-color: red;">
17 <h2 style="font-size: 36px;
18 text-align: center;">不动产登记信息查询证明</h2>
19 <h5 style=" text-align: center;
20 margin-top: 20px;
21 font-size: 18px;">查询证明编号: LS201803050045</h5>
22 <p style="text-indent: 2em;
23 margin-top: 15px;
24 line-height: 24px;
25 font-size: 18px;">根据《不动产登记暂行条例》和《不动产登记资料查询暂行办法》
26 有关规定,经线上查询不动产登记信息系统,权利人: 杜林
27 ,证件号:612322197805120010,截止2022年10月17日 13时15分13秒
28 ,名下不动产登记信息查询结果如下:</p>
29 <table style=" border-collapse: collapse;
30 width: 100%;
31 margin-top: 20px;margin-left:20px">
32 <thead>
33 <tr>
34 <th style="background-color: #f2f2f2;
35 text-align: center;">权利人</th>
36 <th style="background-color: #f2f2f2;
37 text-align: center;">证号</th>
38 <th style="background-color: #f2f2f2;
39 text-align: center;">坐落</th>
40 <th style="background-color: #f2f2f2;
41 text-align: center;">面积</th>
42 <th style="background-color: #f2f2f2;
43 text-align: center;">共有人</th>
44 <th style="background-color: #f2f2f2;
45 text-align: center;">状态</th>
46 </tr>
47 </thead>
48 <tbody>
49 <tr v-for="item in tableData" :key="item.id">
50 <td style="border: 1px solid #ccc;
51 text-align: center;
52 padding: 8px;
53 text-align: left;">{{ item.id }}</td>
54 <td style="border: 1px solid #ccc;
55 text-align: center;
56 padding: 8px;
57 text-align: left;">{{ item.name }}</td>
58 </tr>
59 </tbody>
60 </table>
61 <h6 style="font-size: 28px;
62 margin-top: 20px;
63 font-weight: 100;">特此证明。</h6>
64 <div>
65 <img :src="qrcodeImage" alt="QR Code">
66 </div>
67 <ul style="text-align: right;
68 line-height: 26px;
69 font-size: 18px;">
70 <li style="list-style: none;">城固县不动产登记交易服务中心</li>
71 <li style="list-style: none;">2022年10月17日</li>
72 </ul>
73 <ol style="margin-left: 20px;
74 line-height: 26px;">
75 <p>说明:</p>
76 <li>该查询结果仅显示权利人在当前查询时间点不动产(房产)登记有关情况(“/”表示未查询到不动产登记信息);</li>
77 <li>该查询结果包含权利人不动产预告登记信息。查询范围为本市中心城区及开发区内的不动产登记信息;</li>
78 <li>本次查询由系统终端自动检索,因数据采集处理误差而造成查询结果于实际登记信息不相符的,以我中心登记簿记载信息为准;</li>
79 <li>查询人应当妥善保管不动产登记查询结果,因操作不当,导致查询结果泄露,有关责任概由查询人承担。</li>
80 </ol>
81 </div>
82 </template>
83 <script>
84 import QRCode from 'qrcode';
85 export default {
86 data () {
87 return {
88 qrcodeImage: '',
89 text: '22222222',
90 tableData: [
91
92 ]
93 }
94 },
95 mounted () {
96 this.generateQRCode()
97 },
98 methods: {
99 generateQRCode () {
100 QRCode.toDataURL(this.text)
101 .then(url => {
102 this.qrcodeImage = url
103 })
104 .catch(error => {
105 console.error(error);
106 })
107 }
108 }
109 }
110 </script>
...\ No newline at end of file ...\ No newline at end of file
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
41 </div> 41 </div>
42 </template> 42 </template>
43 <script> 43 <script>
44 import table from "@/utils/mixin/table"; 44 import table from "@/utils/mixin/table";
45 import { datas, sendThis } from "./jtfcdata"; 45 import { datas, sendThis } from "./jtfcdata";
46 import { getSqcxPage } from "@/api/sqcx"; 46 import { getSqcxPage } from "@/api/sqcx";
47 export default { 47 export default {
48 name: "jtfc", 48 name: "jtfc",
49 mixins: [table], 49 mixins: [table],
50 mounted () { 50 mounted () {
...@@ -90,10 +90,11 @@ export default { ...@@ -90,10 +90,11 @@ export default {
90 this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", { 90 this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", {
91 sqcxBsm: row.bsmSqcx 91 sqcxBsm: row.bsmSqcx
92 }) 92 })
93 // this.$popupDialog("模板", "sqcx/jtfc/components/printView", {})
94 }
93 } 95 }
94 } 96 }
95 }
96 </script> 97 </script>
97 <style scoped lang="scss"> 98 <style scoped lang="scss">
98 @import "~@/styles/public.scss"; 99 @import "~@/styles/public.scss";
99 </style> 100 </style>
......