Blame view

src/views/zsgl/zssyjl/zssyjl.vue 3.55 KB
jiaozeping@pashanhoo.com committed
1 2 3 4
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
任超 committed
5
      <el-form @submit.native.prevent :model="ruleForm" label-width="85px">
jiaozeping@pashanhoo.com committed
6 7
        <el-row>
          <el-col :span="5">
任超 committed
8
            <el-form-item label="印刷序列号" prop="ysxlh">
9
              <el-input v-model="ruleForm.ysxlh" clearable placeholder="请输入印刷序列号"></el-input>
任超 committed
10 11 12 13
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="证书类型" prop="zslx">
14
              <el-select v-model="ruleForm.zslx" class="width100" placeholder="请选择证书类型" clearable>
任超 committed
15
                <el-option v-for="item in zslxArr" :key="item.value" :label="item.label" :value="item.value">
蔡俊立 committed
16 17
                </el-option>
              </el-select>
任超 committed
18 19 20
            </el-form-item>
          </el-col>
          <el-col :span="5">
任超 committed
21
            <el-form-item label="业务号" label-width="60px" prop="ywh">
22
              <el-input v-model="ruleForm.ywh" clearable placeholder="请输入业务号"></el-input>
任超 committed
23 24 25
            </el-form-item>
          </el-col>
          <el-col :span="6">
任超 committed
26
            <el-form-item label="不动产权证号" label-width="100px" prop="bdcqzh">
27
              <el-input v-model="ruleForm.bdcqzh" placeholder="请输入不动产权证号"></el-input>
jiaozeping@pashanhoo.com committed
28 29 30
            </el-form-item>
          </el-col>

31
          <el-col :span="3" class="btnColRight">
jiaozeping@pashanhoo.com committed
32
            <el-form-item>
yangwei committed
33
              <el-button type="primary" native-type="submit" icon="el-icon-search" @click="handleSearch">查询</el-button>
jiaozeping@pashanhoo.com committed
34 35 36 37 38 39 40 41
              <el-button @click="moreQueryClick()">高级查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 表格 -->
    <div class="from-clues-content">
蔡俊立 committed
42
      <lb-table :page-size="pageData.size" border :current-page.sync="pageData.current" :total="tableData.total"
任超 committed
43 44
        @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
        :data="tableData.data">
jiaozeping@pashanhoo.com committed
45 46 47 48 49
      </lb-table>
    </div>
  </div>
</template>
<script>
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
  import table from "@/utils/mixin/table";
  import { getZssyqkList } from "@/api/zsgl.js"
  import { datas, sendThis } from "./zssyjldata";
  export default {
    name: "zssyjl",
    mixins: [table],
    mounted () {
      sendThis(this);
    },
    data () {
      return {
        ruleForm: {
          ysxlh: "",
          zslx: "",
          ywh: "",
          bdcqzh: "",
        },
        tableData: {
          total: 0,
          columns: datas.columns(),
          data: [],
        },
        zslxArr: [
          { label: '不动产权证书', value: 'zs' },
          { label: '不动产登记证明', value: 'zm' }
        ]
      };
蔡俊立 committed
77
    },
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
    activated () {
      this.queryClick()
    },
    methods: {
      /**
       * @description: queryClick
       * @author: renchao
       */
      queryClick () {
        getZssyqkList({ ...this.ruleForm, ...this.pageData }).then(res => {
          if (res.code === 200) {
            let { total, records } = res.result
            this.tableData.total = total;
            this.tableData.data = records ? records : []
          }
        })
      },
      // 查看证书使用情况
      /**
       * @description: 查看证书使用情况
       * @param {*} item
       * @author: renchao
       */
      openDialog (item) {
        this.$popupDialog("证书使用情况", "zsgl/components/viewDialog", {
          bsmZswj: item.bsmZswj
        })
      }
任超 committed
106 107
    }
  }
jiaozeping@pashanhoo.com committed
108 109
</script>
<style scoped lang="scss">
110
  @import "~@/styles/public.scss";
jiaozeping@pashanhoo.com committed
111
</style>