Blame view

src/views/zhcx/jdcx/jdcx.vue 5.81 KB
1
<!--
yuanbo committed
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-10-17 09:29:06
5
-->
6 7 8 9
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
10
      <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="100px">
11 12
        <el-row>
          <el-col :span="5">
13
            <el-form-item label="业务来源">
任超 committed
14
              <el-select v-model="queryForm.ywly" class="width100" filterable clearable placeholder="请选择业务来源">
任超 committed
15
                <el-option v-for="item in dictData['ywly']" :key="item.dcode" :label="item.dname" :value="item.dcode">
16 17 18 19 20 21
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="权利类型">
任超 committed
22
              <el-select v-model="queryForm.qllx" class="width100" filterable clearable placeholder="请选择权利类型">
任超 committed
23
                <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
24 25 26 27 28 29
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="登记类型">
任超 committed
30
              <el-select v-model="queryForm.djlx" class="width100" filterable clearable placeholder="请选择登记类型">
任超 committed
31
                <el-option v-for="item in  dictData['A21']" :key="item.dcode" :label="item.dname" :value="item.dcode">
32 33 34 35 36 37
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="业务号">
yangwei committed
38
              <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
39 40 41 42
              </el-input>
            </el-form-item>
          </el-col>

43
          <el-col :span="4" class="btnColRight">
44
            <el-form-item>
yangwei committed
45
              <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
46
              <!-- <el-button @click="moreQueryClick">高级查询</el-button> -->
47 48 49
            </el-form-item>
          </el-col>
        </el-row>
50 51
        <el-row>
          <el-col :span="5">
52 53 54 55 56
            <el-form-item label="不动产单元号">
              <el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
57
          <el-col :span="5">
58 59 60 61 62
            <el-form-item label="申请人">
              <el-input placeholder="如需要模糊查询,前后输入%" v-model="queryForm.sqrmc" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
63
          <el-col :span="5">
64 65 66 67 68
            <el-form-item label="申请人证件号">
              <el-input placeholder="如需要模糊查询,前后输入%" v-model="queryForm.sqrzjhm" clearable class="width100">
              </el-input>
            </el-form-item>
          </el-col>
69
          <el-col :span="5">
70
            <el-form-item label="坐落">
xiaomiao committed
71
              <el-input placeholder="如需要模糊查询,前后输入%" v-model.trim="queryForm.zl" clearable class="width100">
72 73 74 75
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
76 77 78 79
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
80 81
      <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort"
        :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange"
任超 committed
82
        @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
83 84 85 86 87
      </lb-table>
    </div>
  </div>
</template>
<script>
xiaomiao committed
88 89 90
  import { mapGetters } from 'vuex'
  import table from "@/utils/mixin/table";
  import { datas, sendThis } from "./jdcxdata";
91
  import { getJdcxBysearch } from "@/api/search.js"
xiaomiao committed
92 93 94 95 96 97 98 99 100
  export default {
    name: "jdcx",
    components: {},
    mixins: [table],
    mounted () {
      sendThis(this);
    },
    computed: {
      ...mapGetters(['dictData'])
任超 committed
101
    },
xiaomiao committed
102 103 104 105 106 107 108 109 110 111
    data () {
      return {
        queryForm: {
        },
        tableData: {
          total: 0,
          columns: datas.columns(),
          data: []
        }
      }
任超 committed
112
    },
113 114 115
    activated () {
      this.queryClick()
    },
xiaomiao committed
116
    methods: {
1  
renchao@pashanhoo.com committed
117
      // 初始化数据
yuanbo committed
118 119 120 121
      /**
       * @description: 初始化数据
       * @author: renchao
       */
xiaomiao committed
122 123 124 125 126 127 128 129 130 131 132
      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 : [];
          }
        })
      },
yuanbo committed
133 134 135 136 137 138
      /**
       * @description: handleSort
       * @param {*} name
       * @param {*} sort
       * @author: renchao
       */
xiaomiao committed
139 140 141
      handleSort (name, sort) {
        console.log(name, sort);
      },
yuanbo committed
142 143 144 145 146
      /**
       * @description: openDialog
       * @param {*} item
       * @author: renchao
       */
xiaomiao committed
147
      openDialog (item) {
148 149 150 151 152
        if (item.sjlx == "3") {
          item.djywbm = "DJBBL";
          const { href } = this.$router.resolve(
            "/djbworkFrameview?bsmSlsq=" +
            item.bsmSlsq +
153 154
            "&bsmBusiness=" +
            item.bsmBusiness +
155 156 157 158 159 160 161 162
            "&sqywbm=" +
            item.djywbm
          );
          window.open(href, `djbworkFrameview${item.bsmSlsq}`);
        } else {
          const { href } = this.$router.resolve(
            "/workFrameView?bsmSlsq=" +
            item.bsmSlsq +
163
            "&bsmBusiness=" +
164
            item.bsmBusiness + '&type=jdcx'
165
          );
166
          window.open(href, `workFrameView${item.bsmSlsq}`)
167
        }
xiaomiao committed
168
      }
任超 committed
169 170
    }
  }
171 172
</script>
<style scoped lang="scss">
xiaomiao committed
173
  @import "~@/styles/public.scss";
174
</style>