2297c652 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 0211cfb0 2583498d
<!--
* @Description: 不动产查询证明打印模板
* @Autor: renchao
* @LastEditTime: 2023-06-28 14:45:07
* @LastEditTime: 2023-06-28 15:03:35
-->
<template>
<div class="printView" style="width:100%;padding:20px">
......@@ -46,15 +46,39 @@
</tr>
</thead>
<tbody>
<tr v-for="item in tableData" :key="item.id">
<tr v-for="(item,index) in form.cxjgList" :key="index">
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;">{{ item.id }}</td>
text-align: center;
padding: 8px;
text-align: left;">{{ item.qlrmc }}</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;">{{ item.name }}</td>
text-align: center;
padding: 8px;
text-align: left;">{{ item.zjhm }}</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;">{{ item.fdzl }}</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;">{{ item.fwmj }}</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;">{{ item.gyr }}</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;" v-if="item.dyzt != '0' && item.cfzt != '0'">抵押、查封</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;" v-if="item.dyzt != '0'">抵押</td>
<td style="border: 1px solid #ccc;
text-align: center;
padding: 8px;
text-align: left;" v-if="item.cfzt != '0'">查封</td>
</tr>
</tbody>
</table>
......@@ -93,24 +117,24 @@
data () {
return {
qrcodeImage: '',
tableData: [
],
newDate: getNewDate(),
newDatez: getNewDate(2)
}
},
mounted () {
this.generateQRCode()
},
methods: {
generateQRCode () {
QRCode.toDataURL(this.form.djSqcxDO.cxbh)
.then(url => {
this.qrcodeImage = url
})
.catch(error => {
console.error(error);
})
watch: {
"form.djSqcxDO.cxbh": {
handler: function (val) {
if (val) {
QRCode.toDataURL(val)
.then(url => {
this.qrcodeImage = url
})
.catch(error => {
console.error(error);
})
}
},
immediate: true
}
}
}
......