zhangyuewww 2 éve
szülő
commit
b2cb60a3de
1 módosított fájl, 7 hozzáadás és 6 törlés
  1. 7 6
      src/views/profitable/warehouseinventory.vue

+ 7 - 6
src/views/profitable/warehouseinventory.vue

@@ -46,7 +46,7 @@
 <script>
     import {
     getinventoryinfo,
-    getcontract
+    getwarehouse
   } from '@/model/profitable/index'
   export default {
     components: {},
@@ -75,6 +75,7 @@
     },
     activated() {
         //  this.getPassYearFormatDate()
+      this.warehouseName=this.$route.query.warehouseName
       this.getList()
     },
     methods: {
@@ -112,6 +113,10 @@
           this.endDate = year1 + '-' + month1 +'-' + strDate1
           this.value=[this.startDate,this.endDate]
         },
+        selectwarehouse(e){
+          this.warehouseName=e
+          this.getList()
+        },
       getList() {
         getwarehouse({ compId: localStorage.getItem('ws-pf_compId'),warehouseType:1}).toPromise()
           .then(response => {
@@ -119,15 +124,11 @@
           
           })
          getinventoryinfo({
-            // warehouseType: 1,
             compId: localStorage.getItem('ws-pf_compId'),
-            // startDate:this.startDate,
-            // endDate:this.endDate,
-            searchKeyWord:this.searchKeyWord,
             currentPage: this.currentPage,
+            warehouseName:this.warehouseName,
             pageSize:this.pageSize ,
             inventoryType:3,
-            searchType:this.searchType
           })
           .toPromise()
           .then(response => {