Forráskód Böngészése

出具个人名下房产证明

Liuteng 2 hónapja
szülő
commit
82aa1bbd0a

+ 1 - 1
src/views/HVversion/VocationalWork/PublicService/cjgrmxfczm/component/blwc.vue

@@ -14,7 +14,7 @@ export default {
 
   created() {
     // 初始化进度条
-    this.$emit("update:nowStep", 4);
+    this.$emit("update:nowStep", 2);
     this.$emit("update:time", 20);
   },
 

+ 0 - 167
src/views/HVversion/VocationalWork/PublicService/cjgrmxfczm/component/dq.vue

@@ -1,167 +0,0 @@
-<template>
-  <yw-box class="xzsj-box" title="选择办事大厅地区">
-    <div class="listBox">
-      <div class="sj z">
-        <div class="name">市 级:</div>
-        <div class="p">
-          <div
-            :class="Color == index ? 'active' : 'dqBtn'"
-            v-for="(item, index) in list"
-            :key="index"
-            @click="getcity(item, index)"
-          >
-            {{ item.title }}
-          </div>
-        </div>
-      </div>
-      <div class="sh z">
-        <div class="name">县(市、区):</div>
-        <div class="p">
-          <!--  -->
-          <div
-            :class="sColor == index ? 'active' : 'dqBtn'"
-            v-for="(item, index) in counter"
-            :key="index"
-            @click="btns(item, index)"
-          >
-            {{ item.title }}
-          </div>
-        </div>
-      </div>
-    </div>
-    <div class="btnbox" v-show="show">
-      <div class="btn" @click="select">查询</div>
-    </div>
-  </yw-box>
-</template>
-
-<script>
-import { bsqy } from "@/api/public";
-export default {
-  name: "NewsmzcTest1",
-
-  data() {
-    return {
-      list: [],
-      Color: 0,
-      sColor: -1,
-      counter: [],
-      show: false,
-      // show: true,
-    };
-  },
-
-  mounted() {
-    // 初始化进度条
-    this.$emit("update:nowStep", 1);
-    this.$emit("update:time", 300);
-    this.get();
-  },
-
-  methods: {
-    get() {
-      bsqy().then((res) => {
-        this.list = res.data.tree[0].childrens;
-        this.counter = res.data.tree[0].childrens[0].childrens;
-      });
-    },
-    //选择市
-    getcity(e, a) {
-      this.Color = a;
-      this.counter = e.childrens;
-      console.log(this.counter);
-    },
-    btns(e, a) {
-      this.sColor = a;
-      this.show = true;
-      sessionStorage.setItem("dq", JSON.stringify(e));
-    },
-    // 查询
-    select() {
-      this.$emit("update:nowPage", "login");
-    },
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.xzsj-box {
-  width: 80%;
-
-  .listBox {
-    height: 100%;
-    overflow-y: auto;
-
-    .z {
-      display: flex;
-      // justify-content: flex-start;
-      .name {
-        width: 150px;
-        height: 37px;
-        font-size: 26px;
-        font-weight: 400;
-        color: #333333;
-        text-align: right;
-      }
-      .p {
-        display: flex;
-        justify-content: flex-start;
-        flex: 1;
-        flex-flow: wrap;
-        .dqBtn {
-          border: 2px solid #578cff;
-          border-radius: 5px;
-          font-size: 21px;
-          font-weight: 400;
-          text-align: center;
-          color: #578cff;
-          padding: 9px 39px;
-          margin-right: 30px;
-          margin-bottom: 30px;
-        }
-        .active {
-          border: 2px solid #578cff;
-          border-radius: 5px;
-          font-size: 21px;
-          font-weight: 400;
-          text-align: center;
-          padding: 9px 39px;
-          margin-right: 30px;
-          margin-bottom: 30px;
-          background: #578cff;
-          color: #ffffff;
-        }
-      }
-    }
-  }
-  .btnbox {
-    width: 100%;
-    text-align: center;
-    .btn {
-      margin: auto;
-      margin-top: 60px;
-      width: 135px;
-      height: 60px;
-      line-height: 60px;
-      text-align: center;
-      font-size: 22px;
-      color: #ffffff;
-      border-radius: 5px;
-      background: linear-gradient(180deg, #76a1fc, #4d58f3);
-    }
-  }
-}
-.listBox::-webkit-scrollbar-thumb {
-  width: 10px;
-  background: #b6cdfe;
-  border-radius: 5px;
-}
-.listBox::-webkit-scrollbar-track {
-  background-color: #f5f6f7;
-  width: 10px;
-  border-radius: 5px;
-}
-.listBox::-webkit-scrollbar {
-  width: 10px;
-}
-</style>

+ 116 - 171
src/views/HVversion/VocationalWork/PublicService/cjgrmxfczm/component/dyyl.vue

@@ -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;

+ 0 - 228
src/views/HVversion/VocationalWork/PublicService/cjgrmxfczm/component/login.vue

@@ -1,228 +0,0 @@
-<template>
-  <yw-box class="xzsj-box" title="个人信息">
-    <table class="table">
-      <tr>
-        <td class="t-title">姓名:</td>
-        <td class="t-content">{{ this.cdData.userInfo.name }}</td>
-      </tr>
-      <tr>
-        <td class="t-title">证件类型:</td>
-        <td class="t-content">{{ "身份证" }}</td>
-      </tr>
-      <tr>
-        <td class="t-title">证件号码:</td>
-        <td class="t-content">{{ this.cdData.userInfo.zjh }}</td>
-      </tr>
-    </table>
-    <div class="button btnActive" @click="select">查询</div>
-  </yw-box>
-</template>
-
-<script>
-import { bdccx } from "@/api/public";
-export default {
-  name: "NewsmzcTest1",
-
-  data() {
-    return {
-      cdData: {
-        userInfo: {
-          name: "",
-          zjh: "",
-        },
-      },
-    };
-  },
-  created() {
-    this.get();
-  },
-
-  mounted() {
-    // 初始化进度条
-    this.$emit("update:nowStep", 2);
-    this.$emit("update:time", 300);
-    this.Records();
-  },
-
-  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);
-    },
-    get() {
-      this.$loading.show("数据加载中,请耐心等待...");
-      var data = JSON.parse(localStorage.getItem("parameter"));
-      data.qydm = JSON.parse(sessionStorage.getItem("dq")).code;
-      bdccx(data).then((res) => {
-        this.$loading.hide();
-        if (res.code == 200) {
-          this.cdData = res.data;
-        } else {
-          this.$msgbox({
-            title: "警告",
-            content: "当前不可查询!",
-            type: "error",
-            showCansole: false,
-          }).then(() => {});
-        }
-      });
-    },
-    //选择器数据获取
-    yjselect(e) {},
-    // 查询
-
-    select() {
-      this.show = true;
-      sessionStorage.setItem("xx", JSON.stringify(this.cdData));
-      this.$emit("update:nowPage", "dyyl");
-    },
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.xzsj-box {
-  width: 80%;
-  position: relative;
-  .table {
-    margin: auto;
-    width: 775px;
-    border-spacing: 0 15px;
-
-    tr {
-      margin-top: 15px;
-      height: 50px;
-
-      td {
-        padding: 0 10px;
-        font-size: 22px;
-        color: #000000;
-      }
-
-      .t-title {
-        width: 170px;
-        text-align: right;
-      }
-      .t-titles {
-        width: 170px;
-        text-align: right;
-        color: #1a56a8;
-      }
-
-      .t-content {
-        background: #f2f2f2;
-        border: 0.5px solid #707070;
-      }
-      .t-contents {
-        border: 0.5px solid #707070;
-        padding: 0px;
-        yj-select {
-          width: 100%;
-          height: 100%;
-        }
-      }
-      .t-yzm {
-        padding: 0;
-        height: 50px;
-        line-height: 50px;
-
-        span {
-          width: 154px;
-          height: 40px;
-          font-size: 22px;
-          font-family: PingFang SC, PingFang SC-Regular;
-          font-weight: 400;
-          text-align: center;
-          color: #707070;
-          line-height: 40px;
-          margin-right: 10px;
-          img {
-            width: 157px;
-            height: 40px;
-            background: rgba(0, 0, 0, 0);
-          }
-          input {
-            width: 163px;
-            height: 40px;
-            background: rgba(0, 0, 0, 0);
-            border: 0.56px solid #707070;
-            vertical-align: top;
-          }
-          span {
-            line-height: 40px;
-          }
-        }
-      }
-      .t-picker-box {
-        display: flex;
-      }
-    }
-  }
-
-  .button {
-    margin: auto;
-    margin-top: 20px;
-    width: 135px;
-    height: 60px;
-    line-height: 60px;
-    text-align: center;
-    font-size: 22px;
-    color: #ffffff;
-    border-radius: 5px;
-    background: linear-gradient(180deg, #76a1fc, #4d58f3);
-  }
-  .zzbox {
-    width: 100%;
-    height: 100%;
-    position: absolute;
-    // opacity: 0.6;
-    background: #00000060;
-    top: 0;
-    left: 0;
-    border-spacing: 0 15px;
-    border-radius: 20px;
-
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    flex-direction: column;
-    .box-content {
-      width: 431px;
-      height: 397px;
-      background: #ffffff;
-      border: 1px solid #707070;
-      display: flex;
-      align-items: center;
-      justify-content: center;
-      flex-direction: column;
-      opacity: 1;
-      .code {
-        width: 280px;
-        height: 280px;
-        border: 1px solid #515151;
-
-        img {
-          width: 100%;
-          height: 100%;
-        }
-      }
-
-      .title {
-        margin-top: 50px;
-        width: 100%;
-        font-size: 20px;
-        text-align: center;
-        color: #333333;
-      }
-    }
-  }
-}
-</style>

+ 5 - 9
src/views/HVversion/VocationalWork/PublicService/cjgrmxfczm/index.vue

@@ -27,16 +27,12 @@
 </template>
 
 <script>
-import login from "./component/login.vue";
-import dq from "./component/dq.vue";
 import dyyl from "./component/dyyl.vue";
 import blwc from "./component/blwc.vue";
 export default {
   name: "NewsmzcIndex",
 
   components: {
-    dq,
-    login,
     dyyl,
     blwc,
   },
@@ -47,14 +43,14 @@ export default {
       time: 120,
       // 进度条
       nowStep: 1,
-      stepList: ["出具个人名下房产证明", "选择办事大厅", "个人信息", "查询结果", "完成"],
-      showCenter: false,
-      centerName: "下一步",
+      stepList: ["出具个人名下房产证明","查询结果", "完成"],
+      showCenter: true,
+      centerName: "打印",
       // 业务
-      nowPage: "dq",
+      nowPage: "dyyl",
 
       back: "",
-      pageList: ["dq"],
+      pageList: ["dyyl"],
     };
   },