|
|
|
@ -1,40 +1,60 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="产品编码:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.code"
|
|
|
|
|
placeholder="请输入产品编码/商品条码/医保编码"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
@keyup.enter.native="keyupErp_submit($event)"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="产品名称:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.name"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请输入产品名称"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="规格型号:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.spec" clearable="true"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请输入规格型号"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="注册/备案凭证:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.registerNo" clearable="true"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请输入注册/备案凭证"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="生产厂家:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.manufactory" clearable="true"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请输入生产厂家"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="外部系统:">
|
|
|
|
|
<el-select v-model="filterQuery.thirdSys" style="width: 90%" placeholder="请选择第三方系统"
|
|
|
|
|
@change="thirdSysChange">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in thirdSys"
|
|
|
|
|
:key="item.value"
|
|
|
|
@ -45,38 +65,46 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-right" @click="selectExport" v-if="selectType==0"
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="selectExport" v-if="selectType==0"
|
|
|
|
|
>选中导出
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-right" @click="allExport" v-if="selectType==0"
|
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="allExport" v-if="selectType==0"
|
|
|
|
|
>结果全部导出
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-right" @click="uploadSmp"
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="uploadSmp"
|
|
|
|
|
v-if="selectType==1"
|
|
|
|
|
>选中上传
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-right" @click="allUploadSmp"
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="allUploadSmp"
|
|
|
|
|
v-if="selectType==1"
|
|
|
|
|
>一键上传
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" icon="search" @click="downloadErp"
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadErp"
|
|
|
|
|
v-if="selectType==3"
|
|
|
|
|
>选中下载
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="downloadAllErp"
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadAllErp"
|
|
|
|
|
v-if="selectType==3"
|
|
|
|
|
>结果全部下载
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border highlight-current-row>
|
|
|
|
|
</div>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border
|
|
|
|
|
highlight-current-row>
|
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index" width="80"></el-table-column>
|
|
|
|
|
<el-table-column label="产品编码" prop="code"></el-table-column>
|
|
|
|
@ -85,7 +113,7 @@
|
|
|
|
|
<el-table-column label="计量单位" prop="measname" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="注册证号" prop="registerNo" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="生产厂家" prop="manufactory" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<el-table-column label="操作" width="60">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="detailDialog(scope.row)"
|
|
|
|
|
>详情
|
|
|
|
@ -144,6 +172,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
thrProductsEntities: [],
|
|
|
|
|
code: null,
|
|
|
|
@ -205,6 +234,9 @@ export default {
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
hideSearch() {
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
},
|
|
|
|
|
clearAll() {
|
|
|
|
|
this.$confirm("此操作将清空所有产品信息, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -432,3 +464,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.el-form-item--mini.el-form-item {
|
|
|
|
|
margin-bottom: 9px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|