Blame view

src/views/workflow/components/fzxx.vue 3.08 KB
1
<!--
yuanbo committed
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-07-28 16:28:43
5
-->
蔡俊立 committed
6 7
<template>
  <div class="from-clues">
任超 committed
8
    <!-- 发证信息 -->
蔡俊立 committed
9 10 11 12 13
    <div class="from-clues-header">
      <el-form :model="ruleForm">
        <el-row :gutter="20">
          <el-col :span="6">
            <el-form-item label="印刷序列号">
任超 committed
14
              <el-input v-model="ruleForm.ysxlh" clearable placeholder="请输入印刷序列号"></el-input>
蔡俊立 committed
15 16 17 18
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="证书号">
任超 committed
19
              <el-input v-model="ruleForm.zsh" clearable placeholder="请输入证书号"></el-input>
蔡俊立 committed
20 21 22 23
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="权利人">
任超 committed
24
              <el-input v-model="ruleForm.qlr" clearable placeholder="请输入权利人"></el-input>
蔡俊立 committed
25 26
            </el-form-item>
          </el-col>
27
          <el-col :span="6" class="btnColRight" v-if="ableOperation">
蔡俊立 committed
28
            <el-form-item>
yangwei committed
29
              <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
30
              <el-button type="primary" icon="el-icon-search" @click="zslqClick">证书领取</el-button>
蔡俊立 committed
31
            </el-form-item>
32
          </el-col>
蔡俊立 committed
33 34 35 36
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
任超 committed
37
      <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false">
蔡俊立 committed
38 39 40 41 42
      </lb-table>
    </div>
  </div>
</template>
<script>
43
  import { mapGetters } from 'vuex'
44
  import store from '@/store/index.js'
45 46
  import table from "@/utils/mixin/table";
  import { datas } from "../javascript/fzxxdata";
47
  import { getCertificateList } from "@/api/bdcqz.js";
48 49 50 51
  export default {
    mixins: [table],
    data () {
      return {
52 53
        //表单是否可操作
        ableOperation: true,
54 55 56 57
        ruleForm: {
          ysxlh: '',
          zsh: '',
          qlr: '',
58
          bsmSldy: ''
59 60 61 62
        },
        tableData: {
          total: 0,
          columns: datas.columns().fzgrid,
63
          data: []
64 65 66
        },
        dialogVisible: false
      }
田浩浩 committed
67
    },
68 69 70
    created () {
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
    },
71 72 73 74 75 76 77 78 79 80
    computed: {
      ...mapGetters(['workFresh'])
    },
    watch: {
      workFresh: {
        handler (newVal, oldVal) {
          if (newVal) this.queryClick()
        }
      }
    },
81
    methods: {
yuanbo committed
82 83 84 85
      /**
       * @description: queryClick
       * @author: renchao
       */
86 87 88 89
      queryClick () {
        this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
        getCertificateList(this.ruleForm).then(res => {
          if (res.code === 200) {
90
            this.tableData.data = res.result ? res.result : []
91 92 93
          }
        })
      },
94 95 96 97
      /**
       * @description: 
       * @author: renchao
       */
98
      zslqClick () {
99
        store.dispatch('user/reWorkFresh', false)
100
        this.$popupDialog("不动产权证领取", "workflow/components/dialog/zslq", {}, '80%', true)
101
      }
任超 committed
102
    }
蔡俊立 committed
103 104 105
  }
</script>
<style scoped lang='scss'>
106
  @import "~@/styles/public.scss";
yuanbo committed
107
</style>