Blame view

src/views/zhcx/djbcx/djbcx.vue 4.24 KB
1 2 3 4
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
任超 committed
5
      <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="70px">
6 7 8
        <el-row>
          <el-col :span="5">
            <el-form-item label="权利类型">
任超 committed
9
              <el-select v-model="queryForm.qllx" filterable class="width100" clearable placeholder="请选择权利类型">
任超 committed
10
                <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
11 12 13 14 15
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
任超 committed
16
            <el-form-item label="不动产单元号" label-width="105px">
17
              <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100">
18 19 20 21
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
任超 committed
22
            <el-form-item label="不动产权证号" label-width="105px">
23
              <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width100">
24 25 26 27 28
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="业务号">
yangwei committed
29
              <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width100">
30 31 32 33
              </el-input>
            </el-form-item>
          </el-col>

34
          <el-col :span="4" class="btnColRight">
35
            <el-form-item>
yangwei committed
36
              <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
1  
jiaozeping@pashanhoo.com committed
37
              <el-button @click="moreQueryClick">高级查询</el-button>
38 39 40 41 42 43 44
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
任超 committed
45 46 47
      <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort"
        :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange"
        @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
48 49 50 51 52
      </lb-table>
    </div>
  </div>
</template>
<script>
任超 committed
53
import { mapGetters } from "vuex";
54 55
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./djbcxdata";
田浩浩 committed
56
import { getDjbBysearch } from "@/api/zhcx.js";
吴蕾 committed
57

58 59 60
export default {
  name: "djbcx",
  mixins: [table],
任超 committed
61
  mounted () {
62
    sendThis(this);
任超 committed
63
    this.queryClick()
64
  },
任超 committed
65
  data () {
66 67 68 69 70 71 72 73 74 75
    return {
      queryForm: {
        qllx: "",
        bdcdyh: "",
        bdcqzh: "",
        ywh: "",
      },
      pageData: {
        current: 1,
        size: 10,
76
        total: 0,
77 78 79
      },
      tableData: {
        columns: datas.columns(),
吴蕾 committed
80
        data: [],
81
      },
吴蕾 committed
82 83
      qllxs: [],
      isDialog: false,
吴蕾 committed
84
      djbxxData: {},
85 86
    };
  },
吴蕾 committed
87 88 89
  computed: {
    ...mapGetters(["dictData"]),
  },
90 91
  methods: {
    // 初始化数据
任超 committed
92 93
    queryClick () {
      this.$startLoading()
吴蕾 committed
94
      getDjbBysearch({ ...this.queryForm, ...this.pageData }).then((res) => {
任超 committed
95
        this.$endLoading()
吴蕾 committed
96 97 98
        if (res.code === 200) {
          let { total, records } = res.result;
          this.tableData.data = records;
jiaozeping@pashanhoo.com committed
99
          this.tableData.total = total;
吴蕾 committed
100 101 102
        }
      });
    },
任超 committed
103
    handleSort (name, sort) {
104 105
      console.log(name, sort);
    },
吴蕾 committed
106
    // 高级查询
任超 committed
107 108
    moreQueryClick () { },
    openDialog (scroll) {
109
      this.$popupDialog('登记簿详情', 'registerBook/djbFrame', scroll, '85%');
110
    },
任超 committed
111
    handleLpbClick (item) {
112 113 114
      this.$popupDialog('楼盘表', 'lpb/index', {
        bsm: ''
      }, '85%')
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
    },
     ywhClick (item) {
        const { href } = this.$router.resolve(
         "/djbworkFrame?bdcdyid=" +
         item.bdcdyid+
         "&bdcdyh=" +
         item.bdcdyh+
         "&qllx="+
         item.qllx+
         "&bsmQlxx="+
         item.bsmQlxx
         );
        localStorage.setItem('ywbl', JSON.stringify(item));
        window.open(href, `urlname${item.bdcdyid}`);

      },
任超 committed
131 132
  }
}
133 134 135
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
任超 committed
136

吴蕾 committed
137 138 139
.icon-circle {
  position: relative;
}
任超 committed
140

吴蕾 committed
141 142 143 144 145 146 147 148 149
.icon-circle::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000;
  top: 0px;
  left: 0px;
}
150
</style>