fzxx.vue 2.1 KB
<template>
  <div class="from-clues">
    <!-- 表单部分 -->
    <div class="from-clues-header">
      <el-form :model="ruleForm">
        <el-row :gutter="20">
          <el-col :span="6">
            <el-form-item label="印刷序列号">
              <el-input v-model="ruleForm.ysxlh" placeholder="请输入印刷序列号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="证书号">
              <el-input v-model="ruleForm.zsh" placeholder="请输入证书号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="权利人">
              <el-input v-model="ruleForm.qlr" placeholder="请输入权利人"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6" class="btnCol">
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
      <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false">
      </lb-table>
    </div>
  </div>
</template>
<script>
import table from "@/utils/mixin/table";
import { getCertificateList } from "@/api/fqsq.js";
import { datas } from "./fzxxdata";
export default {
  mixins: [table],
  components: {  },
  props: {
    
  },

  data() {
    return {
        ruleForm: {
            ysxlh: '',
            zsh: '',
            qlr: '',
            bsmSldy: '',
        },
        tableData: {
            total: 0,
            columns: datas.columns(),
            data: [],
        },
    };
  },
  async created() {
  },
  methods: {
      // 列表渲染接口
    fetchData () {
      this.ruleForm.bsmSldy = this.$parent._data.unitData[0].bsmSldy
      getCertificateList(this.ruleForm).then(res => {
        if (res.code === 200) {
          this.tableData.data = res.result
        }
      })
    },
  }
};
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";

</style>