|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<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-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item label="供应商:">-->
|
|
|
|
@ -85,6 +85,7 @@
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<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-input
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
@ -150,6 +151,7 @@
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
@ -157,7 +159,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<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-search" @click="search">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="lockProducts('3')" v-if="isSpCombine">锁定</el-button>
|
|
|
|
@ -342,7 +344,7 @@ import {
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
showSearch: false,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
lockStatus: null,
|
|
|
|
|
unionCode: null,
|
|
|
|
@ -358,6 +360,7 @@ export default {
|
|
|
|
|
filterType: null,
|
|
|
|
|
companyName: null,
|
|
|
|
|
unitFk: null,
|
|
|
|
|
productType: 1
|
|
|
|
|
},
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
editQuery: null,
|
|
|
|
@ -431,6 +434,7 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20,
|
|
|
|
|
addType: 1,
|
|
|
|
|
productType: 1
|
|
|
|
|
};
|
|
|
|
|
this.total = 0;
|
|
|
|
|
this.list = [];
|
|
|
|
|