|
|
|
@ -5,7 +5,8 @@
|
|
|
|
|
<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-input v-model="filterQuery.code" placeholder="请输入物资编码/商品条码/医保编码" style="width: 90%"
|
|
|
|
|
@keyup.enter.native="keyupErp_submit($event)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
@ -20,30 +21,42 @@
|
|
|
|
|
</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-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-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"
|
|
|
|
|
:label="item.thirdName"
|
|
|
|
|
:value="item.thirdId">
|
|
|
|
|
<span style="float: left">{{ item.thirdName }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<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-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-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="产品类型:">
|
|
|
|
|
<el-select v-model="filterQuery.productType" placeholder="产品类型">
|
|
|
|
|
<el-option label="器械" value="1"></el-option>
|
|
|
|
|
<el-option label="药品" value="2"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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"
|
|
|
|
|
:label="item.thirdName"
|
|
|
|
|
:value="item.thirdId">
|
|
|
|
|
<span style="float: left">{{ item.thirdName }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -55,9 +68,11 @@
|
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="selectExport" v-if="selectType==0">选中导出</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="allExport" v-if="selectType==0">结果全部导出</el-button>
|
|
|
|
|
<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-upload" @click="allUploadSmp" v-if="selectType==1">一键上传</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="allUploadSmp" v-if="selectType==1">一键上传
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadErp" v-if="selectType==3">选中下载</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadAllErp" v-if="selectType==3">结果全部下载</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="downloadAllErp" v-if="selectType==3">结果全部下载
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</div>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
@ -113,7 +128,7 @@ import {getInvbasdoc} from "@/api/thrsys/getErps";
|
|
|
|
|
import {getBasicThirdSys, filterDetailByKey} from "@/api/thrsys/basicThirdSys";
|
|
|
|
|
import {selectIp} from "@/api/system/systemParamConfig";
|
|
|
|
|
import thrProductsDetail from "./thrProductsDetail";
|
|
|
|
|
import {exportExcel,exportExcelAll} from "@/api/thrsys/thrProductsExport"
|
|
|
|
|
import {exportExcel, exportExcelAll} from "@/api/thrsys/thrProductsExport"
|
|
|
|
|
import {thrProductUpload} from "@/api/thrsys/smp"
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -143,7 +158,7 @@ export default {
|
|
|
|
|
limit: 10,
|
|
|
|
|
isDownThrSys: null,
|
|
|
|
|
},
|
|
|
|
|
mainThirdSys:'',
|
|
|
|
|
mainThirdSys: '',
|
|
|
|
|
total: 0,
|
|
|
|
|
thirdSys: [],
|
|
|
|
|
thirdSysDetail: null,
|
|
|
|
@ -175,8 +190,8 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
search(){
|
|
|
|
|
this.filterQuery.page=1;
|
|
|
|
|
search() {
|
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -270,8 +285,8 @@ export default {
|
|
|
|
|
getBasicThirdSys(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.thirdSys = response.data.list || [];
|
|
|
|
|
for(var i=0;i<this.thirdSys.length;i++){
|
|
|
|
|
if(this.thirdSys[i].mainSys){
|
|
|
|
|
for (var i = 0; i < this.thirdSys.length; i++) {
|
|
|
|
|
if (this.thirdSys[i].mainSys) {
|
|
|
|
|
this.filterQuery.thirdSys = this.thirdSys[i].thirdId;
|
|
|
|
|
this.mainThirdSys = this.thirdSys[i].thirdId;
|
|
|
|
|
}
|
|
|
|
@ -420,7 +435,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
allExport() {
|
|
|
|
|
this.filterQuery.thrProductsEntities=this.list;
|
|
|
|
|
this.filterQuery.thrProductsEntities = this.list;
|
|
|
|
|
exportExcelAll(this.filterQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|