Blame view

src/views/sqcx/sqcxjl/sqcxjl.vue 3.46 KB
jiaozeping@pashanhoo.com committed
1 2 3 4
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
任超 committed
5
      <el-form :model="queryForm" ref="queryForm" label-width="80px">
jiaozeping@pashanhoo.com committed
6 7
        <el-row>
          <el-col :span="5">
liangyifan committed
8
            <el-form-item label="查询编号">
任超 committed
9
              <el-input placeholder="请输入编号" v-model="queryForm.cxbh" clearable>
任超 committed
10
              </el-input>
liangyifan committed
11 12 13 14
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="申请人">
任超 committed
15 16
              <el-input placeholder="请输入申请人" v-model="queryForm.sqr" clearable>
              </el-input>
liangyifan committed
17 18 19 20
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="查询用途">
任超 committed
21
              <el-select v-model="queryForm.cxyt" class="width100" filterable clearable placeholder="请选择用途">
任超 committed
22
                <el-option v-for="item in cxytOption" :key="item.value" :label="item.label" :value="item.value">
liangyifan committed
23 24 25 26 27 28
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="业务号">
任超 committed
29
              <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
liangyifan committed
30
              </el-input>
jiaozeping@pashanhoo.com committed
31 32 33 34 35
            </el-form-item>
          </el-col>

          <el-col :span="4" class="btnCol">
            <el-form-item>
任超 committed
36
              <el-button type="primary" icon="el-icon-search" @click="fetchData">查询</el-button>
jiaozeping@pashanhoo.com committed
37 38 39 40 41 42 43 44
              <el-button @click="moreQueryClick()">高级查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
任超 committed
45
      <lb-table :page-size="pageData.size" @sort-change="handleSort" :current-page.sync="pageData.current"
任超 committed
46
        :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
任超 committed
47
        :column="tableData.columns" :data="tableData.data">
jiaozeping@pashanhoo.com committed
48 49
      </lb-table>
    </div>
jiaozeping@pashanhoo.com committed
50
    <addjtfc v-model="isDialog" />
jiaozeping@pashanhoo.com committed
51 52 53
  </div>
</template>
<script>
jiaozeping@pashanhoo.com committed
54
import addjtfc from "./components/addjtfc.vue";
任超 committed
55 56 57
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./sqcxjldata"
import { getJtfcPage } from '@/api/sqcx'
jiaozeping@pashanhoo.com committed
58 59
export default {
  name: "sqcxjl",
jiaozeping@pashanhoo.com committed
60
  components: { addjtfc },
jiaozeping@pashanhoo.com committed
61
  mixins: [table],
任超 committed
62
  mounted () {
jiaozeping@pashanhoo.com committed
63 64
    sendThis(this);
  },
任超 committed
65
  data () {
jiaozeping@pashanhoo.com committed
66
    return {
任超 committed
67
      isDialog: false,
任超 committed
68 69
      sqrOption: [],
      cxytOption: [],
jiaozeping@pashanhoo.com committed
70
      queryForm: {
任超 committed
71 72 73 74
        cxbh: "",
        sqr: "",
        cxyt: "",
        ywh: "",
jiaozeping@pashanhoo.com committed
75 76
      },
      tableData: {
任超 committed
77
        total: 0,
jiaozeping@pashanhoo.com committed
78 79 80
        columns: datas.columns(),
        data: [
          {
任超 committed
81 82 83 84 85 86 87 88 89
            cxly: "登记大厅",
            cxlx: "家庭房产",
            cxbh: "20200409146",
            cxsj: "2016-10-12 10:00:00",
            slry: "查询窗口",
            sqr: "张三",
            yqlrgx: "不动产权利人",
            qlr: "张三",
            cxyt: "预告买卖记录||首次登记",
任超 committed
90 91 92 93
          }
        ]
      }
    }
jiaozeping@pashanhoo.com committed
94 95 96
  },
  methods: {
    // 初始化数据
任超 committed
97 98 99
    fetchData () {
      getJtfcPage({ ...this.queryForm, ...this.pageData }).then(res => {
        let { records, total } = res.result
任超 committed
100
        this.tableData.data = records
任超 committed
101 102 103
        this.tableData.total = total
      })
    },
任超 committed
104
    handleSort (name, sort) {
jiaozeping@pashanhoo.com committed
105 106
      console.log(name, sort);
    },
任超 committed
107 108
    // 查看
    handleView () {
任超 committed
109
      this.isDialog = true
任超 committed
110
    }
jiaozeping@pashanhoo.com committed
111 112 113 114 115 116
  },
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>