11/15 物资字典维护

dev_unify
wangwei 8 months ago
parent 6d393081ff
commit f5f189d711

@ -42,10 +42,11 @@
:model="filterQuery" :model="filterQuery"
size="mini" size="mini"
label-width="100px" label-width="100px"
v-show="showSearch"
> >
<el-row style=" display:flex; flex-wrap: wrap; "> <el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList"> <template v-for="(item, index) in queryList">
<div v-if="showSearch || item.isImport">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" <el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`" :key="item.id"> :label="item.columnDesc+`:`" :key="item.id">
<el-input <el-input
@ -113,6 +114,7 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</div>
</template> </template>
</el-row> </el-row>
<!-- <el-row>--> <!-- <el-row>-->
@ -255,7 +257,7 @@
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group> <el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch" <el-button icon="el-icon-view" type="primary" @click="hideSearch"
>显示/隐藏搜索栏 >高级查询
</el-button> </el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset" <el-button type="primary" icon="el-icon-refresh" @click="onReset"
>重置 >重置
@ -1867,7 +1869,7 @@ export default {
selectHospProductVisible: false, selectHospProductVisible: false,
selectUnBindHospProductVisible: false, selectUnBindHospProductVisible: false,
loading: false, loading: false,
showSearch: true, showSearch: false,
productType: null, productType: null,
editQuery: null, editQuery: null,
editFormat: {}, editFormat: {},
@ -1992,6 +1994,7 @@ export default {
page: 1, page: 1,
limit: 20, limit: 20,
addType: 1, addType: 1,
productsType: 1
}; };
this.getList(); this.getList();
}, },

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" label-width="120px" v-show="showSearch"> <el-form v-if="queryList && queryList.length > 0" :model="filterQuery" label-width="120px" >
<!-- <el-row>--> <!-- <el-row>-->
<!-- <el-col :span="6">--> <!-- <el-col :span="6">-->
<!-- <el-form-item label="供应商:">--> <!-- <el-form-item label="供应商:">-->
@ -85,6 +85,7 @@
<!-- </el-row>--> <!-- </el-row>-->
<el-row style=" display:flex; flex-wrap: wrap; "> <el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" > <template v-for="(item, index) in queryList" >
<div v-if="showSearch || item.isImport">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id"> <el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<el-input <el-input
v-model="filterQuery[item.columnName]" v-model="filterQuery[item.columnName]"
@ -150,6 +151,7 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</div>
</template> </template>
</el-row> </el-row>
</el-form> </el-form>
@ -157,7 +159,7 @@
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <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-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="search"></el-button> <el-button type="primary" icon="el-icon-search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="lockProducts('3')" v-if="isSpCombine"></el-button> <el-button type="primary" icon="search" @click="lockProducts('3')" v-if="isSpCombine"></el-button>
@ -342,7 +344,7 @@ import {
export default { export default {
data() { data() {
return { return {
showSearch: true, showSearch: false,
filterQuery: { filterQuery: {
lockStatus: null, lockStatus: null,
unionCode: null, unionCode: null,
@ -358,6 +360,7 @@ export default {
filterType: null, filterType: null,
companyName: null, companyName: null,
unitFk: null, unitFk: null,
productType: 1
}, },
fromOptions: [], fromOptions: [],
editQuery: null, editQuery: null,
@ -431,6 +434,7 @@ export default {
page: 1, page: 1,
limit: 20, limit: 20,
addType: 1, addType: 1,
productType: 1
}; };
this.total = 0; this.total = 0;
this.list = []; this.list = [];

Loading…
Cancel
Save