<template>
<div>
    <el-card class="el-card">
        <el-form
            :inline="true"
            :model="queryParams"
            size="mini"
        >
            <el-form-item label="医疗耗材分类代码">
                <el-input
                    v-model="queryParams.goodsCode"
                    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="goodsCode"/>
            <el-table-column label="注册名称" prop="registeredProductName"/>
            <el-table-column label="注册剂型" prop="registeredMedicinemodel"/>
            <el-table-column label="注册规格" prop="registeredOutlook"/>
            <el-table-column label="商品名称" prop="productName"/>
            <el-table-column label="剂型" prop="realityMedicinemodel"/>
            <el-table-column label="规格" prop="realityOutlook"/>
            <el-table-column label="包装材质" prop="materialName"/>
            <el-table-column label="最小包装数量" prop="factor"/>
            <el-table-column label="最小制剂单位" prop="minUnit"/>
            <el-table-column label="最小包装单位" prop="unit"/>
            <el-table-column label="药品企业" prop="listingHolder"/>
            <el-table-column label="批准文号" prop="approvalCode"/>
            <el-table-column label="药品本位码" prop="goodsStandardCode"/>

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