|
@@ -1,148 +1,145 @@
|
|
|
<template>
|
|
|
- <div class="box">
|
|
|
- <!-- <yw-box class="zxbgdy-box" v-if="show == 1" title="查询结果">
|
|
|
- <div class="title">
|
|
|
- 依刘某某的申请,经查陕西省不动产登记“一窗受理”平台(自助查询系统)。查档案编号:BH20230518000485,共有1套房产结果如下:
|
|
|
- </div>
|
|
|
- <table frame="box" rules="all">
|
|
|
- <tr>
|
|
|
- <th>权利人名称</th>
|
|
|
- <td>——</td>
|
|
|
- <th>权利人证件号</th>
|
|
|
- <td>——</td>
|
|
|
- <th>查询时间</th>
|
|
|
- <td>——</td>
|
|
|
- </tr>
|
|
|
- <div class="abc">本次不动产信息查询共0条记录</div>
|
|
|
- </table>
|
|
|
- <div class="zhuyi">该记录依申请用于单位住房调查</div>
|
|
|
- </yw-box>
|
|
|
- <yw-box class="zxbgdy-box" v-if="show == 2" title="查询结果">
|
|
|
- <div class="title">
|
|
|
- 依刘某某的申请,经查陕西省不动产登记“一窗受理”平台(自助查询系统)。查档案编号:BH20230518000485,共有1套房产结果如下:
|
|
|
- </div>
|
|
|
- <table frame="box" rules="all">
|
|
|
- <tr>
|
|
|
- <th>权利人名称</th>
|
|
|
- <td>——</td>
|
|
|
- <th>权利人证件号</th>
|
|
|
- <td>——</td>
|
|
|
- <th>查询时间</th>
|
|
|
- <td>——</td>
|
|
|
- </tr>
|
|
|
- <div class="abc">本次不动产信息查询共0条记录</div>
|
|
|
- </table>
|
|
|
- <div class="zhuyi">该记录依申请用于单位住房调查</div></yw-box
|
|
|
- > -->
|
|
|
- <yw-box class="zxbgdy-box" v-if="show == 3">
|
|
|
- <iframe class="ifarme" :src="pdfShow"></iframe>
|
|
|
- </yw-box>
|
|
|
- </div>
|
|
|
+ <yw-box class="zxbgdy-box">
|
|
|
+ <iframe
|
|
|
+ v-if="pdf"
|
|
|
+ class="ifarme"
|
|
|
+ :src="`data:application/pdf;base64,${pdf}`"
|
|
|
+ ></iframe>
|
|
|
+ </yw-box>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { debug } from "@/api/zxbg";
|
|
|
+import { bdccx } from "@/api/public";
|
|
|
export default {
|
|
|
name: "NewsmzcZxbgdy",
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
- show: 3,
|
|
|
pdf: "",
|
|
|
- pdfShow: "",
|
|
|
};
|
|
|
},
|
|
|
|
|
|
- created() {
|
|
|
- let grsds = JSON.parse(sessionStorage.getItem("xx"));
|
|
|
- if (grsds) {
|
|
|
- this.pdf = grsds.pdf;
|
|
|
- this.pdfShow = "data:application/pdf;base64," + grsds.pdf;
|
|
|
+ mounted() {
|
|
|
+ // 初始化进度条
|
|
|
+ this.$emit("update:nowStep", 1);
|
|
|
+ this.$emit("update:time", 300);
|
|
|
+ this.Records();
|
|
|
+
|
|
|
+ if (this.$route.query.isok == "true") {
|
|
|
+ this.getPdf();
|
|
|
+ } else {
|
|
|
+ this.init();
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ created() {
|
|
|
// 初始化进度条
|
|
|
- this.$emit("update:nowStep", 3);
|
|
|
+ this.$emit("update:nowStep", 1);
|
|
|
this.$emit("update:time", 300);
|
|
|
+ // this.Records();
|
|
|
+
|
|
|
+ if (this.$route.query.isok == "true") {
|
|
|
+ this.getPdf();
|
|
|
+ } else {
|
|
|
+ this.init();
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
mounted() {},
|
|
|
|
|
|
methods: {
|
|
|
+ Records() {
|
|
|
+ let data = {
|
|
|
+ name:
|
|
|
+ JSON.parse(localStorage.getItem("userInfo")).userInfo.userName || "", //姓名
|
|
|
+ tel:
|
|
|
+ JSON.parse(localStorage.getItem("userInfo")).userInfo.userMobile ||
|
|
|
+ "", //手机号
|
|
|
+ sfzh:
|
|
|
+ JSON.parse(localStorage.getItem("userInfo")).userInfo.certNo || "", // 身份证号
|
|
|
+ nsrsbh: "" /** 纳税人识别号(自然人=身份证号码 */,
|
|
|
+ nsrmc: "" /** 纳税人名称(自然人=身份证姓名) */,
|
|
|
+ bz: "" /** 备注(查询起止时间) */,
|
|
|
+ type: "不动产",
|
|
|
+ };
|
|
|
+ this.$logs.log(data);
|
|
|
+ },
|
|
|
+
|
|
|
+ init() {
|
|
|
+ const cookie = localStorage.getItem("parameter") || "{}";
|
|
|
+ let firstUrl =
|
|
|
+ "https://bdc.sxrer.cn/#/home/info-search/newQuanSZM-query?aaa=1";
|
|
|
+ let nextUrl = `${window.location.origin}/zf/cjgrmxfczm?isok=true`;
|
|
|
+ var str1 = callbackObjAsync.doNextPage("1", cookie, firstUrl, nextUrl);
|
|
|
+ },
|
|
|
+
|
|
|
+ getPdf() {
|
|
|
+ let form = {};
|
|
|
+ form.namespace = "ServiceApp.service";
|
|
|
+ form.serviceId = "FileService";
|
|
|
+ form.funcId = "ReadIni";
|
|
|
+ form.xlh = "123456";
|
|
|
+ form.data = {
|
|
|
+ Section: "init",
|
|
|
+ Key: "bzcPdfUrl",
|
|
|
+ NoText: "",
|
|
|
+ iniFilePath: "C:\\smzc\\config.ini",
|
|
|
+ };
|
|
|
+ debug(JSON.stringify(form)).then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ if (res.data.data == "" || res.data.data == undefined) {
|
|
|
+ this.$msgbox({
|
|
|
+ title: "提示",
|
|
|
+ content: "获取pdf失败",
|
|
|
+ type: "error",
|
|
|
+ showCansole: false,
|
|
|
+ }).then(() => {});
|
|
|
+ } else {
|
|
|
+ this.urlToBase(res.data.data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ urlToBase(e) {
|
|
|
+ this.$loading.show("正在获取结果中...");
|
|
|
+ let form = {
|
|
|
+ pdfUrl: e,
|
|
|
+ };
|
|
|
+ bdccx(form).then((res) => {
|
|
|
+ this.$loading.hide();
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.pdf = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 打印
|
|
|
- // print() {
|
|
|
- // this.$loading.show("正在打印...");
|
|
|
- // let form = {};
|
|
|
- // form.namespace = "ServiceApp.service";
|
|
|
- // form.serviceId = "FileService";
|
|
|
- // form.funcId = "PrintFile";
|
|
|
- // form.xlh = "123456789987654321";
|
|
|
- // var data = { fileType: "pdf", datatype: "base64", base64: this.pdf };
|
|
|
- // form.data = data;
|
|
|
- // debug(JSON.stringify(form)).then((res) => {
|
|
|
- // if (res.code == "000") {
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$loading.hide();
|
|
|
- // this.$emit("update:nowPage", "blwc");
|
|
|
- // this.$emit("update:back", {
|
|
|
- // page: "blwc",
|
|
|
- // a: new Date().getTime(),
|
|
|
- // });
|
|
|
- // }, 3000);
|
|
|
- // } else {
|
|
|
- // this.$loading.hide();
|
|
|
- // this.$msgbox({
|
|
|
- // title: "警告",
|
|
|
- // content: "已经在打印队列中了,如未打印请联系工作人员",
|
|
|
- // type: "error",
|
|
|
- // showCansole: false,
|
|
|
- // }).then(() => {});
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
async print() {
|
|
|
this.$loading.show("正在打印...");
|
|
|
-
|
|
|
let printType = await this.$print.type();
|
|
|
-
|
|
|
+ let printRes = {};
|
|
|
if (printType == "jfdzh") {
|
|
|
- var printRes = await this.$print.dzhPrintA4(this.pdf);
|
|
|
- if (printRes.code == 200) {
|
|
|
- setTimeout(() => {
|
|
|
- this.$loading.hide();
|
|
|
- this.$emit("update:nowPage", "blwc");
|
|
|
- this.$emit("update:back", {
|
|
|
- page: "blwc",
|
|
|
- a: new Date().getTime(),
|
|
|
- });
|
|
|
- }, 3000);
|
|
|
- } else {
|
|
|
- this.$loading.hide();
|
|
|
- this.$msgbox({
|
|
|
- title: "警告",
|
|
|
- content: "已经在打印队列中了,如未打印请联系工作人员",
|
|
|
- type: "error",
|
|
|
- showCansole: false,
|
|
|
- }).then(() => {});
|
|
|
- }
|
|
|
+ printRes = await this.$print.dzhPrintA4(this.pdf);
|
|
|
} else {
|
|
|
- var printRes = await this.$print.debugPrintPdfBase64(this.pdf);
|
|
|
- if (printRes.code == 200) {
|
|
|
- setTimeout(() => {
|
|
|
- this.$loading.hide();
|
|
|
- this.$emit("update:nowPage", "blwc");
|
|
|
- this.$emit("update:back", {
|
|
|
- page: "blwc",
|
|
|
- a: new Date().getTime(),
|
|
|
- });
|
|
|
- }, 3000);
|
|
|
- } else {
|
|
|
+ printRes = await this.$print.debugPrintPdfBase64(this.pdf);
|
|
|
+ }
|
|
|
+ if (printRes.code == 200) {
|
|
|
+ setTimeout(() => {
|
|
|
this.$loading.hide();
|
|
|
- this.$msgbox({
|
|
|
- title: "警告",
|
|
|
- content: "已经在打印队列中了,如未打印请联系工作人员",
|
|
|
- type: "error",
|
|
|
- showCansole: false,
|
|
|
- }).then(() => {});
|
|
|
- }
|
|
|
+ this.$emit("update:nowPage", "blwc");
|
|
|
+ this.$emit("update:back", {
|
|
|
+ page: "blwc",
|
|
|
+ a: new Date().getTime(),
|
|
|
+ });
|
|
|
+ }, 3000);
|
|
|
+ } else {
|
|
|
+ this.$loading.hide();
|
|
|
+ this.$msgbox({
|
|
|
+ title: "警告",
|
|
|
+ content: printRes.msg,
|
|
|
+ type: "error",
|
|
|
+ showCansole: false,
|
|
|
+ }).then(() => {});
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -150,64 +147,12 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.box {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- .zxbgdy-box {
|
|
|
- width: 80%;
|
|
|
+.zxbgdy-box {
|
|
|
+ .ifarme {
|
|
|
+ width: 100%;
|
|
|
height: 100%;
|
|
|
- .title {
|
|
|
- // width: 1156px;
|
|
|
- height: 60px;
|
|
|
- font-size: 22px;
|
|
|
- font-family: PingFang SC, PingFang SC-Light;
|
|
|
- font-weight: 300;
|
|
|
- text-align: left;
|
|
|
- color: #000000;
|
|
|
- line-height: 30px;
|
|
|
- }
|
|
|
- table {
|
|
|
- margin: 15px 0;
|
|
|
- width: 100%;
|
|
|
- font-size: 20px;
|
|
|
- font-weight: 400;
|
|
|
- color: #333333;
|
|
|
- letter-spacing: 0.2px;
|
|
|
- .abc {
|
|
|
- background: #f8fbfe;
|
|
|
- height: 79px;
|
|
|
- text-align: center;
|
|
|
- line-height: 79px;
|
|
|
- }
|
|
|
- tr {
|
|
|
- th {
|
|
|
- // width: 220px;
|
|
|
- height: 79px;
|
|
|
- opacity: 0.8;
|
|
|
- background: #f8fbfe;
|
|
|
- }
|
|
|
- td {
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .zhuyi {
|
|
|
- width: 308px;
|
|
|
- height: 30px;
|
|
|
- font-size: 22px;
|
|
|
- font-family: PingFang SC, PingFang SC-Light;
|
|
|
- font-weight: 300;
|
|
|
- text-align: left;
|
|
|
- color: #000000;
|
|
|
- line-height: 30px;
|
|
|
- }
|
|
|
- .ifarme {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
@media (min-width: 1800px) {
|
|
|
.zxbgdy-box {
|
|
|
width: 1290px;
|