Blame view

src/views/workflow/components/fzxx.vue 2.08 KB
蔡俊立 committed
1 2
<template>
  <div class="from-clues">
任超 committed
3
    <!-- 发证信息 -->
蔡俊立 committed
4 5 6 7 8
    <div class="from-clues-header">
      <el-form :model="ruleForm">
        <el-row :gutter="20">
          <el-col :span="6">
            <el-form-item label="印刷序列号">
任超 committed
9
              <el-input v-model="ruleForm.ysxlh" clearable placeholder="请输入印刷序列号"></el-input>
蔡俊立 committed
10 11 12 13
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="证书号">
任超 committed
14
              <el-input v-model="ruleForm.zsh" 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.qlr" clearable placeholder="请输入权利人"></el-input>
蔡俊立 committed
20 21 22 23
            </el-form-item>
          </el-col>
          <el-col :span="6" class="btnCol">
            <el-form-item>
蔡俊立 committed
24
              <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button>
蔡俊立 committed
25 26 27 28 29 30
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
任超 committed
31
      <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false">
蔡俊立 committed
32 33 34 35 36 37 38
      </lb-table>
    </div>
  </div>
</template>
<script>
import table from "@/utils/mixin/table";
import { getCertificateList } from "@/api/fqsq.js";
任超 committed
39
import { datas } from "../javascript/fzxxdata";
蔡俊立 committed
40 41
export default {
  mixins: [table],
任超 committed
42
  components: {},
蔡俊立 committed
43 44
  props: {
  },
任超 committed
45
  data () {
蔡俊立 committed
46
    return {
任超 committed
47 48 49 50 51 52 53 54 55 56
      ruleForm: {
        ysxlh: '',
        zsh: '',
        qlr: '',
        bsmSldy: '',
      },
      tableData: {
        total: 0,
        columns: datas.columns(),
        data: [],
任超 committed
57 58
      }
    }
蔡俊立 committed
59 60
  },
  methods: {
任超 committed
61
    // 列表渲染接口
蔡俊立 committed
62
    fetchData () {
任超 committed
63
      this.ruleForm.bsmSldy = this.$parent.unitData[0].bsmSldy
蔡俊立 committed
64 65
      getCertificateList(this.ruleForm).then(res => {
        if (res.code === 200) {
蔡俊立 committed
66
          this.tableData.data = res.result
蔡俊立 committed
67 68
        }
      })
任超 committed
69
    }
蔡俊立 committed
70
  }
任超 committed
71
}
蔡俊立 committed
72 73 74 75
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
</style>