<template>
    <div>
        <el-card class="el-card">
            <el-form
                :inline="true"
                :model="queryParams"
                size="mini"
            >
                <el-form-item label="医用耗材代码">
                    <el-input
                        v-model="queryParams.specificationCode"
                        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="specificationCode"/>
                <el-table-column label="一级分类（学科，品类）" prop="catalogname1"/>
                <el-table-column label="二级分类（用途，品目）" prop="catalogname2"/>
                <el-table-column label="三级分类名称(部位、功能、品种）" prop="catalogname3"/>
                <el-table-column label="医保通用名" prop="commonname"/>

            </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/udchsYbHcxx";
import myMinix from './minixs/commMinixs';
export default {
    name: "udchsYbHcxx",
    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>
