fzxx.vue 2.51 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" clearable placeholder="请输入印刷序列号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="证书号">
              <el-input v-model="ruleForm.zsh" clearable placeholder="请输入证书号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="权利人">
              <el-input v-model="ruleForm.qlr" clearable placeholder="请输入权利人"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6" class="btnColRight">
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
              <el-button type="primary" icon="el-icon-search" @click="zslqClick()">证书领取</el-button>
            </el-form-item>
          </el-col>         
        </el-row>
      </el-form>
    </div>
    <div class="from-clues-content">
      <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false">
      </lb-table>
    </div>
    <zslqDialog  v-model="dialogVisible"  @update:dialogVisible="dialogVisibles"></zslqDialog>
  </div>
</template>
<script>
import table from "@/utils/mixin/table";
import zslqDialog from "./zslq.vue";
import { getCertificateList } from "@/api/bdcqz.js";
import { datas } from "../javascript/fzxxdata";
export default {
  mixins: [table],
  components: {
    zslqDialog
  },
  props: {
  },
  data () {
    return {
      ruleForm: {
        ysxlh: '',
        zsh: '',
        qlr: '',
        bsmSldy: '',
      },
      tableData: {
        total: 0,
        columns: datas.columns().fzgrid,
        data: [],
      },
      dialogVisible:false
    }
  },
  methods: {
    queryClick () {
      this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
      getCertificateList(this.ruleForm).then(res => {
        if (res.code === 200) {
          this.tableData.data = res.result;
        }
      })
    },
    zslqClick(){
      this.dialogVisible = true;       
    },
     //子组件传 过来的 数据
    dialogVisibles(v){
        this.dialogVisible = v;
    }
  }
}
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
</style>