lilei před 2 roky
rodič
revize
5385b3bed4

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1676268043983
+  "version": 1676273325972
 }

+ 5 - 6
src/views/purchasingManagement/purchaseOrderNew/chooseProductModal.vue

@@ -13,7 +13,7 @@
       <div class="chooseProduct-drawer-box">
         <!-- 搜索条件 -->
         <div ref="searchBox" class="table-page-search-wrapper">
-          <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+          <a-form layout="inline" @keyup.enter.native="searchForm">
             <a-row type="flex" :gutter="12" justify="start">
               <a-col flex="auto">
                 <a-form-model-item label="产品编码">
@@ -49,14 +49,13 @@
         </div>
         <!-- 列表 -->
         <s-table
-          v-if="hasVaild"
+          v-if="hasVaild&&showTable"
           class="sTable"
           ref="table"
           size="small"
           :rowKey="(record) => record.id"
           :columns="columns"
           :data="loadData"
-          :defaultLoadData="false"
           :scroll="{ x: tableWidth , y:tableHeight }"
           @dblclick="handleAdd"
           :pageSize="30"
@@ -192,6 +191,7 @@ export default {
       },
       advanced: false, //  高级搜索 展开/关闭
       disabled: false, //  查询、重置按钮是否可操作
+      showTable: false,
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.disabled = true
@@ -263,6 +263,7 @@ export default {
     // 查询
     searchForm () {
       if (this.hasVaild) {
+        this.showTable = true
         this.$refs.table.refresh(true)
       } else {
         this.$message.info('请输入查询条件')
@@ -280,9 +281,7 @@ export default {
         productTypeSn3: '' //  产品三级分类
       }
       this.productType = []
-      if (this.hasVaild) {
-        this.$refs.table.refresh(true)
-      }
+      this.showTable = false
     },
     onClose () {
       this.$emit('close')