|
@@ -13,18 +13,35 @@
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="8" :sm="24">
|
|
|
- <a-form-item label="存货分类">
|
|
|
+ <a-form-item label="分类名称">
|
|
|
<a-input placeholder="请输入" v-model="queryParam.className" ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-item label="名称">
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.name" ></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <template v-if="toggleSearchStatus">
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-item label="编码">
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.code" ></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-item label="分类编码">
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.classCode" ></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
<a-col :md="8" :sm="24">
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
- <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
|
|
|
+ <a @click="handleToggleSearch" style="margin-left: 8px">
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
|
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
|
|
- </a> -->
|
|
|
+ </a>
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -85,6 +102,7 @@
|
|
|
pageNo:1
|
|
|
},
|
|
|
record:{},
|
|
|
+ toggleSearchStatus:false,
|
|
|
columns:[
|
|
|
{
|
|
|
title: '行号',
|
|
@@ -173,6 +191,9 @@
|
|
|
},
|
|
|
searchReset(){
|
|
|
this.queryParam.className = ''
|
|
|
+ this.queryParam.classCode = ''
|
|
|
+ this.queryParam.name = ''
|
|
|
+ this.queryParam.code = ''
|
|
|
this.getData(this.queryParam.Org)
|
|
|
},
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
@@ -184,6 +205,9 @@
|
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
|
this.selectedRows = selectionRows;
|
|
|
},
|
|
|
+ handleToggleSearch(){
|
|
|
+ this.toggleSearchStatus=!this.toggleSearchStatus
|
|
|
+ },
|
|
|
clickRow(record, index){
|
|
|
return {
|
|
|
on: {
|