2297c652 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 0211cfb0 2583498d
1 <!-- 1 <!--
2 * @Description: 不动产查询证明打印模板 2 * @Description: 不动产查询证明打印模板
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-06-28 14:45:07 4 * @LastEditTime: 2023-06-28 15:03:35
5 --> 5 -->
6 <template> 6 <template>
7 <div class="printView" style="width:100%;padding:20px"> 7 <div class="printView" style="width:100%;padding:20px">
...@@ -46,15 +46,39 @@ ...@@ -46,15 +46,39 @@
46 </tr> 46 </tr>
47 </thead> 47 </thead>
48 <tbody> 48 <tbody>
49 <tr v-for="item in tableData" :key="item.id"> 49 <tr v-for="(item,index) in form.cxjgList" :key="index">
50 <td style="border: 1px solid #ccc; 50 <td style="border: 1px solid #ccc;
51 text-align: center; 51 text-align: center;
52 padding: 8px; 52 padding: 8px;
53 text-align: left;">{{ item.id }}</td> 53 text-align: left;">{{ item.qlrmc }}</td>
54 <td style="border: 1px solid #ccc; 54 <td style="border: 1px solid #ccc;
55 text-align: center; 55 text-align: center;
56 padding: 8px; 56 padding: 8px;
57 text-align: left;">{{ item.name }}</td> 57 text-align: left;">{{ item.zjhm }}</td>
58 <td style="border: 1px solid #ccc;
59 text-align: center;
60 padding: 8px;
61 text-align: left;">{{ item.fdzl }}</td>
62 <td style="border: 1px solid #ccc;
63 text-align: center;
64 padding: 8px;
65 text-align: left;">{{ item.fwmj }}</td>
66 <td style="border: 1px solid #ccc;
67 text-align: center;
68 padding: 8px;
69 text-align: left;">{{ item.gyr }}</td>
70 <td style="border: 1px solid #ccc;
71 text-align: center;
72 padding: 8px;
73 text-align: left;" v-if="item.dyzt != '0' && item.cfzt != '0'">抵押、查封</td>
74 <td style="border: 1px solid #ccc;
75 text-align: center;
76 padding: 8px;
77 text-align: left;" v-if="item.dyzt != '0'">抵押</td>
78 <td style="border: 1px solid #ccc;
79 text-align: center;
80 padding: 8px;
81 text-align: left;" v-if="item.cfzt != '0'">查封</td>
58 </tr> 82 </tr>
59 </tbody> 83 </tbody>
60 </table> 84 </table>
...@@ -93,24 +117,24 @@ ...@@ -93,24 +117,24 @@
93 data () { 117 data () {
94 return { 118 return {
95 qrcodeImage: '', 119 qrcodeImage: '',
96 tableData: [
97 ],
98 newDate: getNewDate(), 120 newDate: getNewDate(),
99 newDatez: getNewDate(2) 121 newDatez: getNewDate(2)
100 } 122 }
101 }, 123 },
102 mounted () { 124 watch: {
103 this.generateQRCode() 125 "form.djSqcxDO.cxbh": {
104 }, 126 handler: function (val) {
105 methods: { 127 if (val) {
106 generateQRCode () { 128 QRCode.toDataURL(val)
107 QRCode.toDataURL(this.form.djSqcxDO.cxbh) 129 .then(url => {
108 .then(url => { 130 this.qrcodeImage = url
109 this.qrcodeImage = url 131 })
110 }) 132 .catch(error => {
111 .catch(error => { 133 console.error(error);
112 console.error(error); 134 })
113 }) 135 }
136 },
137 immediate: true
114 } 138 }
115 } 139 }
116 } 140 }
......