初始化动态配置

20231126-yw
yuanwei 1 year ago
parent cc7cd17f2a
commit a119bf8f26

@ -2,7 +2,7 @@
<div>
<el-card class="el-card">
<div>
<el-form v-if="queryList && queryList.length > 0" :model="unionQuery" size="mini" label-width="125px" v-show="showSearch">
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" size="mini" label-width="125px" v-show="showSearch">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input'" :label="item.columnDesc+`:`" :key="item.id">
@ -66,7 +66,7 @@
<!-- <el-row>-->
<!-- <el-col :span="18">-->
<!-- <el-form-item class="query-form-item" label="UDI码:">-->
<!-- <el-input v-model="unionQuery.udiCode"-->
<!-- <el-input v-model="filterQuery.udiCode"-->
<!-- placeholder="请扫描或输入UDI码"-->
<!-- clearable="true"-->
<!-- @keyup.enter.native="keyup_submit($event)"></el-input>-->
@ -77,7 +77,7 @@
<!-- <el-col :span="6">-->
<!-- <el-form-item label="销售单元产品标识:" class="query-form-item">-->
<!-- <el-input-->
<!-- v-model="unionQuery.nameCode" clearable="true"-->
<!-- v-model="filterQuery.nameCode" clearable="true"-->
<!-- placeholder="请输入完整DI"-->
<!-- @keyup.enter.native="keyup_submit($event)"-->
<!-- ></el-input>-->
@ -86,7 +86,7 @@
<!-- <el-col :span="6">-->
<!-- <el-form-item label="医疗器械注册人:" class="query-form-item">-->
<!-- <el-select-->
<!-- v-model="unionQuery.ylqxzcrbarmc"-->
<!-- v-model="filterQuery.ylqxzcrbarmc"-->
<!-- filterable-->
<!-- remote-->
<!-- clearable="true"-->
@ -111,8 +111,8 @@
<!-- <el-col :span="6">-->
<!-- <el-form-item label="器械通用名称:" class="query-form-item">-->
<!-- <el-input-->
<!-- :disabled="unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''"-->
<!-- v-model="unionQuery.cpmctymc" clearable="true"-->
<!-- :disabled="filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"-->
<!-- v-model="filterQuery.cpmctymc" clearable="true"-->
<!-- placeholder="请输入器械通用名称"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
@ -122,8 +122,8 @@
<!-- <el-col :span="6">-->
<!-- <el-form-item label="规格型号:" class="query-form-item">-->
<!-- <el-input-->
<!-- v-model="unionQuery.ggxh" clearable="true"-->
<!-- :disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"-->
<!-- v-model="filterQuery.ggxh" clearable="true"-->
<!-- :disabled="(filterQuery.cpmctymc=='' && filterQuery.nameCode=='' && (filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''))"-->
<!-- placeholder="请输入规格型号"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
@ -131,8 +131,8 @@
<!-- <el-col :span="6">-->
<!-- <el-form-item label="注册证/备案号:" class="query-form-item">-->
<!-- <el-input-->
<!-- v-model="unionQuery.zczbhhzbapzbh" clearable="true"-->
<!-- :disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"-->
<!-- v-model="filterQuery.zczbhhzbapzbh" clearable="true"-->
<!-- :disabled="(filterQuery.cpmctymc=='' && filterQuery.nameCode=='' && (filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''))"-->
<!-- placeholder="请输入注册证/备案号"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
@ -303,8 +303,8 @@
<pagination
v-show="total>0"
:total="total"
:page.sync="unionQuery.page"
:limit.sync="unionQuery.limit"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
/>
</div>
@ -522,7 +522,7 @@ export default {
data() {
return {
unionQuery: {
filterQuery: {
page: 1,
limit: 10,
udiCode: null,
@ -569,7 +569,7 @@ export default {
this.$router.push({
path: "",
});
this.unionQuery = {
this.filterQuery = {
page: 1,
limit: 10,
udiCode: null,
@ -584,11 +584,11 @@ export default {
this.udidlList = [];
},
clear() {
this.unionQuery.ylqxzcrbarmc == null;
this.unionQuery.cpmctymc = null;
this.filterQuery.ylqxzcrbarmc == null;
this.filterQuery.cpmctymc = null;
},
searchList() {
this.unionQuery.page = 1;
this.filterQuery.page = 1;
this.getList();
},
getSuperSeaech() {
@ -599,12 +599,12 @@ export default {
type: "warning",
})
.then(() => {
if (this.unionQuery.nameCode == "") {
if (this.filterQuery.nameCode == "") {
this.$message.warning("请输入完成DI信息进行查询");
return;
}
this.loading = true;
superSearch(this.unionQuery)
superSearch(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
@ -628,18 +628,18 @@ export default {
getList() {
if (
this.unionQuery.udiCode == "" &&
this.unionQuery.nameCode == "" &&
this.unionQuery.cpmctymc == "" &&
this.unionQuery.ylqxzcrbarmc == "" &&
this.unionQuery.ggxh == "" &&
this.unionQuery.zczbhhzbapzbh == ""
this.filterQuery.udiCode == "" &&
this.filterQuery.nameCode == "" &&
this.filterQuery.cpmctymc == "" &&
this.filterQuery.ylqxzcrbarmc == "" &&
this.filterQuery.ggxh == "" &&
this.filterQuery.zczbhhzbapzbh == ""
) {
this.$message.warning("请输入查询条件");
return;
}
this.loading = true;
getUdiInfos(this.unionQuery)
getUdiInfos(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
@ -662,7 +662,7 @@ export default {
},
keyup_submit(_this,event) {
_this.unionQuery.page = 1;
_this.filterQuery.page = 1;
_this.getList();
event.target.select();
},
@ -677,7 +677,7 @@ export default {
},
handleCurrentChange(val) {
this.unionQuery.page = val;
this.filterQuery.page = val;
this.getList();
},
tableRowClassName({row, rowIndex}) {

Loading…
Cancel
Save