Blame view

src/views/sjgx/gbmhlgxsjgx/gbmhlgxsjgx.vue 8.34 KB
1 2 3
<!--
 * @Author: yangwei
 * @Date: 2023-09-01 10:39:03
4 5
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-02-02 09:17:47
6 7 8 9 10 11 12 13 14 15 16 17 18
 * @FilePath: \bdcdj-web\src\views\sjgx\gbmhlgxsjgx\gbmhlgxsjgx.vue
 * @Description: 
 * 
 * Copyright (c) 2023 by yangwei, All Rights Reserved. 
-->

<template>
  <div class="from-clues">
    <div class="from-clues-header">
      <el-form
        :model="queryForm"
        ref="queryForm"
        @submit.native.prevent
19
        label-width="100px">
20 21 22 23 24 25 26
        <el-row>
          <el-col :span="5">
            <el-form-item label="身份证号">
              <el-input
                placeholder="身份证号"
                v-model="queryForm.gmsfhm"
                clearable
27
                class="width100">
28 29 30 31 32 33 34 35 36
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="姓名">
              <el-input
                placeholder="姓名"
                v-model="queryForm.xm"
                clearable
37
                class="width100">
38 39 40 41 42 43 44 45 46 47
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="证件种类">
              <el-select
                v-model="queryForm.qllx"
                class="width100"
                filterable
                clearable
48
                placeholder="证件种类">
49
                <el-option
50
                  v-for="item in zjzlList"
51 52
                  :key="item.dcode"
                  :label="item.dname"
53
                  :value="item.dcode">
54 55 56 57 58 59 60 61 62 63
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="不动产单元号">
              <el-input
                placeholder="不动产单元号"
                v-model="queryForm.bdcdyh"
                clearable
64
                class="width100">
65 66 67 68 69 70 71 72 73 74 75
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
      <div
        v-for="item in searchType"
        :key="item.name"
        @click="openDialog(item)"
76
        class="search-type">
77 78
        <div
          :style="{
79 80
            backgroundColor: 'rgba(' + item.bgColor + ',0.12)',
            border: '1px solid ' + 'rgba(' + item.bgColor + ',0.3)',
yangwei committed
81
            '--hover-color': 'rgba(' + item.bgColor + ',1)' 
82
          }">
83
          <img :src="item.svg" alt="" />
84
        </div>
yangwei committed
85
        <p>{{ item.interfaceDescription }}</p>
86 87 88 89 90 91 92 93
      </div>
    </div>
    <el-dialog
      :close-on-click-modal="false"
      :title="dialogTitle"
      :visible.sync="dialogVisible"
      custom-class="insetDialog"
      append-to-body
94
      width="50%">
95 96 97 98 99 100 101 102
      <component :is="dialogComp" v-if="dialogVisible" :condition="queryForm" />
      <div class="text-center pt-10 pb-20">
        <el-button @click="dialogVisible = false">关 闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
103 104 105 106 107 108 109 110 111 112
  import store from '@/store/index.js'
  import { getSysInterfaceList } from "@/api/ptjk.js";
  export default {
    name: "BdcdjWebGbmhlgxsjgx",
    props: {
      formData: {
        type: Object,
        default: () => {
          return {}
        }
113
      }
114 115 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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
    },
    data () {
      return {
        zjzlList: store.getters.dictData['A34'],
        queryForm: {},
        searchType: [
          {
            name: "身份核查",
            bgColor: "92, 149, 229",
            comp: "sfhc",
            svg: require("./images/sfhc.svg"),
          },
          {
            name: "婚姻登记信息核验",
            bgColor: "221, 138, 92",
            comp: "hydjxxhy",
            svg: require("./images/hydjxxhy.svg"),
          },
          {
            name: "金融许可查询",
            bgColor: "61, 164, 131",
            comp: "jrxkcx",
            svg: require("./images/jrxkcx.svg"),
          },
          {
            name: "企业基本信息查询",
            bgColor: "221, 138, 92",
            comp: "qyjbxxcx",
            svg: require("./images/qyjbxxcx.svg"),
          },
          {
            name: "企业基本信息验证",
            bgColor: "92, 181, 204",
            comp: "qyjbxxyz",
            svg: require("./images/qyjbxxyz.svg"),
          },
          {
            name: "地域信息查询",
            bgColor: "92, 149, 229",
            comp: "dyxxcx",
            svg: require("./images/dyxxcx.svg"),
          },
          {
            name: "个体工商户基本信息查询",
            bgColor: "61, 164, 131",
            comp: "gtgshjbxxcx",
            svg: require("./images/gtgshjbxxcx.svg"),
          },
          {
            name: "个体工商户基本信息验证",
            bgColor: "141, 100, 197",
            comp: "gtgshjbxxyz",
            svg: require("./images/gtgshjbxxyz.svg"),
          },
          {
            name: "中编办机构信息查询",
            bgColor: "141, 100, 197",
            comp: "zbbjgxxcx",
            svg: require("./images/zbbjgxxcx.svg"),
          },
          {
            name: "机构信息查询",
            bgColor: "92, 149, 229",
            comp: "jgxxcx",
            svg: require("./images/jgxxcx.svg"),
          },
          {
            name: "不动产登记信息查询",
            bgColor: "231, 128, 118",
            comp: "bdcdjxxcx",
            svg: require("./images/bdcdjxxcx.svg"),
          },
          {
            name: "电子营业执照查询",
            bgColor: "92, 149, 229",
            comp: "dzyyzzcx",
            svg: require("./images/dzyyzzcx.svg"),
          },
          {
            name: "公证书信息查询",
            bgColor: "221, 138, 92",
            comp: "gzsxxcx",
            svg: require("./images/gzsxxcx.svg"),
          },
          {
            name: "最高法部门",
            bgColor: "92, 181, 204",
            comp: "zgfbm",
            svg: require("./images/zgfbm.svg"),
          },
          {
            name: "未知",
            bgColor: "109, 114, 120",
            comp: "",
            svg: require("./images/unknow.svg"),
          },
        ],
        dialogVisible: false,
        dialogTitle: "",
        dialogComp: null,
      };
    },
216

217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
    mounted () {
      getSysInterfaceList({ interfaceType: "4", pageSize: 100 }).then((res) => {
        if (res.code == 200) {
          res.result.records.forEach(i => {
            let a = this.searchType.filter(item => i.interfaceService == item.name)
            if (a.length) {
              i.bgColor = a[0].bgColor
              i.svg = a[0].svg
              i.comp = a[0].comp
            } else {
              i.bgColor = '109, 114, 120'
              i.svg = require("./images/unknow.svg")
              i.comp = ''
            }
          })
          this.searchType = res.result.records
        }
      });
235
    },
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250

    methods: {
      /**
       * @description: openDialog 打开弹框窗口
       * @param {*} item
       * @author: renchao
       */
      openDialog (item) {
        this.dialogTitle = item.interfaceDescription;
        this.dialogComp = (r) =>
          require.ensure([], () => r(require(`./components/${item.comp}.vue`)))
        item.comp && (this.dialogVisible = true)
      }
    }
  }
251 252
</script>
<style scoped lang="scss">
253 254 255 256 257 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
  @import "~@/styles/public.scss";
  .from-clues-content {
    height: calc(100% - 60px);
    display: flex;
    flex-wrap: wrap;
  }
  /deep/.el-dialog__title {
    color: #ffffff !important;
  }
  .search-type {
    width: 12.5%;
    text-align: center;
    height: 160px;
    box-sizing: border-box;
    padding: 32px 0;
    > div {
      width: 70px;
      height: 70px;
      border-radius: 4px;
      margin: 0 auto;
      cursor: pointer;
      &:hover {
        border-color: var(--hover-color) !important;
      }
      i {
        text-align: center;
        line-height: 60px;
        font-size: 26px;
        color: #fff;
      }
      img {
        display: inline-block;
        width: 34px;
        height: 34px;
        margin: 17px 0;
      }
289
    }
290 291 292 293 294
    p {
      margin-top: 20px;
      cursor: pointer;
      font-size: 16px;
      color: #31333c;
295
    }
296
  }
297 298
  /deep/.el-dialog__header {
    text-align: center;
299
  }
300 301 302 303 304 305 306 307 308 309
  /deep/ .check-result {
    min-height: 200px;
    box-sizing: border-box;
    padding: 20px 0 0;
  }
  .pb-20 {
    padding-bottom: 20px;
    /deep/ .el-button {
      cursor: pointer;
    }
310 311
  }
</style>