<template>
<div>
    <el-card class="el-card">
        <el-form
            :inline="true"
            :model="queryParams"
            size="mini"
        >
            <el-form-item label="医保耗材分类编码">
                <el-input
                    v-model="queryParams.codeShow"
                    size="mini"
                    placeholder="医保耗材分类编码"
                ></el-input>
            </el-form-item>
            <el-form-item>
                <el-button-group>
                    <el-button
                        type="primary"
                        icon="el-icon-refresh"
                        @click="onReset"
                    ></el-button>
                    <el-button type="primary" icon="search" @click="onSubmit"
                    >查询
                    </el-button>
                </el-button-group>
            </el-form-item>

        </el-form>
        <el-table
            v-loading="loading"
            :data="list"
            style="width: 100%"
        >
            <el-table-column label="序号" type="index"/>
            <el-table-column label="注册备案号" prop="regcardnm"/>
            <el-table-column label="注册备案产品名称" prop="regcardName"/>
            <el-table-column label="医保耗材分类编码" prop="codeShow"/>
            <el-table-column label="注册备案人" prop="registrant"/>
            <el-table-column label="单间产品名称" prop="productName"/>

            <el-table-column label="企业名称" prop="companyName"/>
            <el-table-column label="规格" prop="model"/>
            <el-table-column label="型号" prop="specification"/>
            <el-table-column label="UDI-DI" prop="udiCode"/>

        </el-table>
        <el-pagination
            :current-page="queryParams.page"
            :page-size="queryParams.limit"
            @current-change="handleCurrentChange"
            layout="prev, pager, next"
            :total="total"
        ></el-pagination>
    </el-card>
</div>
</template>

<script>
import {GetList} from "@/api/udchs/udchsYbHcxxGg";
import myMinix from './minixs/commMinixs';
export default {
    name: "udchsYbHcxxGg",
    mixins:[myMinix],
    methods:{
        getList() {
            this.loading = true;
            GetList(this.addDateRange(this.queryParams, this.dateRange)).then(res => {
                this.loading = false;
                this.list = res.data.list || [];
                this.total = res.data.total || 0;
            }).catch(error => {
                this.$message.error(error);
                this.loading = false;
            })
        },
        getFile(){
            // GetDistributorFile();
        }
    }
}
</script>

<style scoped>

</style>
