Sfoglia il codice sorgente

存货列表-增加筛选条件

jingbb 9 mesi fa
parent
commit
b97544aa2e
1 ha cambiato i file con 29 aggiunte e 0 eliminazioni
  1. 29 0
      src/views/production/Popup/inventoryPopup.vue

+ 29 - 0
src/views/production/Popup/inventoryPopup.vue

@@ -9,6 +9,27 @@
       @ok='handleOk'
       >
       <a-card :bordered="false" class="top" style="margin-bottom:1%;margin-top:1%">
+        <div class="table-page-search-wrapper">
+            <a-form layout="inline" @keyup.enter.native="searchQuery">
+              <a-row :gutter="24">
+                <a-col :md="8" :sm="24">
+                  <a-form-item label="存货分类">
+                    <a-input placeholder="请输入" v-model="queryParam.className" ></a-input>
+                  </a-form-item>
+                </a-col>
+                <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">
+                      {{ toggleSearchStatus ? '收起' : '展开' }}
+                      <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+                    </a> -->
+                  </span>
+                </a-col>
+              </a-row>
+            </a-form>
+        </div>
       <a-form-model ref="formRef">
             <a-table
             ref="table"
@@ -44,6 +65,7 @@
         data() {
           return {
             visible:false,
+            queryParam:{},
             selectedRowKeys:[],
             selectedRows:[],
             dataSource:[],
@@ -146,6 +168,13 @@
                     this.loading = false
                 })
             },
+            searchQuery(){
+                this.getData(this.queryParam.Org)
+            },
+            searchReset(){
+                this.queryParam.className = ''
+                this.getData(this.queryParam.Org)
+            },
             handleTableChange(pagination, filters, sorter) {
                 this.queryParam.pageNo = pagination.current
                 this.queryParam.pageSize = pagination.pageSize