6f85fca1 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 7d5c4aa5 df0bc1ae
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-28 10:34:21 4 * @LastEditTime: 2023-08-29 09:22:33
5 --> 5 -->
6 <template> 6 <template>
7 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> 7 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
186 if (that.ruleForm.tmpno == 'zsdy') { 186 if (that.ruleForm.tmpno == 'zsdy') {
187 LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcqzs2.jpg'>"); 187 LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcqzs2.jpg'>");
188 LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图 188 LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图
189 LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "B4"); 189 LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "B4", 1);
190 } else if (that.ruleForm.tmpno == 'zmdy') { 190 } else if (that.ruleForm.tmpno == 'zmdy') {
191 LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcdjzm.jpg'>"); 191 LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='http://192.168.2.38:9000/bdcdj/zhengshu_image/bdcdjzm.jpg'>");
192 LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图 192 LODOP.SET_SHOW_MODE("BKIMG_PRINT", 1);//打印包含背景图
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-28 14:14:09 4 * @LastEditTime: 2023-08-28 17:22:23
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 </el-tabs> 30 </el-tabs>
31 <el-empty description="暂无数据" v-if="headTabBdcqz.length == 0 && noData"></el-empty> 31 <el-empty description="暂无数据" v-if="headTabBdcqz.length == 0 && noData"></el-empty>
32 32
33 <div class="zs-content" style="width:1180px;"> 33 <div class="zs-content">
34 <canvas ref="zs" width="1000" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx==1" height="700"></canvas> 34 <canvas ref="zs" width="1000" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx==1" height="700"></canvas>
35 <canvas ref="zm" width="1180" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx!=1" height="780"></canvas> 35 <canvas ref="zm" width="1180" v-show="headTabBdcqz[0]&&headTabBdcqz[0].bdcqzlx!=1" height="780"></canvas>
36 </div> 36 </div>
...@@ -417,7 +417,49 @@ ...@@ -417,7 +417,49 @@
417 context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 775, 228); 417 context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 775, 228);
418 // 义务人 418 // 义务人
419 context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : '', 775, 275); 419 context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : '', 775, 275);
420 context.fillText(this.bdcqz.zl ? this.bdcqz.zl : '', 775, 325); 420 // context.fillText(this.bdcqz.zl ? this.bdcqz.zl : '', 775, 325);
421 let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(' ') : [];
422 if (getByteLen(this.bdcqz.zl) > 41) {
423 lines2.forEach((line, index) => {
424 const y = 315 + (index * 20); // 每行文本的垂直位置
425 let currentLine = '';
426 let arr = [];
427 for (let word of line) {
428 const testLine = currentLine + word;
429 const lineWidth = context.measureText(testLine).width;
430 if (lineWidth <= 295) {
431 currentLine = testLine;
432 } else {
433 arr.push(currentLine);
434 currentLine = word;
435 }
436 }
437 arr.push(currentLine);
438 arr.forEach((line, index) => {
439 context.fillText(line, 775, y + (index * 20)); // 调整行高
440 })
441 })
442 } else {
443 lines2.forEach((line, index) => {
444 const y = 325 + (index * 20); // 每行文本的垂直位置
445 let currentLine = '';
446 let arr = [];
447 for (let word of line) {
448 const testLine = currentLine + word;
449 const lineWidth = context.measureText(testLine).width;
450 if (lineWidth <= 295) {
451 currentLine = testLine;
452 } else {
453 arr.push(currentLine);
454 currentLine = word;
455 }
456 }
457 arr.push(currentLine);
458 arr.forEach((line, index) => {
459 context.fillText(line, 775, y + (index * 20)); // 调整行高
460 })
461 })
462 }
421 // bdcdyh 463 // bdcdyh
422 this.bdcdyh = this.bdcqz.bdcdyh.slice(0, 6) + ' ' + this.bdcqz.bdcdyh.slice(6, 12) + ' ' + 464 this.bdcdyh = this.bdcqz.bdcdyh.slice(0, 6) + ' ' + this.bdcqz.bdcdyh.slice(6, 12) + ' ' +
423 this.bdcqz.bdcdyh.slice(12, 19) + ' ' + this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length) 465 this.bdcqz.bdcdyh.slice(12, 19) + ' ' + this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length)
...@@ -519,24 +561,18 @@ ...@@ -519,24 +561,18 @@
519 if (this.bdcqz.bdcqzlx == 1) { 561 if (this.bdcqz.bdcqzlx == 1) {
520 getPrintTemplateByCode({ tmpno: 'zsdy' }).then(res => { 562 getPrintTemplateByCode({ tmpno: 'zsdy' }).then(res => {
521 if (res.code == 200) { 563 if (res.code == 200) {
522 getSlsqBdcqzList({ bsmSlsq: this.formData.bsmSlsq }).then(infoRes => {
523 if (infoRes.code == 200) {
524 if (infoRes.result && infoRes.result.length > 0) {
525 //打开模板设计 564 //打开模板设计
526 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); 565 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
527 LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板 566 LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板
528 567
529 infoRes.result[0].bdcdyh1 = infoRes.result[0].bdcdyh.slice(0, 6) + ' ' + infoRes.result[0].bdcdyh.slice(6, 12) + ' ' + 568 this.bdcqz.bdcdyh1 = this.bdcqz.bdcdyh.slice(0, 6) + ' ' + this.bdcqz.bdcdyh.slice(6, 12) + ' ' +
530 infoRes.result[0].bdcdyh.slice(12, 19) + ' ' + infoRes.result[0].bdcdyh.slice(19, infoRes.result[0].bdcdyh.length) 569 this.bdcqz.bdcdyh.slice(12, 19) + ' ' + this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length)
531 //todo 调取后端接口获取数据 循环set 570 //todo 调取后端接口获取数据 循环set
532 for (let key in infoRes.result[0]) { 571 for (let key in this.bdcqz) {
533 LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[0][key]); 572 LODOP.SET_PRINT_STYLEA(key, "CONTENT", this.bdcqz[key]);
534 } 573 }
535 LODOP.PREVIEW(); 574 LODOP.PREVIEW();
536 that.$popupCacel() 575 that.$popupCacel()
537 }
538 }
539 })
540 } else { 576 } else {
541 this.$message.error(res.message) 577 this.$message.error(res.message)
542 } 578 }
...@@ -544,28 +580,22 @@ ...@@ -544,28 +580,22 @@
544 } else { 580 } else {
545 getPrintTemplateByCode({ tmpno: 'zmdy' }).then(res => { 581 getPrintTemplateByCode({ tmpno: 'zmdy' }).then(res => {
546 if (res.code == 200) { 582 if (res.code == 200) {
547 getSlsqBdcqzList({ bsmSlsq: this.formData.bsmSlsq }).then(infoRes => {
548 if (infoRes.code == 200) {
549 if (infoRes.result && infoRes.result.length > 0) {
550 //打开模板设计 583 //打开模板设计
551 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); 584 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
552 LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板 585 LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板
553 586
554 // 年月日 587 // 年月日
555 infoRes.result[0].nian = infoRes.result[0].djsj.split(' ')[0].split('/')[0] 588 this.bdcqz.nian = this.bdcqz.djsj.split(' ')[0].split('/')[0]
556 infoRes.result[0].yue = infoRes.result[0].djsj.split(' ')[0].split('/')[1] 589 this.bdcqz.yue = this.bdcqz.djsj.split(' ')[0].split('/')[1]
557 infoRes.result[0].ri = infoRes.result[0].djsj.split(' ')[0].split('/')[1] 590 this.bdcqz.ri = this.bdcqz.djsj.split(' ')[0].split('/')[1]
558 infoRes.result[0].bdcdyh1 = infoRes.result[0].bdcdyh.slice(0, 6) + ' ' + infoRes.result[0].bdcdyh.slice(6, 12) + ' ' + 591 this.bdcqz.bdcdyh1 = this.bdcqz.bdcdyh.slice(0, 6) + ' ' + this.bdcqz.bdcdyh.slice(6, 12) + ' ' +
559 infoRes.result[0].bdcdyh.slice(12, 19) + ' ' + infoRes.result[0].bdcdyh.slice(19, infoRes.result[0].bdcdyh.length) 592 this.bdcqz.bdcdyh.slice(12, 19) + ' ' + this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length)
560 //todo 调取后端接口获取数据 循环set 593 //todo 调取后端接口获取数据 循环set
561 for (let key in infoRes.result[0]) { 594 for (let key in this.bdcqz) {
562 LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[0][key]); 595 LODOP.SET_PRINT_STYLEA(key, "CONTENT", this.bdcqz[key]);
563 } 596 }
564 LODOP.PREVIEW(); 597 LODOP.PREVIEW();
565 that.$popupCacel() 598 that.$popupCacel()
566 }
567 }
568 })
569 } else { 599 } else {
570 this.$message.error(res.message) 600 this.$message.error(res.message)
571 } 601 }
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-28 13:57:58 4 * @LastEditTime: 2023-08-29 09:24:13
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;"> 7 <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;">
...@@ -388,17 +388,18 @@ ...@@ -388,17 +388,18 @@
388 context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 775, 228); 388 context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 775, 228);
389 // 义务人 389 // 义务人
390 context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : '', 775, 275); 390 context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : '', 775, 275);
391 // context.fillText(this.bdcqz.zl ? this.bdcqz.zl : '', 775, 325);
391 392
392 let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(' ') : []; 393 let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(' ') : [];
393 if (lines2.length > 22) { 394 if (getByteLen(this.bdcqz.zl) > 41) {
394 lines2.forEach((line, index) => { 395 lines2.forEach((line, index) => {
395 const y = 305 + (index * 20); // 每行文本的垂直位置 396 const y = 315 + (index * 20); // 每行文本的垂直位置
396 let currentLine = ''; 397 let currentLine = '';
397 let arr = []; 398 let arr = [];
398 for (let word of line) { 399 for (let word of line) {
399 const testLine = currentLine + word; 400 const testLine = currentLine + word;
400 const lineWidth = context.measureText(testLine).width; 401 const lineWidth = context.measureText(testLine).width;
401 if (lineWidth <= 360) { 402 if (lineWidth <= 295) {
402 currentLine = testLine; 403 currentLine = testLine;
403 } else { 404 } else {
404 arr.push(currentLine); 405 arr.push(currentLine);
...@@ -418,7 +419,7 @@ ...@@ -418,7 +419,7 @@
418 for (let word of line) { 419 for (let word of line) {
419 const testLine = currentLine + word; 420 const testLine = currentLine + word;
420 const lineWidth = context.measureText(testLine).width; 421 const lineWidth = context.measureText(testLine).width;
421 if (lineWidth <= 360) { 422 if (lineWidth <= 295) {
422 currentLine = testLine; 423 currentLine = testLine;
423 } else { 424 } else {
424 arr.push(currentLine); 425 arr.push(currentLine);
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
59 <div class="invalid-diglog"> 59 <div class="invalid-diglog">
60 <div class="invalid-title"> 60 <div class="invalid-title">
61 <i class="el-icon-question invalid-icon"></i> 61 <i class="el-icon-question invalid-icon"></i>
62 <div class="invalid-body">您确定作废证书并再次打印?</div> 62 <div class="invalid-body">您确定作废证书并再次打印?印刷序列号{{ysxlh}}</div>
63 </div> 63 </div>
64 <div class="invalid-reson">作废原因:</div> 64 <div class="invalid-reson">作废原因:</div>
65 <el-input v-model="zfyy" placeholder="请输入作废原因" type="textarea" :rows="4"></el-input> 65 <el-input v-model="zfyy" placeholder="请输入作废原因" type="textarea" :rows="4"></el-input>
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
90 zfyy: "", 90 zfyy: "",
91 invalidDiglog: false, 91 invalidDiglog: false,
92 bsmSz: "", 92 bsmSz: "",
93 bsmBdcqz: "" 93 bsmBdcqz: "",
94 ysxlh: ""
94 }; 95 };
95 }, 96 },
96 computed: { 97 computed: {
...@@ -137,7 +138,7 @@ ...@@ -137,7 +138,7 @@
137 //证书预览 138 //证书预览
138 this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "70%", true); 139 this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "70%", true);
139 } else { 140 } else {
140 this.$popupDialog("不动产权证书", "workflow/components/dialog/zsdy", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "70%", true); 141 this.$popupDialog("证书证明打印", "workflow/components/dialog/zsdy", { bdcqz: item, bsmSlsq: this.$route.query.bsmSlsq }, "75%", true);
141 } 142 }
142 }, 143 },
143 //再次打印 144 //再次打印
...@@ -147,6 +148,7 @@ ...@@ -147,6 +148,7 @@
147 * @author: renchao 148 * @author: renchao
148 */ 149 */
149 openInvalidDiglog (item) { 150 openInvalidDiglog (item) {
151 this.ysxlh = item.ysxlh
150 this.bsmSz = item.bsmSz; 152 this.bsmSz = item.bsmSz;
151 this.invalidDiglog = true; 153 this.invalidDiglog = true;
152 this.bsmBdcqz = item.bsmBdcqz 154 this.bsmBdcqz = item.bsmBdcqz
...@@ -292,14 +294,14 @@ ...@@ -292,14 +294,14 @@
292 justify-content: flex-end; 294 justify-content: flex-end;
293 } 295 }
294 } 296 }
295 .box-card{ 297 .box-card {
296 .szxx_header{ 298 .szxx_header {
297 color: #303133; 299 color: #303133;
298 } 300 }
299 } 301 }
300 .bg-red{ 302 .bg-red {
301 .szxx_header{ 303 .szxx_header {
302 color: #FFF; 304 color: #fff;
303 } 305 }
304 /deep/.el-card__header { 306 /deep/.el-card__header {
305 background-color: rgb(198, 67, 83); 307 background-color: rgb(198, 67, 83);
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-10 16:30:18 4 * @LastEditTime: 2023-08-29 08:52:44
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues"> 7 <div class="from-clues">
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
58 import { ywPopupDialog } from "@/utils/popup.js"; 58 import { ywPopupDialog } from "@/utils/popup.js";
59 import { selectLq } from "@/api/ywsq.js"; 59 import { selectLq } from "@/api/ywsq.js";
60 import { startBusinessFlow } from "@/api/workFlow.js"; 60 import { startBusinessFlow } from "@/api/workFlow.js";
61 import { datas, sendThis } from "../javascript/selectQjzdjbxx.js"; 61 import { datas, sendThis } from "../javascript/selectQjlqxx.js";
62 import { defaultParameters } from "../javascript/publicDefaultPar.js"; 62 import { defaultParameters } from "../javascript/publicDefaultPar.js";
63 export default { 63 export default {
64 mixins: [table, jump], 64 mixins: [table, jump],
......
1 /*
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-08-29 09:05:44
5 */
6 import filter from '@/utils/filter.js'
7 let vm = null
8
9 const sendThis = (_this) => {
10 vm = _this
11 }
12 class data extends filter {
13 constructor() {
14 super()
15 }
16 columns () {
17 return [
18 {
19 type: 'selection',
20 label: '全选',
21 selectable: this.selected
22 },
23 {
24 label: '序号',
25 type: 'index',
26 width: '50',
27 render: (h, scope) => {
28 return (
29 <div>
30 {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
31 </div>
32 )
33 }
34 },
35 {
36 label: "状态",
37 width: '130',
38 render: (h, scope) => {
39 return (
40 <div>
41 <a style='color:#3498db;' v-show={scope.row.djblzt == 1}>{this.yWstatus(scope.row)}</a>
42 <span v-show={scope.row.djblzt != 1}>{this.yWstatus(scope.row)}</span>
43 </div>
44 )
45 }
46 },
47 {
48 prop: "qllxmc",
49 label: "权利类型",
50 },
51 {
52 prop: "bdcdyh",
53 label: "不动产单元号",
54 minWidth: '150'
55 },
56 {
57 prop: "bdcqzh",
58 label: "不动产权证号",
59 render: (h, scope) => {
60 return (
61 <el-tooltip effect="dark" content={scope.row.bdcqzh} placement="top" popper-class="tooltip-width ">
62 <span class="ellipsis-table"> {scope.row.bdcqzh}</span>
63 </el-tooltip>
64 )
65 },
66 width: '150'
67 },
68 {
69 prop: "gyqk",
70 label: "共有方式",
71 },
72 {
73 prop: "qlrmc",
74 label: "使用权人",
75 },
76 {
77 prop: "qlrzjhm",
78 label: "证件号",
79 },
80 {
81 prop: "qlxzmc",
82 width: '80',
83 label: "权利性质",
84 },
85 {
86 prop: "qlmjmc",
87 width: '100',
88 label: "使用权面积",
89 },
90 {
91 prop: "qlytmc",
92 label: "土地用途",
93 },
94 {
95 prop: "qdjgmc",
96 width: '100',
97 label: "取得价格",
98 },
99 {
100 prop: "zl",
101 label: "坐落",
102 minWidth: '150'
103 },
104 ]
105 }
106
107
108 }
109 let datas = new data()
110 export {
111 datas,
112 sendThis
113 }