Blame view

src/views/workflow/components/dialog/zsylxq.vue 24.6 KB
“miaofang committed
1 2 3
<!--
 * @Description:
 * @Autor: miaofang
4
 * @LastEditTime: 2023-10-23 16:16:24
“miaofang committed
5 6 7 8 9 10
-->
<template>
  <div
    class="from-clues loadingtext"
    v-Loading="loading"
    element-loading-text="拼命加载中..."
11
    style="height: 720px; text-align: center">
“miaofang committed
12 13 14 15 16
    <!-- 表单部分 -->
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="证书预览" name="zsyl">
        <el-empty
          description="暂无数据"
17
          v-if="headTabBdcqz.length == 0 && noData"></el-empty>
“miaofang committed
18 19 20 21 22
        <div class="zsys">
          <canvas
            ref="zs"
            width="1000"
            v-show="this.bdcqz.bdcqzlx == 1"
23
            height="700"></canvas>
“miaofang committed
24 25 26 27
          <canvas
            ref="zm"
            width="1180"
            v-show="this.bdcqz.bdcqzlx == 2"
28
            height="780"></canvas>
“miaofang committed
29 30 31
        </div>
      </el-tab-pane>
      <el-tab-pane label="证书详情" name="lcjl">
32
        <div class="slxx_title title-block">
“miaofang committed
33 34 35
          证书详情信息
          <div class="triangle"></div>
        </div>
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
        <el-form :rules="rules" ref="ruleForm" label-width="120px">
          <el-row>
            <el-col :span="8">
              <el-form-item label="权利人" prop="cyxm">
                <el-input disabled v-model="bdcqz.qlr" maxlegth="15"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="义务人" prop="jtgxdm">
                <el-input disabled v-model="bdcqz.qlr" maxlegth="15"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="坐落" prop="cbfdm">
                <el-input disabled v-model="bdcqz.zl" maxlegth="15"></el-input>
              </el-form-item>
            </el-col>
“miaofang committed
53

54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
          </el-row>
          <el-row>
            <el-col :span="8">
              <el-form-item label="不动产单元号" prop="cyxm">
                <el-input disabled v-model="bdcqz.bdcdyh" maxlegth="15"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="印刷序列号" prop="jtgxdm">
                <el-input disabled v-model="bdcqz.ysxlh" maxlegth="15"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="不动产权证号" prop="cbfdm">
                <el-input disabled v-model="bdcqz.bdcqzh" maxlegth="15"></el-input>
              </el-form-item>
            </el-col>
“miaofang committed
71

72 73
          </el-row>
        </el-form>
“miaofang committed
74 75 76 77
        <div class="slxx_title title-block">
          缮证记录信息
          <div class="triangle"></div>
        </div>
78 79 80 81 82 83 84 85
        <lb-table
          class="sz"
          :column="szxxtableData.columns"
          heightNumSetting
          :pagination="false"
          :key="key"
          :data="szxxtableData.data">
        </lb-table>
“miaofang committed
86 87 88 89 90 91 92 93 94
        <div class="slxx_title title-block">
          发证记录信息
          <div class="triangle"></div>
        </div>
        <lb-table
          border
          :column="tableDatas.columns"
          :heightNum="100"
          :data="tableDatas.data"
95
          :pagination="false">
“miaofang committed
96 97 98 99 100 101 102 103
        </lb-table>
      </el-tab-pane>
      <el-tab-pane label="电子证照" name="third"> 等一个照片 </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
104 105 106 107 108 109 110 111 112 113 114 115
  // import { zsyldatas } from "../../javascript/zsyl.js";
  import { getSlsqBdcqzList } from "@/api/bdcqz.js";
  import { getCertificateList } from "@/api/bdcqz.js";
  import { getSzRecordList } from "@/api/bdcqz.js";
  import { szxxdatas } from "../../javascript/szxxdatapart";
  import { datas } from "../../javascript/fzxxdatapart";
  export default {
    name: "zsyl",
    props: {
      formData: {
        type: Object,
        default: {},
“miaofang committed
116 117
      },
    },
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
    data () {
      return {
        key: 0,
        noData: false,
        imgSrc: require("@/image/bdcqz/bdcqzs2.jpg"),
        bdczmSrc: require("@/image/bdcqz/bdczm.jpg"),
        loading: false,
        //印刷序列号集合
        ysxlh: [],
        //列名称对象
        columns: [],
        //选择的不动产权证文件
        bdcqz: "",
        //证书打开类型 是否需要展示打印按钮
        isToPrint: false,
        //tab切换栏数组
        tabslist: [],
        headTabBdcqz: [],
        //tab选择绑定值
        activeName: "zsyl",
        //证书图片预览
        previewImage: "",
        ruleForm: {
          bsmBdcqz: "",
          szmc: "不动产权证书",
          bsmBdcqz: "",
          szzh: "",
          ysxlh: "",
        },
        formdata: {},
        szxxtableData: {
          total: 0,
          columns: szxxdatas.columns(),
          data: [],
        },
        tableDatas: {
          total: 0,
          columns: datas.columns().fzgrid,
          data: [],
        },
      };
“miaofang committed
159
    },
160 161 162 163 164 165
    mounted () {
      this.queryClick();
      this.query();
      if (this.formData.bdcqz) {
        //从缮证进入
        this.bdcqz = this.formData.bdcqz;
“miaofang committed
166
      } else {
167 168
        //从按钮进入
        this.getHeadTabBdcqz();
“miaofang committed
169 170
      }
    },
171 172 173 174 175 176 177 178 179 180
    methods: {
      /**
       * @description: queryClick
       * @author: miaofang
       */
      queryClick () {
        this.formdata.bsmSlsq = this.formData.bsmSlsq;
        getCertificateList(this.formdata).then((res) => {
          if (res.code === 200) {
            this.tableDatas.data = res.result ? res.result : [];
“miaofang committed
181
          }
182
        })
183 184 185 186 187 188 189 190 191 192 193
      },
      /**
       * @description: query
       * @author: miaofang
       */
      query () {
        getSzRecordList({ bsmBdcqz: this.formData.bsmBdcqz }).then((res) => {
          if (res.code == 200) {
            this.szxxtableData.data = res.result;
            this.key++;
          }
194
        })
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
      },
      /**
       * @description: 获取证书内容
       * @param {*} code
       * @author: miaofang
       */
      getRowValue (code) {
        var value = this.bdcqz[code];
        return value;
      },
      /**
       * @description: 获取受理申请下全部不动产权证
       * @author: miaofang
       */
      getHeadTabBdcqz () {
        this.loading = true;
        getSlsqBdcqzList({ bsmSlsq: this.formData.bsmSlsq }).then((res) => {
          if (res.code == 200) {
            this.noData = true;
            if (res.result && res.result.length > 0) {
              this.bdcqz = res.result[0];
              this.headTabBdcqz = res.result;
              if (this.bdcqz.bdcqzlx == 1) {
                this.drawTextOnImage();
“miaofang committed
219
              } else {
220
                this.drawTextzmImage();
“miaofang committed
221 222
              }
            }
223 224 225 226 227 228 229 230 231 232 233 234 235 236
          }
          this.loading = false;
        });
      },
      /**
       * @description: tab表头切换方法
       * @param {*} e
       * @author: miaofang
       */
      handleClick (tab, event) {
        console.log(tab, event);
        this.bdcqz = this.headTabBdcqz[0];
        if (this.bdcqz.bdcqzlx == 1) {
          this.drawTextOnImage();
“miaofang committed
237
        } else {
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
          this.drawTextzmImage();
        }
      },
      /**
       * @description: 不动产证书
       * @author: miaofang
       */
      drawTextOnImage () {
        function getByteLen (val) {
          var len = 0;
          if (!val) return len;
          for (var i = 0; i < val.length; i++) {
            var length = val.charCodeAt(i);
            if (length >= 0 && length <= 128) {
              len += 1;
            } else {
              len += 2;
“miaofang committed
255
            }
256 257
          }
          return len;
“miaofang committed
258
        }
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
        const canvas = this.$refs.zs;
        const context = canvas.getContext("2d");
        const image = new Image();
        image.onload = () => {
          context.drawImage(image, 0, 0);
          context.font = "18px 楷体";
          context.fillStyle = "#000000";
          context.fillText(this.bdcqz.sjjc ? this.bdcqz.sjjc : "", 60, 56);
          context.fillText(this.bdcqz.djnd ? this.bdcqz.djnd : "", 113, 56);
          context.fillText(this.bdcqz.sxqc ? this.bdcqz.sxqc : "", 180, 56);
          context.fillText(this.bdcqz.sxh ? this.bdcqz.sxh : "", 370, 56);
          context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : "", 129, 97);
          context.fillText(this.bdcqz.gyqk ? this.bdcqz.gyqk : "", 129, 136);

          this.bdcdyh =
            this.bdcqz.bdcdyh.slice(0, 6) +
            " " +
            this.bdcqz.bdcdyh.slice(6, 12) +
            " " +
            this.bdcqz.bdcdyh.slice(12, 19) +
            " " +
            this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length);
          context.fillText(this.bdcdyh ? this.bdcdyh : "", 129, 223);

          context.fillText(this.bdcqz.qllx ? this.bdcqz.qllx : "", 129, 263);
          context.fillText(this.bdcqz.qlxz ? this.bdcqz.qlxz : "", 129, 303);
          context.fillText(this.bdcqz.yt ? this.bdcqz.yt : "", 129, 346);
          // context.fillText(this.bdcqz.mj ? this.bdcqz.mj : '', 129, 386);
          let lines6 = this.bdcqz.mj ? this.bdcqz.mj.split(" ") : [];
          if (getByteLen(this.bdcqz.mj) > 41) {
            lines6.forEach((line, index) => {
              const y = 378 + index * 27; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 330) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
“miaofang committed
302
              }
303
              arr.push(currentLine);
“miaofang committed
304
              arr.forEach((line, index) => {
305
                context.fillText(line, 129, y + index * 20); // 调整行高
“miaofang committed
306
              });
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
            });
          } else {
            lines6.forEach((line, index) => {
              const y = 386 + index * 27; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 330) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
              }
              arr.push(currentLine);
“miaofang committed
324
              arr.forEach((line, index) => {
325
                context.fillText(line, 129, y + index * 20); // 调整行高
“miaofang committed
326
              });
327
            });
“miaofang committed
328
          }
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
          // 权利其他状态
          let lines = this.bdcqz.qlqtzk ? this.bdcqz.qlqtzk.split("\n") : [];
          for (let i = 0; i < lines.length; i++) {
            let num = Math.ceil(getByteLen(lines[i]) / 38);
            if (getByteLen(lines[i]) > 38) {
              let currentLine = "";
              let arr = [];
              for (let word of lines[i]) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 323) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
              }
“miaofang committed
346
              arr.push(currentLine);
347 348 349 350 351 352 353 354
              if (i > 0) {
                arr.forEach((line, index) => {
                  context.fillText(
                    line,
                    129,
                    490 + 26 * (i - 1) + 4 * num + index * 14
                  ); // 调整行高
                });
“miaofang committed
355
              } else {
356 357 358
                arr.forEach((line, index) => {
                  context.fillText(line, 129, 500 + 26 * (i - 1) + index * 14); // 调整行高
                });
“miaofang committed
359
              }
360 361 362 363 364 365 366
            } else {
              if (i > 0) {
                context.fillText(
                  lines[i] ? lines[i] : "",
                  129,
                  500 + 4 * num + 24 * (i - 1)
                );
“miaofang committed
367
              } else {
368 369 370 371 372
                context.fillText(
                  lines[i] ? lines[i] : "",
                  129,
                  505 + 24 * (i - 1)
                );
“miaofang committed
373 374
              }
            }
375
          }
“miaofang committed
376

377 378 379
          let lines1 = this.bdcqz.fj ? this.bdcqz.fj.split("\n") : [];
          lines1.forEach((line, index) => {
            const y = 100 + index * 30; // 每行文本的垂直位置
“miaofang committed
380 381 382 383 384
            let currentLine = "";
            let arr = [];
            for (let word of line) {
              const testLine = currentLine + word;
              const lineWidth = context.measureText(testLine).width;
385
              if (lineWidth <= 395) {
“miaofang committed
386 387 388 389 390 391 392 393
                currentLine = testLine;
              } else {
                arr.push(currentLine);
                currentLine = word;
              }
            }
            arr.push(currentLine);
            arr.forEach((line, index) => {
394
              context.fillText(line, 580, y + index * 30); // 调整行高
“miaofang committed
395 396
            });
          });
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
          let lines3 = this.bdcqz.syqx ? this.bdcqz.syqx.split(" ") : [];
          if (getByteLen(this.bdcqz.syqx) > 41) {
            lines3.forEach((line, index) => {
              const y = 423 + index * 27; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 330) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
“miaofang committed
412
              }
413 414 415 416
              arr.push(currentLine);
              arr.forEach((line, index) => {
                context.fillText(line, 129, y + index * 20); // 调整行高
              });
“miaofang committed
417 418
            });
          } else {
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
            lines3.forEach((line, index) => {
              const y = 430 + index * 27; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 315) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
              }
              arr.push(currentLine);
              arr.forEach((line, index) => {
                context.fillText(line, 129, y + index * 20); // 调整行高
              });
            });
“miaofang committed
438 439
          }

440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
          let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(" ") : [];
          if (getByteLen(this.bdcqz.zl) > 41) {
            lines2.forEach((line, index) => {
              const y = 170 + index * 20; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 336) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
“miaofang committed
455
              }
456 457 458 459
              arr.push(currentLine);
              arr.forEach((line, index) => {
                context.fillText(line, 129, y + index * 20); // 调整行高
              });
“miaofang committed
460
            });
461 462 463 464 465 466 467 468 469 470 471 472 473 474
          } else {
            lines2.forEach((line, index) => {
              const y = 180 + index * 20; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 336) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
“miaofang committed
475
              }
476 477 478 479
              arr.push(currentLine);
              arr.forEach((line, index) => {
                context.fillText(line, 129, y + index * 20); // 调整行高
              });
“miaofang committed
480
            });
481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
          }
        };
        image.src = this.imgSrc;
      },
      /**
       * @description: 不动产证明
       * @author: miaofang
       */
      drawTextzmImage () {
        function getByteLen (val) {
          var len = 0;
          if (!val) return len;
          for (var i = 0; i < val.length; i++) {
            var length = val.charCodeAt(i);
            if (length >= 0 && length <= 128) {
              len += 1;
            } else {
              len += 2;
            }
          }
          return len;
“miaofang committed
502 503
        }

504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
        const canvas = this.$refs.zm;
        const context = canvas.getContext("2d");
        const image = new Image();
        image.onload = () => {
          context.drawImage(image, 0, 0);
          context.font = "18px 楷体";
          context.fillStyle = "#000000";
          // ysxlh
          context.fillText(this.bdcqz.ysxlh ? this.bdcqz.ysxlh : "", 280, 712);
          // djsj
          if (this.bdcqz.djsj) {
            let djsjList = this.bdcqz.djsj.split(" ")[0].split("/");
            context.fillText(djsjList[0] ? djsjList[0] : "", 327, 580);
            context.fillText(djsjList[1] ? djsjList[1] : "", 393, 580);
            context.fillText(djsjList[2] ? djsjList[2] : "", 443, 580);
          }
          context.fillText(this.bdcqz.sjjc ? this.bdcqz.sjjc : "", 620, 125);
          context.fillText(this.bdcqz.djnd ? this.bdcqz.djnd : "", 665, 125);
          context.fillText(this.bdcqz.sxqc ? this.bdcqz.sxqc : "", 750, 125);
          context.fillText(this.bdcqz.sxh ? this.bdcqz.sxh : "", 960, 123);
          context.fillText(
            this.bdcqz.zmqlhsx ? this.bdcqz.zmqlhsx : "",
            775,
            180
          );
          context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : "", 775, 228);
          // 义务人
          context.fillText(this.bdcqz.ywr ? this.bdcqz.ywr : "", 775, 275);
          // context.fillText(this.bdcqz.zl ? this.bdcqz.zl : '', 775, 325);

          let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(" ") : [];
          if (getByteLen(this.bdcqz.zl) > 41) {
            lines2.forEach((line, index) => {
              const y = 315 + index * 20; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 295) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
“miaofang committed
549
              }
550
              arr.push(currentLine);
“miaofang committed
551
              arr.forEach((line, index) => {
552
                context.fillText(line, 775, y + index * 20); // 调整行高
“miaofang committed
553
              });
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570
            });
          } else {
            lines2.forEach((line, index) => {
              const y = 325 + index * 20; // 每行文本的垂直位置
              let currentLine = "";
              let arr = [];
              for (let word of line) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= 295) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
              }
              arr.push(currentLine);
“miaofang committed
571
              arr.forEach((line, index) => {
572
                context.fillText(line, 775, y + index * 20); // 调整行高
“miaofang committed
573
              });
574
            });
“miaofang committed
575
          }
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613

          // bdcdyh
          this.bdcdyh =
            this.bdcqz.bdcdyh.slice(0, 6) +
            " " +
            this.bdcqz.bdcdyh.slice(6, 12) +
            " " +
            this.bdcqz.bdcdyh.slice(12, 19) +
            " " +
            this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length);
          context.fillText(this.bdcdyh ? this.bdcdyh : "", 775, 373);
          // qlqtzk
          const maxWidth = 295; // 最大宽度限制
          let lines = this.bdcqz.qlqtzk ? this.bdcqz.qlqtzk.split("\n") : [];
          for (let i = 0; i < lines.length; i++) {
            let num = Math.ceil(getByteLen(lines[i]) / 37);
            if (getByteLen(lines[i]) > 37) {
              let currentLine = "";
              let arr = [];
              for (let word of lines[i]) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= maxWidth) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
              }
              arr.push(currentLine);
              if (i > 0) {
                arr.forEach((line, index) => {
                  context.fillText(
                    line,
                    770,
                    428 + 25 * (i - 1) + 5 * num + index * 15
                  ); // 调整行高
                });
“miaofang committed
614
              } else {
615 616 617
                arr.forEach((line, index) => {
                  context.fillText(line, 770, 435 + 25 * (i - 1) + index * 14); // 调整行高
                });
“miaofang committed
618
              }
619 620
            } else {
              if (i > 0) {
“miaofang committed
621
                context.fillText(
622
                  lines[i] ? lines[i] : "",
“miaofang committed
623
                  770,
624 625 626 627 628 629 630 631 632
                  440 + 5 * num + 24 * (i - 1)
                );
              } else {
                context.fillText(
                  lines[i] ? lines[i] : "",
                  770,
                  440 + 24 * (i - 1)
                );
              }
“miaofang committed
633
            }
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
          }
          // fj
          let lines1 = this.bdcqz.fj ? this.bdcqz.fj.split("\n") : [];
          for (let i = 0; i < lines1.length; i++) {
            let num = Math.ceil(getByteLen(lines1[i]) / 37);
            if (getByteLen(lines1[i]) > 37) {
              let currentLine = "";
              let arr = [];
              for (let word of lines1[i]) {
                const testLine = currentLine + word;
                const lineWidth = context.measureText(testLine).width;
                if (lineWidth <= maxWidth) {
                  currentLine = testLine;
                } else {
                  arr.push(currentLine);
                  currentLine = word;
                }
              }
              arr.push(currentLine);
              if (i > 0) {
                arr.forEach((line, index) => {
                  context.fillText(
                    line,
                    770,
                    610 + 25 * (i - 1) + 5 * num + index * 15
                  ); // 调整行高
                });
              } else {
                arr.forEach((line, index) => {
                  context.fillText(line, 770, 610 + 25 * (i - 1) + index * 15); // 调整行高
                });
              }
“miaofang committed
666
            } else {
667 668 669 670 671 672 673 674 675 676 677 678 679
              if (i > 0) {
                context.fillText(
                  lines1[i] ? lines1[i] : "",
                  770,
                  610 + 5 * num + 23 * (i - 1)
                );
              } else {
                context.fillText(
                  lines1[i] ? lines1[i] : "",
                  770,
                  610 + 23 * (i - 1)
                );
              }
“miaofang committed
680 681
            }
          }
682
        };
“miaofang committed
683

684 685
        image.src = this.bdczmSrc;
      },
“miaofang committed
686
    },
687 688 689 690 691
    computed: {
      hdiffHeight () {
        return 0;
        //  return this.headTabBdcqz.length > 1 ? 54 : 0
      },
“miaofang committed
692
    },
693
  };
“miaofang committed
694 695
</script>
<style scoped lang="scss">
696
  @import "~@/styles/mixin.scss";
“miaofang committed
697

698 699 700 701 702
  .imgClass {
    display: inline-block;
    height: auto;
    max-width: 100%;
  }
“miaofang committed
703

704 705 706
  .middle_padding {
    padding-bottom: 10px;
  }
“miaofang committed
707

708 709 710
  .zsyl-button {
    text-align: center;
    margin-top: 20px;
“miaofang committed
711

712 713 714 715
    .operation_button {
      width: 100px;
      border: 1px solid rgb(0, 121, 254);
    }
“miaofang committed
716

717 718 719 720
    .dy-button {
      color: white;
      background-color: rgb(0, 121, 254);
    }
“miaofang committed
721 722
  }

723 724 725
  .table-column {
    border-spacing: 1px;
    width: 100%;
“miaofang committed
726

727 728 729 730 731 732 733 734
    tr td {
      border: 1px solid #ccc;
      text-align: center;
      height: 40px;
      padding: 4px;
      font-size: 13px;
      background: rgb(251, 249, 229);
    }
“miaofang committed
735 736
  }

737 738 739 740 741 742
  .zsyl-title {
    background: #fafbe5;
    text-align: center;
    padding: 5px 0px;
    font-size: 20px;
  }
“miaofang committed
743

744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767
  .no-data {
    font-size: 18px;
    display: flex;
    text-align: center;
    justify-content: center;
  }
  .el-tab-pane {
    width: 1190px;
    height: 670px;
    overflow-y: auto;
  }
  .zsys {
    width: 1180px;
    height: 670px;
  }
  /deep/.el-table {
    height: 100px !important;
  }
  // /deep/.sz {
  //   height: 340px !important;
  // }
  .el-form {
    margin-top: 20px;
  }
“miaofang committed
768
</style>