Jelajahi Sumber

Merge tag 'Hotfix-zh-163' into develop

Finish Hotfix-zh-163
howie 3 tahun lalu
induk
melakukan
dfe195e079
1 mengubah file dengan 16 tambahan dan 10 penghapusan
  1. 16 10
      src/views/stock/stock_list.vue

+ 16 - 10
src/views/stock/stock_list.vue

@@ -155,8 +155,10 @@ export default {
 
   computed: {
     exParams() {
+        const correspondNameS = this.fliterData()
       return {
-        correspondId: this.screenForm.warehouse,
+         correspondId:  this.screenForm.warehouse.join(),
+        correspondNameS:correspondNameS.join('/'),
         stockId: this.screenForm.position,
         materialName: this.screenForm.goodsName,
         materialNumber: this.screenForm.goodsCode,
@@ -227,15 +229,7 @@ export default {
     // 查询列表
     getList() {
       this.listLoading = true;
-          const correspondNameS = []
-        if( this.screenForm.warehouse &&  this.screenForm.warehouse.length)
-         this.screenForm.warehouse.forEach(e=>{
-           this.warehouseList.filter(k=>{
-               if(e === k.id){
-                correspondNameS.push(k.name)
-              }
-           })
-        })
+        const correspondNameS = this.fliterData()
       let params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
@@ -281,7 +275,19 @@ export default {
       this.currentPage = val;
       this.getList();
     },
+    fliterData(){
+           const correspondNameS = []
+        if( this.screenForm.warehouse &&  this.screenForm.warehouse.length)
+         this.screenForm.warehouse.forEach(e=>{
+           this.warehouseList.filter(k=>{
+               if(e === k.id){
+                correspondNameS.push(k.name)
+              }
+           })
+        })
 
+        return correspondNameS
+    }
   }
 }
 </script>