Blame view

src/views/zhcx/lpcx/lpcx.vue 3.33 KB
1 2
<template>
  <div class="from-clues">
jiaozeping@pashanhoo.com committed
3
    <!-- 楼盘查询 -->
4
    <div class="from-clues-header">
任超 committed
5
      <el-form :model="queryForm" @submit.native.prevent ref="queryForm" label-width="80px">
6 7
        <el-row>
          <el-col :span="5">
任超 committed
8
            <el-form-item label="项目名称" label-width="70px">
任超 committed
9
              <el-input placeholder="请输入项目名称" @clear="queryClick" v-model="queryForm.xmmc" clearable class="width100">
10 11 12 13 14
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="项目编号">
任超 committed
15
              <el-input placeholder="请输入项目编号" @clear="queryClick" v-model="queryForm.xmbh" clearable class="width100">
16 17 18 19 20
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="宗地代码">
任超 committed
21
              <el-input placeholder="请输入宗地代码" @clear="queryClick" v-model="queryForm.zddm" clearable class="width100">
22 23 24 25 26
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="自然幢号">
任超 committed
27
              <el-input placeholder="请输入自然幢号" @clear="queryClick" v-model="queryForm.zrzh" clearable class="width100">
28 29 30 31
              </el-input>
            </el-form-item>
          </el-col>

32
          <el-col :span="4" class="btnColRight">
33
            <el-form-item>
任超 committed
34
              <el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
1  
jiaozeping@pashanhoo.com committed
35
              <el-button @click="moreQueryClick">高级查询</el-button>
36 37 38 39 40 41 42
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
任超 committed
43 44 45
      <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort"
        :current-page.sync="pageData.current" :total="pageData.total" @size-change="handleSizeChange"
        @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
46 47 48 49 50 51 52
      </lb-table>
    </div>
  </div>
</template>
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./lpcxdata";
jiaozeping@pashanhoo.com committed
53
import { getLpZrz } from "@/api/lpb.js";
54 55 56 57
export default {
  name: "lpcx",
  components: {},
  mixins: [table],
任超 committed
58
  mounted () {
任超 committed
59
    sendThis(this)
60
  },
任超 committed
61
  data () {
62 63 64 65 66 67 68 69
    return {
      queryForm: {
        xmmc: "",
        xmbh: "",
        zddm: "",
        zrzh: "",
      },
      pageData: {
jiaozeping@pashanhoo.com committed
70 71 72
        currentPage: 1,
        pageSize: 10,
        total: 0,
73 74 75
      },
      tableData: {
        columns: datas.columns(),
jiaozeping@pashanhoo.com committed
76 77
        data: [],
      },
78 79 80 81
    };
  },
  methods: {
    // 初始化数据
任超 committed
82 83
    queryClick () {
      this.$startLoading();
jiaozeping@pashanhoo.com committed
84
      getLpZrz({ ...this.queryForm, ...this.pageData }).then((res) => {
任超 committed
85
        this.$endLoading();
jiaozeping@pashanhoo.com committed
86
        if (res.code === 200) {
jiaozeping@pashanhoo.com committed
87
          this.pageData.total = res.result.total;
jiaozeping@pashanhoo.com committed
88
          this.tableData.data = res.result.records;
jiaozeping@pashanhoo.com committed
89
        }
jiaozeping@pashanhoo.com committed
90
      });
任超 committed
91
    },
任超 committed
92
    handleSort (name, sort) {
93 94
      console.log(name, sort);
    },
jiaozeping@pashanhoo.com committed
95
    //打开楼盘表
任超 committed
96
    openlpbClick (scope) {
任超 committed
97
      // var zrzbsm = scope.row.bsm;
98
      this.$popup('楼盘表', 'lpb/index', {
任超 committed
99 100
        width: '90%',
        height: "92%",
jiaozeping@pashanhoo.com committed
101
        formData: {
1  
jiaozeping@pashanhoo.com committed
102
          bsm: scope.row.bsm
任超 committed
103 104
        }
      })
105 106 107 108 109 110 111
    },
  },
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
</style>