jdcx.vue 5.5 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-09-18 11:19:07
-->
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
      <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="100px">
        <el-row>
          <el-col :span="5">
            <el-form-item label="业务来源">
              <el-select v-model="queryForm.ywly" class="width100" filterable clearable placeholder="请选择业务来源">
                <el-option v-for="item in dictData['ywly']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="权利类型">
              <el-select v-model="queryForm.qllx" class="width100" filterable clearable placeholder="请选择权利类型">
                <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="登记类型">
              <el-select v-model="queryForm.djlx" class="width100" filterable clearable placeholder="请选择登记类型">
                <el-option v-for="item in  dictData['A21']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="业务号">
              <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
              </el-input>
            </el-form-item>
          </el-col>

          <el-col :span="4" class="btnColRight">
            <el-form-item>
              <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
              <el-button @click="moreQueryClick">高级查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="5">
            <el-form-item label="不动产单元号">
              <el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请人">
              <el-input placeholder="如需要模糊查询,前后输入%" v-model="queryForm.sqrmc" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请人证件号">
              <el-input placeholder="如需要模糊查询,前后输入%" v-model="queryForm.sqrzjhm" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="坐落">
              <el-input placeholder="如需要模糊查询,前后输入%" v-model.trim="queryForm.zl" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
      <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort"
        :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange"
        @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
      </lb-table>
    </div>
  </div>
</template>
<script>
  import { mapGetters } from 'vuex'
  import table from "@/utils/mixin/table";
  import { datas, sendThis } from "./jdcxdata";
  import { getJdcxBysearch } from "@/api/search.js"
  export default {
    name: "jdcx",
    components: {},
    mixins: [table],
    mounted () {
      sendThis(this);
    },
    computed: {
      ...mapGetters(['dictData'])
    },
    data () {
      return {
        queryForm: {
        },
        tableData: {
          total: 0,
          columns: datas.columns(),
          data: []
        }
      }
    },
    activated () {
      this.queryClick()
    },
    methods: {
      // 初始化数据
      /**
       * @description: 初始化数据
       * @author: renchao
       */
      queryClick () {
        this.$startLoading()
        getJdcxBysearch({ ...this.queryForm, ...this.pageData }).then(res => {
          this.$endLoading()
          if (res.code === 200) {
            let { total, records } = res.result
            this.tableData.total = total ? total : 0;
            this.tableData.data = records ? records : [];
          }
        })
      },
      /**
       * @description: handleSort
       * @param {*} name
       * @param {*} sort
       * @author: renchao
       */
      handleSort (name, sort) {
        console.log(name, sort);
      },
      /**
       * @description: 高级查询
       * @author: renchao
       */
      moreQueryClick () { },
      /**
       * @description: openDialog
       * @param {*} item
       * @author: renchao
       */
      openDialog (item) {
        const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3' + '&type=jdcx')
        window.open(href, `urlname${item.bsmSlsq}`)
      }
    }
  }
</script>
<style scoped lang="scss">
  @import "~@/styles/public.scss";
</style>