lilei il y a 2 ans
Parent
commit
16d2250ac9

+ 1 - 0
src/views/common/chooseWarehouse.js

@@ -87,6 +87,7 @@ const warehouse = {
           this.$store.state.app.defWarehouse = null
           this.warehouseData = []
         }
+        this.$emit('load')
       })
     },
     clearData () {

+ 9 - 2
src/views/dataExport/exportCheck/list.vue

@@ -18,6 +18,7 @@
                 <warehouse
                   v-model="queryParam.warehouseSn"
                   isPermission
+                  @load="loadWareHouse"
                   id="exportCheckList-warehouseSn"
                   placeholder="请选择仓库"
                   @change="getList"
@@ -114,11 +115,17 @@ export default {
         }
       })
     },
-    pageInit () {
-      this.$refs.ruleForm.resetFields()
+    loadWareHouse(){
       const defWareHouse = this.$store.state.app.defWarehouse
       this.queryParam.checkWarehouseSn = undefined
       this.queryParam.warehouseSn = this.isShowWarehouse ? undefined : (defWareHouse?defWareHouse.warehouseSn:undefined)
+      // console.log(this.queryParam.warehouseSn)
+      if(!this.isShowWarehouse){
+        this.getList(true)
+      }
+    },
+    pageInit () {
+      this.$refs.ruleForm.resetFields()
     }
   },
   mounted () {